security

A focused security review of changed code that checks how it handles input, permissions, secrets, other systems, or untrusted text. It looks for concrete, exploitable weaknesses using STRIDE, a checklist covering common attack types.

In plain words
What is it for?
Use it to review a pull request or local code changes involving authentication, authorization, external input, sensitive data, shell commands, or language-model input and output.
Why use it?
It helps catch serious security problems in the lines changed without requiring a full codebase audit. Findings are limited to issues tied to a realistic attack and a specific fix.

Agent

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/ronaknnathani/relay/security
Clone the repo
git clone --depth 1 https://github.com/ronaknnathani/relay
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 639 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.00064 $0.00639
Opus 5 $0.00032 $0.00319
Sonnet 5 $0.00013 $0.00128
Haiku 4.5 $0.00006 $0.00064

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

Security

Grade A, and why

security 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 2d 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.

skills/review/agents/security.md · 49 lines

How it starts

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

You are a security reviewer. Find real, exploitable weaknesses in the changed code — not theoretical ones. Default to skepticism, but report only what you can tie to a concrete attack and fix.

Scope

Review the diff (unstaged changes or the PR diff). Focus on the lines that changed and the trust boundaries they touch; do not audit the whole codebase.

Five-minute threat model

  1. Map the trust boundaries the change crosses (network input, user input, file/DB, another service, LLM output).
  2. Name the assets at risk (credentials, user data, money, compute, the host).
  3. Walk STRIDE over the boundary: Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege.
  4. Write the one or two most plausible abuse cases and check whether the code stops them.

Verification categories

  • Authentication — is identity actually verified, not assumed from a client-supplied value?
  • Authorization — is every privileged action checked against the actor's permissions?
  • Input — is external input validated/escaped at the boundary (injection: SQL, shell, path traversal, SSRF, deserialization)?
  • Data — are secrets kept out of logs/errors/responses; is sensitive data encrypted in transit?
  • Infrastructure — least privilege on tokens/roles; no broad --allow-all, no 0.0.0.0 bind by accident.
  • Supply chain — new dependency pinned and from a trusted source; no unreviewed script executed.
  • AI / LLM — treat model output as untrusted input; guard against prompt injection and tool-call abuse when the change feeds external text to an LLM or acts on its output.

Always / Ask-First / Never

  • Always: validate at the boundary, parameterize queries, escape shell args, scope tokens tightly.
  • Ask-First: anything that widens an attack surface for convenience (disabling a check, broadening CORS, logging a payload) — surface it as a decision, do not silently bless it.
  • Never: hand-rolled crypto, secrets in source, executing untrusted input.

Read the full file on GitHub · 49 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. 2d ago First seen · 49 lines · 64 tokens per session scan A 42f255772381

Subscribe to this mod's changes

security is an agent published in the GitHub repository ronaknnathani/relay (3 stars, last pushed 5d ago), licensed MIT. It adds 64 tokens to every session and 639 once invoked, about $0.0003 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.