Sigma rule: Shai-Hulud Malicious Bun Execution

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-0babb7f49b8a, updated 2025-11-25T00:00:00.000Z.

Rule

Title
Shai-Hulud Malicious Bun Execution
Status
experimental
Level
high
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Date
2025-11-25
File
rules-emerging-threats/2025/Malware/Shai-Hulud/proc_creation_win_mal_shai_hulud_malicious_node_bun_execution.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the execution of `bun_environment.js` via the Bun runtime, a behavior associated with the Shai-Hulud "Second Coming" NPM supply chain attack.
The malware uses a `setup_bun.js` script to install the Bun runtime if not present, and then executes the malicious `bun_environment.js` payload.

Log source

product
windows
category
process_creation

Detection

selection_parent:
    ParentImage|endswith: '\node.exe'
selection_child_bun_script:
    Image|endswith: '\bun.exe'
    CommandLine|contains:
        - 'bun_environment.js'
        - 'https://github.com/actions/runner/releases/download/v2.330.0'
condition: selection_parent and 1 of selection_child_*

False positives (as the rule lists them)

  • Legitimate but uncommon use of files named `bun_environment.js` could trigger this rule.

Tags

  • attack.t1195.002
  • attack.t1203
  • attack.execution
  • attack.initial-access
  • detection.emerging-threats

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2025/Malware/Shai-Hulud/proc_creation_win_mal_shai_hulud_malicious_node_bun_execution.yml

Sources and licences

  • SigmaHQ

    "Shai-Hulud Malicious Bun Execution" by Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2025/Malware/Shai-Hulud/proc_creation_win_mal_shai_hulud_malicious_node_bun_execution.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Shai-Hulud Malicious Bun Execution",
entity page, dataset version ref-0babb7f49b8a, updated 2025-11-25T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/5299fadf-f228-4526-8274-251db1960be9 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 5299fadf-f228-4526-8274-251db1960be9, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.