Python, Re-Skinned, Keeping the Steal: Braodo’s Latest Python Loader and Obfuscation

Security Teoderick Contreras , Splunk Threat Research Team

Key takeaways

  1. The Braodo Stealer campaign uses varied social-engineering lures, junk-code obfuscation, and GitHub-hosted payloads to hide its loaders and avoid detection by security tools.
  2. The malware steals browser credentials, cookies, payment card details, and Meta advertising account data, then sends the information to attackers through Telegram.
  3. The Splunk Threat Research Team developed 25 detections that help organizations identify this activity by focusing on observable behaviors and indicators.

Attackers continue to find new ways to make malware harder to detect, and Python-based malware is no exception. Recently, we came across a new Braodo Stealer loader that uses a combination of loader-level obfuscation and heavily obfuscated Python code to hide its behavior and make analysis more difficult.

In this blog, the Splunk Threat Research Team (STRT) take a closer look at how the latest Braodo Stealer loader works, how its Python payload is obfuscated, and some of the techniques it uses to avoid detection. We will walk through the loader and payload, highlight the interesting artifacts and behaviors we found during analysis, and show how these techniques can be identified from a defender’s perspective.

We will also cover the Splunk detections we developed from the analysis, focusing on the behaviors and indicators that can help identify this activity in an environment. The goal is not just to understand how Braodo Stealer hides its code, but also to turn those findings into practical detections that defenders can use.

Campaign:

One interesting aspect of this Braodo Stealer campaign is the way the first-stage BAT loader is named. Rather than relying on a single filename, we observed loaders themed around travel bookings, medical records, dermatology, dental treatment, weddings, automotive products, and project updates. We observed filenames such as:

This variation suggests that the campaign may be using different social-engineering themes to appeal to specific interests or situations rather than distributing the same lure to every victim. While the filenames alone are not enough to confirm a specific victimology or industry being targeted, the repeated use of medical, travel, personal-event, and consumer-related themes suggests that the attackers are adapting the initial stager to different delivery scenarios.

Figure 01: Braodo Stealer Batch Script Loader Campaign

Loader Analysis:

Obfuscated Files or Information: T1027

Big Junk Code Detection Evasion Variant:

Figure 02: Braodo Stealer Infection Chain Variant A

In our previous STRT Braodo Stealer blog, we observed that the loader batch script was obfuscated using the ABOBUS obfuscator. In April 2026, we identified another Braodo batch script loader that no longer used ABOBUS obfuscation. Instead, the loader included large chunks of garbage strings in both the header and footer, likely to evade detections. As shown in Figure 03, the initial batch script loader uses the “runas” command to execute a PowerShell script with elevated privileges. The PowerShell script then downloads a .txt file from GitHub, which is saved to %TEMP% and executed as a batch script.

Figure 03: Braodo Stealer Batch Script First Stager Variant

The downloaded ud-t2.txt file from GitHub is another batch script that uses the same large junk-string technique to evade detection. This script is responsible for executing the actual Braodo Stealer, in this case sim.py, using python.exe. The Python executable is also included in the GitHub repository as part of an archived package created by the threat actors.

Figure 04: Braodo Stealer Batch Script Second Stager Variant

Obfuscation and Big Junk Code Technique Variant:

Figure 05: Braodo Stealer Infection Chain Variant B

In the latest Braodo Stealer loaders observed by STRT during August and September 2026, the threat actor continued using GitHub repositories to store its malware payloads as archived packages. The loader retrieves these archives from GitHub during execution, allowing the payload delivery to blend with legitimate GitHub traffic. This approach can make the malicious downloads less conspicuous to network-based security controls that may otherwise flag traffic to dedicated malware-hosting infrastructure.

Figure 06: Braodo Stealer Archived in GitHub Repo

In this sample, STRT also observed that the batch script loader distributed through the phishing campaign was obfuscated. The loader is responsible for downloading the malicious archive from the GitHub repository. As shown in Figure 07, the obfuscated script contains the distinctive string “rouki”. However, after analyzing the script, STRT determined that the obfuscation technique is essentially a fork or modified copy of the ABOBUS obfuscator.

Figure 07: Braodo Stealer Obfuscated Loader Script

Using the DBOBUS tool, STRT was able to de-obfuscate and recover the script executed by the loader. As shown in Figure 08, the threat actor combined the DBOBUS-style obfuscation with large blocks of junk strings, creating multiple layers of evasion around the loader to make detection more difficult.

Figure 08: Braodo Stealer DBOBUS De-Obfuscation

Startup Folder: T1547.001

After de-obfuscation, the script reveals another stage in the infection chain. It uses PowerShell to download an additional batch script from a GitHub repository and saves the script to the Startup folder, establishing persistence for the malware.

The script then uses a TinyURL link to download an archive hosted through a GitHub repository. The archive contains the Braodo Stealer Python package along with its required libraries and is dropped as desktop.zip under %PUBLIC%. The loader executes sim.py using the python.exe included in the package. A specific Python version is bundled with each variant to ensure compatibility with the stealer and its required dependencies.

Figure 09: Braodo Stealer Second Stager

Braodo Stealer Analysis:

Python: T1059.006

The desktop.zip archive downloaded from the GitHub repository associated with this Braodo Stealer sample is more than just a container for the malware payload. It contains a complete Python runtime package, including python.exe and the libraries required by the stealer. By bundling the Python interpreter and its dependencies with the malware, the threat actor does not need to rely on a Python installation already present on the victim's system. This also provides greater control over the execution environment and helps ensure that sim.py can run with the expected Python version and required libraries.

As shown in Figure 10, sim.py is not a conventional Python source file, but Python bytecode. The bundled python.exe is used to execute this bytecode together with the dependencies included in the archive. This packaging approach reduces dependency-related execution failures and allows the threat actor to deploy the stealer as a self-contained package. It also explains why the loader downloads the entire archive rather than retrieving only the sim.py payload. The archive provides the Python runtime and supporting libraries needed to successfully execute the Braodo Stealer across the targeted systems.

Figure 10: Braodo Stealer Sim.py payload

Using the PyLingual tool, STRT was able to decompile portions of the Python bytecode and recover part of the underlying logic. However, the decompiled code did not fully reveal the decoding and decryption routines responsible for processing the junk code and the large hexadecimal string stored in _sparkle. STRT took a dynamic analysis approach.

We hooked the execution of sim.pyc to monitor the Python runtime and capture the code after the obfuscation and decryption routines had processed it. By observing the bytecode and data generated during execution, we were able to extract the Python code in its de-obfuscated form. This approach ultimately allowed STRT to recover the underlying Braodo Stealer payload and continue the analysis of its functionality and behavior.

Figure 11: Braodo Stealer Sim.py Partial de-compilation

Web Service: T1102

This Trojan stealer uses Telegram as a communication channel to send stolen information from compromised systems to the threat actor. The malware contains Telegram bot-related configuration, including the bot token and chat identifier, which allows collected data to be forwarded to a designated Telegram chat. Using Telegram provides the threat actor with a readily available communication platform and avoids the need to maintain dedicated command-and-control infrastructure. This approach also allows stolen credentials and other collected information to be remotely received through the Telegram Bot API.

Figure 12: Braodo Stealer Telegram Bot Setting

Figure 13: Braodo Stealer Telegram Bot Token and CHAT ID

Disable or Modify Tools: T1685

Before decrypting browser data, Braodo Stealer terminates processes associated with targeted browsers. By terminating these processes first, Braodo reduces the chance of encountering file-locking, process-handle, or access-denied errors during the data collection and decryption process.

Figure 14: Terminates Browser Process

Credentials from Web Browsers: T1555.003

Like the previous variant of this Trojan stealer, the latest Braodo Stealer variant continues to target sensitive information stored by web browsers. Figures 16 and 17 show the Chromium- and Gecko-based browsers targeted by the malware. Braodo Stealer searches the compromised host for browser profiles and their associated databases, then extracts valuable data such as saved credentials, cookies, browsing history, and stored payment or credit card information. This allows the malware to collect a broad range of information from commonly used browsers.

Figure 16: Braodo Stealer Targeted Chromium Browsers

Figure 17: Braodo Stealer Targeted Gecko Browsers

The table below are the file path where Braodo stealer saved all gathered sensitive information and credentials in browsers that will be send in its telegram bot C2 server

File Path
Description
%TEMP%\Browser Data\Important_Logins.txt
All decrypted URL, Username, Password in browser encrypted database including the application name and profile of the browser
%TEMP%\Browser Data\All_Passwords.txt
All decrypted origin_url, URL, Username, Password in browser encrypted database including the application name and profile of the browser
%TEMP%\Browser Data\Cookies Browser\<name_of_browser>.txt
A .txt file directory named after the targeted browser that contains collected cookies
%TEMP%\Browser Data\All_Cards.txt
All credit card information parsed and decrypted in targeted browser in compromised host

Social Media Accounts: T1586.001

Braodo Stealer goes beyond stealing browser credentials and session data by examining the victim's Facebook and Meta advertising activity. Using an authenticated session, the malware queries the Meta Graph API to enumerate advertising accounts, Facebook Pages, and Business Manager information. It collects:

For Business Manager accounts, it also checks advertising-account limits, providing the attacker with a detailed view of the victim's advertising infrastructure.

Figure 18: Braodo Stealer Function Harvest Advertising Activity

The table below lists the other Facebook Graph API endpoints abused throughout the Braodo Stealer class to harvest Meta advertising and business-account information. By leveraging the authenticated session, the malware can collect details about advertising accounts, Facebook Pages, and Business Manager resources accessible to the compromised account. The information gathered by this class is then stored locally in %TEMP%\Browser Data\ Facebook_Cookies.txt for further processing or exfiltration.

URL
Descriptions
Graph[.]facebook[.]com/v17[.]0/me/adaccounts
Gets the advertising accounts accessible to the token
Graph[.]facebook[.]com/v16[.]0/{ad_account_id}/
Gets detailed information about an advertising account
Graph[.]facebook[.]com/v17.0/me/facebook_pages
Gets Facebook Pages accessible to the token
Graph[.]facebook[.]com/v17.0/me?fields=businesses
Gets Business Managers associated with the token
Graph[.]facebook[.]com/v17.0/{business_id}
Gets ad accounts belonging to a Business Manager
Business[.]facebook[.]com/latest/settings/business_info/?business_id=...
Loads the Business Manager settings page and scrapes the HTML for the ad-account creation limit

The sensitive information harvested through the Meta Graph API endpoints is then sent to the attacker using a set of distinctive HTTP headers, as shown in Figure 19. These headers provide a useful artifact for identifying the malware's communication with its command-and-control infrastructure and may also help distinguish Braodo's data-exfiltration traffic from normal web requests.

Figure 19: Braodo Stealer Headers

Inter-Process Communication: T1559

Braodo also uses a Windows named pipe to communicate with another component during the key decryption process. Instead of decrypting the key directly in this function, the stealer sends the encrypted key and its length through the pipe and waits for the resulting plaintext value to be returned. This suggests that the cryptographic operation is handled by a separate process or component. The approach separates the decryption logic from the main stealer code and adds another layer that analysts must trace during execution.

Figure 20: Braodo Stealer Named Pipe for Browser Data Decryption Key

The use of named pipes becomes more significant when examining another component embedded within Braodo. The stealer contains a Base64-encoded DLL that is decoded and loaded during execution, and this DLL also performs named-pipe operations. This suggests that the pipe acts as an IPC bridge between the main Python component and the embedded DLL. The stealer can send data such as an encrypted key through the pipe, while the DLL performs the required processing and returns the result. This design separates part of the functionality from the main stealer code.

Figure 21: Braodo Stealer Named Pipe for Browser Data Decryption Key

Figure 22 shows the code responsible for injecting the Base64-decoded DLL into a newly created suspended process. Braodo selects the target process from a list of supported browsers identified on the compromised host. The browser process is created in a suspended state, allowing the malware to perform the injection before the process begins normal execution.

Figure 22: DLL Process Injection

Internet Connection Discovery: T1016.001

Braodo Stealer also queries ipinfo.io to obtain network and geolocation information from the compromised host. By querying the service, the malware can determine the public IP address and associated details such as geographic location, region, country, and network provider. This information can provide the attacker with additional context about the infected system.

Figure 23: Internet Connection Discovery

Token Impersonation/Theft: T1134.001

Braodo Stealer impersonates lsass.exe and adjusts its token privileges to enable SeDebugPrivilege. This elevated privilege allows the malware to interact with processes that would normally be restricted, potentially enabling access to sensitive process memory and security-related information. The behavior provides Braodo with additional access needed for credential and sensitive data harvesting.

Figure 24: Lsass.exe Process Token Impersonation

Detections:

Windows Disable or Stop Browser Process

The following analytic detects the use of the taskkill command in a process command line to terminate several known browser processes, a technique commonly employed by the Braodo stealer malware to steal credentials.

type
python
snippet

| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes

WHERE Processes.process = "*taskkill*" Processes.process IN("*chrome.exe*","*firefox.exe*","*brave.exe*","*opera.exe*","*msedge.exe*","*chromium.exe*")

BY Processes.action Processes.dest Processes.original_file_name

Processes.parent_process Processes.parent_process_exec Processes.parent_process_guid

Processes.parent_process_id Processes.parent_process_name Processes.parent_process_path

Processes.process Processes.process_exec Processes.process_guid

Processes.process_hash Processes.process_id Processes.process_integrity_level

Processes.process_name Processes.process_path Processes.user

Processes.user_id Processes.vendor_product

| `drop_dm_object_name(Processes)`

| `security_content_ctime(firstTime)`

| `security_content_ctime(lastTime)`

| `windows_disable_or_stop_browser_process_filter`

showcopybutton
true

Figure 25: Windows Disable or Stop Browser Process Detection

PowerShell Download from Code Hosting Service

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.

type
python
snippet

`powershell` EventCode=4104 ScriptBlockText IN ("*.DownloadFile(*", "*.DownloadData(*", "*.DownloadString(*", "*Invoke-WebRequest*", "*Invoke-RestMethod*", "*Start-BitsTransfer*")

| where match(

ScriptBlockText,

"(?i)(?i)https?://(raw\.githubusercontent\.com/[^/\s]+/[^/\s]+/(main|master)|(github|gitlab)\.com/[^/\s]+/[^/\s]+/(-/)?raw/(main|master))/[^\s'\"]+\.(bat|js|vbs|vbe)"

)

| 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_script_from_public_free_project_repo_filter`

showcopybutton
true

Figure 26: PowerShell Download Script in GitHub Repository Detection

Windows Process Outbound Connection To Social Media Domain

This analytic detects outbound network connections from a Python process running from suspicious or non-standard directories to Facebook and Meta-related domains.

type
python
snippet

search: |-

`sysmon`

EventCode=3

Image IN (

"C:\\Users\\Public\\*",

"*\\windows\\fonts\\*",

"*\\windows\\debug\\*",

"*\\Users\\Administrator\\Music\\*",

"*Recycle.bin*",

"*\\Windows\\Media\\*",

"\\Windows\\repair\\*",

"*\\PerfLogs\\*",

"*:\\Windows\\Prefetch\\*",

"*:\\Windows\\Cursors\\*",

"*:\\Windows\\INF\\*"

) AND

process_name IN (

python.exe,

python2*.exe,

python3*.exe,

py.exe,

pythonw.exe,

py.exe,

pypy.exe) AND

DestinationHostname IN ("*.facebook.com", "*.fb.com", "*.facebook.net", "*.facebook.org", "*.fbcd.net", "*.fbsbx.com", "*.tfbw.net", "*.fbstatic-a.akamaihd.net" ) AND

direction = outbound

| stats count min(_time) as firstTime

max(_time) as lastTime

by action app dest dest_ip dest_port direction dvc protocol protocol_version

src src_ip src_port transport user vendor_product process_name

process_exec process_guid process_id

| `security_content_ctime(firstTime)`

| `security_content_ctime(lastTime)`

| `windows_python_process_accessing_facebook_domain_filter`

showcopybutton
true

Figure 27: Windows Python Process Accessing Facebook Domain Detection

Windows Credentials from Password Stores Chrome LocalState Access

The following analytic detects non-Chrome processes accessing the Chrome "Local State" file, which contains critical settings and information.

type
python
snippet

`wineventlog_security`

EventCode=4663

object_file_path="*\\AppData\\Local\\Google\\Chrome\\User Data\\Local State"

NOT process_path IN (

"*:\\Windows\\explorer.exe",

"*\\AppData\\Local\\Google\\Chrome Beta\\Application\\chrome.exe",

"*\\AppData\\Local\\Google\\Chrome Dev\\Application\\chrome.exe",

"*\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe",

"*\\AppData\\Local\\Google\\Chrome Unstable\\Application\\chrome.exe",

"*\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe",

"*\\platform_experience_helper.exe*",

"*:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe*"

)

| stats count min(_time) as firstTime

max(_time) as lastTime

by object_file_name object_file_path

process_name process_path

process_id EventCode dest

| `security_content_ctime(firstTime)`

| `security_content_ctime(lastTime)`

| `windows_credentials_from_password_stores_chrome_localstate_access_filter`

showcopybutton
true

Figure 28: Windows Credentials from Password Stores Chrome LocalState Access Detection

Windows DNS Query Request To TinyUrl

The following analytic detects a process located in a potentially suspicious location making DNS queries to known URL shortening services, specifically tinyurl.

type
python
snippet

`sysmon`

EventCode=22

QueryName = "tinyurl.com"

Image IN (

"*\\AppData\\*",

"*\\Perflogs\\*",

"*\\ProgramData\\*",

"*\\Temp\\*",

"*\\Users\\Public\\*",

"*\\Windows\\Tasks\\*"

"*\\powershell.exe",

"*\\pwsh.exe",

"*\\cmd.exe",

"*\\python.exe",

)

| stats count min(_time) as firstTime max(_time) as lastTime

by answer answer_count dvc process_exec process_guid process_name query query_count

reply_code_id signature signature_id src user_id vendor_product QueryName QueryResults QueryStatus

| `security_content_ctime(firstTime)`

| `security_content_ctime(lastTime)`

| `windows_dns_query_request_to_tinyurl_filter`

showcopybutton
true

Figure 29: Windows DNS Query Request To TinyUrl Detection

Windows Boot or Logon Autostart Execution In Startup Folder

The following analytic detects the creation of files in the Windows %startup% folder, a common persistence technique.

type
python
snippet

|tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Filesystem

where Filesystem.file_path = "*\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\*" by Filesystem.action Filesystem.dest Filesystem.file_access_time Filesystem.file_create_time Filesystem.file_hash Filesystem.file_modify_time Filesystem.file_name Filesystem.file_path Filesystem.file_acl Filesystem.file_size Filesystem.process_guid Filesystem.process_id Filesystem.user Filesystem.vendor_product

| `drop_dm_object_name(Filesystem)`

| `security_content_ctime(firstTime)`

| `security_content_ctime(lastTime)`

| `windows_boot_or_logon_autostart_execution_in_startup_folder_filter`

showcopybutton
true

Figure 30: Windows Boot or Logon AutoStart Execution In Startup Folder Detection

Overall Braodo Stealer Analytic Story consist of 25 Splunk detections.

IOCs:

Sha256
Description
9a140e61379477c3f8470df186802a75b9e3b5bbfb4e5362004222413b5adf4d
Braodo Zip Package
592300a78fd752a1432b93f4a7699d23836508c61cb3a52fbb4abd0f5e98e285
Braodo Zip Package
fb49868696280d5aa08eb47629cf6a6696367c0d1fc2aec599389ecb5b9c13b2
Braodo Zip Package
7e4afbb8e7d84224ab10d6c02b4988160837964e63515f8dcf0a9211963e9d65
Braodo Zip Package
44b38a0cd590ada2d96dcf98b6a88d3c17997cac574ab9e68b9f33c6f985dec4
Braodo Zip Package
5dd03ea31efe98dc95f4af08bdaa9313989e5f59d51dc9d4a7c4c5c23b234d86
Sim.py – Braodo Stealer
963478dd1f1490a4142a62c9cc0c40778afea1c8fe3afe303b9ae935294b81af
Sim.py – Braodo Stealer
ebb698f7374cec60fc0b28e23e56b204e53b9c81ed2de17b62bc906d2066493d
Sim.py – Braodo Stealer
3322ee1bbc5d7a0de49080d9505d5edc17c7737377c7b97d172b81c4550ec954
Sim.py – Braodo Stealer
789273b95511d20d09d089703d3276297ca66f6278ed9b22f053424710218cad
Braodo Batch Script Stager
966e001e7777efafefdcf88df5c76726209949f18e0b0da49610eeb6ec5be640
Braodo Batch Script Stager
d68de1e066be502f1725beb21b368f9f7657bd2239d13cd5d09a512102a05589
Braodo Batch Script Stager
93cdc922c9ca8167a1d9995549ed9b92015c4256b168e6fecd50be4774455c07
Braodo Batch Script Stager
41729ff52341713e74ef1fd27cd46fa055569617a349c214e9d8d3013521b087
Braodo Batch Script Stager
71afe8a3295930c340bbd0f423a068c39e1733f835141ac21adde387ef1e67bb
Braodo Batch Script Stager
d4b0c3775006d1b40466a97cec3e6d3a974db7f8ea5aae87efcd739a1f856efa
Braodo Batch Script Stager
acd8bcad4e9503790b4fff4f34d860e4e88d0be31b3cf552ca8876a2b135bcbb
Braodo Batch Script Stager

Learn More

This blog aims to help security analysts, blue teamers, and Splunk users identify New Braodo Stealer Loader and payload activity by providing insights into the tactics, techniques, and procedures (TTPs) employed by threat actors.

You can implement the detections in this blog using the Enterprise Security Content Update app or the Splunk Security Essentials app. To view the Splunk Threat Research Team's complete security content repository, visit research.splunk.com.

Feedback

Any feedback or requests? Feel free to put in an issue on GitHub and we’ll follow up. Alternatively, join us on the Slack channel #security-research. Follow these instructions If you need an invitation to our Splunk user groups on Slack.

Contributors

We would like to thank Teoderick Contreras for authoring this post and the entire Splunk Threat Research Team for their contributions.

Related Articles

Peeping Through Windows (Logs): Using Sysmon & Event Codes for Threat Hunting
Security
12 Minute Read

Peeping Through Windows (Logs): Using Sysmon & Event Codes for Threat Hunting

Windows and endpoints go together like threat hunting and Splunk. Let's look at the most valuable Sysmon event codes for threat hunting in Splunk.
What’s Cyber Security Week like for Splunk? it-sa gold!
Security
1 Minute Read

What’s Cyber Security Week like for Splunk? it-sa gold!

Two gold awards and a successful it-sa event - that's how Splunk does Cyber Security Week!
UEBA Superpowers: Enhance Security Visibility with Rich Insights to Take Rapid Action Against Threats
Security
4 Minute Read

UEBA Superpowers: Enhance Security Visibility with Rich Insights to Take Rapid Action Against Threats

Splunk UBA illuminates hidden corners of your org's digital ecosystem, providing unparalleled visibility into behaviors and patterns that define the network's pulse.