---
title: "Project Naptime: Evaluating Offensive Security Capabilities of Large Language Models"
description: "Project Naptime is Google Project Zero's LLM agent framework for vulnerability research, built on a few principles: room for reasoning, an interactive environment, specialised tools (code browser, sandboxed Python, an AddressSanitizer-instrumented debugger, and a reporter), automatic crash-based verification, and sampling over many independent trajectories."
url: "https://swe.quest/articles/project-naptime-evaluating-offensive-security-capabilities-of-large-language-d78da2e9f2fa9e00"
canonical: "https://googleprojectzero.blogspot.com/2024/06/project-naptime.html"
source: "Google Project Zero"
difficulty: "hard"
kind: "Research"
reading_minutes: 25
tags: ["vulnerability-research","ai-agents","evals","llms","memory-safety"]
---

# Project Naptime: Evaluating Offensive Security Capabilities of Large Language Models

A post on [Google Project Zero](https://swe.quest/sources/project-zero.md), 25 min read, Research. Original: [https://googleprojectzero.blogspot.com/2024/06/project-naptime.html](https://googleprojectzero.blogspot.com/2024/06/project-naptime.html)

## Summary

Project Naptime is Google Project Zero's LLM agent framework for vulnerability research, built on a few principles: room for reasoning, an interactive environment, specialised tools (code browser, sandboxed Python, an AddressSanitizer-instrumented debugger, and a reporter), automatic crash-based verification, and sampling over many independent trajectories. On Meta's CyberSecEval 2 memory-safety tests, this setup raised scores by up to 20x, reaching 1.00 on Buffer Overflow (from 0.05) with GPT-4 Turbo and 0.76 on Advanced Memory Corruption (from 0.24). The authors argue the original benchmark's single-shot, no-reasoning JSON prompt understates model capability, and that harder, more realistic benchmarks are needed. They also caution that current tools are still far from meaningfully helping security researchers day to day.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Memory safety](https://swe.quest/tags/memory-safety.md) (Security)

## Prerequisites

- memory corruption vulnerabilities
- LLM agents and tool use ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- AddressSanitizer
- pass@k evaluation ([easy posts on Evaluation](https://swe.quest/tags/evals.md?difficulty=easy))

## Keywords

Project Naptime, CyberSecEval 2, Project Zero, AddressSanitizer, GPT-4 Turbo, Gemini 1.5 Pro

## Related posts

- [CyberSecEval 2 - A Comprehensive Evaluation Framework for Cybersecurity Risks and Capabilities of Large Language Models](https://swe.quest/articles/cyberseceval-2-a-comprehensive-evaluation-framework-for-cybersecurity-risks-and-b77206af9c9d754e.md): Hugging Face · 2024-05-24 · Easy · 5 min read · Evaluation, AI safety, LLMs, Application security
  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.
- [Red-Teaming Large Language Models](https://swe.quest/articles/red-teaming-large-language-models-a911211681792c3b.md): Hugging Face · 2023-02-24 · Easy · 6 min read · AI safety, Evaluation, LLMs
  Red-teaming evaluates LLMs by crafting natural-language prompts that elicit harmful outputs such as toxicity, bias, misinformation or leaked personal data, and it differs from adversarial attacks, which can use unintelligible inputs.
- [Introducing AutoPatchBench: A Benchmark for AI-Powered Security Fixes](https://swe.quest/articles/introducing-autopatchbench-a-benchmark-for-ai-powered-security-fixes-f107d000a04ddc7d.md): Meta Engineering · 2025-04-29 · Hard · 17 min read · Evaluation, Vulnerability research, AI for coding, C & C++, Testing
  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.
- [How we detect frontier model misalignment](https://swe.quest/articles/how-we-detect-frontier-model-misalignment-98ddf97507c137b5.md): OpenAI · 2026-10-29 · Medium · 15 min read · AI safety, AI agents, Threat detection, Evaluation, Sandboxing & isolation
  OpenAI monitors frontier agents across training, evaluation, internal use and some external deployment with a four-layer pipeline: high-recall activation probes (L0), a model-based reviewer of the agent's context window (L1), security and alignment investigative agents that can run code and read full transcripts (L2), and cross-case analysis against network logs and telemetry (L3).
- [An Introduction to AI Secure LLM Safety Leaderboard](https://swe.quest/articles/an-introduction-to-ai-secure-llm-safety-leaderboard-3389612600bb2dd0.md): Hugging Face · 2024-01-26 · Easy · 5 min read · Evaluation, AI safety, LLMs
  The LLM Safety Leaderboard, built on the Hugging Face leaderboard template, ranks open and closed models using DecodingTrust, a NeurIPS 2023 evaluation framework covering eight trustworthiness perspectives: toxicity, stereotype bias, adversarial robustness, OOD robustness, adversarial demonstrations, privacy, machine ethics and fairness.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
