BADAUDIO is a highly obfuscated C++ first-stage downloader associated with the PRC-nexus threat actor APT24 and used in a multi-year cyberespionage campaign. Reporting in the provided content ties the malware to operations active from at least November 2022 through 2025, with targeting focused especially on Windows systems and victim organizations in Taiwan, and in some reporting the United States. The broader campaign used multiple delivery vectors, including watering-hole compromises of more than 20 legitimate websites, JavaScript supply-chain compromise of a Taiwan-based digital marketing firm affecting more than 1,000 domains, and targeted spear-phishing. Phishing lures included messages impersonating an animal rescue organization, and separate campaigns abused Google Drive and OneDrive to distribute encrypted archives containing BADAUDIO. The malware has also been described as using DLL search order hijacking as part of execution or persistence.
Functionally, BADAUDIO performs host reconnaissance, collecting system-identifying information including the current Windows username, hostname, and architecture. It obfuscates strings using stack strings and SSE-based XOR deobfuscation, and it encrypts collected data with a hardcoded AES-256 key using CTR mode. The recovered AES-256 key reported in the content is b31b6db8f6f905fc9560f237c7af38515bd2a80d50e079bd1e297a1a9e94c8fe. For command-and-control communications, BADAUDIO uses the WinINet API to issue an HTTP GET request to the path /v3.1/current_user/details and embeds encrypted host data in HTTP Cookie header values including __etag and FMPIS. Decoded strings observed in analysis included header names such as Cookie, User-Agent, Accept, Accept-Language, and Cache-Control, as well as API names including InternetOpenA, InternetReadFile, and HttpQueryInfoA. The malware is capable of downloading, decrypting, and executing an AES-encrypted payload from a hard-coded C2 server, and reporting in the content states that second-stage payloads included Cobalt Strike Beacon. At the time of one analysis, the referenced C2 domain returned NXDOMAIN. The content also notes use of workers.dev infrastructure to blend traffic with legitimate Cloudflare-hosted services and rotate disposable subdomains.
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
A recent Google Cloud report shed additional light on APT24’s activities; however, it provided only a brief overview of badAudio, a distinctive downloader associated with the group. As a sample of this malware became publicly available, we conducted an in-depth reverse engineering analysis to better understand its functionality, cryptographic design, and operational role within APT24’s intrusion chain.
13 distinct techniques documented for this family, organized by ATT&CK tactic.
"APT24 targeted over 20 public websites with illicit JavaScript code that displayed a bogus software update pop-up, tricking Windows users into downloading BadAudio"
"more than 1,000 domains compromised through a supply chain attack against a Taiwanese digital marketing firm beginning July 2024"
"APT24 concurrently conducted highly targeted social engineering campaigns. Lures, such as an email purporting to be from an animal rescue organization, leveraged social engineering to elicit user interaction and drive direct malware downloads from attacker-controlled domains."
"spear-phishing intrusions that involved animal rescue organization spoofing beginning August 2024"
"...leveraged social engineering to elicit user interaction and drive direct malware downloads..."
To obfuscate strings, badaudio uses stack strings... deobfuscates them in place using an SSE-based XOR mask... At runtime, it performs 128-bit XOR operations... overwriting the stack buffer with plaintext only immediately before the value is consumed.
BadAudio collects host-identifying information prior to network communication... retrieves the current Windows username via GetUserNameExW... queries the system hostname via kernel32!GetComputerNameW... The collected host information is then concatenated with an architecture identifier
BadAudio builds and sends an HTTP request using the WinINet API... specifying the HTTP verb 'GET' and the object path '/v3.1/current_user/details'... Finally, the request is transmitted via wininet!HttpSendRequestA.
"before downloading and executing an AES-encrypted payload"
encrypting (then Base64-encoding) host/configuration data before embedding it in an HTTP request header
Using Cloudflare Workers (workers.dev) can help the operator blend in with legitimate web traffic... make domain-based IoCs more disposable (attackers can rotate subdomains easily).
"before downloading and executing an AES-encrypted payload"
The header contains two values, __etag=… and FMPIS=…, which include... an encrypted and encoded version of the information retrieve about the infected machine.
1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.