ChocoPoC RAT: when the exploit itself is the trap

ChocoPoC RAT: When the Exploit Itself Is the Trap

Introduction

Researchers from YesWeHack and Sekoia TDR disclosed on July 1, 2026, an active infection campaign distributing a remote access trojan (RAT) named ChocoPoC. Unlike traditional campaigns that directly target unpatched production servers, this operation exploits a different, and particularly sensitive, link in the security chain: the very workflows of vulnerability researchers and pentesters. The attackers distribute trojanized Proof of Concept (PoC) repositories on GitHub, taking advantage of the pressure and urgency with which the security community tends to test exploits for newly disclosed CVEs. By running these supposed PoCs, the victim unknowingly installs a malicious Python dependency that delivers the ChocoPoC payload, giving the threat actors remote control over the compromised development environment.


What is ChocoPoC RAT?

ChocoPoC is a fully functional RAT written in Python, designed to operate stealthily within research and development environments (researchers, red teamers, and vulnerability analysts). Its main capabilities include:

The impact on an organization is severe: since the vector directly targets offensive security teams, the compromise exposes not only general corporate information but also intelligence about vulnerabilities the organization itself was investigating or testing, credentials for access to critical testing infrastructure, and potentially privileged access to clients in the case of pentesting firms.


How does it work?

Attack vector:

Initial entry does not occur through direct exploitation of a CVE on an exposed system, but through social engineering targeted at researchers. The attackers publish GitHub repositories presented as functional PoCs for critical, newly announced vulnerabilities. The visible PoC code looks legitimate and clean; the malicious component is hidden inside a third-party Python dependency (packages identified so far include frint, skytext, slogsec, and logcrypt.cryptography) that the PoC script itself imports automatically, evading a superficial code review.

Activation and persistence mechanism:

ChocoPoC includes an environmental-key “gating” mechanism: the payload computes a hash of the base names of all Python modules loaded at runtime and only activates if it detects the exact signature of the specific exploit script that accompanies it. This means that if the package is run in a standard sandbox or automated analysis environment without the corresponding “decoy” script, the malware remains completely dormant, making it harder for conventional dynamic-analysis tools to detect.

Communication with the C2:

One of ChocoPoC’s most distinctive features is its domain fronting technique using the legitimate Mapbox API. The downloader establishes an HTTPS connection by forcing the Server Name Indication (SNI) field to api.mapbox.com, blending command-and-control traffic with legitimate traffic from that platform and making it harder to detect through network traffic inspection. The RAT continuously polls this channel (leveraging Mapbox datasets as a “dead drop” mechanism) to receive instructions, and falls back on a dedicated external HTTP server when it needs to exfiltrate larger volumes of data.


Affected Systems and Environments


Mitigation and Detection

Priority remediation recommendations:

Searching for Indicators of Compromise (IoCs):

Incident response (IR) teams should prioritize searching for:


Recap

The ChocoPoC case clearly illustrates how quickly malware operators adapt their delivery techniques to exploit not the technical vulnerabilities of a piece of software, but the operational habits and urgency of the people working to defend against them. By hiding the payload in a PoC’s dependency rather than in the exploit file itself, the attackers managed to slip into a blind spot of trust: the security community tends to review a PoC’s main script, but rarely audits the full dependency tree it imports. The result is a threat that requires no zero-day vulnerability against the operating system or the network, but instead uses the very discipline of vulnerability research as its delivery vector. This reinforces a core principle of current threat intelligence: an organization’s most critical attack surface can, paradoxically, be its own technical staff’s workflow.


References

The Hacker News. (2026, July 3). New ChocoPoC RAT targets vulnerability researchers via fake PoC exploit repos. https://thehackernews.com/2026/07/new-chocopoc-rat-targets-vulnerability.html

BleepingComputer. (2026, July 1). New ChocoPoC malware targets researchers via trojanized PoC exploits. https://www.bleepingcomputer.com/news/security/new-chocopoc-malware-targets-researchers-via-trojanized-poc-exploits/

Sekoia. (2026, July 1). Don’t eat the ChocoPoCs! How vulnerability researchers were repeatedly targeted by trojanised exploits. https://www.sekoia.com/blog/dont-eat-the-chocopocs-how-vulnerability-researchers-were-repeatedly-targeted-by-trojanised-exploits

YesWeHack. (2026, July 1). Don’t eat the ChocoPoCs! Vulnerability researchers were targeted by trojanised exploits. https://www.yeswehack.com/news/chocopocs-vulnerability-researchers-trojanised-exploits

CyberPress. (2026, July 2). Hackers hide ChocoPoC malware in Python dependencies to compromise pentesters. https://cyberpress.org/chocopoc-targets-python-dependencies/