This tutorial introduces AST05: Untrusted External Instructions, the risk of external content that can reshape skill behavior or override the intended task. It is part of the OWASP Agentic Skills Top 10 tutorial series. Get full access to Agentic AI at kenhuangus.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00welcome to ast05 untrusted external instructions skills often point an agent to external api docs sdk guides schemas or runbooks the dangerous part is that the agent does not merely read that material as background it can load the content into the same instruction stream as the skill itself and act on it with the host agent's permissions if that external source changes after review the reviewed skill and the running skill can quietly diverge
SPEAKER_00the failure pattern is a trust boundary mistake the skill package may be reviewed signed versioned or hash pinned but the text it fetches from a url has none of those controls a document owner a compromised host or the original skill author can rewrite the reference content later because the agent treats the fetch text as instruction the payload does not need to live inside the skill body it only needs to appear where the skill tells the agent to look traditional software already has patterns for external code dependencies lock files package signatures version pinning
SPEAKER_00and hashes ast05 is different because the dependency is textual instruction there may be no field for a document hash no lock file for prose and no guarantee that a url returns tomorrow what it returned during review in a skill this external text is not just reference material for a human it can become instruction material for the agent the AST05 source cites two evidence points first anthropic's own agent skills security guidance warns that skills fetching external URLs pose special risk
SPEAKER_00because fetched content can contain malicious instructions the same guidance also calls out the change over time problem even trustworthy skills can be compromised if external dependencies drift second air securities june 2026 research showed a proof of concept where a skill pointing to malicious external instructions could lead to full agent compromise the common paths all exploit the gap between what reviewers inspect and what the agent consumes in an author rug pull
SPEAKER_00the skill starts benign and the reference document is changed later in a reviewer bait and switch scanners receive clean content while live agents receive malicious instructions in transitive reference chaining the first document points to more remote resources so the attacker only needs to control a link deeper in the chain where review may have stopped the defensive move is to treat referenced pros like a supply chain input not harmless documentation record the contact hash for every external document at review time and verify it on every load
SPEAKER_00where possible snapshot the documentation into the signed skill package so it can be reviewed and pinned if fetching is unavoidable restrict domains through allow lists follow remote references transitively during review maintain fleet-wide visibility of reference sources and rescan continuously use this quick ast05 checklist first source identify every external document the skill can fetch including transitive references second integrity require hashes
SPEAKER_00or another verification mechanism so drift is visible before the agent acts third containment prefer inline reviewable snapshots and allow only vetted domains when live fetching is required if a skill depends on mutable external instructions without pinning or review treat that dependency as part of the attack surface
This tutorial introduces AST10: Cross-Platform Reuse, the risk of moving skills across platforms without preserving source security assumptions. It is part of the OWASP Agentic Skills Top 10 tutorial series. Get full...
This tutorial introduces AST09: No Governance, the risk of lack of inventory, ownership, policy, review, and incident response for skills. It is part of the OWASP Agentic Skills Top 10 tutorial series. Get full access...
This tutorial introduces AST07: Update Drift, the risk of behavior, dependency, or configuration changes that alter risk after approval. It is part of the OWASP Agentic Skills Top 10 tutorial series. Get full access to...
This tutorial introduces AST08: Poor Scanning, the risk of insufficient review, detection, or validation before skills enter real workflows. It is part of the OWASP Agentic Skills Top 10 tutorial series. Get full access...
This tutorial introduces AST06: Weak Isolation, the risk of skills that execute without adequate sandboxing, boundaries, or containment. It is part of the OWASP Agentic Skills Top 10 tutorial series. Get full access to...