How to Replicate The Claude Code Attack With Promptfoo
---
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
more in Writing
Writing✓ tested
Explain anything to a smart friend
great teacher who refuses to dumb things down
Writing✓ tested
Line-edit my draft (keep my voice)
sharp copy editor who tightens without flattening
Writing✓ tested
Outline a long piece before you write it
editor who structures the argument before a word is drafted