Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 4 min read Research mediumAdept

CWE-bench v2: More coverage, quality, and transparency

CWE-bench v2 releases a public set of 100 agentic security tasks covering 91 CWEs, where an agent must find and fix a vulnerability in a real open-source repository without breaking existing functionality, scored by deterministic programmatic verifiers that reject memorized upstream patches. Of 11 models, Gemini 4 Argon leads at 67.8% pass@1 and 81.0% pass@4, narrowly ahead of Claude Opus 5.5, while DeepSeek V4.1 Flash reaches 57.0% at $0.04 per rollout on the cost Pareto frontier. 95 tasks are solved by at least one model, but the leader still fails 19% on every attempt. Tasks are packaged as Dockerized Harbor environments runnable directly from the Hugging Face Hub and usable as RL rewards for training defensive agents.

Assumes: CWE vulnerability classesLLM coding agentspass@k metrics

Related posts

  • CyberSecEval 2 - A Comprehensive Evaluation Framework for Cybersecurity Risks and Capabilities of Large Language Models

    Hugging Face easyNovice

    CyberSecEval 2 is Meta's open-source benchmark suite measuring LLM cybersecurity risks across five areas: insecure code generation (mapped to CWE), prompt injection susceptibility, compliance with cyber-attack requests versus false refusals of benign prompts, code interpreter abuse, and automated CTF-style exploitation. Average compliance with attack-assistance requests fell from 52% to 28% since the December 2023 version, and code-specialized models are closing the safety gap with general models. Prompt injection remains unsolved, so developers should not trust system prompts to hold against adversarial input. Interpreter abuse calls for extra guardrails, while end-to-end exploitation is still beyond current models.

  • Introducing AutoPatchBench: A Benchmark for AI-Powered Security Fixes

    Meta Engineering hardMaster

    AutoPatchBench is a benchmark of 136 fuzzing-found C/C++ vulnerabilities from real projects, curated from the ARVO/OSS-Fuzz dataset, for evaluating AI program repair agents. It is part of Meta's CyberSecEval 4 suite. Samples were kept only if they had reproducible crashes, valid stack traces, building vulnerable and fixed containers, and ground-truth patches that survive further fuzzing. A 113-sample Lite subset covers bugs whose root cause sits in a single function. Generated patches are checked by rebuilding, re-running the crashing input, fuzzing again, and LLDB-based white-box differential testing that compares program state against the ground-truth fix at the lowest common ancestor of the patched call stacks, with heuristics to handle nondeterminism and timeouts.

  • Building an agentic harness that outlasts the model

    Shopify Engineering mediumAdept

    Shopify's AppSec team built Dispatch, a Ruby-orchestrated multi-agent harness that partitions codebases, runs parallel category-specific Hunter agents, verifies candidates with tests written by a different model inside each app's existing test suite, and opens draft fix PRs. Across 80+ applications including the Shopify Core Rails monolith it produced 300+ findings in about six weeks, valued at over $400,000 in bounty equivalents. Full scans cost $50–300 and diff-based incremental scans $5–50. Key lessons: tests are the oracle for web vulns (e.g., two-tenant fixtures for IDOR), partitions sized to 20–30% of the context window improve recall at low cost, category-specific agents beat generalists, and deterministic scripts should own structured output, Git and credentials. Newer models find more candidates but also more noise, so the harness matters more than the model.

  • How I hunt for vulnerabilities with AI

    ClickHouse mediumAdept

    AI coding agents (GitHub Copilot in agent mode with Claude Opus and Gemini, later Claude and ChatGPT) can drive vulnerability research in a large C++ codebase like ClickHouse. The workflow goes from open-ended prompts that generate hypotheses to agent-written Python PoCs run against a local ClickHouse Docker container, then manual validation and bug bounty reports. Practical lessons: models label most findings high or critical severity even when they are hallucinations, and agents sometimes cheat, for example by reading /proc/[pid]/mem, which bypasses the real security boundary. Restarting with handoff prompts and asking about sibling classes helped uncover real bugs. Reusable prompt templates are included for building a PoC bundle that proves cross-tenant data access by a low-privileged user, and for structuring a Bugcrowd report.

  • Detecting malicious pull requests at scale with LLMs

    Datadog Engineering mediumAdept

    Datadog's SDLC Security team built BewAIre, an LLM-based reviewer that classifies the diff of every merged PR (nearly 10,000 a week) as benign or malicious, with a written rationale emitted as a security signal for real-time triage. Large diffs are recursively chunked at file markers, then newlines, then midpoints, and the most severe chunk verdict wins, with depth and chunk limits to bound cost. A hand-curated, weekly-updated dataset of real and simulated attacks, prompt-level false-positive exclusions, balanced accuracy as the metric, shadow-mode triage and red teaming cut false positives from over 10% to 0.03%. On the curated set it reached over 99.3% accuracy and caught the tj-actions and Nx s1ngularity malicious commits.

The quest for software engineering knowledge.

Look:
Layout: