Skip to content
Snyk Labs·Indexed by this site · Originally published· Evaluation →SelectedAttention37

Snyk Labs tests Opus 4.7 and other models on vulnerability discovery across four codebases

How Cooked Are We? Testing the Limits of AI-Driven Vulnerability Research

AI summary

Snyk Labs used prompts of four decreasing difficulty levels to have Opus 4.7, using opencode as the agent, find the same type of OAuth state token flaw—namely 1-Click account takeover (login CSRF)—in one pass across four codebases. The four targets were Fastapi-sso (6,932 lines, CVE-2025-14546), Fastapi-users (13,192 lines, CVE-2025-68481), Authlib (53,074 lines, CVE-2025-68158), and Langfuse (410,119 lines, CVE-2025-65107). The authors found that Opus 4.7's high reasoning mode tends to be broad and shallow, and gives up easily on clues, requiring human follow-up to delve into the runtime behavior of NextAuth when AUTH_*_CHECKS is not set. The authors emphasize that this is not a benchmark, but only a small-scale exploration.

Why it was selected

The authors used four levels of progressive prompts to test the vulnerability discovery capabilities of models like Opus 4.7 on four codebases, and provided the correspondence between prompt strength, cost, and hit rate.

Read originallabs.snyk.io