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

  1. Install ARTEX locally

    You need PostgreSQL and an LLM key. The recommended path:

    shell
    git clone https://github.com/RuoJi6/ARTEX.git
    cd ARTEX
    ./install.sh

    Or with Docker: cp .env.example .env then docker compose up -d (image ruoji6/artex). Open http://localhost:8787 and set the admin password at /setup.

  2. Prepare the DeepSeek Harness with DSH Purge

    On the Harness you administer, install DSH Purge, then Apply and pick a rule set:

    terminal
    dsh-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.

  3. 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.

  4. Point ARTEX's LLM backend at it

    Set ARTEX's provider variables to that endpoint instead of a public API:

    env
    ARTEX_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.

  5. 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

SettingSideWhat it controls
ARTEX_LLM_PROVIDERARTEXWhich backend ARTEX talks to (set to an OpenAI-compatible provider).
ARTEX_LLM_BASE_URLARTEXThe endpoint URL — point this at your local Harness gateway, not a public API.
ARTEX_LLM_MODELARTEXThe model id your gateway exposes.
dsh-purge --applyDSH PurgeApply the patch set to the local Harness so its policy layer is testable.
/rules use <id>DSH PurgeActivate 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

cybersecurityARTEXautonomous pentestlocal labAGPL-3.0authorized use
Get started

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.