ai-security

Scan prompts for injection signatures and score AI model security risks against MITRE ATLAS.

Updated Aug 14, 2026
One-click install
npx skills add https://github.com/Rohithdgrr/REEK-uninstaller --skill ai-security-rohithdgrr
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ai-security
Source: https://github.com/Rohithdgrr/REEK-uninstaller/tree/main/.opencode/skills/ai-security
Command: npx skills add https://github.com/Rohithdgrr/REEK-uninstaller --skill ai-security-rohithdgrr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? LLM and ML systems face threats like prompt injection, jailbreaks, model inversion, and data poisoning that traditional application security tools do not detect. This Skill provides a structured methodology and a scanner tool to assess AI/ML systems against these threats and map findings to MITRE ATLAS techniques. ## Core Features & Use Cases - Prompt Injection & Jailbreak Detection: Scan built-in seed prompts or custom JSON test files against regex-based injection signatures covering role overrides, indirect injection, persona jailbreaks, system prompt extraction, and tool abuse. - Risk Scoring & ATLAS Mapping: Compute injection scores, model inversion risk by access level, data poisoning risk by fine-tuning scope, and map every finding to MITRE ATLAS technique IDs. - CI/CD Security Gate: Use exit codes (0/1/2) to block deployments when critical AI security findings are detected. - Use Case: Before deploying a customer-facing LLM feature, run the scanner against your domain-specific adversarial prompts, review the overall risk level, and implement the recommended guardrails such as input filters and tool approval gates. ## Quick Start Run the AI threat scanner against the built-in seed prompts for a black-box LLM target and review the JSON risk report.

Frequently Asked Questions about ai-security

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

FAQPage Schema
How do I scan prompts for prompt injection attacks?▼

Run ai_threat_scanner.py with --target-type llm and optionally --test-file pointing to a JSON array of prompt strings. The scanner matches each prompt against injection signatures and returns findings with severity and MITRE ATLAS technique IDs.

How do I test an LLM for jailbreak vulnerabilities before deployment?▼

Use the scanner's built-in seed prompts or supply domain-specific jailbreak templates in a JSON test file. Findings matching the jailbreak_persona signature indicate persona-framing bypass attempts that require guardrail remediation before production exposure.

Does the scanner require access to a live model?▼

No, the tool uses static signature matching on prompt inputs and does not require live model access. It assesses inputs before they reach the model, though gray-box and white-box access levels require the --authorized flag.

What MITRE ATLAS techniques does AI security scanning cover?▼

The scanner covers AML.T0051 prompt injection, AML.T0051.001 indirect injection, AML.T0051.002 agent tool abuse, AML.T0056 data extraction, AML.T0020 training data poisoning, and AML.T0024 inference API exfiltration. Techniques like model stealing require separate API log analysis.

Why does the scanner exit with code 2?▼

Exit code 2 indicates critical findings or a missing authorization flag for gray-box or white-box access levels. Add --authorized after obtaining written authorization, or remediate the critical findings before rerunning.

What are the limitations of static injection signature matching?▼

Signature matching only catches known injection patterns and will miss novel techniques that do not match existing regexes. Complement it with red team adversarial testing, semantic similarity filtering, and output filtering for defense in depth.