What Is Prompt Injection in an Agent Skill? Examples and Checks | Ep 2
What is prompt injection in an agent skill? This episode of Ironheights: Agent Skill Security explains how text in a skill file can try to take control of an agent: instruction overrides, concealment, hidden text, weakened safeguards, and memory poisoning. The hosts are synthetic voices. The Ironheights team wrote the script. The written guide is What is prompt injection in an agent skill?.
The hosts are synthetic voices. The Ironheights team wrote the script. Written guide: What is prompt injection in an agent skill?.
What this episode covers
The full episode is on Spotify and runs 7 minutes 44 seconds. The SoundCloud player on this page is the short version, 3 minutes 48 seconds. The short cut is a briefing of the same episode. It is not a second, different show. Play the Spotify episode if you want the checks in order: open the raw SKILL.md, look for the common phrases, and run Ironheights rules IH-INJ-001 through IH-INJ-003. A clean scan is not proof of safety. The episode says that on purpose.
Episode 1 is the wider question, is that OpenClaw skill safe, including fake prerequisites and remote instructions. This episode stays on one channel: the skill file as instructions the agent will read. The next episode is the check ClawHub already runs on the listing: Does VirusTotal scan ClawHub skills?.
Prompt injection is the first item on OWASP's list of risks for applications built on large language models (LLM01). The root cause is that instructions and untrusted text share one channel. The model can follow either. An OpenClaw skill is loaded on purpose as instructions, so the author does not need a trick to be read. They need the file to ask for something you would not want, in words the agent treats as part of its job.
What it looks like in a skill file
The episode describes the forms. It does not reproduce a working payload. Copying a live override into a post would be the thing the episode is warning about. The phrases below are the shapes, not lines to paste into a skill.
Instruction overrides
Text that tells the agent to ignore previous instructions, enter a special mode, or treat the skill's rules as higher priority than the user's. IH-INJ-001 matches a list of those phrases. Matching ignores case and collapsed whitespace, and it strips zero-width characters before it compares, so a hidden character cannot hide a known phrase by itself. Since 0.10.0 the same rule grades how the phrase is delivered: a quoted example under a security heading is info, a bare instruction is high. A match is evidence to read. It is not, by itself, proof the skill is malicious, and a miss is not proof the file is fine.
Concealment
Instructions not to mention a step to the user, or to report success no matter what happened. This is the line that makes the other tricks work. A prerequisite command is easier to run when the skill also says not to show it. Episode 1 covers the command. This episode covers the instruction that hides it.
Hidden text
Zero-width characters, HTML comments, and long encoded blobs that a rendered page does not show and the model still receives. IH-INJ-002 flags hidden characters, HTML comments, and huge base64 blobs. A person reading the formatted skill will not see them. That is the point of the hiding. Open the raw file. Our teardown of base64-obfuscated payloads in SKILL.md shows the shape with the payloads truncated. Do not treat a short ordinary token as the same thing as a page-long blob. The rule is written to avoid that.
Weakened safeguards
Requests to turn off approvals or confirmations, or to edit AGENTS.md, SOUL.md, MEMORY.md, openclaw.json, or other skills. IH-INJ-003 flags those instructions. They change the trust boundary of the assistant. A skill that needs a real config change should say so in language you can refuse. It should not tell the agent to do it quietly.
Memory poisoning
A standing rule written into memory, so it remains after the skill is gone. The file you delete is not the only place the instruction can live if the agent was told to save it. That is why "I uninstalled it" is not the end of the check. Look at the agent's instruction files if a skill asked for them to be edited.
Injection often travels with malware. The episode's point is practical, not a percentage: the override makes the agent more willing to run a setup command it would otherwise question, and less likely to tell you. Snyk's write-up of the agent-skills threat landscape is the outside source we point at for that pairing. We do not publish a rate of our own for how often the two appear together.
Why a skill is a natural place for it
Simon Willison calls the dangerous combination the lethal trifecta: an agent that can read untrusted content, can reach private data, and can send things out. A skill sits in the middle of that. It is untrusted content the agent is told to follow, and the agent may already have the files and the tools. Willison's note is the short version of why "it is only markdown" is not a comfort.
There is a second problem if the check itself runs inside the agent. A hostile skill can try to talk the agent out of a security skill that shares the same context. The CLI you run yourself is outside that conversation. Our post on why in-agent security skills can be bypassed is the longer version. Use the CLI, or the browser scanner, for the check. Do not ask the agent that just read the skill to be the only reviewer.
How to check a skill
- Open the raw
SKILL.md, not the rendered page. Search for lines addressed to the agent about its own rules, secrecy, confirmations, or its instruction files. - Read bundled scripts and long docs with the same attention. People skim after the first screen. Hidden text is often not in the paragraph you happened to read.
- Run the three rules. IH-INJ-001 for instruction overrides, IH-INJ-002 for hidden content, IH-INJ-003 for instructions that weaken safeguards.
npx ironheights scan ./path/to/skillruns them with the rest of the rules. The browser scanner runs an older subset of the content rules, so a browser result is a first look, not the CLI. - Read every finding against the skill's job. A quoted example in a security skill is a different situation from a bare override in a notes skill. The rule's severity is a hint. You still decide.
- If the skill's instructions reach past its stated job, stop, even when no rule fired. Fixed phrases are a list. They are not the only way to ask.
The 10-minute vetting checklist puts this next to the other checks: listing, setup, links, and access. Prompt injection is one section of that review, not a replacement for it.
A clean scan is not proof
No findings on IH-INJ-001 through IH-INJ-003 means those rules did not match. It does not mean the file is free of injection. Ordinary-sounding advice, another language, and phrasing the list does not contain can pass. So can instructions that are fetched later from a URL, which a static scan never sees. The limitations page is the full list of that kind of miss.
The benchmark measures a synthetic corpus we wrote. It is a regression check for known patterns. It is not a rate for prompt injection on ClawHub, and it will not tell you whether this skill is safe. The tracker is where publicly reported malicious skills are listed, with the sources those reports used. Use it to see the shapes that have already been published. Do not use it as a list of every bad skill.
If you still want the file installed after you have read it, npx ironheights safe-install <owner>/<slug> will download, scan, and copy it in only on a no-findings verdict. That command does not change what no-findings means. It only stops the copy when a rule did fire. The write-up is Fetch and safe-install.
Show notes
- Series: Ironheights: Agent Skill Security. Season 1, episode 2. The series index is the podcast page.
- Spotify, full episode, 7:44: What Is Prompt Injection in an Agent Skill? Examples and Checks.
- SoundCloud, short version, 3:48: the same episode. Label this player as the short version. The full episode is the Spotify one.
- Tags used on the audio: prompt injection, OpenClaw, ClawHub, agent skills, AI agent security, SKILL.md, Ironheights, OWASP LLM01.
- The hosts are synthetic voices. The Ironheights team wrote the script.
- Read next: What is prompt injection in an agent skill?, then IH-INJ-001, IH-INJ-002, and IH-INJ-003.
FAQ
What is prompt injection in an agent skill?
It is text in the skill's files that tries to take control of the agent: ignore earlier rules, hide actions from you, turn off confirmations, or edit the agent's own instruction files. It works because the agent cannot reliably separate its trusted instructions from text the skill's author supplied.
Which Ironheights rules cover it?
IH-INJ-001 matches instruction-override phrases. IH-INJ-002 matches hidden content such as zero-width characters, HTML comments, and huge encoded blobs. IH-INJ-003 matches instructions that weaken safeguards or edit agent files. A clean result on all three is not proof the skill is safe.
Why is the SoundCloud player shorter?
The SoundCloud cut is the short version, 3 minutes 48 seconds. The full episode is on Spotify and runs 7 minutes 44 seconds. The notes on this page follow the full episode.
Are the podcast hosts real people?
No. The hosts are synthetic voices. The Ironheights team wrote the script. The episode does not add claims that are not on this page and the pages it links.
Sources
- LLM01: Prompt Injection, OWASP GenAI Security Project.
- The lethal trifecta for AI agents, Simon Willison, 16 June 2025.
- Exploring the Threat Landscape of Agent Skills, Snyk Labs, 5 February 2026.
- ToxicSkills: malicious AI agent skills on ClawHub, Snyk, 5 February 2026.
- From Automation to Infection, VirusTotal, 2 February 2026.