agentleFS
Binbin-miaoBinbin-miao/workbuddy-expert-team/skills/audit-context-building/SKILL.md

audit-context-building

Skill1 starsChanged 10 days agoMITView on GitHub

Builds deep entry-to-sink security context, detects insecure defaults and API sharp edges, and performs variant analysis across the codebase.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

/audit-context-building — 深度审计上下文构建、Sharp Edges 与全仓变体分析

源自 trailofbits/skills(融合 audit-context-building、insecure-defaults、sharp-edges 与 variant-analysis):

核心方法论

  1. 端到端数据流建模(Source-to-Sink Mapping):绘制从不可信输入源(Sources)到敏感操作汇点(Sinks:数据库写入、命令执行、外部请求、权限变更)的完整调用图。
  2. 默认安全(Fail-Closed Defaults)与 Sharp Edges 检测:
    • 当环境变量缺失、鉴权异常或配置解析失败时,系统必须默认拒绝访问(Fail-Closed),严禁回退至弱默认密钥或放行状态(Fail-Open)。
    • 拦截危险 API 误用(如弱随机数生成令牌、非恒定时间签名比对、静默吞掉异常的空 catch)。
  3. 全仓变体分析(Variant Analysis — 捉一挖十):
    • 一旦在某处发现真实 Bug 或安全缺陷,立即提炼其代码特征并在全仓检索同类变体,一次性彻底根除。

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.