← All articles

3 min read

The AI Hacking Tool That Got Hacked in Just 27 Seconds

It was built to break into networks. But researchers discovered that the systems it attacked could turn the tables on it.

By · Techven

The letters AI standing on a glowing network of connections
Photo by Steve A Johnson on Unsplash

Imagine using a hacking tool to scan a server, only for that server to trick your tool into running malicious code. Sounds strange, right? Now imagine the tool is powered by AI and is supposed to know what it is doing.

That is exactly what happened to ARTEX, an AI-powered penetration testing tool that researchers managed to compromise in just 27 seconds. The interesting part? They didn’t need a complicated exploit. They simply used the tool’s curiosity against it.

Meet ARTEX, the AI hacker

ARTEX is an open-source penetration testing framework written in Go. It was published on GitHub in July 2026 and uses AI models alongside security tools to scan systems, identify weaknesses and carry out attacks with limited human involvement.

Unfortunately, cybercriminals also found it useful.

The FBI warned that attackers had been using ARTEX since at least August 2026 to target financial institutions, government agencies and healthcare organisations. Some reported incidents involved the theft of information belonging to approximately 67,000 customers of South Korean financial firms and a breach affecting more than 2,250 customers connected to ConnectWise.

The FBI also reported that ARTEX could gain privileged access to some networks in under three hours.

Although its public code was removed from GitHub on 8 October, Check Point later identified more than 1,600 publicly accessible deployments still running.

But while ARTEX was helping attackers break into other people’s systems, researchers were discovering a weakness that could turn the tool against its own operators.

How researchers turned the tables

On 1 December 2026, The Hacker News reported findings from three security research teams that had independently tested ARTEX and successfully made it execute malicious code.

One team, NebuSec, created seven fake web services designed to attract ARTEX agents. These services acted as traps, waiting for the AI to interact with them.

Across 36 tests using two AI models, the researchers managed to execute code inside ARTEX’s container in 33 attempts. The fastest successful attack took just 27 seconds.

How did they do it?

Instead of directly telling the AI to ignore its instructions, they gave it tasks that looked like normal penetration testing activities. These included cloning a repository, restoring a backup or installing a helper package. Each contained code designed to compromise the agent when executed.

Interestingly, the researchers found that ARTEX ignored their direct prompt injection attempts. It was not tricked by instructions telling it to ignore its rules. Instead, it trusted files and resources that appeared useful to its work.

Another team, Baldur Security, led by Kevin Joensen, used a different approach. They planted a fake leaked key, persuaded the agent to execute a malicious script and eventually gained a reverse shell, giving them remote access to the compromised environment.

Meanwhile, Café Security Research examined ARTEX’s source code and found deeper security weaknesses. These included missing approval checks, limited enforcement of testing boundaries and agent commands that could access sensitive information such as AI model keys and database passwords.

The real problem wasn’t the AI

Here is what makes this discovery important.

ARTEX was designed to interact with systems that might be controlled by attackers. However, it ran code obtained from those systems inside the same environment where its operator’s sensitive information was stored.

Rows of servers in a data centre lit in blue
AI agents like ARTEX often run in the same environment that holds their operator’s keys and passwords. Photo: BalticServers.com, CC BY-SA 3.0, via Wikimedia Commons

In simple terms, imagine inviting a stranger into your house, giving them access to your laptop and then asking them to inspect your security system. If that stranger turns out to be malicious, they now have access to much more than the security system.

That is essentially the problem researchers uncovered.

To be clear, the researchers did not demonstrate an escape from ARTEX’s container to the host machine. Also, there was no confirmed patch at the time of reporting. The findings do not mean every ARTEX deployment was compromised.

The hunter became the hunted

ARTEX was built to help attackers break into networks. Yet researchers showed that a carefully prepared trap could make it execute malicious code in just 27 seconds.

The bigger lesson is that AI agents should not automatically trust the systems they are sent to investigate. Every file, repository and package they interact with should be treated as potentially dangerous.

After all, if an AI hacking tool can be tricked into compromising itself, what makes us confident that the next automated security tool won’t make the same mistake?