Skip to content
Back to skills

Nexus Security Invariants

ASecurity

The nine nexus security invariants as a review checklist, with what to refuse to implement. Use before and after changing vaultd, the gateway, egress, tokens, receipts, approvals, taint, skills, the learning plane, connectors, the console, the CLI, or anything that touches secrets, money, trading or goal intake.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsrustgoshellapisecurity

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add prasadm1022/hades-vault --skill nexus-security-invariants --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nexus Security Invariants?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nexus Security Invariants
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/prasadm1022-nexus-security-invariants/badge)](https://www.skillsdirectory.com/skills/prasadm1022-nexus-security-invariants)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nexus-security-invariants
description: The nine nexus security invariants as a review checklist, with what to refuse to implement. Use before and after changing vaultd, the gateway, egress, tokens, receipts, approvals, taint, skills, the learning plane, connectors, the console, the CLI, or anything that touches secrets, money, trading or goal intake.
license: MIT
version: 0.1.0
---

# Security invariants

Never break these. If a task seems to need it, stop and report; do not work around it. The reasons and enforcement points are in `knowledge/policies/security-invariants.md`; the attack catalogue is `knowledge/security/threat-model.md`.

## The checklist

| #   | Invariant                                                                                                                                              | Ask of the change                                                                                                              |
| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| 1   | The runtime never holds a secret. It holds handles (`hv-secret://`); vaultd injects at the last hop                                                    | Can any code path outside vaultd read, list, log, return or serialise a secret value or key?                                   |
| 2   | Permissions only narrow: effective grant is the intersection of every layer. Learning never widens hands                                               | Can a skill, lesson, HR action, role template or config add a tool, host, root or class an employee lacked?                    |
| 3   | Every external write needs a single-use receipt bound to `hashArgs(tool, args)`                                                                        | Is there a write that skips the gateway, or a receipt that can be reused, reused with other args, or held by the runtime?      |
| 4   | Money, trading, credentials, cloud resources, publishing and irreversible actions need a human-approved card. Never auto-approve. Cards expire to deny | Is there any flag, default, timer, retry or agent-reachable path that approves a reserved action, or treats expiry as consent? |
| 5   | Outside content taints the run. A tainted run loses reserved classes. Only a human clears taint                                                        | Does new input (web, file, MCP output, model text, coding-agent goal) enter without a taint label? Can code clear taint?       |
| 6   | Goals from coding agents are drafts. Approval happens only in the vault console with a presence check                                                  | Can anything a coding agent calls confirm, approve or sign off?                                                                |
| 7   | Skills are hash-pinned, signed and scanned. Quarantined skills get no tools and no network. Agents never hold signing keys                             | Is a skill loaded without hash, signature and scan? Does quarantine yield an empty grant layer? Can an agent sign?             |
| 8   | Fail closed. No secret value in any log, error, trace or test snapshot                                                                                 | What happens on unknown tool, unknown class, parse failure, vaultd unreachable? Do messages or snapshots carry values?         |
| 9   | Trading is paper only. Nothing routes a live order                                                                                                     | Does any code reach a broker order endpoint, hold withdraw-capable keys or flip a paper flag?                                  |

## Refuse to implement

- A way for the runtime, a skill, a pack or a connector to read a secret value, or an API that lists secret values.
- A receipt that the runtime can mint, hold, pass around or present. The runtime names an approved card; the gateway redeems it.
- `autoApprove`, "approve all", a default-allow for an unknown tool or class, or a timeout that approves.
- Approval through chat text, a tool result, a coding-agent call or any channel other than the console.
- Clearing or lowering taint from agent-reachable code, or labelling outside content as clean.
- Any widening of a grant by learning, a skill, HR or configuration.
- Loading an unsigned, unscanned or revoked skill; a quarantined skill with tools or network; signing keys readable by an agent.
- Direct network access that skips the egress broker (`fetch`, `http`, `net`, shell `curl`) from the runtime, packs or connectors.
- Logging or returning tokens, secrets, authorization headers, raw arguments or full request bodies.
- Floating-point money, a second hashing scheme for receipts or the audit chain, or non-constant-time comparison of secrets and MACs.
- Anything that sends an order to a broker, or holds a key that can withdraw funds.
- Dynamic code execution (`eval`, `new Function`) or shell strings built from untrusted input.

## How to review

1. List the entry points the change adds or alters. For each, ask what a hijacked model, hostile content or a malicious skill would do with it.
2. Trace secrets, tokens and approvals through the change. Look for a second path around the gateway.
3. Check failure paths: unknown input, oversize input, concurrent use, replay, expiry, clock skew, partial writes.
4. Check the tests. Abuse cases need tests, not only the happy path. Expect: replayed receipt, swapped arguments, tainted run asking for a reserved class, expired card, path traversal, planted secret in output.
5. Check the docs: the ticket status is honest, the README names gaps, the threat model row still holds.

## Reporting

Report findings with severity, the invariant or threat id, file and line, the exploit in two sentences, the fix and the test to add. Say what you did not check. An internal review is not a substitute for the external review the project still needs.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.