VYPR
researchPublished Nov 23, 2026· 1 source

Open-Source AI Pentesting Framework Cairn Fuels Real-World Attacks

Autonomous AI agents leveraging the open-source Cairn framework have been used by a Chinese-nexus threat actor to exploit a zero-day vulnerability in a medical imaging AI application, gaining access to university servers with minimal human oversight.

Autonomous AI agents, powered by the open-source Cairn penetration testing framework, have been observed actively exploiting vulnerabilities in real-world cyberattacks, according to Amazon Threat Intelligence. In a recent incident, a Chinese-nexus threat actor used these agents with minimal human intervention, providing only target IP addresses and the objective of obtaining shell access. The campaign targeted universities in East Asia outside mainland China, highlighting the growing sophistication and autonomy of AI in cyber operations.

The agents demonstrated remarkable persistence, spending nearly a full day attempting to breach university servers. At one target, they unsuccessfully tried to exploit a Redis server with unauthenticated access, attempting various methods including abusing replication, escaping sandboxes, and injecting code. When these initial attempts failed, the agents pivoted to a server-side request forgery (SSRF) flaw in a co-located Qdrant instance to map the internal Docker network and attempted credential spraying against multiple services like PostgreSQL and SSH, again without success.

Following these unsuccessful attempts, the agents compiled a list of approximately 80 real usernames from faculty directories and research papers. They then spent over six hours attempting more than 30,000 credential combinations against various services, including SSH, an admin dashboard, network storage, a VPN server, and the campus portal. This exhaustive brute-force effort also proved fruitless, underscoring the agents' methodical and persistent approach.

The breakthrough came when the agents identified and exploited a previously unknown path traversal vulnerability in the filename parameter of an upload endpoint within an open-source medical imaging AI application. The transition from mapping the application's API to writing arbitrary files on the server occurred in approximately 11 minutes. The agents then leveraged this vulnerability to write a Python reverse shell payload to sitecustomize.py, a file automatically imported by Python at interpreter startup, ultimately establishing a root-level reverse shell.

In a subsequent session, the human operator intervened, directing the agents to use the same zero-day vulnerability to gain access to a second university network running the same vulnerable software. Amazon's threat analysts believe the attacker used this exploit to compromise the server and establish a proxy tunnel into the secondary network, demonstrating a coordinated attack leveraging both autonomous capabilities and human direction.

Cairn, described by its developer as a general-purpose problem-solving engine, has proven effective for penetration testing despite not being specifically designed for it. Amazon's insights into this operation were gained after discovering a publicly hosted, unauthenticated Cairn instance. The project configurations and AI output strongly indicated a Chinese-nexus actor behind the attacks.

This incident marks the fourth time in recent months that security companies have documented Cairn's use in real-world attacks. Previous reports detailed financially motivated campaigns against online retailers, financially motivated clusters targeting US, Japanese, and Australian entities, and espionage operations against semiconductor, defense, and civil society organizations. The increasing adoption of Cairn and similar AI frameworks by various threat actors, including extortion gangs and espionage groups, signals a significant shift in the cybersecurity landscape.

Defenders are advised to prioritize high-confidence detections with automated responses, as AI agents can operate at speeds that outpace human SOC analysts. Expecting relentless attacks due to the agents' tireless nature, organizations should focus on identity hygiene, reducing attack surfaces, and prompt patching. However, the speed, patience, and creativity demonstrated by these AI tools suggest that traditional defense strategies may need to evolve to counter these increasingly sophisticated and autonomous threats.

Synthesized by Vypr AI