Skip to content
Proyek

visa/visa-vulnerability-agentic-harness

Lihat di GitHub

Tentang

Framework eksekusi agen untuk kerentanan Visa

Keamanan dan privasi

Cara angka ini diukur

3,150 bintang552 Fork +9 dalam 24 jam

Yang dapat Anda lakukan

  • 📚 17 security playbooks - Specialist skills per weakness family. Most lenses set a hard gate that the model applies before it reports a finding. For injection: a reachable source, an exploitable sink and no effective defense.
  • 🔌 SDK and extensions - Run scans from Python, send other scanners' findings through verification with inject_findings, and add Semgrep evidence with the built-in plugin.
  • 🎯 Exploit verification (beta) - Optional live HTTP evidence that a finding is exploitable on a local API; ev-replay re-runs the confirming requests after you ship a fix. Details
  • 📦 Docker sandbox (beta) - Opt-in containment: a scan runs inside a Docker container that sees only the directories it needs and, with the shipped profile, reaches only your model endpoints. Linux, macOS, and Windows inside WSL2. Details

Pertumbuhan bintang terukur

dalam 24 jam
+9
dalam 7 hari
+28
dalam 15 hari
+54
dalam 1 bulan
+106

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Visa Vulnerability Agentic Harness (VVAH)

An application security pipeline that discovers, verifies and fixes vulnerabilities in source code, and validates the fixes.

License Python Version Output

VVAH is Visa's open-source agentic pipeline for vulnerability discovery, remediation and validation, built on learnings from Project Glasswing. It runs in three phases: Discover (S0–S9), Remediate (S10) and Validate (S11). Deterministic stages handle repeatable work, and agentic stages handle judgment. A pluggable code graph is built once per scan and queried by the analysis stages. Each model-driven role can run on Anthropic models or on any OpenAI-compatible endpoint, including open-weight models, so no single provider is required.

VVAH pipeline

Overview

Traditional SAST tools generate findings. VVAH closes the loop: it discovers vulnerabilities, verifies each one adversarially against the code, proposes or applies fixes, and has an independent review panel grade those fixes. The result is a shorter Mean Time to Adapt (MTTA): the time from a new vulnerability class disclosure to a validated fix moves from weeks to hours. The gain does not come from faster scanning. It comes from automating the triage, reproduction and verification steps that consume most of that time.

Each finding ships with its evidence: the code location, the exploit scenario and preconditions, the adversarial verifier's rationale and, for HTTP APIs, optional live exploit confirmation. Findings stay triage candidates, so a person reviews each one before acting; the evidence makes that review fast.

Quick Start

Needs Python 3.11+ on macOS arm64, Linux x86_64/aarch64 (glibc 2.34+) or Windows amd64, and an LLM provider credential (Models).

Authorized use only. A scan sends source code to your configured model provider and spends model tokens. Scan only code you are authorized to test, through approved endpoints. See Limitations.

git clone https://github.com/visa/visa-vulnerability-agentic-harness
cd visa-vulnerability-agentic-harness
pip install .                                    # inside a virtual environment
cp .env.example .env                             # set your LLM provider credential
vvaharness setup                                 # readiness check; no model spend
vvaharness estimate --repo /path/to/your/repo    # scope and token preview; no model spend
vvaharness scan --repo /path/to/your/repo --stop-after s9   # detection only, no code edits

Using uv? Replace pip install . with uv sync, then prefix each vvaharness command with uv run. uv creates the virtual environment for you.

Want a contained scan (Beta, needs Docker)? Install the sandbox extra, build the two local sandbox images, then run with --config vvaharness/config/profiles/sandbox.yaml (Linux, macOS, or Windows inside WSL2). See Sandbox quick start.

Or run a scan from Python. scan() does not read .env, so export the credential first:

from vvaharness.sdk import ScanOptions, scan

result = scan(ScanOptions(repo="/path/to/your/repo", stop_after="s9"))
print(result.exit_code)

Need more detail? See Install and readiness in the User Guide. Check supported models before you begin.

What's new in 1.6.0

  • Docker sandbox for scans (Beta). VVAH can now run an entire scan inside a Docker container. This is optional. With the shipped sandbox profile, the container sees only the directories the scan needs and can reach only the configured model endpoints. The operating system enforces these limits, not just VVAH's own checks. Supported on Linux, macOS, and Windows inside WSL2. Rebuild its two images after every upgrade. See docs/SBX.md.
  • Verify findings you already have. An existing Semgrep report can go straight to verification, dedup and reporting without running discovery again, so there is no discovery spend. Use scan --semgrep-report <file>. It also works in the Docker sandbox. Details
  • Only scan what matters. Scan scope now follows .gitignore and git's other ignore rules. Ignored files, such as local configs and generated output, are no longer scanned.
  • Works on large repositories. Monorepos with a large number of code-graph edges now scan without failing while the graph is built. This removes a barrier for teams scanning enterprise-scale codebases.
  • Fixes run only against verified scan results. Standalone remediate in fix mode now requires a scan that this host produced for the current commit. A findings file copied from elsewhere or committed to the repo no longer drives code edits on its own. Report-only mode is not affected.
  • Safer scans. Starting a scan from inside a hostile repo no longer runs its code, S10 no longer runs programs named in its git config, and batch cleanup no longer follows symlinks out of its workspace. Details
  • AI coding agent ready. When AI coding agents run into errors, they sometimes try to fix the scanner instead of the code being scanned. That breaks results. vvaharness setup --install-agents sets guardrails so the agent uses vvaharness as intended. IBM Bob, Claude Code and Gemini CLI are detected automatically. Any other agent that reads AGENTS.md follows the same rules. Details

Check these before you upgrade:

  • Standalone remediate fix mode needs a scan run on this machine. (breaking)
  • Batch clones accept only http, https and ssh. (breaking)
  • Code that imports context_graph_sdk must import vvaharness.context_graph_sdk; plugins import GraphEnricher from vvaharness.sdk. (breaking)
  • A git-tracked .env or config.yaml is no longer loaded.
  • Rebuild the sandbox images on every upgrade.

Full details: CHANGELOG.md.

Pipeline

Discover (S0–S9)

Group Stages What happens
Seed S0 Matches built-in source and sink patterns. No model call.
Preprocess, threat model, decompose S1, S2, S3 S1 builds the shared scan context and S3 turns each threat into an investigation unit, both with no model call. S2 models the threats an attacker would pursue.
Deep dive, enrich, verify S4, S5, S6 S4 investigates each unit with playbooks and graph tools. S5 checks every finding against the code on disk and adds deterministic detector findings. S6 verifies each finding adversarially and scores it with CVSS 3.1.
Dedup, chain, report S7, S8, S9 S7 merges duplicates, S8 ranks findings and links multi-step attack chains, and S9 writes Markdown, SARIF and findings.json.

VVAH Context Graph. A deterministic map of the code's symbols, calls, imports and communities, built once per scan. S2, S4 and S6 query it to see who calls a function, what it reaches and where sinks cluster, with no extra model calls; the built-in Semgrep plugin can add its own evidence to it.

Bring your findings. Findings from another scanner enter the pipeline through the SDK's inject_findings. They start at S5 and get the same adversarial verification (S6), deduplication (S7), severity ranking and attack chains (S8) and SARIF output (S9) as VVAH's own findings. So VVAH also works as the verification and reporting layer for the scanners you already run. Semgrep JSON converts directly with the Semgrep plugin's findings_from_semgrep; see the plugin SDK guide.

Remediate (S10). Applies a minimal fix for each top finding, or proposes one without edits through vvaharness remediate --mode report-only. In a scan, S10 runs in fix mode and edits the target's source. The sdk and full profiles turn it on, --remediate turns it on with any profile, and --stop-after s9 skips it.

Validate (S11). A read-only panel of three adversarial reviewer personas grades each fix as Fixed, Partially Fixed, Not Fixed or Inconclusive. It reviews the code and runs no tests. The sdk and full profiles turn it on.

Features

Feature What you get
📚 17 security playbooks Specialist skills per weakness family. Most lenses set a hard gate that the model applies before it reports a finding. For injection: a reachable source, an exploitable sink and no effective defense.
🔌 SDK and extensions Run scans from Python, send other scanners' findings through verification with inject_findings, and add Semgrep evidence with the built-in plugin.
🎯 Exploit verification (beta) Optional live HTTP evidence that a finding is exploitable on a local API; ev-replay re-runs the confirming requests after you ship a fix. Details
📦 Docker sandbox (beta) Opt-in containment: a scan runs inside a Docker container that sees only the directories it needs and, with the shipped profile, reaches only your model endpoints. Linux, macOS, and Windows inside WSL2. Details
🔀 Multi-model Each role picks its own model and route: Anthropic, or any OpenAI-compatible endpoint, including open-weight models. No single provider dependency. Models
🛡️ Operational resilience Handles model refusals, unsupported reasoning settings, malformed tool calls, timeouts, resumes and retries, and redacts sensitive values.

Covered classes: Injection · Access control · Cryptography · CSRF · Deserialization · Secrets · SSRF · Template handling · Sensitive-data exposure · and more. Full details: Features.

Built to Keep Pace with New Threats

New vulnerability classes keep emerging. What matters is how long it takes to start detecting them and move toward validated fixes: the Mean Time to Adapt. VVAH keeps that time short, because a new class needs only a new playbook.

Example: A new deserialization vulnerability class is disclosed. You add a playbook that describes how to investigate it and list its name in the S4 skill list. The existing context graph, verification and reporting handle the rest. See Adding or changing a skill.

Documentation

Topic Link
Architecture and outputs docs/architecture.md · outputs
Integrations docs/integrations.md
User Guide docs/USER_GUIDE.md · Install and readiness · AI agents: AGENTS.md
Features docs/features.md · errors and exit codes
Models and backends docs/models.md
Limitations docs/limitations.md
Skills docs/SKILLS.md
Security docs/security.md · Docker sandbox (Beta) · SECURITY.md
License, changelog and contributing LICENSE · CHANGELOG.md · CONTRIBUTING.md · CODE_OF_CONDUCT.md · GOVERNANCE.md · SUPPORT.md

Full index: docs/ · Visa Perspectives announcement · Project Glasswing white paper

Contributing

See CONTRIBUTING.md. This repository is not currently accepting external code contributions; file bug, documentation, setup, and feature-request reports through the GitHub issue forms. Report security vulnerabilities privately via SECURITY.md — never through a public issue.

License

Licensed under the Apache License, Version 2.0 — see LICENSE and NOTICE. Copyright 2026 Visa, Inc. Third-party licenses: THIRD_PARTY_LICENSES.md. Release history: CHANGELOG.md.

Authorized use only. Scans send source code to configured model providers, and exploit verification sends live traffic to a local target. Use only approved endpoints and scan only code you are authorized to test. See Limitations and how the tool handles your data.

Jelajahi proyek terkait

Memuat…