agentleFS
xAmirHamza77xAmirHamza77/ReverseOps-Skill/skills/code-audit/SKILL.md

code-audit

Skill4 starsChanged 4 months agoMITView on GitHub

Use for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.

15 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

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

ToolLanguage/Scenario
SemgrepMulti-language quick rules
CodeQLDeep dataflow (GitHub)
BanditPython
gosec / staticcheckGo
SpotBugs / FindSecBugsJava

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

Task Completion Checklist

  • Was manual verification performed instead of just pasting scanner output?
  • Do findings include remediation advice?
  • Was the work limited to the authorized repository scope?
  • Checklist?

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.