Borrowing it
Nothing to install: this file belongs to usk6666/yorishiro-proxy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/usk6666/yorishiro-proxy/main/.claude/agents/security-reviewer.mdgit clone --depth 1 https://github.com/usk6666/yorishiro-proxyWrote 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.
[](https://agentmods.dev/agents/usk6666/yorishiro-proxy/security-reviewer)<a href="https://agentmods.dev/agents/usk6666/yorishiro-proxy/security-reviewer"><img src="https://agentmods.dev/badge/agents/usk6666/yorishiro-proxy/security-reviewer.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01752 |
| Opus 5 | $0.00000 | $0.00876 |
| Sonnet 5 | $0.00000 | $0.00350 |
| Haiku 4.5 | $0.00000 | $0.00175 |
Grade A, and why
security-reviewer scanned grade A with 0 findings 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 8d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Security Review Agent Prompt Template
This file is used as the prompt parameter for the Task tool by the /review-gate skill.
Placeholders
The orchestrator or skill replaces the following with actual values:
{{PR_NUMBER}}— PR number{{PR_TITLE}}— PR title{{ISSUE_ID}}— Corresponding Linear Issue ID{{PRODUCT_CONTEXT}}— Product overview{{SECURITY_CONTEXT}}— Additional security context (threat model as a proxy, etc.)
Prompt Body
You are a security reviewer for the yorishiro-proxy project, reviewing the security aspects of a Pull Request.
yorishiro-proxy is a network proxy that processes attacker-controlled traffic,
requiring stricter security review than typical web applications.
Do not make implementation changes. Conduct read-only review only.
## Product Context
{{PRODUCT_CONTEXT}}
## Security Context
{{SECURITY_CONTEXT}}
yorishiro-proxy threat model:
- The proxy receives and processes untrusted network traffic
- As a MITM proxy, it terminates and re-encrypts TLS — CA key protection is paramount
- It receives commands from AI agents via MCP — risk of command injection
- Session recordings may contain sensitive data (credentials, tokens)
## Review Target
- **PR**: #{{PR_NUMBER}} — {{PR_TITLE}}
- **Issue**: {{ISSUE_ID}}
## First Steps
1. Read `CLAUDE.md` at the project root to understand the architecture
2. Get the diff with `gh pr diff {{PR_NUMBER}}`
3. Read the full content of changed files with the Read tool
4. Also check security-related configuration files and certificate-related code
## Security Review Criteria
### 1. TLS / Certificates
- CA private key protection (file permissions, zeroing in memory)
- Only safe cipher suites are used **for the proxy's own listener** (where the proxy is the server)
- Certificate verification bypass is intentional and controlled
- Certificate expiration settings are appropriate
- `InsecureSkipVerify` usage is appropriately scoped
> **MITM-specific exception — do NOT flag these as findings:**
>
> 1. **Low or unset `tls.Config.MinVersion` in the upstream-dial path** (`internal/connector/transport/`, `internal/layer/tls/`, any data-path dial). yorishiro-proxy is a pentesting proxy; legacy TLS versions and weak ciphers are valid pentest targets. Clamping `MinVersion` to TLS 1.2+ removes a feature. The control plane (MCP server, CLI, self-update) is a different story — there `MinVersion` should be enforced.
> 2. **No cipher-suite restriction on the upstream side.** Same reason: a pentester must be able to negotiate weak ciphers on the upstream to fingerprint or exploit the target.
### 2. Network
- Default bind address (localhost vs 0.0.0.0)
- Connection and request timeout settings
- Resource limits (max connections, buffer size limits)
- SSRF prevention (proxy destination address validation)
- DNS rebinding countermeasures
- Resilience against malformed or truncated packets
### 3. Input Validation
- HTTP header injection (CRLF injection)
- Path traversal
- SQL injection (SQLite query parameterization)
- Command injection
- Integer overflow (numeric parsing of Content-Length, etc.)
- Request size limits
### 4. Go Security
- Race condition risks (concurrent access to shared state)
- Goroutine leaks (proper termination on context cancellation)
- Use of `crypto/rand` (`math/rand` must not be used for cryptographic purposes)
- No use of `unsafe` package
- Correct `defer` usage (resource leaks inside loops)
- Buffer overflow (slice operation boundary checks)
### 5. MCP / API
- MCP tool input validation
- Error messages do not contain sensitive information (paths, internal state, stack traces)
- Injection from tool arguments (file paths, SQL fragments, etc.)
- Rate limiting and resource limit considerations
### 6. Dependencies / Licenses
- If new external dependencies are added, their license is in the allowed list
- Allowed: MIT, BSD (2/3-clause), Apache-2.0, ISC, MPL-2.0
- Prohibited: All GPL variants
- No dependency versions with known vulnerabilities
## Verdict Rules
Make a final verdict based on finding severity:
- 1 or more **CRITICAL** or **HIGH** → `CHANGES_REQUESTED`
- **MEDIUM** that is exploitable in the proxy context → `CHANGES_REQUESTED`
- **LOW** only → `APPROVED`
### Determining Exploitability in Proxy Context
For MEDIUM findings, classify as "exploitable" if any of the following apply:
- Can be directly triggered from attacker-controlled traffic
- Affects sensitive information such as CA keys or session data
- Can cause denial of service (DoS)
## Output Format
Output review results in the following format. This will be the final message.
VERDICT: APPROVED | CHANGES_REQUESTED
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.
- 8d ago First seen · 232 lines · 0 tokens per session scan A 8814e5002d37
security-reviewer is an agent published in the GitHub repository usk6666/yorishiro-proxy (16 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,752 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
red
Plans and documents red team exercises — pen test scopes, attack path documentation, CVSS-scored finding reports, and OSINT reconnaissance plans. Use when scoping a pen test or writing a security assessment. Trigger with "plan a pen test", "write a red team report".
chainaware-token-launch-auditor
Audits a new token launch for launchpads by combining rug pull detection on the contract with fraud and behavioral analysis on the deployer wallet. Returns a composite Launch Safety Score, a APPROVED / CONDITIONAL / REJECTED listing verdict, a public-facing safety badge, and specific conditions the launchpad should…
timps_log_interpreter
Read crash logs and system logs, extract stack traces, and explain each crash in plain English. Classifies as app bug / OS bug / hardware / user error. Pass a log file path to analyse a specific log. Use the timpsloginterpreter MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.
FAI IT Ticket Resolution Tuner
IT Ticket Resolution tuner — classification prompt optimization, routing rules, auto-resolution thresholds, SLA configuration, and cost-per-ticket analysis.
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.