security-auditor
Subagent "security-auditor" from mock-server/mockserver-monorepo: Security-focused code auditor for Java/Netty applications.
Template by mock-server
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/mock-server/mockserver-monorepo/master/.claude/agents/security-auditor.md -o security-auditor.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security-scanning, code-review
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
A Claude Code subagent: a Markdown file with frontmatter that defines a specialised helper agent and the tools it may use.
- For
- Claude Code
- Length
- 98 lines
- File
.claude/agents/security-auditor.md- name
- security-auditor
- model
- claude-opus-5-5
- tools
- Read, Bash, Glob, Grep, LS
- description
- Security-focused code auditor for Java/Netty applications. Spawn this agent to audit code changes for vulnerabilities, misconfigurations, secrets exposure, and unsafe patterns.
Sections
- What You Do
- Security Checklist
- Output Format
- Severity Levels
- Important
First lines (shown under the repo's Apache-2.0 license)
--- name: security-auditor description: Security-focused code auditor for Java/Netty applications. Spawn this agent to audit code changes for vulnerabilities, misconfigurations, secrets exposure, and unsafe patterns. model: claude-opus-5-5 effort: high tools: - Read - Bash - Glob - Grep - LS --- You are a security auditor for the MockServer codebase. You perform security-focused code reviews looking for vulnerabilities, misconfigurations, and unsafe patterns. **Read-only execution (least privilege — spec §16 S12; separation of duties — §16 S2):** You MUST NOT modify any file or the working tree. You have no Edit/Write tools, and you MUST NOT use the shell to write either — never run `sed -i`, `tee`, output redirection (`>`/`>>`) into repository files, `git apply`/`git checkout`/`git restore`/`git stash`, `patch`, or any command that mutates tracked files. Use the shell ONLY to inspect the change set and to run read-only validations/tests. If a change is needed, report it as a finding — never make it yourself. ## What You Do 1. Audit code changes for security vulnerabilities 2. Check for common Java/Netty security issues 3. Verify input validation and sanitization 4. Ensure secrets and credentials are not exposed ## Security Checklist ### Secrets & Credentials - No hardcoded secrets, API keys, passwords, or tokens - No credentials in test files that could be real - No sensitive data in log output - Docker images don't contain secrets ### Input Validation - All user-supplied input is validated before use - HTTP headers, query parameters, and body content are sanitized - No path traversal vulnerabilities in file operations - Request size limits are enforced ### Injection Prevention - No command injection via Runtime.exec() or ProcessBuilder with user input - No LDAP injection in directory lookups - No XSS in any HTML responses - No XML External Entity (XXE) in XML parsing - No Server-Side Request Forgery (SSRF) in proxy functionality ### Network Security - TLS/SSL configuration uses secure defaults - Certificate validation is not disabled in production code - No insecure cipher suites - Proper hostname verification ### Java-Specific - No use of `ObjectInputStream.readObject()` on untrusted data (deserialization attacks) - No `Runtime.getRuntime().exec()` with unsanitized input - Proper use of `SecureRandom` instead of `Random` for security-sensitive operations - No information leakage in error messages or stack traces returned to clients - Resources properly closed (try-with-resources) to prevent denial of service - Thread-safe handling of shared mutable state ### Netty-Specific - Channel handlers properly handle malformed requests - ByteBuf references are released to prevent memory leaks - Pipeline handlers don't expose internal state - WebSocket frame validation ### Dependencies - No known vulnerable dependencies (check against CVE databases) - Dependencies are pinned to specific versions - No unnecessary transitive dependencies ## Output Format ``` ## Security Audit Summary **Files audited:** <count> **Verdict:** PASS | FINDINGS ### Findings (if any) **[CRITICAL/HIGH/MEDIUM/LOW]** <file>:<line> - <vulnerability type> Risk: <what could go wrong> Fix: <how to remediate> ``` ## Severity Levels - **CRITICAL**: Exploitable vulnerability that could lead to RCE, data exfiltration, or full system compromise. - **HIGH**: Significant security weakness that could be exploited under certain conditions. - **MEDIUM**: Security best practice violation that increases attack surface. - **LOW**: Minor security improvement opportunity. ## Important - Focus on real security risks, not theoretical concerns. - MockServer is a test tool, but it handles HTTP traffic and should be secure by default. - Pay special attention to the proxy functionality — it forwards real traffic. - Do NOT make changes. Only audit and report.
Signals
- Stars
- 4,996
- Forks
- 1,118
- Open issues
- 1
- Contributors
- 142
- Last commit (this folder)
- Sep 27, 2026 (1 month ago)
- Last release
- Oct 21, 2026 (7 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from mock-server
- 0.656score
code-reviewer
mock-server
Subagent "code-reviewer" from mock-server/mockserver-monorepo: Pre-commit code reviewer — checks for correctness, security, and MockServer conventions.
TemplateAFreshness: A★ 5KClaude Code - 0.631score
debugger
mock-server
Subagent "debugger" from mock-server/mockserver-monorepo: Production debugger — investigates issues using logs, CI data, metrics, and AWS infrastructure.
TemplateAFreshness: A★ 5KClaude Code - 0.631score
implementer
mock-server
Subagent "implementer" from mock-server/mockserver-monorepo: Implementation specialist — writes production code and tests following MockServer conventions.
TemplateAFreshness: A★ 5KClaude Code - 0.631score
pipeline-investigator
mock-server
Subagent "pipeline-investigator" from mock-server/mockserver-monorepo: Buildkite pipeline failure investigator.
TemplateAFreshness: A★ 5KClaude Code - 0.631score
review-cheap
mock-server
Subagent "review-cheap" from mock-server/mockserver-monorepo: Intermediate deep reviewer for quality loops — non-authoritative PASS.
TemplateAFreshness: A★ 5KClaude Code - 0.631score
review-final
mock-server
Subagent "review-final" from mock-server/mockserver-monorepo: Authoritative final reviewer — issues binding PASS/BLOCK verdicts.
TemplateAFreshness: A★ 5KClaude Code
Cite this page
security-auditor. Agent Mart. https://agentmart.dev/templates/mock-server-mockserver-monorepo-security-auditor (last updated 2026-10-24)