Skip to content

KC-1462: Validate record ownership in audit-log command - #2395

Draft
sshrushanth-ks wants to merge 1 commit into
releasefrom
KC-1462
Draft

sshrushanth-ks wants to merge 1 commit into
releasefrom
KC-1462

Conversation

@sshrushanth-ks

@sshrushanth-ks sshrushanth-ks commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Prevent shared records from being used as audit-log export destination. Only operator-owned records are now eligible, preventing attackers from hijacking the export by sharing a malicious record with matching title.

Changes

  • keepercommander/commands/aram.py:
    • Add ownership check to audit-log record lookup to skip shared records with notification
    • Add break statement for deterministic record selection
    • Display selected record UID and title before export
  • unit-tests/test_command_enterprise.py:
    • Add test_audit_log_ownership_skips_non_owned_record() to verify owned record is selected when both shared and owned records exist with matching title
    • Add test_audit_log_ownership_returns_none_when_only_shared() to verify shared record is rejected when it's the only match
    • Add test_audit_log_ownership_uses_meta_data_cache_fallback() to verify fallback to meta_data_cache works when record_owner_cache is missing
    • Add test_audit_log_ownership_fails_closed_on_unknown() to verify unknown ownership is treated as safe default

* Validate record ownership in audit-log command
Prevent shared records from being used as audit-log export destination.
Only operator-owned records are now eligible, preventing attackers from
hijacking the export by sharing a malicious record with matching title.

* Harden audit-log ownership check with meta_data_cache fallback and tests

Add helper function with fallback to meta_data_cache. Remove TLS
verification bypass from Splunk exports. Add 4 test cases covering
ownership validation, fallback behavior, and safe defaults.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant