跳到正文
FunCoding

code-audit

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

Star
709
分类
安全
许可证
MIT
最近提交
2026年12月1日

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

在 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

相似的 Skill

agent-security-hardening

AFaffaan-m/ECC314k近 7 天新增 4,125 个 star

精选

ponytail-audit

审计整个代码库,找出 bug、安全漏洞和性能瓶颈,获得按重要性排序的通俗报告。

DIDietrichGebert/ponytail202k近 7 天新增 4,780 个 star

gstack

GAgarrytan/gstack143k近 7 天新增 636 个 star

精选

security-and-hardening

按 OWASP Top 10 检查输入处理、登录和依赖,加固代码。

ADaddyosmani/agent-skills122k近 7 天新增 1,627 个 star

doubt-driven-development

ADaddyosmani/agent-skills122k近 7 天新增 1,627 个 star

ruview-rvagent

RUruvnet/RuView106k近 7 天新增 693 个 star