← Lab /Security & privacy

XCSSET v40 runs in memory, uses polymorphic code and hijacks Chrome via CDP

XCSSET v40 achieves a near-zero disk footprint by executing its core logic solely in memory and evades detection through multi-layered polymorphism and new fileless persistence techniques.

Security & privacy Unit 42 31 Jul 2026 Attack Real-world evidence

Published as “The Xcode Assassin Returns: A Deep Dive Into the Latest XCSSET Version”

Why it matters

These enhancements make XCSSET v40 a more stealthy and potent supply-chain threat to macOS developers.

Summary

The Unit 42 team analyzed XCSSET version 40, a macOS malware family that infects Xcode projects and spreads via compromised Git repositories. They found that the core module runs entirely in volatile memory and deletes all on-disk artifacts, while employing polymorphic binaries and dual-key AES encryption. New capabilities include a Chrome hijack that leverages the Chrome DevTools Protocol and a Telegram trojanizer that replaces the legitimate app. The evidence comes from real-world samples observed in the wild, but some configuration data could not be captured, leaving parts of the payload unknown.

What they found 4

  1. The memory-resident core module deletes all installation files from disk

    “The moment this memory-resident core module loop becomes active, the malware terminates its staging processes and deletes all installation files from the disk.”

  2. The Chrome hijacking module misuses the Chrome DevTools Protocol to execute arbitrary JavaScript

    “The Chrome hijacking module controls the browser by misusing a legitimate Chromium feature, the CDP.”

  3. XCSSET v40 uses the macOS defaults utility for fileless re-infection loops

    “XCSSET v40 instead uses this utility to shift from predictable, disk-resident persistence to a fileless re-infection loop.”

  4. The malware disables several macOS security mechanisms

    “Disables the SoftwareUpdate configuration channel”

Caveats 2

  • Because the configuration blob itself was not captured during our collection window, we could not verify its exact contents.
  • The configuration blob was not captured, so the exact contents of the encrypted configuration remain unknown.

What’s new here 4

  • Core logic executes in memory and erases installation files
  • Polymorphic loader binaries recompiled every few hours
  • Chrome hijacking backdoor using the Chrome DevTools Protocol
  • Telegram Desktop trojanizer that replaces the legitimate app

In the news