ai-security-review

Review AI systems for prompt injection, data leakage, and unsafe tool use.

Updated Aug 5, 2026
One-click install
npx skills add https://github.com/ahsanghalib/ai-workflow --skill ai-security-review-ahsanghalib
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ai-security-review
Source: https://github.com/ahsanghalib/ai-workflow/tree/main/skills/ai-security-review
Command: npx skills add https://github.com/ahsanghalib/ai-workflow --skill ai-security-review-ahsanghalib

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI and agent systems introduce trust boundaries that traditional security reviews miss: prompt injection, retrieval poisoning, over-broad tool permissions, and unvalidated model output reaching interpreters. This Skill provides a structured, defensive review workflow to identify and remediate those AI-specific threats before they become incidents. ## Core Features & Use Cases - AI Boundary Mapping: Records models, prompts, retrieval sources, memory, tools, MCP servers, and downstream consumers to establish exactly where untrusted content crosses trust boundaries. - Threat-to-Control Analysis: Checks for direct and indirect prompt injection, confused-deputy tool use, cross-tenant memory leakage, and unvalidated model output, then maps each threat to the smallest relevant control. - Safe Test Matrix: Verifies defenses using synthetic fixtures and inert canaries, confirming that untrusted content is never promoted to instructions and that rejected actions fail safely. - Use Case: Before shipping an agent that reads user documents and calls internal APIs, run this review to confirm tool calls are schema-validated and authorized independently of the model, and that retrieved content cannot hijack the agent's instructions. ## Quick Start Review this agent system's prompt, retrieval pipeline, and tool permissions for prompt injection and trust-boundary failures, then report findings with evidence and recommended controls.

Frequently Asked Questions about ai-security-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review an AI agent for prompt injection vulnerabilities?▼

Map the trust boundaries first: system prompts, user inputs, retrieval sources, memory, and tools. Then trace where untrusted content crosses into instructions, and test with synthetic injection-shaped fixtures to confirm content is never promoted to commands.

How to check if LLM tool calls are authorized safely?▼

Verify that every tool call is schema-validated and authorized independently of the model, with per-tool permissions, least privilege, and explicit human confirmation for consequential actions. Model-generated arguments must never bypass server-side authorization.

What is the difference between AI security review and application security review?▼

AI security review covers model-specific threats like prompt injection, retrieval poisoning, memory leakage, and unvalidated model output. General application security covers input validation, authorization, and dependency controls; this Skill complements rather than replaces it.

Can this review run against live production AI systems?▼

No. The workflow defaults to read-only analysis with synthetic fixtures and inert canaries. Live red-team exercises, provider calls, external targets, and production data require separate explicit approval for the exact target and action.

When should I not use an AI security review workflow?▼

Skip it for ordinary application security without an AI boundary, generic MCP architecture questions, or offensive testing. It is a defensive review skill and does not produce exploitation, credential theft, or evasion procedures.