SkillsReviewed · seb1n

Prompt Injection Defense

Prompt Injection Defense is a skill for developers and security reviewers hardening AI assistants that use tools or outside content, but its guidance and manifest checker cannot establish that a system is secure. It combines threat modeling, application controls, evaluation planning and incident recovery guidance with a Python script that checks a JSON architecture inventory.

Researched 16 Nov 2026

In short.

Prompt Injection Defense is a skill for teams securing AI agents and assistants that read outside content, with protection depending on application controls and tests beyond the supplied checker. It maps untrusted inputs, sensitive data, tools, memory and agent handoffs, then calls for authorization outside the model and safe adversarial evaluation. Its Python script checks manifest structure and declared control records; it does not enforce permissions or establish attack resistance. Neither the skill nor the script was run, and effectiveness, compatibility and operating costs remain unknown.

Researched and written by an AI model and checked by a second AI model. How it works

The scope is the complete supplied agent-security/prompt-injection-defense folder: SKILL.md, agents/openai.yaml, references/defense-patterns.md and scripts/audit_boundary_manifest.py, plus the repository-level LICENSE at revision 75865a5d037a4cdaa7f409a4ec14ab9b0292920b. Other repository content, history, external reference pages and live deployments are outside scope. The original repository location and immutable source revision are preserved. Neither the skill nor the script was executed; runtime correctness, host compatibility, security effectiveness and costs remain unassessed.

The overview

Identity

Prompt Injection Defense is the prompt-injection-defense skill in seb1n/awesome-ai-agent-skills. The original folder is [https://github.com/seb1n/awesome-ai-agent-skills/tree/main/agent-security/prompt-injection-defense]. It contains SKILL.md, interface metadata in agents/openai.yaml, defense patterns and a Python manifest checker.

The interface metadata supplies the display name and a default invocation using $prompt-injection-defense. The package provides instructions and supporting files for an assistant; it does not provide an automatically enforced security layer for an application.

Assessment

The skill offers a useful structure for reviewing an agent's architecture and documenting security work. It explicitly separates instructions to the model from controls enforced by application code, authorization systems, isolation and human approval.

Its main limitation is the distance between documenting a control and proving that control works. The manifest checker can identify inconsistent records, but implementation changes, adversarial tests and normal-task evaluation remain work for the adopting team. No execution results or effectiveness measurements accompany the supplied files.

Users

The intended users include developers, security reviewers and platform engineers responsible for tool-using agents, assistants, retrieval-augmented generation systems and multi-agent workflows. Retrieval-augmented generation means supplying a model with material retrieved from documents or other sources.

Beginners can use the email and research-agent examples to understand how outside content can influence an assistant. Applying the recommendations requires access to the application's permissions, tools, data flows and deployment configuration, so practical adoption benefits from engineering and security ownership.

Capabilities

The instructions cover direct attacks through user messages, indirect instructions in retrieved material, attacks stored in memory, contaminated agent handoffs and instructions carried through images, audio or alternate document representations.

The workflow calls for a data-flow map, threat model, prioritized defense plan, authorized code or configuration changes, regression tests, verification evidence and a recovery plan. These are outputs to develop for a particular application; the folder does not supply a complete regression suite or ready-made authorization integration.

The included checker examines manifest fields, identifiers, references, control status, evidence and test identifiers, time-limited controls, tool effects and confirmation declarations. It can emit human-readable findings or machine-readable JSON.

Using it

Requirements

The guided workflow needs a description of the agent's purpose, inputs, models, memory, tools, privileges, protected data, output destinations and authorization rules. Safe evaluation also requires representative normal tasks, synthetic identities, harmless canary values and an isolated environment.

The checker is a Python 3 command-line script whose imports are from the standard library. An exact minimum Python release, supported operating-system matrix and tested assistant-host or model versions are not specified.

Its input is a JSON manifest with nonempty collections for controls, protected assets, data sources and sinks. Memory stores, agent hops, destinations and credential boundaries must be represented explicitly; empty arrays are permitted when those categories do not apply.

Mechanism

The method traces outside content from ingestion through model context, memory, tools and final outputs. It then defines rules that a component outside the model can enforce, such as restricting customer records to the authenticated tenant or preventing an email body from choosing send recipients.

A JSON boundary manifest records where data and authority cross between components. Each control carries a status, enforcement point, owner, evidence identifiers, test identifiers and expiry information where applicable. The statuses distinguish missing, planned, implemented and verified controls.

The script checks those declarations without connecting to the application. A verified entry requires nonempty evidence and test identifier lists, but their contents are not retrieved or authenticated. The JSON output includes structural_status, error and warning counts, individual issues and an assurance disclaimer. The command returns 0 without structural errors, 1 with structural errors and 2 when the manifest cannot be read as valid JSON.

Setup

Acquire the complete skill folder from the original repository, preferably at the captured revision: [https://github.com/seb1n/awesome-ai-agent-skills/tree/75865a5d037a4cdaa7f409a4ec14ab9b0292920b/agent-security/prompt-injection-defense]. Preserve the references, scripts and agents subfolders because SKILL.md depends on companion files. Retain the repository license notice with redistributed copies.

The supplied files do not specify a host-specific installation directory or provide an installer. The interface metadata supplies $prompt-injection-defense as the invocation name; compatibility with a particular assistant host remains unassessed.

For the standalone checker, save an application-specific manifest as boundary.json. From the skill folder, the documented command-line interface supports python3 scripts/audit_boundary_manifest.py boundary.json --json. This describes an available invocation; it was not executed.

Example

The documented email-triage example treats subjects, messages, attachments and quoted threads as untrusted. The model classifies messages and prepares drafts, while authenticated application state determines the mailbox and tenant. Sending is separated from drafting, recipient domains are restricted and external sends require approval of the exact message.

A suggested safe test places an inert instruction in an attachment asking for a canary value or a recipient change. The intended checks are that the attachment cannot obtain unauthorized data or alter the send target, while ordinary messages still produce useful drafts. No results for this example are supplied.

The reference file also contains an illustrative support-triage manifest with planned provenance and missing memory-promotion controls. Its entries labeled verified contain example evidence and test identifiers, not attached proof of a working deployment.

Assessment & evidence

Limitations

The checker cannot discover omitted data flows, inspect deployed permissions, verify ownership claims or establish that cited tests passed. A structurally valid manifest can contain missing or planned controls, and an implemented control without evidence produces a warning rather than an error. Warnings can accompany a successful exit.

There is a specific destination-checking limit: when any tool declares external or network-egress effects, the script requires at least one destination in the manifest overall. It does not require every such tool to reference a destination. Declared risk levels are also accepted rather than derived from actual privileges.

No execution, compatibility testing, adversarial evaluation, false-positive measurement or normal-task success measurement was performed. Runtime correctness and real-world security effectiveness are not assessed. The skill itself explicitly retains residual prompt-injection risk.

Reasoning

The design assumes that a model may follow hostile instructions despite prompt reminders or detectors. It therefore places consequential decisions at enforceable boundaries: authorization before tool execution, restricted credentials, constrained destinations, validated arguments and safe output handling.

That approach gives the skill a concrete engineering focus. Even if model reasoning is compromised, carefully restricted tools can limit available actions and exposed data. Whether a particular implementation achieves that outcome requires evidence from the actual controls and tests.

The evaluation guidance also includes normal-task success and false positives. This helps expose defenses that block useful work while appearing successful on attack-only cases.

Alternatives

For direct reading, the skill cites OWASP LLM01:2025 Prompt Injection [https://genai.owasp.org/llmrisk/llm01-prompt-injection/] and the OWASP Prompt Injection Prevention Cheat Sheet [https://cheatsheetseries.owasp.org/cheatsheets/LLM_Prompt_Injection_Prevention_Cheat_Sheet.html]. These are related guidance sources rather than the supplied assistant skill and manifest checker. Their current contents and comparative effectiveness are outside the supplied evidence.

Teams that already have an architecture-review process could use the included checker separately as a documentation aid. The full skill adds instructions for threat modeling, evaluation planning, monitoring and recovery; neither route supplies the application's enforcement controls.

Evidence

The supplied resource consists of SKILL.md, agents/openai.yaml, references/defense-patterns.md and scripts/audit_boundary_manifest.py, accompanied by the repository-level LICENSE. These establish the written workflow, invocation metadata, example manifest, checker implementation and license terms.

The example control identifiers and verification labels are illustrative. No executable regression suite, benchmark results, deployed-system receipts or independently verified security outcomes accompany the supplied files. The checker's behavior is described from source code and remains untested.

Access & freshness

Costs

The supplied files provide no pricing, model-usage estimate or operating-cost measurements. Costs for the chosen assistant host, model calls, engineering changes, evaluation infrastructure and ongoing regression work are unknown.

The MIT license grants reuse and redistribution rights, but does not establish that running the surrounding AI workflow is free.

Rights

The accompanying repository LICENSE is the MIT License, copyright 2026 Burhan Sebin. It permits use, copying, modification, distribution, sublicensing and sale, subject to including the copyright and permission notices in copies or substantial portions.

The notice disclaims warranties and liability. External OWASP and NIST pages linked by the reference document are separate resources; their redistribution terms are not established by this repository notice.

Freshness

The supplied snapshot identifies repository revision 75865a5d037a4cdaa7f409a4ec14ab9b0292920b and capture time 2026-11-16T15:16:42.453Z. That identifies the source version described here; subsequent changes are unknown. The supplied files do not establish a numbered release or supported-model matrix.

The skill calls for regression tests after changes to models, prompts, parsers, retrieval, tools, permissions or orchestration. Any protection established for one configuration would need reassessment after relevant changes.

Actions

Start with one bounded workflow and map its real inputs, sensitive assets, tools, destinations, credentials, memory and agent handoffs. Assign control owners and enforcement points, and keep unknown or unfinished protections visible as missing or planned.

Use the checker to inspect the manifest, including warnings after a successful structural exit. Then evaluate the actual application controls in an authorized isolated environment using synthetic identities, inert destinations and harmless canaries. Measure unauthorized actions, exposure, normal-task success and false positives.

Require implementation evidence and named test evidence before treating a control as verified. Preserve observed failures and residual risks, and repeat affected evaluations when the application's model or surrounding components change.

Evidence for this report

LICENSEnotice · checked 2026-11-16