agent-security-hardening
AFaffaan-m/ECC314k4,125 new stars in the last 7 days
拿到目标源码/仓库(白盒或泄露源码)做代码审计时调用——危险 sink 定位、框架模式识别、git 历史挖掘、依赖 CVE、semgrep/gitleaks 用法与从代码到可利用性的验证路径。
gitleaks detect --source . -v、semgrep --config p/secrets;.env/配置/硬编码 AK;git log --oneline --all | head -50、git log -p -- .env(删除过又提交的密钥仍在历史里)。| 类型 | 语言 | sink 关键词 |
|---|---|---|
| SQLi | Java/PHP/Py/Go | Statement.execute*、${}拼接、db.Raw、cursor.execute(f" |
| 命令注入 | 全部 | Runtime.exec、ProcessBuilder、os.system、subprocess(...,shell=True)、exec.Command("sh","-c" |
| 反序列化 | Java | ObjectInputStream、readObject、Fastjson JSON.parse*、XStream |
| SSRF | 全部 | http.Get(req.Param、requests.get(、urllib、new URL(input) |
| 文件 | 全部 | ../拼接、os.path.join(base, user)、FileInputStream(user)、sendFile |
| 模板注入 | Java/Py | Template.process、render_template_string、new Template(input) |
| 越权 | 全部 | 直接用请求 id 查库(无 owner 校验)、findById(param) 后不比对当前用户 |
@PreAuthorize 缺失、/common/download?fileName=(路径穿越)、gen 模块 SQL 注入;@RequestMapping 通配、Actuator 暴露、SpEL 注入点(#{...});input() 直接进 whereRaw、invokeFunction、多语言 lang 参数 LFI;/jmreport/*、Freemarker 模板注入、queryTableData SQL;unserialize、.env 暴露、Debugbar;raw()/extra()、mark_safe、DEBUG=True。http_probe/curl 打真实目标);semgrep --config auto . 快速起量,重点看 high confidence 项;mvn dependency:tree/npm audit/gosum + search_vulns 匹配版本;AFaffaan-m/ECC314k4,125 new stars in the last 7 days
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
GAgarrytan/gstack143k636 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills122k1,627 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,627 new stars in the last 7 days
RUruvnet/RuView106k693 new stars in the last 7 days