-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat: Shai-Hulud: The Second Coming Rules #5772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
nasbench
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the windows version please start providing logs
a9fbc86 to
fad331c
Compare
...inux/process_creation/proc_creation_lnx_susp_script_interpretor_spawn_credential_scanner.yml
Outdated
Show resolved
Hide resolved
...dows/process_creation/proc_creation_win_susp_script_interpretor_spawn_credential_scanner.yml
Outdated
Show resolved
Hide resolved
Co-authored-by: phantinuss <79651203+phantinuss@users.noreply.github.com>
| - https://www.aikido.dev/blog/shai-hulud-strikes-again-hitting-zapier-ensdomains | ||
| - https://semgrep.dev/blog/2025/digging-for-secrets-sha1-hulud-the-second-coming-of-the-npm-worm/ | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| date: 2025-11-25 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| date: 2025-11-25 | |
| date: 2026-01-24 |
| selection: | ||
| TargetFilename|endswith: '.github/workflows/shai-hulud-workflow.yml' | ||
| TargetFilename|endswith: | ||
| - '.github/workflows/discussion.yaml' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - '.github/workflows/discussion.yaml' |
| - https://www.safetycli.com/blog/shai-hulud-npm-attack-runs-malicious-github-action | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| date: 2025-09-24 | ||
| modified: 2025-11-25 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| modified: 2025-11-25 | |
| modified: 2026-01-24 |
| - 'shai-hulud-workflow.yml' | ||
| - 'shai-hulud.yml' | ||
| - 'shai-hulud-workflow.yaml' | ||
| - 'shai-hulud.yaml' | ||
| - '.github/workflows/discussion.yaml' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got an example of where will this show up in the github audit ? Cuz to my knowledge, the workflow filename does not show up.
| selection_keyword: | ||
| # Keeping the detection broad to catch shai-hulud related activities in any log field (e.g., action, workflow, repository); refine by specifying fields as needed | ||
| - 'Shai-Hulud' | ||
| - 'SHA1HULUD' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing here
| selection_child_setup_powershell: | ||
| CommandLine|contains|all: | ||
| - 'irm bun.sh/install.ps1' | ||
| - 'iex' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be found in legitimate scripts. Example https://github.com/thedotmack/claude-mem/blob/main/scripts/smart-install.js#L127
| selection_child_setup_powershell: | |
| CommandLine|contains|all: | |
| - 'irm bun.sh/install.ps1' | |
| - 'iex' |
| selection_child_spawn_check: | ||
| CommandLine|contains: 'cmd.exe /d /s /c "where bun"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| selection_child_path_reload: | ||
| CommandLine|contains|all: | ||
| - 'powershell' | ||
| - "[Environment]::GetEnvironmentVariable('PATH', 'User')" | ||
| - "[Environment]::GetEnvironmentVariable('PATH', 'Machine')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| selection_child_spawn_check: | ||
| CommandLine|contains|all: | ||
| - 'which' | ||
| - 'bun' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comments with windows. Reduce this to specific things related to the attack not unrelated.
Summary of the Pull Request
Changelog
new: Shai-Hulud Malware Indicators - Github
new: Shai-Hulud Malware Indicators - Linux
new: Shai-Hulud Malware Indicators
new: Shai-Hulud Malicious Bun Execution - Linux
new: Shai-Hulud Malicious Bun Execution
new: Script Interpretor Spawning Credential Scanner - Windows
new: Script Interpretor Spawning Credential Scanner
new: Shai-Hulud 2.0 Malicious NPM Package Installation - Linux
new: Shai-Hulud 2.0 Malicious NPM Package Installation
update: Shai-Hulud Malicious GitHub Workflow Creation - add more shai-hulud associated workflows
update: Shai-Hulud NPM Attack GitHub Activity - add more shai-hulud associated workflows
Example Log Event
Fixed Issues
SigmaHQ Rule Creation Conventions