home/writing/how-to-replicate-the-claude-code-attack-with-promptfoo

How to Replicate The Claude Code Attack With Promptfoo

GPTClaudeGemini··666 copies·updated 2026-07-14
how-to-replicate-the-claude-code-attack-with-promptfoo.prompt
---
title: "How to replicate the Claude Code attack with Promptfoo"
url: "https://www.promptfoo.dev/blog/claude-code-attack/"
date: "2025-11-17"
feed_url: "https://www.promptfoo.dev/blog/rss.xml"
---
A recent cyber espionage campaign revealed how state actors weaponized Anthropic's Claude Code - not through traditional hacking, but by convincing the AI itself to carry out malicious operations.

when to use it

Community prompt sourced from the open-source GitHub repo api-evangelist/prompt-foo (no explicit license). A "How to Replicate The Claude Code Attack With Promptfoo" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

writingcommunitygeneral

source

api-evangelist/prompt-foo · no explicit license