Repository navigation
Add Braodo Stealer Coverage For 2026 Variant #4320
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
Merged
+246
−23
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a7eb55b
braodo_2026
t-contreras 6f22962
braodo_2026
t-contreras fceabcc
braodo_2026
t-contreras 8b1c54b
braodo_2026
t-contreras 6b08f21
braodo_2026
t-contreras fda28c9
braodo_2026
t-contreras 5d953e6
braodo_2026
t-contreras d3ebe7f
update powershell rule
nasbench 5243c10
Update powershell_download_from_code_hosting_service.yml
nasbench 728f020
braodo_2026
t-contreras 45334e7
Merge branch 'develop' into braodo_2026
nasbench 37bf153
Merge branch 'develop' into braodo_2026
nasbench addfde4
update metadata
nasbench e9fce02
Update braodo_stealer.yml
nasbench File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
detections/endpoint/powershell_download_from_code_hosting_service.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| name: PowerShell Download from Code Hosting Service | ||
| id: 3ffbd4d4-84a7-453e-9e06-8e9cd0350366 | ||
| version: 1 | ||
| creation_date: '2026-10-06' | ||
| modification_date: '2026-10-13' | ||
| author: Teoderick Contreras, Splunk | ||
| status: production | ||
| type: Anomaly | ||
| description: |- | ||
| This analytic detects PowerShell Script Block Logging (Event ID 4104) events that use common download methods to retrieve files directly from raw-content URLs on GitHub, GitLab, or Codeberg. | ||
| These code hosting services can be abused to stage payloads, but administrators and developers also download files from them. | ||
| A match identifies a download attempt; it does not establish that the file was successfully retrieved or executed. Review the full script block, destination path, process ancestry, and related endpoint activity. | ||
| data_source: | ||
| - Powershell Script Block Logging 4104 | ||
| search: |- | ||
| `powershell` EventCode=4104 ScriptBlockText IN ("*.DownloadFile(*", "*.DownloadData(*", "*.DownloadString(*", "*Invoke-WebRequest*", "*Invoke-RestMethod*", "*Start-BitsTransfer*", "*iwr *", "*irm *", "*curl *", "*wget *") | ||
| | where match( | ||
| ScriptBlockText, | ||
| "(?ix) | ||
| (?: | ||
| \.Download(?:File|Data|String)\s*\(\s*['\"]? | ||
| | | ||
| (?:Invoke-WebRequest|Invoke-RestMethod|iwr|irm) | ||
| (?:\s+(?:-Uri\s+)?|\b[^;\r\n]{0,200}?\s-Uri\s+)['\"]? | ||
| | | ||
| Start-BitsTransfer\b[^;\r\n]{0,200}?-Source\s+['\"]? | ||
| | | ||
| (?:curl|wget)\s+(?:-Uri\s+)?['\"]? | ||
| ) | ||
| https?:// | ||
| (?: | ||
| raw\.githubusercontent\.com/[^/\s'\"]+/[^/\s'\"]+/[^/\s'\"]+(?:/[^/\s'\"]+)* | ||
| | | ||
| (?:github|gitlab)\.com/[^/\s'\"]+/[^/\s'\"]+/(?:-/)?raw/(?:refs/(?:heads|tags)/)?[^/\s'\"]+(?:/[^/\s'\"]+)* | ||
| | | ||
| codeberg\.org/[^/\s'\"]+/[^/\s'\"]+/raw/(?:branch/)?[^/\s'\"]+(?:/[^/\s'\"]+)* | ||
| ) | ||
| \.(?:bat|cmd|ps1|js|vbs|vbe|py|zip|7z|rar|tar|gz|exe|dll|msi) | ||
| (?:[?#][^\s'\"]*)? | ||
| (?=['\"\s),;]|$)" | ||
| ) | ||
| | fillnull | ||
| | stats count min(_time) as firstTime max(_time) as lastTime | ||
| by dest signature signature_id user_id vendor_product EventID Guid Opcode Name Path ProcessID ScriptBlockId ScriptBlockText | ||
| | `security_content_ctime(firstTime)` | ||
| | `security_content_ctime(lastTime)` | ||
| | `powershell_download_from_code_hosting_service_filter` | ||
| how_to_implement: |- | ||
| To implement this analytic, enable PowerShell Script Block Logging and ingest Event ID 4104 events with the `ScriptBlockText` field extracted. | ||
| Confirm that the `powershell` macro scopes the search to the correct PowerShell Operational logs in your environment. | ||
| known_false_positives: |- | ||
| Administrators, developers, and software deployment tools may download legitimate files from GitHub, GitLab, and Codeberg. | ||
| Review repository ownership, the downloaded file, destination path, signer where applicable, process ancestry, and subsequent execution before taking action. | ||
| references: | ||
| - https://www.splunk.com/en_us/blog/security/cracking-braodo-stealer-analyzing-python-malware-and-its-obfuscated-loader.html | ||
| - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_windows?view=powershell-7.6 | ||
| drilldown_searches: | ||
| - name: View the detection results for - "$dest$" | ||
| search: '%original_detection_search% | search dest = "$dest$"' | ||
| earliest_offset: $info_min_time$ | ||
| latest_offset: $info_max_time$ | ||
| - name: View risk events for the last 7 days for - "$dest$" | ||
| search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$dest$") | stats count min(_time) as firstTime max(_time) as lastTime values(search_name) as "Search Name" values(risk_message) as "Risk Message" values(analyticstories) as "Analytic Stories" values(annotations._all) as "Annotations" values(annotations.mitre_attack.mitre_tactic) as "ATT&CK Tactics" by normalized_risk_object | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`' | ||
| earliest_offset: 7d | ||
| latest_offset: "0" | ||
| intermediate_findings: | ||
| entities: | ||
| - field: dest | ||
| type: system | ||
| score: 20 | ||
| message: A PowerShell script on [$dest$] invoked a download method with a raw code-hosting URL in ScriptBlockText with ScriptBlockId [$ScriptBlockId$]. | ||
| threat_objects: [] | ||
| analytic_story: | ||
| - Braodo Stealer | ||
| asset_type: Endpoint | ||
| mitre_attack_id: | ||
| - T1059.001 | ||
| - T1105 | ||
| product: | ||
| - Splunk Enterprise | ||
| - Splunk Enterprise Security | ||
| - Splunk Cloud | ||
| category: endpoint | ||
| security_domain: endpoint | ||
| tests: | ||
| - name: True Positive Test | ||
| attack_data: | ||
| - data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.001/powershell_github/powershell_githu_download.log | ||
| source: XmlWinEventLog:Microsoft-Windows-PowerShell/Operational | ||
| sourcetype: XmlWinEventLog | ||
| test_type: unit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
detections/endpoint/windows_disable_or_stop_browser_process.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
107 changes: 107 additions & 0 deletions
107
detections/endpoint/windows_process_outbound_connection_to_social_media_domain.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,107 @@ | ||
| name: Windows Process Outbound Connection To Social Media Domain | ||
| id: d6dc231e-8595-499b-889e-cf6a055df4d4 | ||
| version: 1 | ||
| creation_date: '2026-10-06' | ||
| modification_date: '2026-10-06' | ||
| author: Teoderick Contreras, Splunk | ||
| status: production | ||
| type: Anomaly | ||
| description: |- | ||
| This analytic detects outbound network connections from a Python process running from suspicious or non-standard directories to social media related domains. | ||
| It leverages Sysmon Event ID 3 to surface this anomalous behavior. | ||
| Legitimate Python applications rarely originate from paths such as "C:\Users\Public\", Windows font or debug folders, or the Recycle Bin, making direct outbound calls to social media infrastructure from these locations a strong indicator of compromise. | ||
| For example the Braodo Stealer, a Python-based credential-harvesting malware, abuses authenticated browser sessions to query the Meta Graph API and enumerate the victim's Facebook and Meta advertising infrastructure. | ||
| data_source: | ||
| - Sysmon EventID 3 | ||
| search: |- | ||
| `sysmon` | ||
| EventCode=3 | ||
| Image IN ( | ||
| "*:\\$Recycle.Bin\\*", | ||
| "*:\\PerfLogs\\*", | ||
| "*:\\Users\\Administrator\\Music\\*", | ||
| "*:\\Users\\Public\\*", | ||
| "*:\\Windows\\Cursors\\*", | ||
| "*:\\Windows\\debug\\*", | ||
| "*:\\Windows\\fonts\\*", | ||
| "*:\\Windows\\INF\\*", | ||
| "*:\\Windows\\Media\\*", | ||
| "*:\\Windows\\Prefetch\\*", | ||
| "*\\Windows\\repair\\*" | ||
| ) | ||
|
|
||
| process_name IN ( | ||
| "py.exe", | ||
| "pypy.exe", | ||
| "python.exe", | ||
| "python2*.exe", | ||
| "python3*.exe", | ||
| "pythonw.exe" | ||
| ) | ||
|
|
||
| dest IN ( | ||
| "*.facebook.com", | ||
| "*.facebook.net", | ||
| "*.facebook.org", | ||
| "*.fb.com", | ||
| "*.fbcd.net", | ||
| "*.fbsbx.com", | ||
| "*.fbstatic-a.akamaihd.net", | ||
| "*.tfbw.net" | ||
| ) | ||
| direction = outbound | ||
|
|
||
| | rename Image as process_path | ||
|
|
||
| | stats count min(_time) as firstTime | ||
| max(_time) as lastTime | ||
|
|
||
| by action app dest dest_ip dest_port direction dvc protocol protocol_version | ||
| process_path process_name process_guid process_id | ||
| src src_ip src_port transport user vendor_product | ||
|
|
||
| | `security_content_ctime(firstTime)` | ||
| | `security_content_ctime(lastTime)` | ||
| | `windows_process_outbound_connection_to_social_media_domain_filter` | ||
| how_to_implement: |- | ||
| To successfully implement this search, you need to be ingesting logs with the process name and sysmon eventcode = 3 connection events from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. | ||
| known_false_positives: |- | ||
| No false positives have been identified at this time. | ||
| references: | ||
| - https://www.splunk.com/en_us/blog/security/cracking-braodo-stealer-analyzing-python-malware-and-its-obfuscated-loader.html | ||
| drilldown_searches: | ||
| - name: View the detection results for - "$src$" | ||
| search: '%original_detection_search% | search src = "$src$"' | ||
| earliest_offset: $info_min_time$ | ||
| latest_offset: $info_max_time$ | ||
| - name: View risk events for the last 7 days for - "$src$" | ||
| search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$src$") | stats count min(_time) as firstTime max(_time) as lastTime values(search_name) as "Search Name" values(risk_message) as "Risk Message" values(analyticstories) as "Analytic Stories" values(annotations._all) as "Annotations" values(annotations.mitre_attack.mitre_tactic) as "ATT&CK Tactics" by normalized_risk_object | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`' | ||
| earliest_offset: 7d | ||
| latest_offset: "0" | ||
| intermediate_findings: | ||
| entities: | ||
| - field: dest | ||
| type: system | ||
| score: 20 | ||
| message: A python process located in [$process_path$] with the name [$process_name$] and GUID [$process_guid$] and ID [$process_id$] was observed accessing a social media domain [$dest$] | ||
| threat_objects: | ||
| - field: process_path | ||
| type: file_path | ||
| analytic_story: | ||
| - Braodo Stealer | ||
| asset_type: Endpoint | ||
| mitre_attack_id: | ||
| - T1586.001 | ||
| product: | ||
| - Splunk Enterprise | ||
| - Splunk Enterprise Security | ||
| - Splunk Cloud | ||
| category: endpoint | ||
| security_domain: endpoint | ||
| tests: | ||
| - name: True Positive Test | ||
| attack_data: | ||
| - data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1586.001/python_fb/python_facebook.log | ||
| source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational | ||
| sourcetype: XmlWinEventLog | ||
| test_type: unit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.