1. Resources
  2. Detection sources
  3. 180

180: A user was created in the Vault

Code 180 (Add User): a Vault user was created directly in the Vault. A new internal user with Vault authorizations is a way to keep access to the PAM system, so every one should match a request.

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

When it is written

The Vault writes code 180 (Add User) when a user is created in the Vault itself, for example from the PrivateArk Client. Creating users needs the Add/Update Users authorization, which covers the creator's own level of the user hierarchy and the levels below it. The new user gets its user type, authentication method, Vault authorizations (Add Safes, Audit Users, Add/Update Users, Manage Directory Mapping, Backup All Safes and others), groups and time limitations in the same step.

The code table gives the new user's name as Info1; suser is the user who created it. CyberArk does not say which syslog element carries Info1. The record does not list the authorizations or groups the new user received: read them on the user.

A user that comes from an LDAP directory through a directory map is recorded as code 2 (Add External User), and a user made from a template as code 331 (Add User By Template).

How to turn it on

Idira Vault audit records 180 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.TargetUserThe Vault user an operation is performed on, in CyberArk's field list. The code table gives this code's Info1 as the new user's name; CyberArk does not say which element carries it, so confirm with one test record.
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
an issuer outside the PAM team or its provisioning processA user was created by someone who does not usually create usersThe case the detection rule is for. Confirm a request asked for the user; otherwise disable it and review what it did.Attack signal
a PAM administrator or provisioning accountRoutine user administrationMatch the record to a request or an onboarding ticket.Expected

Volume and noise

Low in most Vaults: internal users are created for administrators, for applications and for components, and the Vault creates its predefined users during installation and upgrade. A user created outside a change, by an issuer that does not usually manage users, or that ends up with administrative authorizations or in the Vault Admins group is the record to read first.

Keeping it manageable

  • Compare the issuer (suser) with the people and processes that are expected to create Vault users, and review any other issuer first.
  • Look at the new user at once: its Vault authorizations, its groups (Vault Admins above all) and its authentication method.
  • Follow the new user: search later records whose suser is its name, starting with its first logon (code 7).

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": "180",
  "name": "Add User",
  "severity": 5,
  "suser": "pam-admin01",
  "act": "",
  "duser": "",
  "fname": "",
  "src": "203.0.113.24",
  "msg": {
    "TargetUser": "svc-reporting",
    "Safe": "",
    "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:

Frequently asked questions

Does code 180 cover users that come from Active Directory?

No. A user created from an LDAP directory through a directory map is recorded as code 2 (Add External User), the first time the user is referenced in the Vault, for example at its first logon.

References