Repository navigation
Configuration
dsh-redteam reads one loader row configuration. Defaults are conservative, dangerous values are validated
before they reach Docker or a process, and container settings apply only at creation. Full rationale:
docs/CONFIGURATION.md.
On this page: the loader row · engagement · Kali container · hardening · execution · browser · AI · OSINT gates · evidence · credentials · example profiles · verification.
cordis.patch.yml inserts one row into the profile. Edit it in the profile's
cordis.patch.yml (for example ~/.dsh/profiles/web/) and reload, or pass the values at install.
- insert:
- id: dsh-redteam
name: dsh-redteam
config:
defaultMode: default| Key | Type | Default | Meaning |
|---|---|---|---|
defaultMode |
safe | default
|
default |
Seeds the mode of a new engagement. default runs the full PTES chain inside the accepted RoE; safe gates exploitation-class actions on approval. A stored engagement keeps its own mode. Any other value falls back to default. |
publicBaseUrl |
string | "" |
Public origin used in OOB canary URLs. Empty uses the live Web origin; set https://host:port (or a path) when the target reaches DSH through a proxy or another hostname. |
| Key | Type | Default | Meaning |
|---|---|---|---|
dockerBin |
string | docker |
Docker command and optional prefix (for example sudo docker). Passed as argv, never through a shell. |
containerName |
string | dsh-redteam-kali |
Plugin-owned container name, labeled dsh.redteam=1. |
image |
string | kalilinux/kali-rolling |
Image used at creation and pull time. |
containerWordlistDir |
string | /opt/redteam/wordlists |
Directory inside the container that lists are synced into. |
allowHostFallback |
boolean | true |
Run tools already on the host PATH when Docker is unavailable. Install and remove never fall back. |
Consumed only at creation; recreating requires recreate, which refuses anything unlabeled.
| Key | Type | Default | Meaning |
|---|---|---|---|
hardened |
boolean | true |
Gates the capability flags and no-new-privileges. |
capDrop |
string[] | ["ALL"] |
Capabilities dropped. Names must match ^[A-Z][A-Z0-9_]*$. |
capAdd |
string[] |
NET_RAW, NET_ADMIN, CHOWN, DAC_OVERRIDE, FOWNER, FSETID, SETGID, SETUID, MKNOD
|
Added back after the drop: raw sockets plus what apt/dpkg needs. |
noNewPrivileges |
boolean | true |
Adds --security-opt no-new-privileges=true. |
init |
boolean | true |
Adds --init so PID 1 reaps orphans. |
pidsLimit |
integer | 2048 |
--pids-limit; 0..1000000, where 0 is unlimited. |
memory |
string | unset |
--memory, for example 512m or 2g. |
cpus |
string | unset |
--cpus, for example 2 or 1.5. Must be positive. |
tmpfs |
string[] | [] |
Extra mounts such as ["/tmp:size=512m"]; no traversal. |
| Key | Type | Default | Meaning |
|---|---|---|---|
execTimeoutMs |
integer |
900000 (15 min) |
Default budget per tool call; a call may pass a smaller value, hard ceiling one hour. |
approvalTimeoutMs |
integer |
300000 (5 min) |
How long a Safe-mode approval waits before it expires into a denial. |
maxAuditTail |
integer | 400 |
Audit entries in the live snapshot; the JSONL file keeps everything. |
maxDelegationDepth |
integer | 1 |
Worker delegation depth reported in the snapshot. |
| Key | Type | Default | Meaning |
|---|---|---|---|
browser.executable |
string | "" |
Chromium binary. Empty means discover: DSH_REDTEAM_CHROMIUM, Playwright cache, PATH. |
browser.maxSessions |
integer | 3 |
Concurrent sessions, clamped to 1..5. |
browser.idleTimeoutMs |
integer |
600000 (10 min) |
Idle sessions close themselves, clamped to 60 s..1 h. |
browser.headless |
boolean | true |
Headless mode; set false only on a watched machine. |
browser.noSandbox |
boolean | false |
Adds --no-sandbox; weakens Chromium's own sandbox. |
browser.width / height
|
integer |
1440 / 900
|
Viewport, clamped to 800..3840 and 600..2160. |
browser.autoDismissDialogs |
boolean | true |
Dismiss blocking JS dialogs so snapshot/eval cannot wedge; set false to inspect them manually. |
| Key | Type | Default | Meaning |
|---|---|---|---|
aiEnhancement.enabled |
boolean | true |
Turns the AI panel and the three wordlist tools off when false. |
aiEnhancement.provider |
string | "" |
Provider override; empty uses the Host default route. |
aiEnhancement.model |
string | "" |
Model override; empty uses the Host default route. |
aiEnhancement.maxCandidates |
integer | 300 |
Hard cap per generation, clamped to 20..1000. |
aiEnhancement.allowRemoteContext |
boolean | false |
When false, context needs consent:true or the drawer tick. |
scopeAI.enabled / provider / model
|
— | inherits | Per-feature override for the scope draft; unset keys inherit aiEnhancement. |
| Key | Type | Default | Meaning |
|---|---|---|---|
osint.osintAllowlist |
string[] | [] |
Restrict queries to approved domains, IPs and e-mail domains (max 200 entries). |
osint.approveLeakLookups |
boolean | false |
Enable breach/leak connectors after written authorization. |
osint.enableOnionFetch |
boolean | false |
Allow one explicit .onion fetch through a loopback Tor proxy. |
osint.leakBudgetPerHour |
integer | 20 |
Hourly leak-lookup budget, clamped 0..500. |
osint.darkwebBudgetPerHour |
integer | 10 |
Hourly dark-web lookup budget, clamped 0..200. |
osint.enforceOsintScope |
boolean | false |
Require a scope for every passive enrichment call; without one the call fails scope-required. |
osint.enrichmentDelayMs |
integer | 50 |
Pacing between enrichment provider calls, clamped 0..10000 (0 disables it). |
| Key | Type | Default | Meaning |
|---|---|---|---|
evidence.maxRecordBytes |
integer | 32 MiB | Per-record cap. |
evidence.maxSessionRecords |
integer | 5000 |
Records per session. |
evidence.maxPackageBytes |
integer | 256 MiB | ZIP package cap. |
evidence.listLimit |
integer | 200 |
Default page size for listings. |
fontPath (or report.fontPath) |
string | discovered | TrueType font embedded in PDFs; empty auto-discovers DejaVuSans. |
Keys are resolved first hit wins: the DSH credential service (ctx.credentials), then the process
environment, then $DSH_HOME/osint-keys.env (0600), then the plugin's keys object. Values never
reach the page, tool output, the audit trail or a report; set them from the OSINT drawer.
| Variable | Effect |
|---|---|
DSH_HOME |
Root of DSH state; the plugin writes under $DSH_HOME/redteam/. |
DSH_REDTEAM_CHROMIUM |
Chromium binary, checked before the Playwright cache and PATH. |
REDTEAM_DOCKER_TEST |
1 enables the opt-in live Docker test. |
OSINT_HASH_SALT |
Salt for subject hashes in OSINT audit records. |
TOR_SOCKS |
Loopback SOCKS endpoint for explicit onion fetches. |
SHODAN_API_KEY, VT_API_KEY, IPINFO_TOKEN, NVD_API_KEY, HUNTER_API_KEY, HIBP_API_KEY, ABUSEIPDB_API_KEY, OTX_API_KEY, SECURITYTRAILS_API_KEY, CENSYS_API_ID, CENSYS_API_SECRET, FOFA_EMAIL, FOFA_API_KEY, ZOOMEYE_API_KEY, GREYNOISE_API_KEY, EMAILREP_API_KEY, DEHASHED_API_KEY, LEAKCHECK_API_KEY, INTELX_API_KEY, SNUSBASE_API_KEY, LEAKIX_API_KEY, BREACHDIRECTORY_API_KEY, URLSCAN_API_KEY, GITHUB_TOKEN
|
OSINT credentials when the credential service is not used. |
# strict: keep SAFE, no host fallback, long approval window, no model context
defaultMode: safe
allowHostFallback: false
approvalTimeoutMs: 600000
aiEnhancement: { allowRemoteContext: false }# lab box with limited resources
memory: 4g
cpus: "2"
tmpfs: ["/tmp:size=1g"]
browser: { maxSessions: 1, idleTimeoutMs: 300000 }# CI: no browser UI and no model
allowHostFallback: false
aiEnhancement: { enabled: false }
browser: { headless: true }curl -s http://127.0.0.1:3080/dsh-redteam/health | jqThe payload reports ok, version, revision, routes and the effective defaultMode,
containerName, image, allowHostFallback and phase ids; each run reports its actual runtime.
- Kali toolbox — container defaults in practice
- OSINT — key resolution and safety gates
- Wordlists — AI generation limits
- Scope and safety — modes and approvals
- docs/CONFIGURATION.md
dsh-redteam is MIT licensed. Use it only against systems you are authorized to test. — Report a vulnerability · Issues
dsh-redteam
Start here
Reference
- Agent tools
- Configuration
- Kali toolbox
- Wordlists
- OSINT
- Web and API testing
- Exploitation loop
- Team and planning
- Evidence and reports
- Scope and safety
- Resources
- Architecture
Operations
Project