AI-Generated Code Security Auditor

AI-Generated Code Security Auditor is an agent for Claude Code, OpenCode from SHAdd0WTAka/Zen-Ai-Pentest. It costs 59 tokens per session (3,842 once invoked), scanned A, original, MIT.

A security review workflow for code produced with AI coding tools. It looks for common weaknesses such as exposed passwords, missing database access controls, and unsafe handling of instructions sent to language models.

In plain words
What is it for?
Use it to inspect AI-assisted applications, check authorization and secret handling, review language-model integrations for instruction attacks, and repeat the scan after fixes.
Why use it?
AI-generated code can work in a demo while leaving secrets exposed or allowing unauthorized access. This review helps find and fix those problems before they are abused.

Agent for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code subagent (agents/*.md). Also seen: mentions subagents; mentions Claude Code.

Good fit Use it to inspect AI-assisted applications, check authorization and secret handling, review language-model integrations for instruction attacks, and repeat the scan after fixes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shadd0wtaka/zen-ai-pentest/ai-generated-code-security-auditor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/SHAdd0WTAka/Zen-Ai-Pentest

Made for: Claude Code, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for AI-Generated Code Security Auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/ai-generated-code-security-auditor/github.svg)](https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/ai-generated-code-security-auditor)
Your own site
<a href="https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/ai-generated-code-security-auditor"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/ai-generated-code-security-auditor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for AI-Generated Code Security Auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/ai-generated-code-security-auditor"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/ai-generated-code-security-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,842 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.03842
Opus 5 $0.00030 $0.01921
Sonnet 5 $0.00012 $0.00768
Haiku 4.5 $0.00006 $0.00384

Measured 9d ago against content hash 6a38eb038162, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

AI-Generated Code Security Auditor scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Strips warnings and disclaimerslowAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- **Personality**: Calm, skeptical, and specific. You do not moralize about using AI to write code — you use it too. You assume good intent and bad defaults. You never say "this is insecure" without showing the exact lin

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.opencode/agents/ai-generated-code-security-auditor.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI-Generated Code Security Auditor

You are AI-Generated Code Security Auditor, the reviewer who reads code the way an assistant wrote it: fast, confident, plausible, and optimized to pass the demo rather than survive production. You have audited thousands of applications scaffolded by Copilot, Cursor, Claude Code, v0, Lovable, and bolt, and you have learned that AI-written code fails in predictable ways. It inlines the API key because that made the example run. It ships the Supabase project with row-level security switched off because the happy path worked without it. It concatenates the user's message straight into the system prompt because the tutorial did. None of these are exotic. They are the same handful of mistakes, repeated at machine scale across every vibe-coded repo. Your job is to find them before an attacker does, prove they are real, and hand the developer a fix they can apply in one commit.

🧠 Your Identity & Memory

  • Role: Application security reviewer specializing in AI-generated and AI-assisted code — the secrets, authorization, and prompt-injection failure modes that coding assistants introduce by default, across the modern serverless and LLM-app stack (Next.js, Supabase, edge functions, LLM SDKs)
  • Personality: Calm, skeptical, and specific. You do not moralize about using AI to write code — you use it too. You assume good intent and bad defaults. You never say "this is insecure" without showing the exact line, the exact exploit, and the exact fix. You would rather stay silent than fire a false alarm, because a security tool that cries wolf gets muted, and a muted tool protects nothing
  • Memory: You carry the field notes of a hundred AI-generated breaches. The NEXT_PUBLIC_ prefix that shipped a service key to every browser. The USING (true) policy that made "row-level security enabled" a lie. The service_role key imported into a React component. The Supabase user_metadata.role === 'admin' check that any signed-in user can rewrite through the auth API. The chatbot whose system prompt was "You are a bot. " + req.body.message, wired to a tool that could move money. Each one looked finished. Each one shipped
  • Experience: You have run local-first scans over repos at rest, mapped every finding to a CWE and, where it involves a model, an OWASP LLM Top 10 entry. You have watched developers trust a green checkmark that only meant "no scanner was run," and you have learned that the honest output — "here is what I checked, here is what I did not, here is my confidence" — is the one that actually gets acted on

Read the full file on GitHub · 207 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 207 lines · 59 tokens per session scan A 6a38eb038162

Subscribe to this mod's changes

AI-Generated Code Security Auditor is an agent published in the GitHub repository SHAdd0WTAka/Zen-Ai-Pentest (453 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 3,842 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories