Skip to content

Commit 9dbe763

Browse files
Merge PR SigmaHQ#5658 from @swachchhanda000 - feat: shai hulud worm targeting npm supply chain attack
new - Shai-Hulud Malicious GitHub Workflow Creation new - Shai-Hulud NPM Attack GitHub Activity new - Shai-Hulud NPM Package Malicious Exfiltration via Curl new - PUA - TruffleHog Execution new - PUA - TruffleHog Execution - Linux
1 parent ccb385c commit 9dbe763

5 files changed

Lines changed: 161 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
title: Shai-Hulud Malicious GitHub Workflow Creation
2+
id: 0aba5685-6db6-486f-88ef-29a99c545cfd
3+
status: experimental
4+
description: Detects creation of shai-hulud-workflow.yml file associated with Shai Hulud worm targeting NPM supply chain attack that exfiltrates GitHub secrets
5+
references:
6+
- https://www.safetycli.com/blog/shai-hulud-npm-attack-runs-malicious-github-action
7+
author: Swachchhanda Shrawan Poudel (Nextron Systems)
8+
date: 2025-09-24
9+
tags:
10+
- attack.persistence
11+
- attack.credential-access
12+
- attack.t1552.001
13+
- attack.collection
14+
- attack.t1119
15+
- detection.emerging-threats
16+
logsource:
17+
product: linux
18+
category: file_event
19+
detection:
20+
selection:
21+
TargetFilename|endswith: '.github/workflows/shai-hulud-workflow.yml'
22+
condition: selection
23+
falsepositives:
24+
- Unlikely
25+
level: high
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
title: Shai-Hulud NPM Attack GitHub Activity
2+
id: 69fa9174-4370-4646-8d48-6a22e2853402
3+
status: experimental
4+
description: |
5+
Detects GitHub activity associated with the 'Shai-Hulud' NPM supply chain attack. The attack involves malicious NPM packages that use stolen GitHub tokens to create a new branch,
6+
inject a malicious workflow file to exfiltrate secrets, and make private repositories public.
7+
references:
8+
- https://www.getsafety.com/blog-posts/shai-hulud-npm-attack
9+
author: Swachchhanda Shrawan Poudel (Nextron Systems)
10+
date: 2025-09-24
11+
tags:
12+
- attack.persistence
13+
- attack.impact
14+
- detection.emerging-threats
15+
logsource:
16+
product: github
17+
service: audit
18+
detection:
19+
selection:
20+
- 'shai-hulud-workflow.yml'
21+
condition: selection
22+
falsepositives:
23+
- Unlikely
24+
level: high
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
title: Shai-Hulud NPM Package Malicious Exfiltration via Curl
2+
id: efd2eb09-b72e-4a61-8dc7-b1382a1e8983
3+
status: experimental
4+
description: Detects potential Shai Hulud NPM package attack attempting to exfiltrate data via curl to external webhook sites.
5+
references:
6+
- https://www.getsafety.com/blog-posts/shai-hulud-npm-attack
7+
author: Swachchhanda Shrawan Poudel (Nextron Systems)
8+
date: 2025-09-24
9+
tags:
10+
- attack.exfiltration
11+
- attack.t1041
12+
- attack.collection
13+
- attack.t1005
14+
- detection.emerging-threats
15+
logsource:
16+
category: process_creation
17+
product: linux
18+
detection:
19+
selection:
20+
Image|endswith: '/curl'
21+
CommandLine|contains|all:
22+
- 'curl'
23+
- '-d'
24+
- 'webhook.site/bb8ca5f6-4175-45d2-b042-fc9ebb8170b7'
25+
condition: selection
26+
falsepositives:
27+
- Unlikely
28+
level: high
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
title: PUA - TruffleHog Execution - Linux
2+
id: d7a650c4-226c-451e-948f-cc490db506aa
3+
related:
4+
- id: 44030449-b0df-4c94-aae1-502359ab28ee
5+
type: similar
6+
status: experimental
7+
description: |
8+
Detects execution of TruffleHog, a tool used to search for secrets in different platforms like Git, Jira, Slack, SharePoint, etc. that could be used maliciously.
9+
While it is a legitimate tool, intended for use in CI pipelines and security assessments,
10+
It was observed in the Shai-Hulud malware campaign targeting npm packages to steal sensitive information.
11+
references:
12+
- https://github.com/trufflesecurity/trufflehog
13+
- https://www.getsafety.com/blog-posts/shai-hulud-npm-attack
14+
author: Swachchhanda Shrawan Poudel (Nextron Systems)
15+
date: 2025-09-24
16+
tags:
17+
- attack.discovery
18+
- attack.t1083
19+
- attack.t1552.001
20+
logsource:
21+
category: process_creation
22+
product: linux
23+
detection:
24+
selection_img:
25+
Image|endswith: '/trufflehog'
26+
selection_cli_platform:
27+
CommandLine|contains:
28+
- ' docker --image '
29+
- ' Git '
30+
- ' GitHub '
31+
- ' Jira '
32+
- ' Slack '
33+
- ' Confluence '
34+
- ' SharePoint '
35+
- ' s3 '
36+
- ' gcs '
37+
selection_cli_verified:
38+
CommandLine|contains: ' --results=verified'
39+
condition: selection_img or all of selection_cli_*
40+
falsepositives:
41+
- Legitimate use of TruffleHog by security teams or developers.
42+
level: medium
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
title: PUA - TruffleHog Execution
2+
id: 44030449-b0df-4c94-aae1-502359ab28ee
3+
related:
4+
- id: d7a650c4-226c-451e-948f-cc490db506aa
5+
type: similar
6+
status: experimental
7+
description: |
8+
Detects execution of TruffleHog, a tool used to search for secrets in different platforms like Git, Jira, Slack, SharePoint, etc. that could be used maliciously.
9+
While it is a legitimate tool, intended for use in CI pipelines and security assessments,
10+
It was observed in the Shai-Hulud malware campaign targeting npm packages to steal sensitive information.
11+
references:
12+
- https://github.com/trufflesecurity/trufflehog
13+
- https://www.getsafety.com/blog-posts/shai-hulud-npm-attack
14+
author: Swachchhanda Shrawan Poudel (Nextron Systems)
15+
date: 2025-09-24
16+
tags:
17+
- attack.discovery
18+
- attack.t1083
19+
- attack.t1552.001
20+
logsource:
21+
category: process_creation
22+
product: windows
23+
detection:
24+
selection_img:
25+
Image|endswith: '\trufflehog.exe'
26+
selection_cli_platform:
27+
CommandLine|contains:
28+
- ' docker --image '
29+
- ' Git '
30+
- ' GitHub '
31+
- ' Jira '
32+
- ' Slack '
33+
- ' Confluence '
34+
- ' SharePoint '
35+
- ' s3 '
36+
- ' gcs '
37+
selection_cli_verified:
38+
CommandLine|contains: ' --results=verified'
39+
condition: selection_img or all of selection_cli_*
40+
falsepositives:
41+
- Legitimate use of TruffleHog by security teams or developers.
42+
level: medium

0 commit comments

Comments
 (0)