T1555.001 IBM QRadar · QRadar

Detect Keychain in IBM QRadar

Adversaries may acquire credentials from Keychain. Keychain (or Keychain Services) is the macOS credential management system that stores account names, passwords, private keys, certificates, sensitive application data, payment data, and secure notes. There are three types of Keychains: Login Keychain, System Keychain, and Local Items (iCloud) Keychain. Adversaries may gather user credentials from Keychain storage/memory using the security command-line utility (e.g., security dump-keychain -d), by directly reading Keychain database files from ~/Library/Keychains/, or programmatically via Keychain Services API functions like SecKeychainFindInternetPassword and SecItemCopyMatching.

MITRE ATT&CK

Tactic
Credential Access
Technique
T1555 Credentials from Password Stores
Sub-technique
T1555.001 Keychain
Canonical reference
https://attack.mitre.org/techniques/T1555/001/

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  DATEFORMAT(starttime, 'yyyy-MM-dd HH:mm:ss') AS EventTime,
  sourceip,
  username,
  hostname,
  UTF8(payload) AS RawEvent
FROM events
WHERE (
  (
    UTF8(payload) ILIKE '%security%'
    AND (
      UTF8(payload) ILIKE '%dump-keychain%'
      OR UTF8(payload) ILIKE '%find-generic-password%'
      OR UTF8(payload) ILIKE '%find-internet-password%'
      OR UTF8(payload) ILIKE '%find-certificate%'
    )
  )
  OR UTF8(payload) ILIKE '%keychaindump%'
  OR UTF8(payload) ILIKE '%SecKeychainFindInternetPassword%'
  OR UTF8(payload) ILIKE '%SecItemCopyMatching%'
  OR UTF8(payload) ILIKE '%SecKeychainItemCopyAttributesAndData%'
)
AND starttime > NOW() - 86400000
ORDER BY starttime DESC
high severity medium confidence

Detects macOS Keychain credential dumping activity via payload pattern matching across syslog and endpoint data sources ingested into QRadar. Matches security CLI subcommands and known Keychain API function names in raw log payloads.

Data Sources

macOS Syslog via QRadar Universal DSM or Mac OS X DSMCrowdStrike Falcon or SentinelOne events forwarded to QRadar via CEF/LEEFOSQuery results forwarded via syslog

Required Tables

events

False Positives & Tuning

  • Authorized IT helpdesk automation using security find-generic-password to retrieve stored service account credentials from keychain for managed systems
  • CI/CD pipeline scripts using security find-certificate to export code signing certificates for build automation and notarization
  • macOS MDM enrollment and management agents accessing System.keychain during device provisioning or certificate push operations
Download portable Sigma rule (.yml)

Other platforms for T1555.001


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Dump Login Keychain with security command

    Expected signal: macOS Unified Log entry for /usr/bin/security process with 'dump-keychain -d' arguments. ESF process execution event. EDR process creation event with full command line.

  2. Test 2Extract specific password from Keychain

    Expected signal: macOS Unified Log entry for /usr/bin/security with 'find-generic-password' and '-w' arguments. ESF Keychain item access event.

  3. Test 3Copy Keychain database file for offline extraction

    Expected signal: ESF file copy event for login.keychain-db. Sysmon for macOS or EDR file creation event at destination path. macOS Unified Log may not capture this if only CLI cp is used.

Unlock Pro Content

Get the full detection package for T1555.001 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections