Open-source AI pentesting framework Cairn keeps turning up in real-world attacks
An AI pentesting framework called Cairn is linked to a series of real-world attacks by a Chinese threat actor targeting universities and organizations.

Cairn, an open-source AI penetration testing framework, has been identified as a tool used by a Chinese-nexus threat actor in a series of attacks against universities in East Asia. The attackers employed autonomous AI agents to exploit vulnerabilities, demonstrating advanced capabilities in adapting their strategies without human intervention.
The campaign began on September 8, 2026, when the threat actor targeted university servers in East Asia outside mainland China. The autonomous AI agents operated on Cairn and were given a list of IP addresses and the objective of obtaining shell access. The agents spent nearly a full day attempting various methods to breach the servers before successfully exploiting a zero-day vulnerability in an open-source medical imaging application.
Initially, the agents focused on a Redis server that permitted unauthenticated access. They attempted multiple tactics, including abusing replication to load unauthorized code and executing a Log4Shell injection against another service on the same machine. After these attempts failed, they utilized a server-side request forgery (SSRF) vulnerability in a co-located Qdrant instance to map the internal Docker network and tested numerous credentials against various services, again without success.
- 1Sep 8, 2026Campaign startsTargeting universities in East Asia
- 2Sep 8, 2026Initial attempts failAgents spend nearly a full day trying various methods
- 3Sep 9, 2026Exploit zero-day vulnerabilitySuccessfully breach using medical imaging app flaw
- 4Sep 9, 2026Gain shell accessEstablish reverse shell on compromised server
- 5Sep 9, 2026Human intervention occursOperator assists in targeting another university
Cairn is designed as a versatile problem-solving engine that seeks solutions in complex environments. Although it was not specifically created for penetration testing, its capabilities have made it effective in this domain. The framework can navigate through various potential paths to reach a specified objective, adapting its approach based on the challenges encountered.
The attacks have affected multiple universities, with Amazon Threat Intelligence noting that the agents targeted IP addresses belonging to educational institutions. The operations against two universities revealed the agents' ability to adapt and persist in their efforts to breach defenses. Amazon's insights indicate that the threat actor is likely part of a larger group that has been active in exploiting similar vulnerabilities.
Amazon discovered details of this operation after finding an unprotected Cairn instance online. The configurations and outputs pointed to a Chinese-nexus actor, highlighting the growing trend of using AI frameworks for malicious purposes. This incident is part of a broader pattern, with multiple security companies reporting on the use of Cairn in attacks against various targets, including online retailers and organizations in the defense sector.
In recent months, other security firms have documented similar campaigns utilizing Cairn. For instance, Gambit Security linked the framework to a financially motivated attack against online retailers, while Palo Alto Networks identified a suspected China-nexus actor conducting operations against semiconductor and civil society organizations. These incidents underscore the increasing reliance on AI tools by threat actors.
Amazon has recommended that organizations prioritize high-confidence detections that can trigger automated responses, as AI agents can act more quickly than many security operations centers can respond. Additionally, they advise maintaining strong identity hygiene, minimizing the attack surface, and regularly patching vulnerabilities, as the exploited flaws often involve weak credentials and outdated software.
What security teams should do
- Security teams should implement automated detection systems for rapid response.
- Organizations must conduct regular audits of their software and systems to identify vulnerabilities.
What it meansCairn has been linked to a series of attacks by a Chinese threat actor targeting universities, showcasing the effectiveness of AI in penetration testing.
Ask your IT team this weekWhat measures do we have in place to detect automated attacks on our systems?How often are we reviewing and updating our credential management practices?
DecisionThe IT team will implement automated responses for high-confidence alerts, and security will verify their effectiveness.