Using DSH Purge with ARTEX
ARTEX is an open-source AI autonomous penetration-testing system. DSH Purge doesn't ship inside it — instead, you point ARTEX's LLM backend at a DeepSeek Harness you prepare with dsh-purge, so the agent's reasoning runs through a host layer you fully control and can study.
⚠ Authorized, local evaluation only — both tools
ARTEX runs real tools (Kali / Bash / HTTP) under agent control. Its own project states it is "for personal study, code research, and local technical validation only; it must not be used to launch actual tests against any online system or website." DSH Purge is likewise local, reversible and authorization-gated. Combine them only against targets you own or have explicit written permission to test, in an isolated lab. You are responsible for staying inside that scope and the law.
What ARTEX is
ARTEX (github.com/RuoJi6/ARTEX) is an LLM multi-agent autonomous pentest platform — a Go backend with a Next.js frontend. Agents plan attack paths, run real tooling, record every step, and support human-in-the-loop chat. It is an open-source continuation of Autumn-27/ARTEX, maintained by ChainReactors and licensed AGPL-3.0.
Dual-graph model
A global asset graph plus a per-task exploration graph, linked by anchors, so multi-step attack chains keep context across agent wake-ups.
Planner / worker loop
An event-driven planner and workers share a todolist, with worker-to-worker trace search so one agent can read another's steps.
Approval & intercept gate
Tool calls can be gated for human approval, and MITM traffic is recorded with a CA — you watch and can stop what the agent does.
Findings & reports
Deduplicated findings roll up into unified vulnerability reports, with a manual retest workflow and one-click backup / restore.
Where DSH Purge fits
ARTEX is the body — it orchestrates agents and runs tooling. The brain is whatever LLM you give it: ARTEX takes an Anthropic or OpenAI key out of the box, and also accepts any OpenAI-compatible endpoint through ARTEX_LLM_PROVIDER, ARTEX_LLM_MODEL and ARTEX_LLM_BASE_URL.
DSH Purge assists ARTEX at that brain boundary. On a DeepSeek Harness you administer, dsh-purge makes the harness's own policy layer — prompt rewriting, approval gates, tool limits — observable and testable. Front that Harness-mediated model as an OpenAI-compatible endpoint and point ARTEX at it, and you can measure how each host-layer rule set changes an autonomous agent's decisions, not just a single chat turn.
In one sentence
Run ARTEX in your lab, serve its reasoning model through a DeepSeek Harness you've prepared with DSH Purge, and study how harness-layer policy shapes the agent — end to end, under your approval gate.
Set it up in your lab
Install ARTEX locally
You need PostgreSQL and an LLM key. The recommended path:
shellgit clone https://github.com/RuoJi6/ARTEX.git cd ARTEX ./install.sh
Or with Docker:
cp .env.example .envthendocker compose up -d(imageruoji6/artex). Openhttp://localhost:8787and set the admin password at/setup.Prepare the DeepSeek Harness with DSH Purge
On the Harness you administer, install DSH Purge, then Apply and pick a rule set:
terminaldsh-purge --apply # in chat: /rules use <id>
This is where you decide which host-layer policy the agent will run under. See Usage & CLI for the full command surface.
Expose the model your Harness serves
Put an OpenAI-compatible endpoint in front of the model as mediated by your prepared Harness (your own proxy or gateway, bound to localhost). Keep it on the same isolated machine or network as ARTEX.
Point ARTEX's LLM backend at it
Set ARTEX's provider variables to that endpoint instead of a public API:
envARTEX_LLM_PROVIDER=openai ARTEX_LLM_BASE_URL=http://127.0.0.1:<your-harness-gateway-port>/v1 ARTEX_LLM_MODEL=<model-id-your-gateway-exposes>
ARTEX's agents now reason through your DSH-Purge-prepared Harness.
Run against authorized targets, gate every call
Point ARTEX at a lab target you own or are authorized to test. Keep its approval / intercept gate on so you review tool calls, and compare agent behavior across DSH Purge rule sets.
The knobs you'll touch
| Setting | Side | What it controls |
|---|---|---|
ARTEX_LLM_PROVIDER | ARTEX | Which backend ARTEX talks to (set to an OpenAI-compatible provider). |
ARTEX_LLM_BASE_URL | ARTEX | The endpoint URL — point this at your local Harness gateway, not a public API. |
ARTEX_LLM_MODEL | ARTEX | The model id your gateway exposes. |
dsh-purge --apply | DSH Purge | Apply the patch set to the local Harness so its policy layer is testable. |
/rules use <id> | DSH Purge | Activate a host-layer rule set — the variable you're actually evaluating. |
Not a shipped integration
ARTEX and DSH Purge are independent projects by different authors; neither bundles the other, and the gateway in step 3 is yours to provide. This page describes a research workflow for an isolated lab, not a supported product feature. Verify both projects' own docs — and licenses (ARTEX is AGPL-3.0) — before you rely on anything here.
Reference links
- ARTEX repo. github.com/RuoJi6/ARTEX — install, config and full README.
- ARTEX demo. artex-demo-ruoji6.vercel.app — see the console before installing.
- Upstream. github.com/Autumn-27/ARTEX — the original project ARTEX continues.
- Maintainer. ChainReactors — the team maintaining the open-source version.
- DSH Purge repo. github.com/YuJunZhiXue/dsh-purge — the plugin and its CLI.
Prepare your Harness, then wire in ARTEX
Install DSH Purge on the Harness you administer, choose a rule set, then point ARTEX's LLM backend at it — all inside an authorized, isolated lab.