DSH Plugin joker553/dsh-artex-ops: A Conversational ARTEX Penetration Orchestration Layer

Introduction

When using DSH for penetration testing orchestration, you often need to solidify the state and workflow of “planner emits intent → executor runs one step → writes back to the graph → replans.” If these states are scattered across different processes or tools, multi-worker collaboration, evidence chain tracing, and coverage statistics all become difficult. joker553/dsh-artex-ops turns ARTEX’s penetration orchestration layer into a portable state layer: a DSH plugin, a standalone CLI, and an MCP server, all sharing the same engine and the same on-disk state.

Plugin Positioning

joker553/dsh-artex-ops is a DSH workflow plugin, version 2.5.0. It materializes ARTEX’s orchestration logic as 27 tools, usable in DSH Runtime conversations, any shell / agent harness, and via Claude Desktop / Cursor / Codex / DSH’s dsh-mcp-client.

Core Features

The plugin provides three entry points that share the same engine and state.

  • DSH plugin: After installing via node install.mjs, invoke pt_* tools directly in DeepSeekRuntime conversations.
  • CLI: node bin/artex-ops.mjs <cmd> — usable in any shell, script, cron job, or CI pipeline.
  • MCP server: node bin/artex-ops-mcp.mjs (stdio JSON-RPC), callable from Claude Desktop / Cursor / Codex or DSH’s dsh-mcp-client.

State defaults to ~/.dsh/artex-ops; it can be overridden via the environment variable ARTEX_OPS_HOME or --data/config.dataDir. The three entry points recognize each other’s state, so switching entry points does not affect progress.

The plugin uses only Node built-in modules with zero third-party dependencies, and can run on any machine with DSH installed.

27 Tools

Tools are grouped by function: loop skeleton, attack chain / facts, and OOB / identity / defense / candidates.

Loop Skeleton (ARTEX Core)

Tool Purpose Hard Constraint
pt_next What to do this round: decision + concrete action (with tool name and parameters) Computed by the state machine, not relying on model self-discipline
pt_mission start/state/prove/report/stop: goal, scope, constraints, acceptance criteria, report prove requires evidence; rejected if unresolved intents exist
pt_intent add/claim/done/list: intent queue, one at a time claim with an existing running intent returns the same one; done counts actual write-back volume, 0 write-back is called out by name
pt_asset add/list/mark: asset ground-truth store (7 node types + attributes + tested flag) Feeds coverage into pt_next judgment
pt_finding add/list/state: confirmed vulnerabilities (severity + evidence) Rejected without evidence; all suspicious items go to the candidate queue
pt_trace add/search/get/list: process-level exchange between workers (what was tried, what was returned, including dead ends and errors) search requires q; excludeIntent excludes your own entry; write-back with worker auto-records a step
pt_worker brief (generates a job brief for a sub-agent) / status (who claimed what, how many steps, silent for how long) / reap (return zombie workers’ intents to the frontier) Sub-agents are workers; reap only touches running
pt_graph nodes/coverage/edges/anchors/around: dual-graph queries — asset containment edges, exploration lineage, anchors, coverage (denominator = authorized scope) Read-only; around requires assetId or node
pt_hint add/list/address: user’s original wording as a hint node (does not enter the frontier, enters pt_next; assets mentioned in text auto-get anchors) Hint is considered “picked up” only when hintIds are included during intent dispatch
pt_goal add/list/prove: decompose the goal into independently verifiable sub-goals, prove them one by one pt_mission prove is rejected until all are achieved (a single derived goal can be settled with mission evidence)
pt_coverage taxonomy/matrix/next/stats/mark: asset × vulnerability-type matrix (10 categories / 64 types), each cell can be tested/na/testing pt_next must not converge while uncovered cells exist; na requires a reason

Attack Chain / Facts

Tool Purpose Hard Constraint
pt_chain_plan Create/modify attack chain (≤24 steps, each with pre/post assertions) Replanning a same-named step preserves completed status
pt_chain_advance Advance to next step and verify post Assertion failure returns missing and does not advance; force only records unverified
pt_fact_add / pt_fact_list Fact board (label + evidence + observed/inferred) Same label merges
pt_evidence_save Persist evidence + sha256 Body must be non-empty

OOB / Identity / Defense / Candidates

Tool Purpose Hard Constraint
pt_oob_new / pt_oob_poll / pt_oob_payload Probe points, callbacks, 8 families of ready-to-use payloads Callbacks auto-attributed; unmonitored protocols noted
pt_cred add/list/show: passwords/cookies/JWT/SSH keys/hashes/tokens List returns masked values only; plaintext only via show
pt_defense note/list/matrix: WAF profile + 6 variant families (sorted by WAF) Do not resend the same payload
pt_candidate add/list/verdict: candidate vulnerability queue confirmed requires evidence or a connected oobId

Chain assertion syntax: fact:<label>, oob:<id|token>, cred:<host>, defense:<host>, candidate:<id>:confirmed; prefix ! means the item must not exist.

Installation & Activation

Clone the repository from GitHub, then run the install script.

git clone https://github.com/joker553/dsh-artex-ops.git
cd dsh-artex-ops
node install.mjs                 # Auto-detects DSH home / profile, installs package + bundles + writes patch + installs skills

The install script automatically performs the following (all with backup first):
- Copies the package to <dshHome>/plugins/dsh-artex-ops
- Places a copy or symlink in the profile’s node_modules
- Modifies package.json (dependency + dsh.profile.bundles)
- Writes an insert block marked with >>> dsh-artex-ops managed block <<< into cordis.patch.yml (idempotent on re-run)
- Syncs the artex-ops skill to <dshHome>/skills

Plugin code changes require a host restart to take effect (ESM module cache); config/patch-only changes can be hot-reloaded via dsh-hmr.

After installation, all three entry points are available.

Typical Usage

In a DSH Runtime conversation, you can use pt_mission to define tasks, pt_next to obtain decisions, pt_intent to claim and complete intents, pt_fact_add/pt_asset/pt_finding/pt_evidence_save to record and solidify evidence, and pt_candidate to manage candidate vulnerabilities.

Example flow (pseudocode):

# 1. Define the mission
pt_mission start(goal="Gain admin access or prove it's not possible", scope="http://demo.test", constraints="Authorized targets only")

# 2. Get this round's decision
pt_next → decision=plan (3 untested assets)

# 3. Add intents
pt_intent add [test /api auth, test /upload validation]

# 4. Claim and execute
pt_intent claim → intent-5
bash: curl -s http://demo.test/api/v1/users
pt_fact_add(observed) + pt_asset mark(tested)
pt_intent done → writes {facts:1}

pt_intent claim → intent-6
bash: Upload probe + attempt read-back
pt_candidate add(upload→RCE) → read-back not executed → verdict=refuted
pt_intent done → writes {facts:2}

# 5. Confirm a finding
pt_finding add(unauthenticated disclosure, high, evidence) + pt_evidence_save

In the CLI, you can use pt_next/pt_mission and other commands combined with scripts for orchestration; in the MCP server, the same tools are invoked via JSON-RPC.

Applicable Scenarios & Notes

  • Suitable for authorized penetration testing, red team exercises, CTF, and self-owned ranges.
  • Users must verify their own authorization scope and local laws, and bear all consequences of use; the author provides no warranties.
  • The plugin runs with the current DSH process permissions; review the source code and license before installation.
  • Requires Node 20+ with DSH installed (@deepseek-ai/dsh >=0.2.0-rc.1 <0.3.0-0).

Conclusion

joker553/dsh-artex-ops solidifies ARTEX’s penetration orchestration layer into a portable state layer, sharing state and workflow across DSH plugin, CLI, and MCP server through a unified set of 27 tools. If you need to implement the “planner emits intent → executor runs one step → writes back to the graph → replans” closed-loop orchestration within the DSH ecosystem, give this plugin a try.

  • Directory page: https://www.skillhub.cn/plugins/joker553/dsh-artex-ops
  • GitHub: https://github.com/joker553/dsh-artex-ops
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye