agentleFS
Bin-H-17Bin-H-17/aegis-security-skill/skills/dev-security-baseline/SKILL.md

dev-security-baseline

Skill0 starsChanged 59 days agoMITView on GitHub

开发安全基线场景子 skill(MVP 核心)。对本地项目执行密钥/API 泄露扫描(gitleaks)、 SAST(semgrep + bandit)、依赖漏洞与 SBOM(osv-scanner / pip-audit)、License REUSE 合规(reuse), 经 L2 报告合成器产出 P0–P3 统一报告 + 最小改动修复 + 复检命令,并执行发布前 gate。 当用户说"安全审查 dev"、"代码安全扫描"、"密钥扫描"、"依赖漏洞"时启用。

The file

Files
SKILL.md

dev-security-baseline(开发安全基线,MVP 核心)

执行步骤

  1. 获取被扫描项目绝对路径(用户入参;缺省提示提供)。
  2. 调用 L2 编排器(务必用绝对路径):
python "<SECURITY_AUDIT_HOME>/scripts/audit_orchestrator.py" --scenario dev --path "<项目绝对路径>"

其中 SECURITY_AUDIT_HOME 默认为本集合 security-audit-common/ 目录;可通过环境变量覆盖。

  1. 读取生成的 reports/SECURITY_REPORT.md 与 reports/findings.dev.json。
  2. 向用户汇报:P0/P1 数量、发布前 Gate(阻断/通过)、最关键修复建议。
  3. 若 P0/P1 存在:明确告知禁止发布,给出复检命令,待用户修复后复检。

覆盖范围(架构 F1–F6, F12)

  • F1 密钥/API 泄露(gitleaks,P0 阻断)
  • F2 SAST(semgrep JS/TS + bandit Python)
  • F3 依赖漏洞 + SBOM(osv-scanner / pip-audit)
  • F4 License REUSE(reuse,P1)
  • F5 统一 P0–P3 报告(L2 报告合成器)
  • F6 最小修复引擎(本地 Ollama,缺失时回退规则建议)
  • F12 发布前 gate(P0/P1 清零)

降级说明

任一工具缺失 → 该扫描降级跳过(BD-01),报告标注 missing,不整体失败。提示用户运行 install_tools.ps1 补全工具链。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.