Detectionhightest
Credentials In Files
Detecting attempts to extract passwords with grep and laZagne
Igor Fits, Mikhail Larin, oscd.communityCreated 2020-10-19Updated 2021-11-2753b1b378-9b06-4992-b972-dde6e423d2b4macos
Log Source
macOSProcess Creation
ProductmacOS← raw: macos
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic2 selectors
detection:
selection1:
Image|endswith: '/grep'
CommandLine|contains: 'password'
selection2:
CommandLine|contains: 'laZagne'
condition: 1 of selection*False Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
References
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
53b1b378-9b06-4992-b972-dde6e423d2b4
Status
test
Level
high
Type
Detection
Created
2020-10-19
Modified
2021-11-27
Author
Path
rules/macos/process_creation/proc_creation_macos_find_cred_in_files.yml
Raw Tags
attack.credential-accessattack.t1552.001