Skip to content

Commit 442e815

Browse files
MHaggisjosehelpsnasbench
authored
npm Supply Chain Compromise & Lifecycle Hook Abuse Detection (#3806)
* extra content * 5 more extras * Hunt 1 * story+extras * Create linux_shai_hulud_2_exfiltration_artifacts.yml * Create linux_shai_hulud_workflow_file_modification.yml * Create linux_suspicious_github_workflow_file_modification.yml * Create windows_github_workflow_file_creation_hunt.yml * more * last 3 * final pass * Bump versions to resolve merge conflicts with develop branch * Fix deprecated status for curl/wget bash execution detections * Add npm Supply Chain Compromise story to file_download_or_read_to_pipe_execution (replacement for deprecated curl/wget bash detections) * Fix version numbers to match previous build requirements * Add all required Filesystem fields to windows_suspicious_github_workflow_file_modification search * Update detections/endpoint/windows_curl_download_to_suspicious_path.yml Co-authored-by: Nasreddine Bencherchali <nasreddineb@splunk.com> * small fixes * apply updates * more updates * Update shai_hulud_2_exfiltration_artifact_files.yml * Fix Windows path escaping - use single backslash in YAML block scalar --------- Co-authored-by: Jose Enrique Hernandez <josehelps@gmail.com> Co-authored-by: Nasreddine Bencherchali <nasreddineb@splunk.com>
1 parent 984e650 commit 442e815

21 files changed

Lines changed: 419 additions & 77 deletions

detections/cloud/github_enterprise_delete_branch_ruleset.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: GitHub Enterprise Delete Branch Ruleset
22
id: 6169ea23-3719-439f-957a-0ea5174b70e2
3-
version: 2
4-
date: '2025-05-02'
3+
version: 3
4+
date: '2025-10-27'
55
author: Patrick Bareiss, Splunk
66
status: production
77
type: Anomaly
@@ -47,6 +47,7 @@ rba:
4747
tags:
4848
analytic_story:
4949
- GitHub Malicious Activity
50+
- NPM Supply Chain Compromise
5051
asset_type: GitHub
5152
mitre_attack_id:
5253
- T1562.001

detections/cloud/github_enterprise_disable_audit_log_event_stream.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: GitHub Enterprise Disable Audit Log Event Stream
22
id: 7bc111cc-7f1b-4be7-99fa-50cf8d2e7564
3-
version: 2
4-
date: '2025-05-02'
3+
version: 3
4+
date: '2025-10-27'
55
author: Patrick Bareiss, Splunk
66
status: production
77
type: Anomaly
@@ -47,6 +47,7 @@ rba:
4747
tags:
4848
analytic_story:
4949
- GitHub Malicious Activity
50+
- NPM Supply Chain Compromise
5051
asset_type: GitHub
5152
mitre_attack_id:
5253
- T1562.008

detections/cloud/github_enterprise_modify_audit_log_event_stream.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: GitHub Enterprise Modify Audit Log Event Stream
22
id: 99abf2e1-863c-4ec6-82f8-714391590a4c
3-
version: 2
4-
date: '2025-05-02'
3+
version: 3
4+
date: '2025-10-27'
55
author: Patrick Bareiss, Splunk
66
status: production
77
type: Anomaly
@@ -47,6 +47,7 @@ rba:
4747
tags:
4848
analytic_story:
4949
- GitHub Malicious Activity
50+
- NPM Supply Chain Compromise
5051
asset_type: GitHub
5152
mitre_attack_id:
5253
- T1562.008

detections/cloud/github_enterprise_pause_audit_log_event_stream.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: GitHub Enterprise Pause Audit Log Event Stream
22
id: 21083dcb-276d-4ef9-8f7e-2113ca5e8094
3-
version: 2
4-
date: '2025-05-02'
3+
version: 3
4+
date: '2025-10-27'
55
author: Patrick Bareiss, Splunk
66
status: production
77
type: Anomaly
@@ -47,6 +47,7 @@ rba:
4747
tags:
4848
analytic_story:
4949
- GitHub Malicious Activity
50+
- NPM Supply Chain Compromise
5051
asset_type: GitHub
5152
mitre_attack_id:
5253
- T1562.008

detections/cloud/github_enterprise_register_self_hosted_runner.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: GitHub Enterprise Register Self Hosted Runner
22
id: b27685a2-8826-4123-ab78-2d9d0d419ed0
3-
version: 2
4-
date: '2025-05-02'
3+
version: 3
4+
date: '2025-11-25'
55
author: Patrick Bareiss, Splunk
66
status: production
77
type: Anomaly
@@ -23,6 +23,7 @@ search: '`github_enterprise` action=enterprise.register_self_hosted_runner
2323
how_to_implement: You must ingest GitHub Enterprise logs using Audit log streaming as described in this documentation https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/streaming-the-audit-log-for-your-enterprise#setting-up-streaming-to-splunk using a Splunk HTTP Event Collector.
2424
known_false_positives: unknown
2525
references:
26+
- https://www.wiz.io/blog/shai-hulud-2-0-ongoing-supply-chain-attack
2627
- https://www.googlecloudcommunity.com/gc/Community-Blog/Monitoring-for-Suspicious-GitHub-Activity-with-Google-Security/ba-p/763610
2728
- https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/streaming-the-audit-log-for-your-enterprise#setting-up-streaming-to-splunk
2829
drilldown_searches:
@@ -46,6 +47,7 @@ rba:
4647
tags:
4748
analytic_story:
4849
- GitHub Malicious Activity
50+
- NPM Supply Chain Compromise
4951
asset_type: GitHub
5052
mitre_attack_id:
5153
- T1562.001

detections/cloud/github_enterprise_repository_archived.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: GitHub Enterprise Repository Archived
22
id: 8367cb99-bae1-4748-ae3b-0927bb381424
3-
version: 2
4-
date: '2025-05-02'
3+
version: 3
4+
date: '2025-10-27'
55
author: Patrick Bareiss, Splunk
66
status: production
77
type: Anomaly
@@ -48,6 +48,7 @@ rba:
4848
tags:
4949
analytic_story:
5050
- GitHub Malicious Activity
51+
- NPM Supply Chain Compromise
5152
asset_type: GitHub
5253
mitre_attack_id:
5354
- T1485

detections/cloud/github_enterprise_repository_deleted.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: GitHub Enterprise Repository Deleted
22
id: f709e736-3e6c-492f-b865-bc7696cc24a7
3-
version: 2
4-
date: '2025-05-02'
3+
version: 3
4+
date: '2025-10-27'
55
author: Patrick Bareiss, Splunk
66
status: production
77
type: Anomaly
@@ -45,6 +45,7 @@ rba:
4545
tags:
4646
analytic_story:
4747
- GitHub Malicious Activity
48+
- NPM Supply Chain Compromise
4849
asset_type: GitHub
4950
mitre_attack_id:
5051
- T1485

detections/cloud/github_organizations_delete_branch_ruleset.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: GitHub Organizations Delete Branch Ruleset
22
id: 8e454f64-4bd6-45e6-8a94-1b482593d721
3-
version: 3
4-
date: '2025-06-24'
3+
version: 4
4+
date: '2025-10-27'
55
author: Patrick Bareiss, Splunk
66
status: production
77
type: Anomaly
@@ -48,6 +48,7 @@ rba:
4848
tags:
4949
analytic_story:
5050
- GitHub Malicious Activity
51+
- NPM Supply Chain Compromise
5152
asset_type: GitHub
5253
mitre_attack_id:
5354
- T1562.001

detections/cloud/github_organizations_repository_archived.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: GitHub Organizations Repository Archived
22
id: 4f568a0e-896f-4d94-a2f7-fa6d82ab1f77
3-
version: 3
4-
date: '2025-06-24'
3+
version: 4
4+
date: '2025-10-27'
55
author: Patrick Bareiss, Splunk
66
status: production
77
type: Anomaly
@@ -49,6 +49,7 @@ rba:
4949
tags:
5050
analytic_story:
5151
- GitHub Malicious Activity
52+
- NPM Supply Chain Compromise
5253
asset_type: GitHub
5354
mitre_attack_id:
5455
- T1485

detections/cloud/github_organizations_repository_deleted.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: GitHub Organizations Repository Deleted
22
id: 9ff4ca95-fdae-4eea-9ffa-6d8e1c202a71
3-
version: 3
4-
date: '2025-06-24'
3+
version: 4
4+
date: '2025-10-27'
55
author: Patrick Bareiss, Splunk
66
status: production
77
type: Anomaly
@@ -49,6 +49,7 @@ rba:
4949
tags:
5050
analytic_story:
5151
- GitHub Malicious Activity
52+
- NPM Supply Chain Compromise
5253
asset_type: GitHub
5354
mitre_attack_id:
5455
- T1485

0 commit comments

Comments
 (0)