---
id: 18854
lang: en
title: "An Agent Running on an Uncensored DeepSeek for $2 Found a Hole the Scanners Missed"
published_at: "2026-12-01 18:28:17"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1114708/?utm_campaign=1114708&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/18854"
categories: ["ethics", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

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

> **Краткая суть (BLUF):** 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.  • The run: about $2 on DeepSeek and $5–7 on GLM-5.3, the price of a pentest • Through devtools, the agent found the WebSocket and executed 6 commands without a password • Such 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.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1114708/?utm_campaign=1114708&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18854
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
