Agentic security
Marvin maps itself to the OWASP Agentic Skills Top 10, one risk at a time, and names the check that runs for each. It is a map of controls, not a compliance claim: no badge, and a risk is marked partial while anything is left open.
The ten risks
Covereda check runs, nothing named is left open
Partiala check runs; a residual or follow-up is named
Openno check yet
| Risk | State | What it is | Check that runs | Follow-up |
|---|---|---|---|---|
| AST01 | Partial | Malicious skills: hidden payloads, piped installers, tampered identity and memory files. | The agentic lint (pipe-shell, auto-prereq, the hidden-content rules); the kit manifest drift line; one consent rule for memory and instruction stores. | AOS-359: no signing, no revocation. |
| AST02 | Partial | Supply chain: unpinned sources, configuration as code, secrets in files. | Lint unpinned-source, bypass-permissions, secret:*; the security validator reviews agent config as code (security.md); install and upgrade print a plan first. | AOS-359, AOS-360: unsigned tags, unpinned third-party sources. |
| AST03 | Partial | Over-privilege, and instructions smuggled in through content. | The persona scope hook (persona_scope); persona-tools in the static gate; a DATA: line in every brief; guardrails.md rows; git internals are agent config (no sub-agent writes a .git gitfile or anything under .git/, and a sub-agent's git config write is allowed only for inert keys; user git config, git init and clone --template, and every worktree's gitfile and .marvin/ count too; git's own output-file options (--output, format-patch -o, archive -o, bundle create) count as writes; git sparse-checkout is refused; if a tracked .marvin/PROJECT-INFO.md is missing, the hook acts as block); persona_scope is the stricter of every candidate project root. | AOS-362, AOS-365. File tools are fully checked; Bash is best-effort. |
| AST04 | Covered | Insecure metadata: invisible or smuggled text in prose and frontmatter. | Lint hidden-unicode, bidi, tag-chars, control-char, base64-run; the agentic-lint gate runs it on the kit's own files. | None. |
| AST05 | Partial | Untrusted external instructions: an agent told to follow a remote page. | The intake guide is inlined (intake-guide.md), the tracker copy is data; lint runtime-fetch for consumer skills. | Follow-up: solution research has no fetch or domain rule. |
| AST06 | Partial | Weak isolation: hosts, sandboxes, shadowed skills. | Codex write lanes run in a sandbox and only in a Marvin worktree (marvin-codex.sh); the persona scope limits each persona's paths. | AOS-363, AOS-364. Claude sub-agents have no container. |
| AST07 | Partial | Update drift: files that change without a reviewed update. | The kit manifest (marvin-kit-manifest.sh): hashes recorded at install and upgrade, one line at session start, Marvin asks before trusting a drifted file. | Automatic updates are opt-in, asked once, and the repo still changes only through the reviewed upgrade. Updates carry no signature check: AOS-359, AOS-381. |
| AST08 | Partial | Poor scanning: payloads written to slip past a scanner. | The lint runs before any model reads the change; one shared secret-pattern list; the Codex prompt is secret-scanned; reviewed text is data (agentic-skills.md). | Follow-up: wording with no pattern depends on the reviewing model. |
| AST09 | Partial | No governance: no inventory, audit trail or revocation. | The kit manifest is the inventory of kit files with version and hash; the install and upgrade plan is saved in a committed report. | AOS-366: no durable audit trail. Follow-up: no revocation path. |
| AST10 | Covered | Cross-platform reuse: controls lost when a skill moves to another agent. | One owner for the security checklist, shared by the Claude stage and the Codex lane; Codex lanes cite the guardrails baseline; the consumer guide says to re-validate a port. | None. A signed skill format is not adopted. |
Every check above is a script, a gate or a validator step in this repo. Details: agentic-skills.md, security.md, hooks. The security validator also applies CodeGuard when it is on.
How far the checks reach
- Persona scope, file tools: complete. Paths are case-folded, symlinks resolved, each path judged from the project root.
- Persona scope, Bash: best-effort. It matches literal names and write positions. A name built at run time inside an interpreter or a decoder passes.
- Persona scope, Bash limits: a command over 128 KiB, a name-checked heredoc body over 16 KiB, an over-long word that holds an expansion, or a command too complex to check within the time budget, is refused rather than checked in
blockmode, and only advised inadvisemode. - Not caught by the scope hook: a write target that exists only in an environment variable; a build-cache write; a link created in a temp folder.
- Repo-root search: a search from the repo root can still read a gitignored
.env. - The lint: without
python3the JSON rules fail closed, and exotic filesystem case-folding is not modelled. - Kit manifest: on Git Bash, and on macOS past about 1,500 files, the session-start check can outrun its two-second limit. It then prints one visible line, "Marvin kit-manifest check did not finish", and never blocks.
- Git history: a pulled or applied commit can change agent config; it leaves a commit trace.
- Git config includes: files your own git config includes, and a global hooks folder you already have, are not guarded.
- Older commits: checking out or resetting to a commit from before the install removes the settings; it leaves a trace in git.
Not covered yet
- AOS-359: signed tags and commits, release checksums or attestation.
- AOS-360: pin CodeGuard, the Codex plugin and the Codex CLI by hash.
- AOS-362: the questions write guard misses two write tools; its routing marker is unguarded.
- AOS-363, AOS-364: spoofable Docker labels; the legacy persona fallback.
- AOS-365, AOS-366: where the question HMAC key lives; a durable audit trail.
- AOS-381: a revocation path: withdraw a bad release and tell installed projects.
- No ticket yet: a fetch rule for solution research and the test-hardening gaps the build found.
The ten risks are the OWASP Agentic Skills Top 10 (AST01 to AST10), read at repository commit d6f7d7d, licensed CC BY-SA 4.0. Every risk line here is a paraphrase. The full audit is the committed report docs/decisions/2026-12-01-owasp-agentic-skills-top-10.md.