1/24
Concept flashcards for Ch 8, Security, based on The Claw AI Agent Ecosystem by Ava S. Barron (ISBN 979-8-2526-0474-9).
Three agentic threat properties
Persistent authentication to many systems, autonomous execution without review, and a natural-language interface with no reliable sanitization.
Why sanitization fails
Language models have no equivalent of SQL parameterization; the same parsing that follows real instructions also follows injected ones.
Indirect injection
An attacker plants instructions in content the agent handles normally, such as an email. No access to the user's systems is needed.
Web page injection
Instructions hidden in white text, HTML comments or metadata of pages the agent reads during research.
Tool result injection
Instructions embedded in a third-party API response. Dangerous because tool output is often treated as trusted.
Stored injection
An instruction planted in content later loaded as context, including the agent's own memory. It persists across sessions.
Identity-stability rule
A SOUL.md rule that refuses requests from any source to adopt a different persona or rule set.
ClawJacked
A vulnerability that let arbitrary websites hijack agent sessions. Broad permissions, no gates and no external-content rule enabled it; the fix needed all three.
Skill weaponization
A benign skill gathers installs, then a later update adds a malicious payload while SKILL.md stays unchanged.
Skill review steps
Read every execution file, find all network calls, check filesystem and environment-variable access, and verify the publisher.
Skill version pinning
Pin each skill version and turn off auto-update. Updates are not re-reviewed, so diff and review before upgrading.
Supply chain blast radius
A malicious skill reaches every system the agent can reach and runs as code on the host, with no model reasoning step.
A02 Insecure Tool Access
Skills granted more permissions than their function needs. Fix by splitting a skill into permission tiers and gating sends.
A03 Excessive Autonomy
The agent takes consequential actions without human oversight. Primary control: confirmation requirements in AGENTS.md.
A05 Memory Poisoning
Corrupting memory stores to change future behavior. Control: no memory writes while processing external content.
A06 Insufficient Logging
Missing records to reconstruct an incident. Log tool calls with inputs and outputs plus transcripts, outside the workspace, for 90+ days.
Confused deputy (A08)
A compromised orchestrator passes its trusted authority down to sub-agents. Sub-agents should not hold permissions the orchestrator lacks.
Heartbeat amplification (A10)
A too-short heartbeat interval combined with large context and a premium model produces a large idle cost.
OAuth scope creep
Granting tokens broader scopes than needed, such as full Gmail access when gmail.readonly would do.
$$VAR syntax
How openclaw.json references environment variables. Literal credential values never belong in that file.
Four defense layers
Behavioral, permission, access control and operational. Each layer assumes the others may fail.
Silent allowlist rejection
Messages from non-allowlisted accounts get no reply at all, because any reply reveals that the bot exists.
Incident response order
Stop the agent first, then assess external impact, then reconstruct what happened. Do not restart before fixing the root cause.
Four root cause categories
Behavioral gap, prompt injection, permission misconfiguration, and supply chain compromise. The category determines the fix.
Paper trading first
Run any trading skill against a simulated brokerage account with the full test battery before switching to live credentials.