VVAH:用 AI 找漏洞、复核、修复、打分VVAH: AI that finds security bugs, checks them, fixes and grades
VVAH 是 Visa 开源的工具,用 AI 找代码漏洞,再修复、打分。这里是社区分叉版。每条发现都只是线索,要人核对。
1. 找该看哪里。 AI 先跳过非生产文件。S0 画出输入到危险调用的路径,S1 摸清仓库,S2 做威胁模型,S3 把代码切块。
2. 细查再复核。 S4 由 AI 逐块审查,专项块配 11 种视角之一,如访问控制。S5 用规则筛掉明显误报。S6 换新验证者专门证伪,只有真问题往下走。
可选的现场验证(测试版)拿 Web API 类发现去打本机运行的应用,由独立评判者看真实流量下结论。它只补证据,不删发现。
3. 出报告。 S7 去重,S8 把小漏洞串成攻击链并重排,S9 写出 Markdown 和 SARIF,密钥会遮住。
4. 修复和打分。 默认都关着。S10 给出最小修复,有策略闸门和紧急开关。
S11 由两个 AI 评审按四项加权检查打分,根因最重。
每步在配置里各选模型:Claude、OpenAI 或开源模型。默认只要一个 Anthropic 密钥。
运行边跑边存,中断不白花钱;每次都记下模型、token 和成本。
VVAH is Visa's open-source harness that uses AI models to find security weaknesses in code, propose fixes and grade them. This is a community fork. Every finding is a lead for a person to check, not a final answer.
1. Find where to look. An AI pass skips non-production files. S0 maps where input reaches risky calls, S1 surveys the repo, S2 builds a threat model, and S3 splits the code into chunks.
2. Hunt and double-check. In S4 an AI reviewer reads each chunk. Specialist chunks get one of 11 lenses, such as access control. S5 drops obvious mistakes with plain rules. In S6 a fresh verifier tries to prove each finding wrong. Only true positives go on.
An optional live check (beta) tests web-API findings against a copy of the app on the same machine. A separate judge decides from the real traffic. It adds proof and never removes a finding.
3. Report. S7 merges duplicates. S8 links small bugs into attack chains and re-ranks them. S9 writes Markdown for people and SARIF for tools, with secrets masked.
4. Fix and grade. Both are off in the default profile. S10 proposes a minimal fix, behind a policy gate and a kill switch.
In S11 two AI reviewers grade the fix on four weighted checks. Root cause counts most.
Each step picks its own model and route in config: Claude, OpenAI or open-weight models. The default profile needs one Anthropic key.
Runs save progress as they go, so a crash loses little paid work. Each run records its models, tokens and cost.
来源Source: github.com