Abstract technical illustration on a dark navy field: a tall translucent column of glowing amber rectangular cells stands left of centre on a gridded, reflective floor. Its uppermost cells dissolve into a drifting grid of pale cyan nodes that scatter upward and to the right. Thin cables run from the column's base outward along the floor and out of frame. A dark keyhole-shaped gap sits at the column's midpoint. No text, no people, no organisation logos, no literal depiction of any real system.
AI Safety Incidents

Villager: an AI pentest toolkit PyPI never removed

Author

jinhao.song

Date Published

Latest models · 20View all models →
Back to all posts

Villager is an AI-orchestrated penetration-testing framework: a Python package that takes a task written in plain language, hands it to a language model, and lets the model drive Kali Linux tooling inside containers it spins up on demand. Uploads to the Python Package Index began on 23 July 2025 under the account stupidfish001, and by the time Straiker's STAR Labs team published its assessment in September 2025 the project had been downloaded roughly ten thousand times in about two months. No source in the record names a victim, a breached organisation, or an intrusion carried out with it. What the record documents is the distribution: a working offensive toolchain that anyone with pip could install, and that, on a check of PyPI for this article, is still there. The record's own severity grade, confidence assessment and full source list sit in the AI incident archive, alongside the neighbouring entries on AI-authored attack tooling.

What the archive records

The entry carries the id 2025-09-01-villager-cyberspike-shen-tou-gong and classifies its subject as a research finding rather than a deployment event: severity high, confidence A, disputed false, real harm true, AI involvement confirmed, regions CN and GLOBAL, and the single type tag WEAPON. The date is September 2025 at month precision — the archive records only the month, not a day — with no end date, because the entry describes a point in time rather than a window. It is not marked as a landmark.

The confidence grade A is worth reading precisely. It says the record is well documented and its primary sources agree. It does not say two independent research teams reached the same conclusion. The archive's two cited sources are Straiker's STAR Labs write-up, published on 11 September 2025 under the title "Cyberspike Villager: The AI-Native Successor to Cobalt Strike," and The Hacker News's report of 15 September 2025 by Ravie Lakshmanan, which credits that same write-up. Every other outlet that picked up the story within the week — The Register on 11 September under the headline "AI-powered penetration tool downloaded 10K times," CSO Online and ITPro on 16 September — rests on Straiker's assessment in the same way. The agreement is broad, but it is not replication, and nothing found for this piece amounts to a second research group auditing the package.

The archive marks real harm as true. Neither cited source names a victim, a breached organisation, or an intrusion attributed to Villager, and Straiker frames its Cobalt Strike comparison as a trajectory the tool could follow rather than a campaign already under way. On the evidence in this record, the harm is the documented availability of a working offensive toolchain to anyone who can install a Python package — a reading the sources support but do not measure. This piece does not put a number on it either.

What the package actually contains

Reading the artifact, rather than the reporting about it, settles several details the coverage leaves vague. PyPI's own metadata for the project shows nineteen releases: eighteen development builds uploaded between 23 and 28 July 2025, then seven weeks of silence, then a single release candidate, 0.2.1rc1, uploaded on 15 September 2025. The author field carries the address [email protected], consistent with the reporting that ties the account to a former player for the Chinese CTF team HSCSEC. The licence is MIT.

The declared dependencies corroborate the architecture from the metadata alone, without any need to trust a vendor write-up: mcp 1.11.0, fastmcp 2.10.5, langchain 0.3.26, langchain-openai, and openai 1.97.0, alongside FastAPI, Pydantic and uvicorn. A companion package by the same author, kali-driver, first appeared on 7 May 2025 with the summary "A driver of kali for al-1s project," and its source creates containers from the image gitlab.cyberspike.top:5050/aszl/diamond-shovel/al-1s/kali-image:main, running an SSH daemon with the container's port 22 bound to a random host port. That is the "isolated Kali containers on demand" and the "randomised SSH ports" in the reporting, visible in code rather than inferred.

What the code also shows is how narrow the shipped surface is. The console entry point starts a FastAPI server on port 37695. The MCP client and the Kali console are pointed at private addresses in the author's own range — 10.10.3.119 on port 25989 and 10.10.3.248 on port 1611 — left in the published wheel. The wheel also ships no module named config, though three of its own files import one: scheduler/core/init.py and scheduler/core/schemas/works/PydanticSafetyParser.py for the model settings, and interfaces/interface.py for the MCP address. A static read of the 87 Python files in 0.2.1rc1 finds no file matching that name. Anyone installing Villager gets a coordinator that expects infrastructure they do not have, assembled from parts that refer to a module the distribution does not contain. The framework is real and its pieces are real; installing it does not by itself produce a working attack platform.

The 4,201 prompts are a library of known exploits

Straiker's report describes "a database of 4,201 AI system prompts to generate exploits." ITPro, closer to the mark, called it a "4,201-prompts vulnerability database." The count is exactly right. The description of what is being counted is not.

Both releases downloaded for this article — 0.1.dev52 from July 2025 and 0.2.1rc1 from September — carry the same file, scheduler/core/RAGLibrary/statics/RAGL.sqlite, a 36 MB SQLite database with a single table named RAGL and two columns, title and body. It holds 4,201 rows. Every row sampled is a Chinese-language write-up of a named CVE with an exploit or proof-of-concept snippet attached: VMware vCenter Server CVE-2021-21972, a Jenkins cross-site scripting flaw, Joomla's com_media CVE-2021-23132. The title column holds file paths under a directory named for a vulnerability library dated 15 July 2021.

So the tool ships a retrieval corpus of vulnerability notes that the model can search while planning an operation. That is a real capability, and arguably a more specific one than the reporting credits: it is the difference between a model that knows about exploitation in general and one with a local, offline index of particular exploits and the commands that trigger them. It is not a database of 4,201 jailbreaks, system prompts, or prompt-injection payloads. The archive's own summary inherits Straiker's wording on this point.

Rendered two-column card titled 'What the wheel contains, and what the reports describe'. The left column, headed 'Read out of the shipped wheel', lists: nineteen PyPI releases, eighteen between 23 and 28 July 2025 and one release candidate on 15 September 2025; declared dependencies including mcp 1.11.0, fastmcp 2.10.5, langchain 0.3.26 and openai 1.97.0; the kali-driver image path on gitlab.cyberspike.top with SSH bound to a random host port; the FastAPI console on port 37695; and a bundled SQLite file, table RAGL, exactly 4,201 rows of Chinese-language CVE write-ups with proof-of-concept snippets. The right column, headed 'As described in the reporting', lists: DeepSeek v3 as the model layer, against a package enum that names deepseek-r1 and DeepSeek-R1-Distill-Qwen-14B; 4,201 AI system prompts, against a table of vulnerability notes; containers that self-destruct after 24 hours, against a watchdog that destroys a container after 24 hours of inactivity; and a description of the tool as turnkey, against a client that points at 10.10.3.119:25989 and imports a config module the wheel does not ship. A footer reads 'Card rendered by OrcaRouter.' The OrcaRouter logo sits bottom-right.

Two callbacks in the default package, and where they lead

One piece of the public record is not Straiker's. A security researcher publishing as gregcmartin reverse-engineered an installed copy and put a warning at the top of a GitHub fork: three outbound callbacks in the default package that they read as a privacy risk — a proxy URL carrying a username and password, a default OpenAI-compatible endpoint pointing at a third-party host, and a sender that posts to DingTalk, a Chinese messaging service.

The values are in the file. Release 0.2.1rc1 contains a literal proxy URL with embedded credentials in tools/check/checking.py and, in tools/ini/iniworker.py, a function that writes a fresh config.ini with its endpoint set to a third-party OpenAI-compatible host rather than DeepSeek's own API. Where the warning and the code part company is reach. In both releases read here, the credential-bearing line sits inside that file's __main__ demonstration block rather than on the path the installed command runs, and the config writer is not called from the entry point at all. The strings are real and they ship in the wheel; what they do not do is execute.

That cuts both ways, and it matters for anyone deciding how to treat the package. A fresh install is not obviously a live callback channel, and neither is it a complete product: the orchestration that would reach a model reads its settings from a config module the distribution does not contain. The wheel is less finished than the coverage implies. What it is not is empty — the container driver, the MCP client, the task graph and the 4,201-row corpus all work as described.

The model layer, and a name the sources disagree on

The record's summary says the framework uses DeepSeek, and the reporting is specific: Straiker describes DeepSeek v3 reached through an OpenAI-compatible endpoint, alongside a custom model called al-1s-20250421 served from a cyberspike.top subdomain. The package's own model enum, which enumerates the names it will call, lists deepseek-r1 and DeepSeek-R1-Distill-Qwen-14B among a dozen entries that also include gpt-4, gpt-4o, o1-mini and QwQ-32B. The LLM call itself goes through LangChain's ChatOpenAI with a base URL supplied by configuration.

The cited sources do not reconcile the difference between DeepSeek v3 and a DeepSeek-R1 family enum, and this piece does not either. Both are DeepSeek models, so the archive's one-word summary holds; the version detail in the reporting is unverified, and it is the kind of detail that gets copied forward without anyone checking it against the artifact.

What is claimed, and what is not shown

The phrase that travelled furthest is not Straiker's finding but its forecast. The researchers wrote that Villager could "follow the Cobalt Strike trajectory," meaning commercially or legitimately developed tooling becoming widely adopted by threat actors. Headlines in several outlets compressed that into "Cobalt Strike's AI-native successor," which reads as a description and is not one. Cobalt Strike's own trajectory is a matter of record — ITPro noted that Fortra and Microsoft had announced a campaign against misuse of it — but nothing in the sources places Villager on that path. The comparison is an analogy about dual-use software, offered by the team that found the tool.

The lineage claim is firmer and still not independent. Straiker says an earlier Cyberspike product, Studio v1.1.7, bundled AsyncRAT components and a Mimikatz plugin, with claimed capabilities including remote desktop access, keystroke logging and webcam use, and that samples appeared on VirusTotal. CSO Online quotes the researchers on the absence of business traces for the company behind the domain, and ITPro reports that no evidence of the named company could be found on Chinese social media. All of that concerns a different, earlier product from the same claimed publisher. It is Straiker's assessment, it is not something the record treats as disputed, and no cited source shows it was independently confirmed.

Three outside experts commented on the phenomenon rather than the artifact, and their remarks are worth keeping separate from the technical findings. Casey Ellis, founder of Bugcrowd, told CSO Online that "AI-assisted offense is here, has been here for quite some time now, and is here to stay," and that the net effect is the availability of increasingly powerful capability to a far broader audience. Randolph Barr, CISO at Cequence Security, said what makes Villager and similar tools concerning is how they compress the process into something fast, automated and easy to operationalise. Jason Soroko of Sectigo recommended mirroring PyPI, enforcing allow lists for pip, and blocking direct package installs from build and user endpoints. None of the three examined the package; their comments are about what its existence means.

What no source in the record supplies: a CVE, a CVSS score, a victim, a campaign, a jurisdiction, or a count of systems touched. The reporting is dense with capability and thin on consequence, and the archive's high severity grade is a judgement about potential rather than a measurement of damage.

What changed afterwards

Almost nothing was removed. PyPI still lists the project, and a query against its JSON API for this article returned the full release history with 0.2.1rc1, dated 15 September 2025, still the newest entry — four days after Straiker published. The project's summary field now reads "This was an experimental technology project," a sentence that also opens the description. Whether either is a response to the coverage is not established by anything in the record; there is no changelog in the wheel and no statement from the author that any source quotes.

The download figures have moved on in a way nobody reported. The pypistats service recorded 3,764 downloads of the package between 28 May and 24 November 2026, or 1,885 excluding mirrors, including 931 in November 2026 alone. Pepy, the service The Hacker News linked for its original figures, reports a lifetime total of 31,274. Those counters include automated installs and mirrors, so they do not measure people, and the 2025 figure of roughly ten thousand in two months cannot be checked against either service because neither retains daily data that far back. What they do establish is that the package is still being pulled from PyPI more than a year after the report that called it a successor to Cobalt Strike. A November 2026 write-up of the story stated that the tool's current PyPI status was unverified; it is verifiable, and it is still there.

Rendered horizontal timeline card titled 'Published, reported, and still listed'. The spine runs: 7 May 2025, the companion package kali-driver first appears on PyPI; 23 July 2025, the first Villager release, 0.1.dev52, is uploaded; 23 to 28 July 2025, seventeen further development builds; 11 September 2025, Straiker's STAR Labs publishes its assessment and The Register reports the ten thousand download figure; 15 September 2025, The Hacker News publishes and release 0.2.1rc1 is uploaded four days after the report; 16 September 2025, CSO Online and ITPro publish. A lower band headed 'Status at 25 November 2026' lists: package still listed on PyPI; latest upload still 0.2.1rc1; project summary now reads 'This was an experimental technology project'; 3,764 downloads recorded by pypistats between 28 May and 24 November 2026, 931 of them in November; lifetime total of 31,274 reported by pepy. A footer reads 'Card rendered by OrcaRouter.' The OrcaRouter logo sits bottom-right.

The mitigations on offer are all defensive and all generic. Straiker's recommendations were to put an inspection layer in front of MCP traffic, audit third-party AI tools and MCP implementations, stand up an approval process for AI tooling, build threat intelligence for MCP-based attack tools, write incident-response playbooks for automated attacks, and run continuous agentic security testing against MCP-enabled applications. Soroko's advice, quoted by CSO Online, was narrower and more actionable: control where Python packages come from. Not one of these is a fix for Villager, because there was nothing to patch — the package does what it was built to do.

Why the record is worth keeping

The precedent is the point. Villager is not a leak, a jailbreak or a model failure; it is offensive tooling assembled from a general-purpose model, an open-source agent framework and a public package registry, published under an MIT licence, downloaded ten thousand times, and left in place. Every component was legitimate and none of them was anomalous on its own. The thing that made it notable was the assembly, and no party in the chain had a reason to stop it.

What the record cannot tell you is whether it worked. Nobody has published a campaign, an intrusion or a victim, a year on, and the researchers who found it did not claim one. That absence is itself the finding: a tool this capable, distributed this openly, generated a great deal of commentary and no verified use.

Abstract illustration on a dark navy field: a wide tiled shelf runs across the lower third of the frame and recedes to the right. On it sits a single crate with its lid lifted a few degrees, a seam of warm amber light escaping across the shelf surface. The rest of the shelf is empty, and the upper half of the frame is near-black. No text, no people, no organisation logos.