yorishiro-proxy: Agent for Claude Code

.claude/agents/security-reviewer.md

security-reviewer is an agent for Claude Code from usk6666/yorishiro-proxy. It costs 0 tokens per session (1,752 once invoked), scanned A, original, Apache-2.0.

A prompt template for a security reviewer who checks pull requests in yorishiro-proxy, a network proxy that handles untrusted traffic and commands from coding agents. It tells the reviewer to inspect security without changing code.

In plain words
What is it for?
Use it to review a pull request’s security risks, especially around network traffic, TLS certificates, agent commands, and recorded sessions.
Why use it?
It provides the security context needed to look for risks such as unsafe command handling, exposed certificate keys, and sensitive session data. It keeps the review read-only.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is usk6666/yorishiro-proxy's own configuration. It tells Claude Code how to work on yorishiro-proxy 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 yorishiro-proxy configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/usk6666/yorishiro-proxy/main/.claude/agents/security-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/usk6666/yorishiro-proxy

Made for: Claude Code.

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 security-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/usk6666/yorishiro-proxy/security-reviewer.svg)](https://agentmods.dev/agents/usk6666/yorishiro-proxy/security-reviewer)
Your own site
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,752 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.01752
Opus 5 $0.00000 $0.00876
Sonnet 5 $0.00000 $0.00350
Haiku 4.5 $0.00000 $0.00175

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

Security

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.

.claude/agents/security-reviewer.md · 232 lines

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

Read the full file on GitHub · 232 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. 8d ago First seen · 232 lines · 0 tokens per session scan A 8814e5002d37

Subscribe to this mod's changes

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.

Related

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".

jeremylongshore/tons-of-skills-marketplace · 58 tokens

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…

ChainAware/behavioral-prediction-mcp · 247 tokens

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.

Sandeeprdy1729/timps-swarm · 77 tokens

FAI IT Ticket Resolution Tuner

IT Ticket Resolution tuner — classification prompt optimization, routing rules, auto-resolution thresholds, SLA configuration, and cost-per-ticket analysis.

frootai/frootai · 33 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

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.

microsoft/playwright · 151 tokens