
Scans your codebase for security vulnerabilities using pattern matching across SQL injection, XSS, path traversal, hardcoded secrets, and other OWASP risks. Automatically runs on new modules, security-related changes, and post-refactor. Critical and high severity findings (injection flaws, exposed credentials) block delivery, while medium and low can be accepted with documented rationale in DESIGN.md. The implementation is surprisingly practical about false positives, offering exclude patterns and context-based severity downgrading. For example, MD5 for hash bucketing or non-crypto random for jitter get a pass. Ships with a Node script that outputs human or JSON formats for CI integration. Chains nicely with other skills like securing-systems for remediation guidance.
$ npx -y skills add telagod/code-abyss --skill analyzing-security --agent claude-codeInstalls into .claude/skills of the current project.
判断先于执行:决定「是否做 / 选什么 / 如何取舍」(栈、方案、架构、权衡)前,先读领域判断内核
skills/_kernel/security/SKILL.md——它管 judgment,本秘典管 execution;冲突时以内核判断为准。
自动化扫描捕捉模式,但严重度判定与处置取决于上下文——sink、信任边界、补偿控制。
| 场景 | 必跑 | 理由 |
|---|---|---|
| 新模块落地 | ✅ | 引入新攻击面 |
| 安全相关变更 | ✅ | 直接触及威胁面 |
| 重构完成 | ✅ | 防止重构引入退化 |
| 提交前(含敏感数据/外部输入处理) | ✅ | 最后一道闸 |
| 攻防任务交付 | ✅ | 验收前自检 |
| 仅文档/样式改动 | ❌ | 无攻击面变化 |
npm audit、pip-audit,不是模式扫描)严重度(critical / high / medium / low)+ 类别(注入 / 敏感信息 / XSS / 反序列化 / 路径遍历 / SSRF / 弱加密 / 不安全随机 / 调试残留)。
random 用于非安全场景(如 jitter)→ 可接受每条规则均有 excludePattern,若仍误报:
// nosec: <规则 ID> <理由>)pentest.md)node scripts/security_scanner.js <路径> # 默认全扫
node scripts/security_scanner.js <路径> -v # 详细,含命中代码片段
node scripts/security_scanner.js <路径> --json # 机读格式,供 CI
node scripts/security_scanner.js <路径> --exclude vendor,dist
完整规则矩阵、危险模式速查、误报豁免清单详见 references/rules.md。
Critical/High 必修后方可交付。安全决策须于 DESIGN.md 记录:威胁模型、信任边界、已知风险、补偿控制。
Sponsors