code-audit

A source-code security review workflow using static application security testing (SAST), which examines code for risky patterns without running it.

In plain words
What is it for?
Use it for authorized white-box audits, pull-request reviews, Semgrep or CodeQL scanning, dangerous-API searches, injection checks, authorization reviews, and verifying fixes.
Why use it?
It combines automated scans with manual checks so reported issues can be tested for reachability and real exploitability instead of being accepted blindly.

Skill for Claude CodeCodex

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 skills/xamirhamza77/reverseops-skill/code-audit
Any agent
npx skills add xAmirHamza77/ReverseOps-Skill --skill code-audit
Clone the repo
git clone --depth 1 https://github.com/xAmirHamza77/ReverseOps-Skill

Made for: Claude Code, Codex.

Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 612 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.00031 $0.00612
Opus 5 $0.00015 $0.00306
Sonnet 5 $0.00006 $0.00122
Haiku 4.5 $0.00003 $0.00061

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

Security

Grade A, and why

code-audit 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/code-audit/SKILL.md · 82 lines

How it starts

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

Source Code Security Audit

ACTION REQUIRED (execute immediately after reading)

  1. NOW: Read ../field-journal/precedent-pentest.md or the code audit authorization
  2. NOW: Confirm you have source code/repository access (source-less binaries → switch to an RE skill)
  3. NOW: Identify the language stack and scope (directory/service/PR diff)
  4. NEXT: tool-index; semgrep, etc.
  5. ACT: Threat-model sketch → automated scanning → manual verification

Applicable Scenarios

  • White-box audits, PR/differential security review
  • SAST with Semgrep / CodeQL / Bandit / gosec, etc.
  • Dangerous APIs, injection points, missing authorization, crypto misuse
  • Division of work with supply-chain-security/: this skill focuses on first-party code logic; supply-chain focuses on dependencies and pipelines

Workflow

1. Scope & Threat Model

□ Trust boundaries: user input, files, deserialization, SSRF, auth middleware
□ High-value assets: authentication, payments, admin panels, key handling

2. Automated Scanning

semgrep --config auto .
# or a project ruleset
semgrep --config p/owasp-top-ten .

3. Manual Verification (MUST)

□ Every SAST hit: reachable? exploitable? false positive?
□ Authorization: IDOR/privilege bypass, missing checks, broken multi-tenant isolation
□ Injection: SQL/command/template/LDAP
□ Crypto: hardcoded keys, ECB, custom crypto

4. Deliverables

Finding: location + data flow + PoC + remediation advice
Optional ATT&CK / CWE identifiers

Toolchain

Tool Language/Scenario
Semgrep Multi-language quick rules
CodeQL Deep dataflow (GitHub)
Bandit Python
gosec / staticcheck Go
SpotBugs / FindSecBugs Java

References

  • references/sast-review-checklist.md
  • ../supply-chain-security/ ../api-security/ ../llm-security/ (Agent code)

Routing Context

Upstream: MASTER R26
Role: ops/role-map.md cae
Downstream: dependency vulnerabilities → supply-chain; runtime validation → pentest-tools

Read the full file on GitHub · 82 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 82 lines · 31 tokens per session scan A 58da95dd2c9e

Subscribe to this mod's changes

code-audit is a skill published in the GitHub repository xAmirHamza77/ReverseOps-Skill (4 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 612 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

fix-security-vulnerabilities-with-strix

Fix security vulnerabilities found by a Strix pentest (open-source CLI or app.strix.ai cloud) — triage by severity, patch the root cause rather than the symptom, and re-run Strix to prove each fix actually closes the exploit. Handles injection, XSS, SSRF, broken access control, IDOR, and other validated findings. Use…

usestrix/strix · 124 tokens

web-app-penetration-testing

Pentest a web app or website end to end — black-box testing of a live URL, staging environment, or local dev server that finds and exploits real vulnerabilities (auth bypass, broken access control, IDOR, injection, XSS, SSRF, business logic) and proves each one with a working proof-of-concept instead of a signature…

usestrix/strix · 129 tokens

analyzing-malware-behavior-with-cuckoo-sandbox

Detonate malware samples in Cuckoo Sandbox to observe runtime behavior — process creation, file system and registry changes, network communications, and API calls — and generate behavioral reports for classification and IOC extraction. Use when a sample has passed static triage and needs dynamic/behavioral analysis…

mukul975/Anthropic-Cybersecurity-Skills · 93 tokens

analyzing-network-traffic-of-malware

Analyzes network traffic generated by malware during sandbox execution or live incident response to identify C2 protocols, data exfiltration channels, payload downloads, and lateral movement patterns using Wireshark, Zeek, and Suricata. Activates for requests involving malware network analysis, C2 traffic decoding…

mukul975/Anthropic-Cybersecurity-Skills · 81 tokens

analyzing-campaign-attribution-evidence

Systematically evaluate cyber-campaign evidence to attribute an operation to a threat actor, using the Diamond Model and Analysis of Competing Hypotheses (ACH) to weigh infrastructure overlaps, TTP consistency, malware code similarity, and timing/language artifacts into confidence-weighted attribution assessments. Use…

mukul975/Anthropic-Cybersecurity-Skills · 79 tokens

analyzing-network-traffic-for-incidents

Analyzes network traffic captures and flow data to identify adversary activity during security incidents, including command-and-control communications, lateral movement, data exfiltration, and exploitation attempts. Uses Wireshark, Zeek, and NetFlow analysis techniques. Activates for requests involving network traffic…

mukul975/Anthropic-Cybersecurity-Skills · 91 tokens