Skip to content
FunCoding

code-audit

Deep code audit for vulnerabilities: taint analysis, data flow tracing, unsafe patterns, race conditions, and memory safety issues.

Star
709
Category
Security
License
MIT
Last commit
Dec 1, 2026

src/alphacode_base/bundled_skills/code-audit/SKILL.md

View on GitHub

Code Audit Skill

Deep source code security review.

Taint Analysis Process

  1. Source Inventory — all entry points where external data enters
  2. Sink Inventory — all dangerous operations (exec, query, render, deserialize)
  3. Flow Tracing — follow data from source to sink through all transformations
  4. Validation Check — is there adequate sanitization at each sink?
  5. Exploitability — can an attacker control the tainted data?

Language-Specific Patterns

Rust

  • unsafe blocks: audit every one for correctness
  • unwrap() in production paths: can panic on bad input
  • transmute: type confusion, undefined behavior
  • String::from_utf8_unchecked: invalid UTF-8 can crash later

JavaScript/TypeScript

  • eval(), Function(): code injection
  • innerHTML, document.write: XSS
  • child_process.exec: command injection
  • Prototype pollution via __proto__

Python

  • pickle.loads: arbitrary code execution
  • os.system, subprocess.call(shell=True): command injection
  • yaml.load without Loader=SafeLoader: deserialization
  • SQL string formatting: SQL injection

Race Conditions

  • TOCTOU: check-then-act on shared state
  • Double-spend: concurrent requests exploiting same resource
  • Missing locks on shared mutable state
  • Non-atomic read-modify-write sequences

Similar Skills

agent-security-hardening

AFaffaan-m/ECC314k4,125 new stars in the last 7 days

Featured

ponytail-audit

Audit the whole repo: find bugs, security holes and performance bottlenecks. Get a ranked report in plain English.

DIDietrichGebert/ponytail202k4,780 new stars in the last 7 days

gstack

GAgarrytan/gstack143k636 new stars in the last 7 days

Featured

security-and-hardening

Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.

ADaddyosmani/agent-skills122k1,627 new stars in the last 7 days

doubt-driven-development

ADaddyosmani/agent-skills122k1,627 new stars in the last 7 days

ruview-rvagent

RUruvnet/RuView106k693 new stars in the last 7 days