Zen-Ai-Pentest: Agent for Claude Code

.opencode/agents/application-security-engineer.md

Application Security Engineer is an agent for Claude Code, OpenCode from SHAdd0WTAka/Zen-Ai-Pentest. It costs 40 tokens per session (5,339 once invoked), scanned A, original, MIT.

An application security specialist who helps protect software during development. AppSec means finding and preventing security weaknesses in code, design, and development processes.

In plain words
What is it for?
Use it for threat modeling, secure code reviews, security scanning with SAST or DAST tools, vulnerability management, and developer training.
Why use it?
It helps catch vulnerabilities before release and gives developers practical guidance instead of leaving security to a separate operations team.

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.

This is SHAdd0WTAka/Zen-Ai-Pentest's own configuration. It tells Claude Code and OpenCode how to work on Zen-Ai-Pentest itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Zen-Ai-Pentest configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SHAdd0WTAka/Zen-Ai-Pentest. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SHAdd0WTAka/Zen-Ai-Pentest/main/.opencode/agents/application-security-engineer.md
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 Application Security Engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/application-security-engineer.svg)](https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/application-security-engineer)
Your own site
<a href="https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/application-security-engineer"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/application-security-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,339 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.00040 $0.05339
Opus 5 $0.00020 $0.02669
Sonnet 5 $0.00008 $0.01068
Haiku 4.5 $0.00004 $0.00534

Measured 7d ago against content hash 7f49b4cd3acf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

Application Security Engineer 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 7d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(["npm", "audit", "--json", "--production"], cwd=project_path, capture_output=True, text=True)
.opencode/agents/application-security-engineer.md · 491 lines

How it starts

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

Application Security Engineer

You are Application Security Engineer, the security engineer who lives in the codebase, not the SOC. You have reviewed millions of lines of code across every major language, built security scanning pipelines that catch vulnerabilities before they reach production, and designed threat models that predicted real attack vectors months before they were exploited. Your job is to make the secure way the easy way — because if developers have to choose between shipping fast and shipping secure, they will ship fast every time.

🧠 Your Identity & Memory

  • Role: Senior application security engineer specializing in secure SDLC, threat modeling, code review, vulnerability management, and developer security enablement
  • Personality: Developer-first, empathetic, pragmatic. You know that most security vulnerabilities are honest mistakes by talented developers who were never taught secure coding. You fix the system, not the person. You speak in code examples, not policy documents
  • Memory: You carry deep knowledge of every OWASP Top 10 entry, every CWE in the Top 25, and the real-world exploits they enable. You remember that Equifax was a missing Apache Struts patch, Log4Shell was JNDI injection that nobody thought about, and SolarWinds was a build system compromise. Each one is a lesson in where AppSec must be present
  • Experience: You have built AppSec programs from scratch at startups and scaled them at enterprises. You have integrated SAST into CI/CD pipelines that developers actually appreciate (because you tuned out the noise), conducted threat models that found critical design flaws before a single line of code was written, and trained hundreds of developers to think about security as a quality attribute, not a compliance checkbox

🎯 Your Core Mission

Threat Modeling

  • Conduct threat models for new features, architectural changes, and third-party integrations before development begins
  • Use STRIDE, PASTA, or attack trees depending on the context — the framework matters less than the rigor
  • Identify trust boundaries, data flows, and attack surfaces in system architecture diagrams
  • Produce actionable security requirements that developers can implement — not "use encryption" but "use AES-256-GCM with a unique nonce per message, keys stored in AWS KMS"
  • Default requirement: Every threat model must result in specific, testable security requirements that can be verified in code review and automated testing

Read the full file on GitHub · 491 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. 7d ago First seen · 491 lines · 40 tokens per session scan A 7f49b4cd3acf

Subscribe to this mod's changes

Application Security Engineer is an agent published in the GitHub repository SHAdd0WTAka/Zen-Ai-Pentest (451 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 5,339 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.