Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseInsight · On RadarHabr AI→ original

An Agent Running on an Uncensored DeepSeek for $2 Found a Hole the Scanners Missed

A Habr author got ahead of other people's AI agents and attacked his own server, using an uncensored DeepSeek model without built-in refusals and the ztorch framework. A run cost about $2: the agent returned 8 minor vulnerabilities, and after a "continue" command it found a critical one, a passwordless entry into the OpenClaw gateway that the scanners had missed. So a cheap check with your own agent closes the obvious holes before attackers get to them.

AI-processed from Habr AI; edited by Hamidun News
An Agent Running on an Uncensored DeepSeek for $2 Found a Hole the Scanners Missed
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
The runabout $2 on DeepSeek and $5–7 on GLM-5.3, the price of a pentest
Key metric #2Through devtools, the agent found the WebSocket and executed 6 commands without a password
Key metric #3Such protection is powerless against professionals and models at the level of GPT or Claude

A week ago, an acquaintance of a Habr author had his server hacked, and it was not people who attacked it but AI agents. The author decided not to wait his turn and set up a hack of his own, carried out by an agent. He used an "uncensored" version of DeepSeek, meaning a model with its refusals removed, which agrees to write attacks (Claude and OpenAI models will not do that). A single run cost about $2 in model request fees. In the end, the agent found a critical hole in the OpenClaw gateway: it was possible to get in without a single password, and ordinary vulnerability scanners did not catch it.

What the setup is built from

An agentic pentest (a check of a server for whether it can be broken into) needs two parts: a language model and a "harness," meaning the environment where the model runs and receives tools. There is a catch with the model: Claude and OpenAI refuse to work as attackers. So the author took uncensored open models from the provider abliteration.ai. Two are available there: deepseek-v4-flash ($1 for input, $3 for output) and glm-5.3 ($3 for input, $5 for output). By the author's estimate, one pentest costs about $2 on DeepSeek and $5–7 on GLM.

There are already many environments for automated pentesting: ztorch, Strix, PentAGI and others. They all work on the same principle. There is a set of skills, and each is responsible for one type of vulnerability.

The agent is given a scope to check: a site, a list of IP addresses, or a free-form text request. It then loops through everything it can test and, at the end, produces a report of the flaws. The author chose ztorch, which has automatic memory and vector search over vulnerabilities.

The base shell was ZCode, and the uncensored DeepSeek was connected to it via API. An interesting detail: Claude and Codex refused even to install this framework, while the uncensored model installed it itself.

What the agent found

The first run returned a table of 8 vulnerabilities, and nothing in it was critical. The author then simply wrote to the agent: "continue the work." After that, the agent found the main issue: a full takeover of the OpenClaw gateway without a single password or key.

It reasoned like a live pentester:

  • it worked out that OpenClaw was running on the server;
  • using Chrome developer tools (devtools), it studied how the application talks to the client, and found that messages go over a WebSocket, and which one exactly;
  • it sent a test message and confirmed that the server accepts any message without authorization;
  • it used this and executed 6 privileged remote command calls.

The fix took little time. The author copied the table of vulnerabilities into Codex, which fixed everything. After that, the agent that had found the holes re-checked the server and confirmed there were no problems left.

How the agent differs from ordinary scanners

A classic scanner, including "Chinese" ones, iterates through known patterns: an open port, an outdated version, a default password. The agent looks at how a specific system is built and devises the attack path itself. That is why ordinary scanners missed the non-standard hole in OpenClaw while the agent found it. This is a single case on one server and does not count as statistics, but the direction is clear.

What this means in practice

The author honestly describes the limits of the method. An uncensored agent on cheap models will most likely cost no more than $2–3 to attack one server. If you spend the same amount on your own check, you will close the obvious holes that an attacker would also find. But such a run will not protect you from professional hackers or strong models at the level of GPT or Claude. Recently, language models have found many vulnerabilities even in foundational technologies like Linux, so it is not wise to consider your infrastructure invulnerable.

For developers and service owners, the conclusion is simple. A regular agentic pentest run costs about as much as a couple of cups of coffee, and it finds what template-based scanners miss. It is especially worth checking fresh self-hosted agent services: gateways, WebSockets and admin panels, where authorization is easy to forget. And such a stack should be applied only to your own servers: the author explicitly asks that it not be used on other people's sites.

Story

Key Questions Answered

What the setup is built from?

An agentic pentest (a check of a server for whether it can be broken into) needs two parts: a language model and a "harness," meaning the environment where the model runs and receives tools. There is a catch with the model: Claude and OpenAI refuse to work as attackers. So the author took uncensored open models from the provider abliteration.ai. Two are available there: deepseek-v4-flash ($1 for input, $3 for output) and glm-5.3 ($3 for input, $5 for output).

What the agent found?

The first run returned a table of 8 vulnerabilities, and nothing in it was critical. The author then simply wrote to the agent: "continue the work." After that, the agent found the main issue: a full takeover of the OpenClaw gateway without a single password or key.

How the agent differs from ordinary scanners?

A classic scanner, including "Chinese" ones, iterates through known patterns: an open port, an outdated version, a default password. The agent looks at how a specific system is built and devises the attack path itself. That is why ordinary scanners missed the non-standard hole in OpenClaw while the agent found it. This is a single case on one server and does not count as statistics, but the direction is clear.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Free · Waitlist · Hermes + DeepSeek

Free 2-Day Vibecoding & AI Agents Intensive

Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.

Join the waitlist →Nomad AI Workspace
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — An Agent Running on an Uncensored DeepSeek for $2 Found a Hole the Scanners Missed https://news.hamidun.com/en/news/18854/an-agent-running-on-an-uncensored-deepseek-for-2-found-a-hol

What do you think?
Loading comments…