Repository navigation
dsh-redteam 1.0.0
Red Team workbench for DeepSeek Harness — PTES engagement engine, live attack graph, Kali toolbox, browser and API testing, evidence vault and English/Russian reporting in the native sidebar.
Install
git clone https://github.com/sm0k3net/dsh-redteam.git
cd dsh-redteam
dsh plugin --profile web add "$PWD"Highlights
- 38
pentest_*agent tools with RoE, scope and Safe-mode approval gates - Operator-only RoE acceptance, mode switch and approval resolution
- Hardened plugin-owned Kali container, plus a clearly marked degraded host mode
- Real Chromium sessions, bounded HTTP assessment, API discovery and controlled fuzzing
- Immutable, SHA-256 evidence vault and ZIP hand-off packages
- Reports in Markdown, HTML, JSON, PDF and slides, in English and Russian
- No runtime dependencies; 361 tests, CI green
Documentation
Full changelog
First public release. dsh-redteam is a complete Red Team workbench for DeepSeek Harness:
38 agent tools, a native right-sidebar panel, scope and approval enforcement, a Kali toolbox, a
real browser, API testing, an evidence vault and multi-format reporting — with no runtime
dependencies.
Added
Engagement engine and graph
- PTES phase engine over nine phases with one-step-forward gating, free backtracking, per-phase
tools and workers, and mandatory reasons for skipped or blocked phases. - Engagement store per DSH session under
$DSH_HOME/redteam/, atomic JSON writes and an
append-only JSONL audit trail. Goal → Intent → Fact → Finding → Assetgraph withspawns,yields,derived_from,proves
andparentedges, rendered live and inspectable down to the tool run behind a node.- Completion checklist: every non-reporting phase must be done or skipped with a reason before an
engagement can be closed.
Authorization and safety
- Rules of Engagement acceptance, scope editing and mode switching are operator-only actions
enforced in the Host; the agent has no path to them. - Safe mode by default:
exploitation,privesc,lateral,exfiltration,credentialand
credential_dumpcategories block on an approval card with approve-once, approve-for-phase and
deny outcomes, and an expiry. - Category escalation is one-way: a caller may raise a tool's severity class, never lower it.
- Scope validation for execution, browser navigation, HTTP, API discovery/requests/fuzzing and
OSINT, with exclusions winning, overlapping CIDR exclusions refused, and cloud metadata
endpoints always blocked. - Browser navigation restricted to
http(s), with top-level document requests intercepted so a
redirect cannot leave scope.
Execution
- Plugin-owned
dsh-redteam-kalicontainer created hardened: all capabilities dropped, only
NET_RAW,NET_ADMINand the seven apt/dpkg capabilities added back,no-new-privileges,
--init, PID limit, restart policy and adsh.redteam=1label. - Curated catalogue of 31 security tools plus
apt-cachesearch, install and remove inside the
container; the host is never touched byapt. - Degraded host mode with an explicit runtime badge when Docker is unavailable.
- Safe process handling: argv arrays, no shell interpolation, output caps, timeouts, and a kill
control for runaway runs.
Web and API testing
- Isolated Chromium sessions over the DevTools protocol: navigate, DOM/form/link/script snapshot,
click, fill, submit, keys,eval, screenshots, cookies, storage, network and console — each
session a separate process with a temporary profile. pentest_web_assess: headers, cookie flags, form/CSRF heuristics, technology and endpoint
extraction, and safe probes for exposed.git/HEAD,.envand/server-status, mapped to WSTG
and OWASP with the exact evidence.- API discovery from OpenAPI/Swagger, GraphQL introspection, browser-observed traffic, JavaScript
bundles and a bounded path probe; endpoints become assets. - Single scoped API requests with manual redirects, body caps and credential redaction.
- Controlled fuzzing for nine payload categories across query, path, body and header locations,
with rate limiting, bounded concurrency and anomaly detection against a benign baseline.
Knowledge
- Bundled methodology data: PTES, OWASP WSTG v4.2 (97 tests), OWASP Top 10 for Web, API, LLM and
Mobile, NIST SP 800-115, CWE (62) and MITRE ATT&CK (57 techniques), queryable by the agent. - Nineteen OSINT connectors with key resolution through the DSH credential service, the
environment or a 0600 env file; results become facts, keys never leave the Host.
Wordlists
- Eight bundled compact categories (directories, DNS, passwords, usernames, LFI, SQLi, XSS, API
endpoints) derived from SecLists, plus operator uploads and per-runtime path resolution. - AI-enhanced wordlists through the Host model route with a consent gate for engagement context,
strict validation, deduplication, hit/miss feedback and local adaptation from real tool output.
Evidence and reporting
- Immutable evidence vault: SHA-256 per record, session manifest plus append-only JSONL, redaction
of authorization/cookie/token values, per-file download and a ZIP package withmanifest.json,
README.txtandsha256sums.txt. - Automatic capture of tool output, browser screenshots, HTTP exchanges, API inventories, web
assessments and OSINT results, linked to the nodes they prove. - Reports in Markdown, self-contained HTML, JSON, PDF (dependency-free writer with an embedded
TrueType font, Latin and Cyrillic) and a Markdown slide outline; English and Russian; evidence
register and audit appendix; draft marking until closure.
Panel
- Native right-sidebar tab with six tabs (Flow, Activity, Findings, Assets, Report, Audit) and nine
drawers (Scope & RoE, Tool manager, Wordlists, OSINT, Web test, API test, Evidence, Approvals). - Light, dark and system themes from Host tokens, English and Russian UI, accessible modals, error
boundaries per tab, and layouts verified at 820 px and 430 px.
Quality
- 361
node:testcases covering the store, engine gates, tool schemas, wordlists and AI
generation, OSINT normalization, methodology data, evidence, report formats and the PDF writer,
client widgets and browser flows; one opt-in live Docker test. - CI that rebuilds the client artifact and fails on drift, syntax-checks both entries and runs the
suite on Node 20 and 22.
Security
- Path guards on every file the HTTP bridge serves or accepts, resolved with
realpathand
confined to the plugin's own directories. - Bounded bodies, bounded errors, method allowlists per route and an Origin/Host check for
mutations. - Credential, token and cookie values redacted from tool output, HTTP results, evidence text and
audit records.
Use only against systems you are authorized to test.