ARTEX in the Homelab: What Can an Autonomous AI Pentester Really Do?

ARTEX in the Homelab: What Can an Autonomous AI Pentester Really Do?

At the end of October, one name made the rounds in the security press: ARTEX. An open-source tool from China that uses AI agents to run penetration tests on its own, from reconnaissance through vulnerability discovery to verification. According to its developer, it was meant for authorized penetration testing. But Chinese threat groups used it too: CrowdStrike describes how the group VAPOR PANDA used it to attack more than 200 organizations worldwide within eleven days, and the FBI published its own warning about it. (article link)

I was less interested in the headline than in the question behind it: What can tools like this actually do today? If an attacker can automate an entire attack chain with a few clicks and a cheap LLM, I want to know what that looks like. So I installed ARTEX in my homelab and ran it against a system I maintain myself.

Important: ARTEX is an offensive tool. Only use it against systems you own or have written permission to test. Anything else is a criminal offense in most countries (in Germany, § 202a ff. StGB).

Original vs. fork: artex-global

The developer's original repository is no longer available on GitHub. He removed it in early October after the reports about its misuse. Copies are, of course, still circulating.

I used the fork artex-global:

https://github.com/jiwoochris/artex-global

The fork translates the UI into English and sets a few things up more cautiously than the original. For example, certain top-level domains such as .gov are excluded by default, and the tool gives hints about what you are not allowed to do. But that is more of a guardrail than a lock: the settings can be changed with a few clicks. Anyone with bad intentions won't be stopped by it.

Installation in an LXC container

ARTEX consists of a Go backend with an embedded Next.js UI and a PostgreSQL database. Both run via Docker Compose. I created a dedicated LXC container on my Proxmox host for it, so the tool is cleanly separated from everything else:

OS Ubuntu 26.04 LTS
Resources 2 vCPU, 4 GiB RAM, 10 GB disk
Docker 29.8, Compose v5.5
ARTEX v0.3.15-global.1

For Docker inside LXC, the container needs the nesting feature enabled. The resources are plenty: after the installation, 2.6 GB of disk and a little over 200 MiB of RAM were in use. The real work happens at the LLM provider.

Clone the repository

mkdir -p /srv/docker
git clone https://github.com/jiwoochris/artex-global.git /srv/docker/artex
cd /srv/docker/artex
cp .env.example .env
chmod 600 .env

Configuration

I only changed a few values in .env:

POSTGRES_PASSWORD=<openssl rand -hex 24>
ARTEX_LLM_PROVIDER=openai
ARTEX_LLM_BASE_URL=https://api.opper.ai/v3/compat
ARTEX_BIND=0.0.0.0
ARTEX_LANG=en

A few notes on that:

  • LLM connection: With ARTEX_LLM_PROVIDER=openai, ARTEX speaks the Chat Completions format. The backend appends /chat/completions to the base URL itself, so enter the URL without that suffix. I use Opper's OpenAI-compatible endpoint, but any compatible provider works.
  • Set ARTEX_LANG explicitly: docker-compose.yml and .env.example interpret an empty value differently (Korean in one, English in the other). Better to set en explicitly.
  • ARTEX_BIND: By default, the UI only listens on 127.0.0.1. I exposed it on my internal network with 0.0.0.0. That's convenient, but it also means that until the admin account has been created, /setup is reachable by anyone on the network, protected only by a one-time setup token.

Start and create the admin

cd /srv/docker/artex
docker compose pull
docker compose up -d

The setup token is in the container log:

docker compose logs artex | grep -F '[auth]'

Use it to create the admin at http://<container-ip>:8787/setup, then enter the API key and model in the UI under LLM.

Pitfalls

  • max_tokens: The default of 32768 tends to cause 400 max_tokens is too large with OpenAI-compatible models. Set it to 16384 or lower in the LLM profile.
  • JWT key: The backend writes its signing key to /app/jwt.key, which is outside the data volume. If the container is recreated, all sessions become invalid. Not a big deal, but good to know.
  • Image tag: The default is latest. If you want reproducible setups, pin ARTEX_TAG to a release.

Updates

cd /srv/docker/artex && git pull && docker compose pull && docker compose up -d

The architecture: a team of agents

After logging in, ARTEX looks like an ordinary security dashboard. The interesting part is under the hood. ARTEX doesn't work with one agent but with a small team:

Agents in ARTEX

Agent Task
Goal Decomposition breaks the pentest objective down into verifiable sub-goals
Planning decides which direction to explore next
Execution (Worker) carries out individual steps and writes facts and findings into a knowledge graph
Main interface to the human, takes hints
Auto manages tasks, assets, skills and tools
Penetration Test single agent for the full chain from recon to verification
Reporter / Retester write reports and re-check fixed findings

On top of that come 51 system tools, including create_custom_tool, create_mcp and create_skill. So the platform can extend itself with new tools at runtime when it is missing something. Technically impressive, rather uncomfortable from a control point of view.

Of course, ARTEX can also be extended by hand: custom skills, custom MCP servers, custom tools as a command, script or HTTP call. I didn't need any of that for my test. But professional pentesters and attackers will start exactly here and plug in their own tools and knowledge. What ships with it is really just the starting point.

You are not tied to a single model either. ARTEX manages several model profiles with their own rate limits, which can be used in parallel and rotated. So you can combine a cheap model for the bulk of the work with a stronger one for the tricky parts.

System tools with Chinese descriptions

Chinese, Korean, English

This is the point that bothered me most in practice: the tool descriptions and skills are in Chinese. The fork's UI is in English, but everything that actually controls the agents' behavior, meaning prompts, tool descriptions and skills, is still in the original language. The reporter agent added by the fork, on the other hand, is described in Korean.

If you want to understand what the agents do and why, you have to run everything through a translator first. For a tool that acts against systems on its own, I consider that a real problem. I want to be able to follow what instructions an agent receives before I send it off.

The test run

A pentest in ARTEX is created as a task. It takes surprisingly little. A simple prompt like

Analyse the system https://example.org

is enough, and the agents start running. No scope document, no scanner configuration, no wordlists. The system works out the rest on its own. You can watch, step in or give hints, but you don't have to.

Task overview

The exploration path

The exploration path is very revealing. It shows as a graph how the agents proceed: a starting point leads to goals, goals lead to intents (directions of investigation), those yield facts and finally findings. Every edge shows what came from what.

Exploration path

This doesn't look like mindlessly working through a checklist, but like what an experienced pentester does: follow a lead, recognize a dead end, try another route. Here too, part of the summaries (digests) in the graph are in Chinese.

Asset coverage

Starting from a single domain, ARTEX added 182 assets to the scope: subdomains, IPs, services, endpoints. 77 of them were actually tested.

Asset coverage graph

Honestly, that number surprised me. I would have estimated the attack surface of my system to be much smaller. That overview alone was worth the experiment.

The results

In the end there were 0 critical, 2 high, 7 medium and 7 low findings. I fixed the two high ones right away.

One was an open port that didn't need to be open. Closed quickly, nothing exciting.

The other was much more interesting: a WordPress plugin that was no longer being updated properly through the usual channel. The plugin now has to be installed from a different source. Nothing in the WordPress backend hinted at this, everything looked normal there. Without ARTEX, I wouldn't have noticed. This is exactly the kind of thing that slips through in everyday operations: you rely on the update notifications, and if there's nothing there, everything is supposedly fine.

The medium and low findings were mostly the usual suspects: missing headers, information that doesn't need to be exposed, and the like. Not all of it is relevant, but none of it was completely made up.

Model and cost

I used DeepSeek v4.1 flash as the model, connected via the OpenAI-compatible endpoint.

LLM configuration with DeepSeek v4.1 flash

Token consumption for this single task:

Token consumption of the pentest run

54.9 million tokens for a single pentest run. That sounds like a lot, and it is. However, 94% of it came from the prompt cache; only 3.3 million input tokens were uncached, plus 1.5 million output tokens. With a cheap model like DeepSeek flash, the entire run cost me just under 2 euros. And that is exactly what makes me think: an automated pentest that discovers more than 180 assets and uncovers real vulnerabilities no longer costs consultant day rates, but less than a coffee.

Another aspect: everything ARTEX learns about the target system is sent to the LLM provider as context. Acceptable for my own systems in the homelab; for client systems you need to think very carefully about where the model runs.

My assessment

What impressed me most was the speed. As soon as the prompt was sent, the sub-agents split up the work and immediately started running in parallel. You can't even get through reconnaissance that fast manually. For just under 2 euros, I got an analysis of my entire environment, including a finding I wouldn't have discovered that quickly myself. On top of that, ARTEX works systematically and the UI makes it traceable which agent did what and when.

The downsides are just as clear, though. The Chinese skills and tool descriptions make a real review tedious; without a translator, you don't understand what instructions the agents are given. Then there's the question of trust: I'm running a Docker image from a fork of a deleted repository that can extend itself with new tools. That's why it runs isolated in its own LXC container on my side and nowhere else. The fork's more cautious defaults are well-intentioned but can be switched off in seconds, and everything ARTEX finds out about the target system ends up at the LLM provider. Smaller rough edges such as inconsistent language defaults, a too-high max_tokens value or the JWT key outside the volume also show that the project is still young.

Conclusion

ARTEX is not a toy. It shows quite clearly where we stand: automated, AI-driven attacks are no longer a thing of the future but available to anyone with an API key. The barrier to entry for attackers is dropping massively, and so are the costs.

For defenders, the flip side is: if you run systems, you should run a tool like this against your own infrastructure once, before someone else does. In my case, a single run uncovered two relevant vulnerabilities, one of which I very likely wouldn't have found without the tool.

Whether I'll keep using ARTEX, I don't know yet. The Chinese prompts make it too hard to follow what's going on, and my trust in the codebase is too low. But as an eye-opener, the experiment was worth every token.