Detection rules › Splunk

Shai-Hulud 2 Exfiltration Artifact Files

Author
Michael Haag, Splunk
Source
upstream

Detects creation of exfiltration artifact files associated with Shai-Hulud 2.0 npm supply chain malware. The malware creates cloud.json, contents.json, environment.json, truffleSecrets.json, and actionsSecrets.json files containing harvested credentials from AWS, Azure, GCP, GitHub secrets, and environment variables. These files are staged before being pushed to attacker-controlled repositories.

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1195.002 Supply Chain Compromise: Compromise Software Supply Chain
Credential AccessT1552.001 Unsecured Credentials: Credentials In Files
CollectionT1074.001 Data Staged: Local Data Staging

Event coverage

ProviderEvent IDTitle
Sysmon11FileCreate

Stages and Predicates

Stage 1: tstats

tstats WHERE Filesystem.file_name IN ("actionsSecrets.json", "cloud.json", "contents.json", "environment.json", "truffleSecrets.json") BY Filesystem.action, Filesystem.dest, Filesystem.file_access_time, Filesystem.file_create_time, Filesystem.file_hash, Filesystem.file_modify_time, Filesystem.file_name, Filesystem.file_path, Filesystem.file_acl, Filesystem.file_size, Filesystem.process_guid, Filesystem.process_id, Filesystem.user, Filesystem.vendor_product

Stage 2: search

search

Stage 3: search

search

Stage 4: search

search

Stage 5: search

search `macro`

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Filesystem.file_namein
  • "actionsSecrets.json"
  • "cloud.json"
  • "contents.json"
  • "environment.json"
  • "truffleSecrets.json"