The browser is the new command-and-control highway
Here's a thought that should keep any security engineer up at night: your browser is already making connections to the internet. Every tab you have open, every API call a web app makes — it's all legitimate traffic. So what happens when malware stops trying to sneak through the back door and just walks in wearing a browser's badge?
That's exactly what the Chaos ransomware gang is doing with msaRAT, a backdoor that Cisco Talos disclosed this week. The malware doesn't open its own network sockets to talk to attacker infrastructure. Instead, it hijacks Chrome or Edge — launches them headless, injects JavaScript, and routes every byte of command-and-control traffic through the browser's existing communication channels. To a network monitor, it looks like normal web traffic. Because it is normal web traffic.
This isn't theoretical. It's live in the wild, and it represents a meaningful shift in how AI cybersecurity threats are evolving toward infrastructure camouflage. The technique is elegant, it's hard to detect with conventional tools, and it forces us to rethink what "suspicious network activity" actually means.
How msaRAT works under the hood
The malware is written in Rust — fast, memory-safe, and increasingly popular among threat actors who want performance without the crash-prone nature of C++. Once it lands on a system, here's what happens:
msaRAT searches for Chrome or Microsoft Edge installations on the target machine. When it finds one, it launches the browser in headless mode — no visible window, no user interaction required. It then enables Chrome's remote debugging interface and connects to it via the Chrome DevTools Protocol (CDP). This is the same protocol security researchers and developers use for browser automation and debugging, which makes it a clever choice from an operational security standpoint.
Once connected through CDP, the malware opens a new browser tab and injects JavaScript directly into it. This injected script does three critical things: it builds the communication channel, bypasses Chrome's Content Security Policy (CSP), and registers several CDP bindings that enable ongoing command-and-control communication.
The result is a fully functional backdoor channel running entirely inside the browser process. No custom network listener. No suspicious DLL loading patterns beyond the initial infection. Just JavaScript doing what JavaScript was always meant to do — talk to a server.
The pattern of turning browsers into attack surfaces is becoming increasingly common. For another look at how threat actors exploit browser infrastructure, see our analysis of how Edgecution weaponizes a malicious Edge extension to break out of sandboxed environments.
The infrastructure: Cloudflare and Twilio as camouflage
Here's where the design gets really clever. Once the browser-based channel is set up, msaRAT doesn't connect directly to an attacker-controlled server. Instead, it contacts a Cloudflare Workers endpoint — specifically is-01-ast[.]ols-img-12[.]workers[.]dev — to obtain WebRTC connection information.
From there, the communication chain looks like this:
- The browser establishes a WebRTC connection with encrypted DTLS (provided automatically by the browser)
- msaRAT adds a second encryption layer using ChaCha20-Poly1305 with ECDH key exchange
- All traffic is relayed through Twilio TURN (Traversal Using Relays around NAT) servers
- ICE candidates are intentionally omitted, preventing any peer-to-peer connections and forcing all traffic through Twilio's infrastructure
- The attacker's real server IP never appears in network logs
Two layers of encryption. Two legitimate infrastructure providers (Cloudflare and Twilio) standing between the malware and any forensic trace. And a design where blocking the communication path would mean disrupting millions of legitimate Cloudflare Workers deployments — because *.workers.dev is a free subdomain assigned to developers worldwide.
Cisco Talos put it best: the dual-layer infrastructure combining Twilio with Cloudflare Workers makes it "significantly difficult to trace the attacker's infrastructure." That's not just hard. It's a deliberate design choice that turns the internet's most trusted services into cover.
The broader trend of disguising C2 traffic through legitimate platforms is worth watching. DragonForce, for example, has been exploiting Microsoft Teams relays to mask its command-and-control communications — another case where attackers hide inside tools users already trust.
The infection chain: from phishing to persistence
Chaos ransomware attacks observed by Cisco Talos follow a fairly standard initial access pattern that should feel familiar to anyone who's reviewed phishing campaigns in the last year:
- Initial access — Email or voice phishing delivers the payload to a target
- Persistence — Remote management software is installed to maintain access
- Delivery — An MSI installer posing as a Windows update downloads msaRAT (distributed as
lib.dll) - Execution — The DLL loads directly into system memory, no disk write needed for the active component
- Browser hijack — msaRAT finds and launches Chrome or Edge headless
- C2 establishment — CDP connection, JavaScript injection, encrypted channel through Cloudflare/Twilio
The memory-only execution of the DLL is worth noting. Traditional file-based detection tools won't catch it. And since the malware doesn't create new network connections of its own, even network-based detection struggles.
Why this matters for AI-powered security defenses
Let's be honest about where most security teams stand on this. Cisco Talos reported that organizations log 54% of successful attacks but alert on just 14%. The rest move through the environment completely unseen. msaRAT is built for that blind spot.
The challenge for AI cybersecurity threats detection isn't just about having better models — it's about rethinking what signals matter. When the malware's network traffic is indistinguishable from a user opening Gmail, traditional behavioral analysis hits a wall. You can't flag "normal web traffic" as suspicious without generating so many false positives that your team stops paying attention.
This is where autonomous security agents and multi-agent detection systems might actually earn their keep. If AI-powered tools can correlate browser process behavior, CDP usage patterns, and JavaScript injection events across endpoints — rather than just watching network flows — they might catch what network monitoring misses. But that requires a fundamental shift in how we think about endpoint visibility.
As organizations increasingly deploy autonomous agents for security operations, the same agents that help detect threats like msaRAT also introduce new attack surfaces. The dual nature of AI in cybersecurity — both defender and potential vulnerability — makes this tension impossible to ignore.
The broader point: as ransomware gangs like Chaos adopt techniques that exploit the trust we place in legitimate browser infrastructure, the gap between "normal" and "malicious" narrows dramatically. Security teams need to stop treating browsers as neutral observers and start treating them as potential attack surfaces.
What detection looks like in practice
Cisco Talos published a complete set of indicators of compromise for msaRAT, which is unusually generous from a threat actor. The IoCs cover the Cloudflare Workers endpoint, file hashes for the MSI installer and DLL payload, and behavioral signatures related to headless browser launches with CDP enabled.
For teams looking at this today, the practical takeaways are:
- Monitor for headless Chrome/Edge processes that aren't associated with known automation tools (Selenium, Puppeteer, Playwright)
- Watch for unusual CDP connections from browser processes — legitimate debugging is rare in production environments
- Look for JavaScript injection events inside browser tabs that weren't initiated by the user or a known extension
- Check for WebRTC connections routed through TURN servers with omitted ICE candidates — that's a strong signal of relay-based C2
- Review outbound connections to
*.workers.devdomains that aren't associated with known developer tooling
The detection challenge isn't impossible. It's just harder than the old "find the C2 IP and block it" playbook.
The Chaos group: who's behind this?
For context on the threat actor, the Chaos ransomware group emerged in early 2025 and is unrelated to the original Chaos ransomware family that's been around since 2021. That distinction matters because the infrastructure, tactics, and targets are different.
Rapid7 researchers found earlier this year that Chaos was being leveraged by the Iranian state-backed hacker group MuddyWater to disguise cyber-espionage operations as financially motivated ransomware attacks. The dual-purpose nature — espionage infrastructure that can flip to extortion when useful — makes the group particularly dangerous for organizations in sensitive sectors.
Cisco Talos's recent observations focus on the financial ransomware operations, but the MuddyWater connection suggests this toolkit could appear in nation-state campaigns as well. The browser-based C2 technique is sophisticated enough that it's worth watching for in both contexts.
Bottom line
msaRAT represents a meaningful evolution in how ransomware gangs approach command-and-control. By routing everything through browsers and legitimate infrastructure, the Chaos group has built a backdoor that's genuinely hard to detect with conventional tools. The 14% alert rate Cisco Talos cited isn't just a statistic — it's the environment this malware was designed for.
For security teams, the takeaway is uncomfortable but clear: if your detection strategy still treats browsers as transparent pipes rather than potential attack surfaces, you're already behind. The next generation of AI cybersecurity threats won't just be faster or smarter — they'll be better at hiding in plain sight.