Source code audit

From mtecoYY/ai-baike · View interactive version

Source code audit is an AI agent skill from the GitHub repository mtecoYY/ai-baike. 当拿到源码、代码片段、反编译产物,或用户要求代码审计时调用。负责输入点→传播链→危险函数Sink的静态审计,跨语言(PHP/Java/Python/Node/Go)危险函数速查,输出可疑调用链与缺陷触发条件。

How to use this skill

Skill file

source-code-audit — 源码审计专项深度挖掘

何时调用(触发条件)

一、静态审计方法(SAST)

核心思路

输入点 → 传播链 → 危险函数(Sink)

审计关注

输出格式

二、危险函数速查(按语言)

PHP

eval / assert / system / exec / passthru / shell_exec / popen
include / require / file_get_contents / unserialize
preg_replace(e修饰符) / create_function / $$变量覆盖

Java

Runtime.exec / ProcessBuilder / readObject / XMLDecoder
SpEL / OGNL / MVEL / EL表达式
JNDI lookup / JdbcRowSetImpl / TemplatesImpl

Python

eval / exec / os.system / subprocess / pickle.loads
yaml.load(Loader=Loader) / __import__ / compile

Node.js

eval / Function() / child_process / vm.runInContext
__proto__ / constructor.prototype(原型污染)

Go

os/exec.Command / text/template(SSTI)
sql拼接 / 不安全的反序列化

三、鉴权审计要点

四、结合其他技能

审计发现的具体漏洞类型转对应技能深化:

五、输出与报告要点

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.