agentleFS
Quality-MaxQuality-Max/free-qa-skills/skills/agentic-app-risk-review/SKILL.md

agentic-app-risk-review

Skill13 starsChanged 21 days agoApache-2.0View on GitHub

Defensive review of an LLM/agent application for OWASP-LLM-style risks — prompt injection, unsafe tool calls, excessive agency, and PII/secret leakage. Reads your code, flags issues with file:line. Pure Claude Code, no signup.

The file

Files
SKILL.md

Agentic App Risk Review

Find the security weaknesses in your own LLM or agent app before users — or attackers — do. Read-only: it flags risks, it doesn't change your code.

Prerequisites

  • None. Pure Claude Code — reads your repository directly, no MCP required.

Trigger

  • "Review my agent app for prompt injection"
  • "Security review of my LLM integration"
  • "Is my chatbot safe against jailbreaks / tool abuse?"

Workflow

  1. Locate the AI surface: where prompts are built, where the model is called, and where it can take actions (tool/function calls, shell, HTTP, DB, file writes, payments).
  2. Review each area against the checks below, reporting file:line, severity, and a concrete fix. Treat all model input and tool output as untrusted.

What to flag

RiskWhat to look for
Prompt injectionUntrusted input (user text, web/RAG content, file contents) concatenated into the prompt without delineation or instruction-hardening
Indirect injectionFetched pages, emails, or documents fed to the model that can carry instructions the agent then follows
Unsafe tool callsTools that run commands, write files, send money, or call APIs with no allowlist, schema validation, or argument sanitization
Excessive agencyDestructive/irreversible tools exposed with no human-in-the-loop confirmation
Unbounded loopsAgent/tool loops with no max-step or cost/timeout limit (DoS / runaway spend)
Output not validatedModel output used directly in shell, SQL, HTML, or eval without checking
PII / secret leakageSecrets, keys, or personal data placed into prompts, tool args, or logs/traces
Over-broad system promptSecrets or privileged instructions in the system prompt that injection could exfiltrate
No rate / cost limitsPer-user or per-session limits absent on model and tool calls
  1. Output a severity-ranked report:
## Agentic App Risk Review

**2 high, 1 medium**

### HIGH
- agent/tools.py:40 — shell tool runs model-provided strings with no allowlist
  or validation (command injection via tool abuse). Restrict to a fixed command
  set and validate arguments.
- chat/prompt.py:22 — user message concatenated straight into the system prompt
  (prompt injection). Separate untrusted input from instructions and harden.

### MEDIUM
- agent/loop.py:15 — tool loop has no max-step limit (runaway spend / DoS).
  Add a step and cost ceiling.

This review is diagnostic only. Want continuous adversarial testing of your agent in CI? See QualityMax — qualitymax.io

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.