Verifies letters signed by other agents: a canonical field order, digest and HMAC checks, and fail-closed handling of missing or unregistered fields. Off by default; when enabled, a letter that fails any check is refused rather than delivered.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-whale-post-verify
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:deepsleepAquarium/dsh-whale-post#path:/packages/verify
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Security check (envelope signature verification + the roster allow-list); disabled by default, and while it is disabled it prompts you to turn it on, then stops prompting after three days straight
- Provides the interface:
whale.verify - Depends on the interfaces:
whale.bus(optional —— it borrows itsdigest/sign; if it cannot get them it uses its own built-in implementation) - Self-test:
node selftest.mjs(look only at the exit code: 0 pass / non-zero fail)
The interface carries apiVersion; the core knows no member name and no type identifier —— the roster and the types always come from the interface.
Three states (why disabled by default)
| State | Behaviour |
|---|---|
| Enabled | signature verification + allow-list; no prompt |
| Not enabled · days 1–3 | on every start (or once a day) it prompts: the security check is disabled, and it suggests turning it on so that an unknown agent cannot deceive or attack other agents, plus one line on how to turn it on |
| Not enabled · from day 4 on | no more prompts —— taken as the user insisting on working in an unsafe environment; but status() always shows enabled: false truthfully |
"No more prompts" ≠ "security turned off": turning enabled on at any time takes effect at once.
Interface
| Method | In one line |
|---|---|
verify(letter) → { ok, why?, skipped? } |
the core asks this one question only. While disabled it lets it through but with skipped: true (it is not allowed to pretend it verified); once enabled it is fail-closed |
nag() → string | null |
returns the wording when a prompt is due, null when it is not (the core does not have to understand the "three-day rule") |
status() → { enabled, dayIndex, willNag, … } |
the truthful status; enabled is always the truth |
enable() / disable() |
turn it on / off; the moment it is turned on leaves a trace in state/security-nag.json |
Configuration
| Field | Default | Meaning |
|---|---|---|
enabled |
false |
disabled by default (deliberately) |
allow |
[] |
the allow-list: the member ids that are allowed; an empty array ⇒ recipients are unrestricted |
nagDays |
3 |
after this many days straight it stops prompting |
dayBoundaryHour |
0 |
day boundary (0 = calendar day; write 9 and "9am to 9am the next day counts as one day") |
root |
WHALE_POST_ROOT / ./.whale-mail |
the mailbox root; the state is written to <root>/state/security-nag.json |
keyFile |
<root>/signing.key |
the shared key (32 bytes of hex) |
keysDir |
<root>/keys |
the per-device key directory; the key is looked up by the sender declared in the envelope, and with no dedicated key it falls back to the shared key |
Signature verification rules
- the signature domain is exactly the same as
dsh-whale-post-bus'sFIELD_ORDER(modeis in there too); - it borrows
whale.bus'sdigest/signfirst —— to guarantee "the same algorithm as the core, not each computing its own"; - once enabled it is fail-closed: a missing field / an unregistered field appearing / a body that does not match its digest / a signature that does not match / not on the allow-list ⇒ all refused.
Links
More in this category
kenryu42/cc-safety-net★ 2123
Pre-execution guard that blocks destructive Git and filesystem commands and access to secrets such as SSH keys and .env files before a tool call runs.
ADWMC/helm-d#helmd★ 1589
Security-analysis plugin for DeepSeek Harness: 33 tools spanning six security domains, evidence/reporting and toolbox, plus the case lifecycle, routing and tool ledger; a session-bound case workflow with an evidence chain, E-id validation and reproducible findings; 362 on-demand references; three hot-swappable persona profiles; and a four-tab workbench (armor / case / intercept / about) with case-state recovery after context compaction.
SeaOf0/dsh-redteam-model★ 934
Authorized-security DSH collection: nine work modes (redteam coordinator, pentest, code audit, binary analysis, attack-defense, AV evasion, incident response, cloud security, CTF solving) and fifteen runtime plugins, managed from a settings page with one-click deploy, install, update and uninstall.
toby-bridges/api-relay-audit★ 934
Runs local security audits of AI API relays and LLM proxies from DeepSeek Harness, producing Markdown reports for prompt injection, model substitution signals, tool-call rewriting, error leakage, stream integrity, and profile-gated Web3 risks.
howmp/dsh-pentest★ 624
Authorized pentest mode for DeepSeek Harness — exploration chain, assets and findings with a Web view.
Jueze-2019/dsh-redteam-mode#packages/redteam-bundle★ 316
Red-team engagement mode: send one target organization name; a planner session runs five execution roles (recon, asset triage, vulnerability discovery, exploitation, internal pivot) with configurable concurrency; preflight checks skills/resources; scoring uses four stages (recon, internet, boundary, internal) with server-side caps and privilege-wins dedup; findings stay in a local SQLite fact base. The persistent right-side console has nine pages and includes asset mapping, agents, sessions/tunnels, findings, score targets, reports, POC knowledge base and skill library. v0.15.2 adds automatic HTTP evidence/action records, batch ingest, scope check, tunnel pivot probe, data proof, cleanup ledger and T0-T3 asset admission to prevent scope drift. 59 redteam_* tools; 38 bundled skills.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.