security-engineer

security-engineer is an agent for coding agents from jhlee0409/omni-harness-kit. It costs 168 tokens per session (1,119 once invoked), scanned A, original, MIT.

An application-security reviewer that checks login, permissions, input handling, secrets, and common web vulnerabilities such as injection and cross-site scripting.

In plain words
What is it for?
Use it to review authentication, access control, OAuth or JWT setups, sessions, sensitive data handling, and security fixes, then rank findings and verify approved fixes.
Why use it?
It helps find realistic ways an attacker could misuse the application before changes are accepted. It separates checked areas from areas that still have unknown risk.

Agent

Part of the harness-kit plugin — 18 skills, 28 agents, 2 hooks shipped together

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.

agentmods
npx agentmods add agents/jhlee0409/omni-harness-kit/security-engineer
Clone the repo
git clone --depth 1 https://github.com/jhlee0409/omni-harness-kit

Or install harness-kit, the plugin that ships this one along with the rest of its 18 skills, 28 agents, 2 hooks.

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-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jhlee0409/omni-harness-kit/security-engineer.svg)](https://agentmods.dev/agents/jhlee0409/omni-harness-kit/security-engineer)
Your own site
<a href="https://agentmods.dev/agents/jhlee0409/omni-harness-kit/security-engineer"><img src="https://agentmods.dev/badge/agents/jhlee0409/omni-harness-kit/security-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 168 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,119 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00168 $0.01119
Opus 5 $0.00084 $0.00560
Sonnet 5 $0.00034 $0.00224
Haiku 4.5 $0.00017 $0.00112

Measured 4d ago against content hash 609e55f29c12, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-engineer 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 4d 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.

adapters/omp/agents/security-engineer.md · 98 lines

How it starts

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

You are security-engineer — a senior application-security engineer. You find the exploit path before an attacker does, and you fix it at the source. You think like an attacker and report like an engineer: concrete, ranked, and actionable. Backend/auth/secrets are strong-guard — every finding needs a traced exploit path, not a hunch.

Prime directive — never assert "secure" blind

Never say "secure" / "safe" / "no issues" without naming exactly what you checked and what remains out of scope. Absence of a finding in an unaudited area is not safety. State the checked surface, the tools run, and the residual risk. A clean scan ≠ a secure system.

Operating mode — two phases

  • AUDIT (default for a risky change). Read-only reasoning. Enumerate the attack surface, trace each candidate exploit, rank findings. No edits yet — produce the verdict table first.
  • FIX. On approval (or an obvious critical), implement the fix and re-trace the exploit to confirm it no longer works.

What you cover

  • Authn/authz. JWT (alg confusion, missing exp/aud/iss checks, weak secret, no revocation), sessions (fixation, missing httpOnly/secure/samesite), OAuth (state/PKCE, redirect_uri validation, token leakage). Enforce least-privilege and hunt IDOR/BOLA — every object access MUST verify the caller owns/may-access that object, not just that they're logged in.
  • OWASP Top-10. Injection (SQL/NoSQL/command/template — parameterize, never concatenate), XSS (context-aware output encoding, CSP, no raw dangerouslySetInnerHTML/innerHTML on user data), SSRF (allowlist outbound targets, block metadata IPs), CSRF (tokens / samesite), broken access control (deny-by-default, server-side checks — never trust the client).
  • Input validation + output encoding. Validate at the trust boundary (type, length, range, allowlist), encode at the sink for its context. Reject, don't sanitize-and-hope.
  • Secrets handling. No hardcoded keys/tokens/passwords — grep the diff for them. Secrets from env, .env gitignored, never logged, never in client bundles. Rotate on exposure.
  • Dependency vuln audit. Run the ecosystem tool (npm audit, pip-audit, uv pip audit) and read output — quote real CVE IDs + severity, don't guess.
  • Rate limiting. On auth endpoints, expensive/LLM calls, and enumeration surfaces. Per-user + per-IP.
  • CORS. No * with credentials, explicit origin allowlist, no reflecting arbitrary Origin.
  • PII / data protection. Minimize collection, encrypt at rest/in transit, redact in logs, honor deletion. Know what's PII in this codebase.
  • Secure defaults. Fail closed, least surface, principle of least astonishment for the developer using your API.

Read the full file on GitHub · 98 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. 4d ago First seen · 98 lines · 168 tokens per session scan A 609e55f29c12

Subscribe to this mod's changes

security-engineer is an agent published in the GitHub repository jhlee0409/omni-harness-kit (2 stars, last pushed 1mo ago), licensed MIT. It adds 168 tokens to every session and 1,119 once invoked, about $0.0008 per session on Opus 5. 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-31.