/major-ai-skills:agent-injection-boundary-testfrom major-ai-skills
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.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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│
└─────────────────────────────────────────────────────────────┘
| Channel | Trust |
|---|---|
| System / developer policy | Trusted |
| User task | Semi-trusted |
| Retrieved docs / web / email / tool output | Untrusted 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).
For each case, build paired documents:
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.
Run both versions identical config. Capture: final answer, proposed tool calls, executed calls, retrieved snippets.
| Metric | Meaning |
|---|---|
| Attack success | Canary leaked or unauthorized tool attempted/executed |
| Task success | Legitimate question answered on clean and poison |
| False positive | Clean doc refused / task failed without attack |
Report with sample size; prefer paired statistics. Don’t score “security” by refusal phrase matching alone.
Reproducible fixtures + failure traces + narrowly scoped mitigations (allow-list, isolation, gates). Explicit non-claim: suite coverage only.
@ai-human-handoff-contract, @llm-json-contract-check, @rag-retrieval-audit, @ai-pii-redaction-review, @agent-tool-replay-test
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.
OWASP LLM01:2025 & cheat sheet; MLASTG injection testing; framing-gap research on tool agents; paired eval methodology.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Oct 7, 2026