aomi-build Security Posture
This document maps the aomi-build skill against OWASP Agentic Skills Top 10 (v1.0, March 2026) and records the controls in place for each risk. Reviewers can audit the per-control claims against the live SKILL.md frontmatter, the references, and the captured scanner reports under .scanner-reports/aomi-build/.
Last reviewed: 2026-07-05 against aomi-sdk v3.0.1 and current aomi-build CLI source.
Threat model
aomi-build is a procedure for an AI agent to scaffold new Aomi app crates from API docs, OpenAPI/Swagger specs, SDK docs, repository examples, endpoint notes, runtime interfaces, or product requirements. The skill writes Rust source files (lib.rs, client.rs, tool.rs, Cargo.toml) inside an aomi-sdk-shaped workspace and runs cargo + git commands to compile and track the new crate. It does not move funds, sign transactions, custody secrets, or make network calls of its own. It is correctly classified as risk_tier: L1 (low) under the OWASP universal manifest schema.
The principal harm path the skill must guard against is scaffolding code that, when later compiled and run by the user, exfiltrates data or executes attacker-controlled logic. The OWASP permissions: manifest, the explicit build.rs deny-write entry, the no-network policy, and the documented "do not embed credentials in scaffolded source" rule all target this path.
Controls by AST risk
AST01 — Malicious Skills
Risk: A skill is published that hides an exfiltration / drain payload behind benign-looking documentation.
Controls in place:
- The skill is published from
aomi-labs/skillsunder MIT license; provenance is verifiable viagit logand the GitHub repo signing keys. - The skill body (
SKILL.mdplusreferences/,templates/,agents/) contains no executable code beyond thetemplates/quick-scaffold.shshell wrapper and shell snippets in documentation. The wrapper is human-auditable (~157 lines, no minification, no eval/exec, no curl-pipe-bash). - All shell snippets in
references/*.mdare documentation, not executed by the skill itself. The skill's actual operational scope is constrained tocargo <subcommand>andgit <subcommand>per thepermissions.shelldeclaration. - No network calls outside the declared
permissions.network.allowlist (which is empty — the skill is fully offline). - Open: signed releases (sigstore /
gh attestation) are not yet wired up. Tracked separately at the repo level.
AST02 — Skill Injection / Tampering
Risk: A modified skill is loaded from an untrusted source; tampering goes undetected.
Controls in place:
- Canonical source is the
aomi-labs/skillsGitHub repo. Tags are not yet signed; users who care about integrity should pin to a commit SHA and verify against the upstream repo. - The
permissions.files.deny_writelist (SOUL.md,MEMORY.md,AGENTS.md) blocks the skill from rewriting agent identity files, which is the canonical injection target. - The same
deny_writelist also includesbuild.rs— Rust build scripts run user-supplied code at compile time, and a tampered skill could otherwise scaffold a malicious build script that runs the first time the user typescargo build. - Open:
gh skillrepo / ref / tree-SHA frontmatter pre-population is on the release checklist (seedocs/todoitem #8) but not yet landed.
AST03 — Over-Privileged Skills
Risk: A skill declares broad permissions (shell: true, network: true) it doesn't actually need; an injection prompt later abuses the privilege.
Controls in place:
- A complete OWASP-format
permissions:manifest is declared inSKILL.mdfrontmatter:files.read:./and../aomi-sdk/only — the project the user is working in plus the upstream SDK checkout for pattern reference. No reads under~/.ssh/,~/.aws/,~/.config/, or other credential paths.files.write: scoped toapps/, workspaceCargo.toml,Cargo.lock, andtarget/within the project root. The skill never writes outside the workspace.files.deny_write: identity files (SOUL.md,MEMORY.md,AGENTS.md) plusbuild.rs(Rust build scripts run code at compile time and are not part of the canonical Aomi app shape).network.allow: []andnetwork.deny: "*"— the skill makes no network calls. Spec / docs URLs that the user references are fetched out-of-band by the user (or via the agent'sWebFetchoperating outside the skill's operational scope) and pasted into the conversation.shell: array form with two argv prefixes (cargo,git). Spec example uses boolean; the array form is a least-privilege extension consistent with AST03 intent.tools: []— no MCP / external tool surface.
- Claude Code's
allowed-toolsfield is set toBash, Read, Write, Edit, Grep(sufficient for scaffolding) and the OWASP manifest provides the actual operational lockdown as defense-in-depth.
Verification:
Cisco AI Defense skill-scannerv0.x — 0 findings,Status: SAFE. Report:.scanner-reports/aomi-build/cisco-ai-defense.md.NMitchem/SkillScan— Risk 0.0/10, 0 findings,PASS. Report:.scanner-reports/aomi-build/skillscan.txt.
AST04 — Skill Confused Deputy
Risk: A skill's identity is reused for a privileged action the user didn't authorize.
Controls in place:
- The skill is scaffold-only by default. It does not run scaffolded code automatically. The standard validation loop (
cargo build,aomi-build compile, orcargo run -p aomi-sdk --features cli --bin aomi-build -- compile) is invoked only when the user has asked for it and reviewed the scaffolded files. - The skill explicitly forbids fabricating endpoints, auth flows, or contract addresses the source material does not document — surfaced in the SKILL.md description and in
references/spec-to-tools.md("Find The Real Integration Target", "Builder-oriented fallbacks"). - For execution-oriented apps that hand off to the host wallet, the skill teaches
ToolReturn::with_routesover prose-basedSYSTEM_NEXT_ACTIONhints. The runtime resolves routes mechanically; the skill cannot smuggle non-self recipients past simulation by reformulating prose. Seereferences/host-routes.md.
AST05 — Skill Side-Effects / Hidden Actions
Risk: A skill performs persistent state changes that survive the session without the user's knowledge.
Controls in place:
- File-system writes are scoped to the user's workspace (
./apps/, workspaceCargo.toml/Cargo.lock,target/). The skill never writes to~/.config/,~/.aomi/, or other system locations. - Workspace
Cargo.tomlchanges, when needed, are observable viagit diffbefore commit. cargo buildandaomi-build compileproduce output undertarget/andplugins/, which are normal build/plugin artifacts. No persistent change escapes the project tree.git add apps/<name>/Cargo.toml(run bytemplates/quick-scaffold.shonly when the user opts into it) only stages, never commits. The user makes the actual commit.- Read-side tooling (
cargo metadata,git ls-files,git status) is non-destructive.
AST06 — Insecure Skill Communication
Risk: A skill exfiltrates data through a side channel (logging, telemetry, off-domain HTTP).
Controls in place:
- The skill makes no direct network calls.
permissions.network.allow: []anddeny: "*"are declarative; scanners verify no HTTP/fetch/url patterns appear in the skill body or templates. cargo buildmay fetch crate dependencies fromcrates.ioas part of the user's local Cargo configuration. The skill does not modify that configuration — it relies on whatever registry the user has set up. Users in air-gapped environments (vendored deps, local registry) work without modification.- The skill never embeds credentials in scaffolded source files. Auth resolution patterns (
resolve_secret_valueintool.rs) read from explicit tool arguments first, then fall back to environment variables — the same pattern shown inreferences/examples.md"Example 1" using theapps/binancereference. - No telemetry, no logging to remote endpoints, no analytics.
AST07 — Inadequate Logging / Auditability
Risk: A skill takes actions that cannot be reconstructed after the fact.
Controls in place:
- All file writes are observable via
git status/git diffbefore commit. The user reviews the scaffolded code before running it. - All shell invocations (
cargo run,cargo build,git add) are observable in the user's shell history. - The standard validation loop produces deterministic build artifacts under
target/release/lib<name>.dylib(or platform equivalent), inspectable viacargoornm. - Scaffolded source files include doc comments on every tool and arg struct (see
references/examples.md); the model-facing schema is recoverable directly from the source.
AST08 — Skill Supply-Chain Attacks
Risk: A dependency the skill relies on is compromised; the skill picks up the compromise transitively.
Controls in place:
- The skill itself has no runtime dependencies beyond the
cargo/gitbinaries and the user's local Rust toolchain. - Scaffolded apps depend on
aomi-sdk = { workspace = true }, which resolves through the user'saomi-sdkcheckout. The host enforces an exact-match SDK version gate at plugin load (seedocs/sdk-version-compatibility.md); a tampered SDK that bumps the version stamp would not load against the user's host without coordinated action. - Scaffolded apps' transitive dependencies (e.g.
reqwest,serde,schemars) are managed by Cargo as usual; the skill itself does not pin or vendor anything. templates/quick-scaffold.shdepends only on POSIX shell andcargo+git, both checked at startup.- Open: sigstore attestation for the skill itself is not yet wired up.
AST09 — Insufficient User Consent
Risk: A skill performs actions the user has not explicitly authorized.
Controls in place:
- Every action requires explicit user request:
- Scaffolding new app — user must ask ("build an app for X") and provide source material.
- Modifying workspace
Cargo.toml— only when scaffolding (singleexclude = [...]line addition, observable viagit diff). - Running
cargo build— only when the user asks to validate, or whentemplates/quick-scaffold.sh --buildis invoked explicitly. - Staging files via
git add— only insidetemplates/quick-scaffold.sh(a wrapper the user opts into) for the discovery-fix purpose.
- The skill never auto-commits.
git commitis the user's action, not the skill's. - The skill never embeds credentials or auto-fills secrets the user did not paste. The pattern documented in
references/examples.mdis "read explicit args first, fall back to env vars" — the skill teaches this pattern and never bypasses it.
AST10 — Cross-Platform Reuse
Risk: A skill that's safe on one host (e.g. Claude Code) becomes unsafe when loaded on a different host (Codex, Cursor, OpenClaw) due to differing tool-permission semantics.
Controls in place:
- The OWASP
permissions:manifest is declarative metadata that all OWASP-aware scanners and registries can read regardless of host. The Claude Code-specificallowed-toolsfield coexists as a sibling. - An
agents/openai.yamlis provided for Codex/OpenAI-host metadata. - The skill's operational scope (
cargo+git+ filesystem within the workspace) is uniform across hosts; there are no host-specific tool surfaces that would behave differently on Codex vs Claude Code. - Open: end-to-end install verification across Claude Code + Codex + at least one community installer is on the release checklist (#9, #20). The skill is shaped for cross-platform reuse but has not yet been load-tested on every host.
Captured scanner reports
All reports under .scanner-reports/aomi-build/. Re-run any scanner with the local commands documented in docs/todo and .scanner-reports/README.md (substituting ./aomi-build/ for the target).
| Scanner | Status | Findings | Report |
|---|---|---|---|
| Cisco AI Defense skill-scanner | PASS | 0 critical / 0 high / 0 medium / 0 low | cisco-ai-defense.md |
| pors/skill-audit | PASS | 0 errors / 2 doc-regex warns | pors-skill-audit.txt |
| NMitchem/SkillScan | PASS | Risk 0.0/10, 0 findings | skillscan.txt |
| Snyk agent-scan | Pending | Requires SNYK_TOKEN; report to be captured by maintainer |
— |
Notes on findings:
- The 2 pors WARN findings match documentation patterns:
prompt/(delete|remove|rm)...matches a row inreferences/examples.mdtable where one of the example tools isbinance_cancel_ordermapped to aDELETE /orderHTTP endpoint. The match is on the literal stringDELETEinside the reference table, not on a destructive instruction — the skill itself never deletes files.prompt/(read|access|get|ext...)matchesreferences/spec-to-tools.mddescribing the canonical tool naming pattern (get_*,read_*,list_*). Documentation about the convention, not an instruction to access sensitive data.
- Snyk requires an API token for the SaaS-backed analysis. Token-gated runs are tracked as a maintainer task; the W-code analysis approach used for
aomi-transact(seeaomi-transact/SECURITY.mdSnyk W-code table) will apply if any HIGH-class characterizations come back. Foraomi-buildspecifically, the only Snyk W-codes that could plausibly apply are W007 (insecure credential handling) — already mitigated by the no-credential-embedding rule and the auth resolution pattern documented inreferences/examples.md. The skill does not move funds (no W009), does not depend on third-party content (no W011), and does not invokenpxor other unpinned external URLs (no W012).
Reporting issues
Security issues should be reported privately. Open a private security advisory at https://github.com/aomi-labs/skills/security/advisories/new.