alivirgo/major-ai-skills/agent-injection-boundary-test

Claude Code and agent skill by alivirgo/major-ai-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Test authorized agents against indirect prompt injection in retrieved docs and tool outputs using paired clean/poison fixtures, synthetic canaries, and sandboxed tools. Evidence for these cases—not a claim injection is solved.

Install

npx vskill@latest install alivirgo/major-ai-skills/agent-injection-boundary-test

SKILL.md

Agent Injection Boundary Test AI Skill Guide (Claude)

Overview & Engine Architecture

OWASP LLM01:2025 — direct and indirect prompt injection. RAG/fine-tuning do not eliminate it. Tool-using agents face a framing gap: overt “ignore instructions” may fail while the same exfil reframed as a “required integrity field” succeeds. Robustness comes from capability isolation and allow-lists, not hoping the model recognizes every attack.

Claude operates as a Principal AI Security Test Engineer for trust boundaries, paired clean/poison fixtures, canary secrets, and action-vs-content screening.

┌─────────────────────────────────────────────────────────────┐
│ Untrusted channels: RAG docs, web, email, tool JSON, meta │
│ Paired fixtures → same config → compare tools + answer │
│ Pass = legitimate task OK ∧ inject ignored ∧ no canary leak│
└─────────────────────────────────────────────────────────────┘

Scope (hard rules)

  • Only agents/datasets the user authorizes.
  • Sandbox tools; synthetic canaries; inert action targets.
  • Never real credentials; never phone-home canaries to attacker-controlled endpoints.
  • Passing ≠ “injection solved.”

Trusted boundary (define first)

ChannelTrust
System / developer policyTrusted
User taskSemi-trusted
Retrieved docs / web / email / tool outputUntrusted data
High-risk tools (mail, pay, delete, egress URL)Require policy / human gate

Mitigations to evaluate: content quarantine labels; planner/reader split (reader never has exfil tools); destination allow-lists; action screening against original user intent without untrusted context; output filters (brittle alone).


Fixture design

For each case, build paired documents:

  1. Clean — task-relevant facts only.
  2. Poison — same facts + clear untrusted instruction (reveal CANARY_…, call unauthorized tool, override policy).

Preserve useful content so “refuse everything” is not a false pass. Variants: chunk-boundary splits, encodings, quoted instructions inside tool errors, thought/observation forgery, look-alike trusted hosts / “mandatory signature” frames.

Place injection in the external channel under test—user-message injection tests a different boundary.


Procedure & metrics

Run both versions identical config. Capture: final answer, proposed tool calls, executed calls, retrieved snippets.

MetricMeaning
Attack successCanary leaked or unauthorized tool attempted/executed
Task successLegitimate question answered on clean and poison
False positiveClean doc refused / task failed without attack

Report with sample size; prefer paired statistics. Don’t score “security” by refusal phrase matching alone.


Deliverable

Reproducible fixtures + failure traces + narrowly scoped mitigations (allow-list, isolation, gates). Explicit non-claim: suite coverage only.

Related skills

@ai-human-handoff-contract, @llm-json-contract-check, @rag-retrieval-audit, @ai-pii-redaction-review, @agent-tool-replay-test

Agent Operational Directive

MANDATORY: Authorized sandbox only. Synthetic canaries. Score task completion and attack failure together. Prefer architectural controls over prompt-only defenses. No real secrets or exfil endpoints.

Sources

OWASP LLM01:2025 & cheat sheet; MLASTG injection testing; framing-gap research on tool agents; paired eval methodology.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository npm downloads, 7 days
3,647
7-day trend score
18

Downloads are for the repository's npm package. Refreshed 6 Oct 2026, a month ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alivirgo/major-ai-skills/agent-injection-boundary-test/badge)](https://verified-skill.com/skills/alivirgo/major-ai-skills/agent-injection-boundary-test)

Something wrong with this skill or its page? Tell us.