Subscribe to get high-signal insights on how modern fintech is built.

ai & ml

Visa Built an 11-Stage Harness to Let AI Agents Hunt Vulnerabilities in Production

Visa wrapped 11 deterministic stages around probabilistic AI reasoning to hunt vulnerabilities inside six-nines payment infrastructure.

By Alex Kugell ·

Visa's network handles roughly 65,000 transactions per second at peak, on infrastructure built for six-nines availability. That infrastructure also runs legacy applications, third-party dependencies, and open-source libraries that have accumulated vulnerabilities over decades. Periodic penetration testing and scheduled SAST/DAST scans catch the known patterns, on a cycle measured in weeks or quarters.

Frontier AI models like Anthropic's Claude Mythos compress vulnerability discovery from that weeks-or-quarters pace to minutes. They reason about code semantics, chain smaller weaknesses into multi-step exploit paths, and find bugs that pattern-matching scanners miss. Across all partners in Anthropic's Project Glasswing, those models surfaced over 10,000 high and critical vulnerabilities, including decades-old bugs in OpenBSD and FFmpeg that had survived years of human review.

Adding faster AI scanning to your existing pipeline won't solve this, because the same models are available to attackers. The security constraint for a payment network shifts from "find vulnerabilities eventually" to "find, validate, and fix vulnerabilities faster than an attacker with the same AI can weaponize them."

The 11-stage harness

Visa's answer is the Vulnerability Agentic Harness, an 11-stage pipeline across four phases that wraps deterministic controls around probabilistic AI reasoning. The harness is open-sourced on GitHub and has accumulated over 2,300 stars since release.

Discovery and Modeling (S1 through S3) maps the attack surface by ingesting code, asset and business context, CMDB records, and CVE data. STRIDE and OWASP-aligned threat modeling prioritizes flows, components, and trust boundaries. The codebase gets decomposed across API boundaries with taint analysis on data flows, and specialist sub-agents are assigned where deeper reasoning is warranted.

A single AI reasoning chain can hallucinate findings. So Deep Dive and Verification (S4 through S6) runs multiple independent chains in parallel for each target, then requires convergence, meaning multiple agents must agree before a finding advances. Scope rules, severity floors, and context thresholds gate every suppression or promotion decision, making each one traceable to a specific policy.

Stage 6 adversarially challenges each surviving finding using frontier models focused on exploitability, tracing full exploit chains across trust boundaries rather than flagging isolated code fragments.

Synthesis, Chaining and Reporting (S7 through S9) deduplicates across components and batch runs, normalizes severity with business context like asset criticality and exploit availability, then chains individual findings into multi-step exploit paths. The outputs feed into Visa's deployment pipelines as SARIF reports, candidate patches, and remediation logs. Remediation and Validation (S10 through S11) generates candidate fixes under strict policy gates and validates them through a six-level ladder.

Visa Vulnerability Agentic Harness — 11 stages across 4 phases
Phase 1: Discovery & Modeling
S1
Attack Surface Mapping
Ingest code, assets, CMDB, CVE data
S2
Threat Modeling
STRIDE/OWASP prioritization of flows and trust boundaries
S3
Codebase Decomposition
API boundary analysis, taint tracking, sub-agent assignment
Phase 2: Deep Dive & Verification
S4
Parallel Reasoning
Independent chains per target
S5
Convergence & Gating
N-vote agreement, scope rules, severity floors
S6
Adversarial Challenge
Exploit chain tracing across trust boundaries
Phase 3: Synthesis & Reporting
S7
Deduplication
Cross-component and cross-batch
S8
Severity Normalization
CVSS + asset criticality + exploit availability
S9
Chain Assembly
Individual findings → multi-step exploit paths
Phase 4: Remediation & Validation
S10
Candidate Fix Generation
Policy-gated, isolated workspaces
S11
Six-Level Validation
Syntax → build → rescan → test → adversarial → regression

The six-level gate

A candidate patch has to clear syntax verification, build, security rescan, test execution, an adversarial "defeat the fix" review where a separate AI agent tries to break the patch, and a regression scan. Only patches that clear every gate get surfaced as recommended fixes.

Patches land in isolated workspaces with kill switches and are never auto-applied to the scanned repository. High-risk changes require human sign-off. The governance sits in the pipeline structure rather than in the model's judgment about whether a change is safe.

Six-level validation gate — every patch must clear each level
1
Syntax Check
Patch parses correctly in target language
deterministic
2
Build Verification
Project compiles with patch applied
deterministic
3
Security Rescan
Original vulnerability no longer detected
deterministic
4
Test Execution
Existing test suite passes
deterministic
5
Adversarial ReviewAI agent
Separate AI agent tries to defeat the fix
probabilistic
6
Regression Scan
No new vulnerabilities introduced
deterministic
Failure at any level stops the fix.

What they found

The most damaging vulnerabilities Mythos surfaced inside Visa's infrastructure were business logic and rule interaction errors. Individual components that passed their own security reviews combined into insecure outcomes when they interacted. Traditional SAST tools, which analyze code module by module, would not have flagged these because the vulnerability only exists at the boundary between systems.

Visa also runs a Payment Threats Lab (VPTL) that replays real fraud scenarios against authorization rules, thresholds, and configurations. When Mythos findings were run through VPTL, Visa's existing zero-trust architecture, network segmentation, and defense-in-depth measures prevented critical findings from translating into materially exploitable paths in production. The kill chain broke before an external actor could complete an attack.

Visa's zero-trust investment paid off under AI-speed adversarial analysis, but institutions relying on perimeter security and periodic testing instead of zero-trust segmentation may not see the same outcome.

Measuring the right thing

Traditional vulnerability management metrics track how fast you detect (MTTD) or how many CVEs you close. When AI-driven discovery can surface thousands of findings in hours, those metrics stop measuring actual risk. A team can close CVEs all day while the exploitable attack paths remain open.

Visa proposes Mean Time to Adapt (MTTA) as the replacement metric. MTTA measures the time from an AI-discovered weakness to a validated fix in production. It tracks inventory freshness (how current is your view of deployed code, configuration, and dependencies), exploitable paths per release (how many end-to-end attack chains survive each deployment), and validation cycle time (how long it takes to produce evidence that a fix works and stays working).

MTTA is Visa's internal metric, not an industry standard. The abbreviation conflicts with the established "Mean Time to Acknowledge" in incident response. But the measurement it describes addresses a gap that CVE counts and MTTD cannot fill, because those metrics were designed for a world where human analysts found vulnerabilities on a human timescale.

AI agents as identities

Visa's white paper includes an appendix of 12 non-negotiable architectural security practices derived from its Glasswing deployment. Most map to existing frameworks like PCI DSS and NIST CSF.

Principle 11 requires that any AI agent calling APIs, reading data, or modifying systems be treated as a first-class identity with scoped permissions, least privilege enforcement, full audit trails, and inclusion in incident response plans. The assumption is that attackers will attempt to steal and chain agent credentials the same way they target human credentials today.

Principle 12, "design for absence," defaults to removal over defense. Eliminate unused features, dead code, redundant libraries, and legacy protocols. Fewer dependencies mean fewer exploitable paths for AI to construct, which makes simplification itself a security control.

The dual-use problem

Attackers have access to the same frontier models. Anthropic committed $100 million in Claude Mythos credits and $4 million for open-source hardening across roughly 50 launch partners expanding to 200, including AWS, Apple, Google, Microsoft, NVIDIA, and JPMorgan. Visa open-sourced its harness so that organizations without Visa's security budget can build governed vulnerability management pipelines.

AI-driven vulnerability discovery generates findings at a rate that exceeds most organizations' capacity to validate and remediate. Automated validation using the VVAH cut review time for many findings from 30 to 60 minutes of expert work to roughly 15 minutes of unattended processing.

But if your remediation pipeline runs on weekly change windows and manual code review while adversaries operate at model inference speed, the gap between discovery and deployment is the vulnerability that matters most.

Sources

Alex Kugell
Alex KugellAI/ML Engineer, Fintech Infrastructure

Writes Ledger Drift. Engineer building AI systems and financial infrastructure. Open source contributor to x402, ACK, and MPP – agentic payment protocols.

Frequently Asked Questions

What is Visa's Vulnerability Agentic Harness?
The Visa Vulnerability Agentic Harness (VVAH) is an open-source, 11-stage pipeline that orchestrates AI agents to discover vulnerabilities, verify exploitability, generate candidate fixes, and validate that fixes work. It runs across four phases: Discovery and Modeling (S1-S3), Deep Dive and Verification (S4-S6), Synthesis, Chaining and Reporting (S7-S9), and Remediation and Validation (S10-S11). Each stage is implemented as a versioned, auditable skill. Deterministic controls gate every transition, and frontier AI models are invoked selectively at reasoning-intensive stages while deterministic stages run without LLM calls.
What did Visa find when it ran AI agents against its own infrastructure?
Across all Project Glasswing partners, frontier models surfaced over 10,000 high and critical vulnerabilities, including decades-old bugs in widely used open-source software like OpenBSD and FFmpeg that had survived years of human review. Within Visa's own infrastructure, the most damaging findings were business logic and rule interaction errors where individually secure components combined into insecure outcomes. Visa's existing zero-trust architecture and network segmentation prevented critical findings from becoming materially exploitable in production.
What is Mean Time to Adapt (MTTA)?
MTTA is Visa's proposed operational metric measuring the time from an AI-discovered vulnerability to a validated fix in production. It tracks along three dimensions: inventory freshness (how current is your view of deployed code and configuration), exploitable paths per release (how many end-to-end attack chains remain after each deployment), and validation cycle time (how long it takes to produce evidence-backed proof that a fix works). Visa proposes MTTA as a replacement for traditional metrics like mean time to detect (MTTD) and raw CVE closure counts.
How does Visa prevent AI agents from breaking production systems?
Candidate patches are written to isolated workspaces with kill switches and are never auto-applied to the scanned repository. High-risk changes require human sign-off. The final validation stage (S11) runs a six-level gate ladder: syntax check, build verification, security rescan, test execution, adversarial 'defeat the fix' review, and regression scan. Only patches that clear every gate are surfaced as recommended fixes with an auditable remediation trail.

Built by Trio, a fintech-native engineering partner helping teams build the next generation of financial technology and infrastructure.

Subscribe to Ledger Drift for high-signal insights into how modern fintech is built, from systems to code to teams.

Keep reading

analysisPayoneer's Stablecoin Bank Is a Settlement ShortcutA cross-border payments company that already supports stablecoins through Bridge just got a charter to issue its own.
analysis$34.5 Billion in Tokenized Assets and Almost No Secondary MarketDune measured what $34.5 billion in tokenized assets actually does after issuance, and most of it just sits there.
analysisVisa and Mastercard Are Building Different Agent Commerce ArchitecturesBoth networks said agentic commerce is small, then described incompatible plans for when it isn't.
View more ›