1. Resources
  2. Detection sources
  3. 32

32: A member was added to a Safe

Code 32 (Add Owner): a user or group became a member of a Safe. The audit calls Safe members owners. A new member with Retrieve accounts in a Safe of Tier 0 accounts can take their passwords.

Log source
Idira (formerly CyberArk) Vault audit log
Detection value
High
Volume
Low (estimate)
Last updated
Log
Idira Vault audit (Idira Vault audit, on by default)
Service
Idira Vault audit
Operation
32
Detects
4 attacks (1 rule · 4 detection logic)
MITRE ATT&CK
4 techniques in 4 tactics
Threat groups
10 groups that MITRE ATT&CK records using these techniques
Fields the rules read
deviceEventClassId

When it is written

The Vault writes code 32 (Add Owner; owner is the word the audit, the PrivateArk Client and the command line interface use for a Safe member) when a member is added to a Safe. CyberArk documents the addition in the web portal's Members tab, in the PrivateArk Client's Owners window (which can also add a user or group straight from an LDAP directory), in the REST API and in the command line interface (PACLI AddOwner, which needs the Safe to be open). The code table gives only the code's name and does not say which of these routes write it. Adding a member takes the Manage Safe Members permission in the Safe, and the member can only receive permissions the person adding it holds; in the classic web interface the configured Default Safe Authorizations are preselected for a new member. The member can be a Vault user or group, or a directory user or group. A directory user or group that is not yet in the Vault is created at that moment if a directory map matches it (the code table has code 2, Add External User, for a user). A Safe holds at most 64 members, predefined users included, and a membership can be given an expiration date; by default none is set.

The permissions are grouped as access (List, Use and Retrieve accounts), account management, Safe management (Manage Safe, Manage Safe Members, Back up Safe), monitoring (View audit log, View Safe members), workflow (confirm requests, access without confirmation) and folder permissions. The code table gives a user name as Info1, by the code's name the member that was added, and no other value: none for the Safe and none for the permissions. CyberArk's field list has an element for the target Safe and one for extra details of the record (ExtraDetails), but does not say what either holds for this code, nor what the record names when the member is a group, so read the member's permissions in the Members tab.

Not every way into a Safe writes this code. Predefined groups are added to every Safe automatically, and CyberArk states that a user added to one of them at once becomes an owner of all those Safes with the group's authorizations. The code table's code for a new group member is 265 (Add Group Member), not this one. CyberArk does not say whether the predefined groups and users that the Vault adds to every new Safe are themselves recorded with code 32.

How to turn it on

Idira Vault audit records 32 calls to Idira Vault audit without any setup. Vendor documentation

The Vault writes an audit record, identified by its audit action code, for every user and Safe activity. The records appear in the User and Safe Activities report and in Export Vault Data (EVD) output, where the code table's Info1 and Info2 values are separate columns. They stay for the Master Policy's Activities audit retention period (90 days by default); a user's own activity records stay for the History days of its Time Limitations tab. CyberArk notes that a value of zero in either setting stops those activities from being written to the audit log.

The Vault is not a collection point. To send the records to a SIEM:

  • PAM Self-Hosted: on every Vault server, set the syslog parameters in Server\Conf\DBParm.ini (SyslogServerIP, SyslogServerPort, SyslogServerProtocol, SyslogTranslatorFile, UseLegacySyslogFormat, and SyslogTrustedCAPath for TLS) and restart the Vault. TLS, TCP and UDP are supported; UDP is the default.
  • SyslogMessageCodeFilter lists the codes that are sent. By default all codes of user and Safe activities are sent; a filter that leaves out the codes a rule reads silences that rule.
  • The translator decides the field names. An XSL file turns the Vault's XML record into the syslog message. These pages name the fields as CyberArk's sample CEF translator writes them. The Vault's record has more elements than that translator writes: OSUser, PvwaDetails (the user's reason, the ticket ID and connection details of web portal operations), GatewayStation (the address of the web portal server) and CAProperties (the account's own properties). They reach a SIEM only through a translator that adds them. Sample files for ArcSight, QRadar, McAfee ESM, RSA enVision and a generic format are copied to Server\Syslog on installation, and a SIEM's own add-on may ship another translator with other keys, so check one record of your own.
  • Privilege Cloud (Standard): deploy the Secure Tunnel and give Technical Support the SIEM server, port, protocol (TLS is recommended; TCP risks losing messages; UDP is not supported), the SIEM type (one of the same translators) and the TLS certificate. Up to five syslog servers can be connected.
  • Privilege Cloud on the Identity Security Platform also lists most of these events in the Audit service, with codes written as PAM<code>. Its list does not have every code of the Vault's tables (460 and 461, and 427 and 428, are missing from it), and the pages of those codes say so. Its SIEM export is a JSON API with its own field names, which these pages do not describe.
  • CyberArk states no delivery delay. The Vault queues syslog messages and writes a notification to its ITALog when more than SyslogMsgsQueueNotificationThreshold (1,000 by default) are waiting.
Show the syslog settings of the Vault (run on each Vault server, read only)
Select-String -Path 'C:\Program Files (x86)\PrivateArk\Server\Conf\DBParm.ini' -Pattern '^\s*(Syslog|UseLegacySyslogFormat)'
Based on vendor documentation.
List the translator files on the Vault server (read only)
Get-ChildItem -Path 'C:\Program Files (x86)\PrivateArk\Server\Syslog' -Filter '*.xsl'
Based on vendor documentation.

Fields

The operation’s own fields first, then the fields every Idira Vault audit record has. Field names are the JSON paths of the record as the vendor documents it.

FieldWhat it holds
msg.TargetUserWhere the new member is expected. The code table gives a user name as Info1; CyberArk does not say which syslog element carries Info1, nor what the record holds when the member is a group, so confirm with one test record.
msg.SafeWhere the member's Safe is expected: the SAFE parameter of the command-line AddOwner command, and the target Safe in CyberArk's field list. The code table gives no Safe for this code and no vendor example shows its record, so confirm with one test record that the element is filled.
Fields every Idira Vault audit record has (12)
FieldWhat it holds
deviceVendorDevice Vendor of the CEF header, from the record's Vendor element (a static value). CyberArk's two copies of its sample record disagree: one shows CyberArk, the other Idira. The samples of Splunk and Microsoft show Cyber-Ark. Read the value in a record of your own.
deviceProductDevice Product, Vault for audit records (VaultMonitor for the Vault's performance messages).
deviceVersionDevice Version, the version of the Vault.
deviceEventClassIdRead by 1 ruleDevice Event Class ID, from the MessageID element: the audit action code. The operation this page is about. The rules match this number, not the name.
nameName, from the Desc element: a static description of the code. CyberArk's wording varies (code 4 is "User Authentication" in one table, "User Authentication Failure" in another and "Authentication failed" in the sample record), so match on the code.
severitySeverity. The record's Severity element is Error or Info; the sample translator writes Critical as 10, Error as 7, Info as 5 and anything else as 0. CyberArk does not list the severity of each code.
suserThe Issuer element: the Vault user who wrote the audit record, which CyberArk says is usually the user who performed the operation.
actThe Action element, a description of the audit record.
duserThe SourceUser element, which CyberArk's field list describes as the name of the Vault user who performed the operation.
fnameThe File element, the name of the target file (for account operations, expected to be the account's object in the Safe; CyberArk maps none of the code table's Info columns to it).
srcThe Station element, the address the operation came from. For sessions of the web portal (PVWA) it is the address of the user's own machine, not of the PVWA server.
msgOne string with nine parts separated by commas: TargetUser (the Vault user the operation was performed on), Safe (the target Safe), Location, Category, RequestId (the dual control request), Note, Reason (the reason the user entered), ExtraDetails and Message (the description again). The sample shows each part by name.

Values to know

suser

ValueMeaningSignal
the Safe's managers or an onboarding process, during a planned changeRoutine access grantMatch the record to the request.Expected
any other issuer, or a member outside the team that owns the SafeSomeone gave a user access to the Safe's accountsThe case the detection rule reports. Read the permissions, and confirm the request through another channel.Attack signal

Volume and noise

Low to moderate: new Safes get their members, people join teams, and onboarding processes add users through the REST API. An addition to a Safe of Tier 0 accounts, of a user that is not part of the team that owns the Safe, or by an issuer that does not usually manage the Safe is the record to read first.

Keeping it manageable

  • Read the Safe and the new member's permissions in the Members tab, and match the change to a request.
  • Prioritize Safes that hold Tier 0 accounts (domain administrators, cloud global administrators, the Vault's own component accounts).
  • Follow the new member: retrievals (code 295) soon after, and a removal of the same member (code 273) a few hours later, are the pattern the hypotheses on the detection pages look for.

Sample event

A Idira Vault audit record in the vendor’s format, with made-up values.

{
  "deviceVendor": "Cyber-Ark",
  "deviceProduct": "Vault",
  "deviceVersion": "14.6.0000",
  "deviceEventClassId": "32",
  "name": "Add Owner",
  "severity": 5,
  "suser": "safe-manager04",
  "act": "",
  "duser": "",
  "fname": "",
  "src": "203.0.113.24",
  "msg": {
    "TargetUser": "j.doe",
    "Safe": "Domain-Admins",
    "Location": "",
    "Category": "",
    "RequestId": "",
    "Note": "",
    "Reason": "",
    "ExtraDetails": "",
    "Message": ""
  }
}

Attacks this event reveals

Detection rules that read this event:

Detection logic (hypotheses that join this event with others) for:

References