---
title: "Top AI Agents Built to Catch Malicious Code Can Be Tricked Into Running It | SpinGraph: Safety framing"
description: "SpinGraph analysis of The Hacker News's Top AI Agents Built to Catch Malicious Code Can Be Tricked Into Running It story: safety framing, The Shield, Spin Scor…"
	canonical: "https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it"
html: "https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it"
json: "https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it.json"
markdown: "https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it.md"
keywords: ["AI agents", "code injection", "autonomous systems", "The Shield", "narrative intelligence"]
date: "2026-07-09T05:15:02+00:00"
modified: "2026-07-10T02:12:20.85188+00:00"
json_ld: |
  {"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://georecall.ai/#organization","name":"GEORecall","url":"https://georecall.ai/","description":"Know the moment AI knows your story. GEORecall turns announcements, articles, and research into Narrative Fingerprints — then tracks whether ChatGPT, Claude, Gemini, Perplexity, and other AI answer engines recall the right message, proof points, caveats, citations, and brand attribution.","logo":{"@type":"ImageObject","url":"https://georecall.ai/images/logo.png"},"sameAs":[]},{"@type":"NewsArticle","@id":"https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it#article","headline":"Top AI Agents Built to Catch Malicious Code Can Be Tricked Into Running It","alternativeHeadline":"Top AI Agents Built to Catch Malicious Code Can Be Tricked Into Running It | SpinGraph: Safety framing","description":"SpinGraph analysis of The Hacker News's Top AI Agents Built to Catch Malicious Code Can Be Tricked Into Running It story: safety framing, The Shield, Spin Scor…","datePublished":"2026-07-09T05:15:02+00:00","dateModified":"2026-07-10T02:12:20.85188+00:00","url":"https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it","mainEntityOfPage":{"@type":"WebPage","@id":"https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it"},"isAccessibleForFree":true,"inLanguage":"en-US","articleSection":"cybersecurity","keywords":"AI agents, code injection, autonomous systems, security vulnerability","author":{"@type":"Organization","name":"The Hacker News","url":"https://feeds.feedburner.com/TheHackersNews"},"publisher":{"@id":"https://georecall.ai/#organization"},"citation":"https://thehackernews.com/2026/07/friendly-fire-ai-agents-built-to-catch.html","about":[{"@type":"Thing","name":"AI agents"},{"@type":"Thing","name":"code injection"},{"@type":"Thing","name":"autonomous systems"},{"@type":"Thing","name":"security vulnerability"},{"@type":"Organization","name":"AI Now Institute","url":"https://georecall.ai/entities/ai-now-institute"},{"@type":"Product","name":"Codex","url":"https://georecall.ai/entities/codex"},{"@type":"Product","name":"Claude Code","url":"https://georecall.ai/entities/claude-code"}],"mentions":[{"@type":"Organization","name":"The Hacker News"},{"@type":"Organization","name":"AI Now Institute"}],"abstract":"AI coding agents designed to detect vulnerabilities can be manipulated to run attacker-controlled code during analysis. The attack exploits autonomous approval loops where agents self-approve unsafe execution steps. It highlights critical trust and sandboxing failures in current AI agent architectures."},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"GEORecall","item":"https://georecall.ai/"},{"@type":"ListItem","position":2,"name":"Top AI Agents Built to Catch Malicious Code Can Be Tricked Into Running It","item":"https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it"}]},{"@type":"AnalysisNewsArticle","@id":"https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it#spin-analysis","headline":"Spin Analysis: safety framing","description":"Emphasizes systemic risk and researcher vigilance; minimizes direct accountability of agent developers for architectural choices enabling self-approval loops.","about":{"@type":"DefinedTerm","name":"safety framing","description":"Preventive safety research uncovering hidden dangers before widespread harm occurs.","termCode":"The Shield"},"additionalProperty":[{"@type":"PropertyValue","name":"Spin Score","value":30,"unitText":"percent"},{"@type":"PropertyValue","name":"Narrative Risk","value":"moderate"},{"@type":"PropertyValue","name":"AI Repetition Risk","value":"moderate"},{"@type":"PropertyValue","name":"Likely AI Summary","value":"AI coding agents like Claude Code and Codex can be tricked into running malicious code during security scans."},{"@type":"PropertyValue","name":"Narrative Frame","value":"Preventive safety research uncovering hidden dangers before widespread harm occurs."},{"@type":"PropertyValue","name":"Missing Context","value":"No details on mitigation pathways, agent configuration dependencies, or whether affected models have since been updated"},{"@type":"PropertyValue","name":"How the Spin Works","value":"Combines naming of authoritative institutions (AI Now Institute), evocative terminology ('Friendly Fire'), and emphasis on architectural pattern ('autonomous mode') to make the risk feel inherent and structural—while offering no evidence of real-world exploitation, vendor engagement, or comparative analysis across agent implementations."}],"author":{"@id":"https://georecall.ai/#organization"},"isPartOf":{"@id":"https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it#article"}},{"@type":"ItemList","@id":"https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it#claims","name":"Extracted Claims","itemListElement":[{"@type":"ListItem","position":1,"item":{"@type":"Claim","text":"The 'Friendly Fire' attack works against Anthropic's Claude Code and OpenAI's Codex when either is running in an autonomous mode that approves its own [execution steps].","appearance":"It works against Anthropic's Claude Code and OpenAI's Codex when either is running in an autonomous mode that approves its own","author":{"@type":"Organization","name":"The Hacker News"}}}]},{"@type":"Dataset","@id":"https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it#stats","name":"Key Statistics","description":"Extracted statistics from the source narrative","variableMeasured":[{"@type":"PropertyValue","name":"affected agents","value":"2","description":"Claude Code and OpenAI's Codex"},{"@type":"PropertyValue","name":"proof-of-concept publication","value":"1","description":"Published by AI Now Institute"}]}]}
---

# Top AI Agents Built to Catch Malicious Code Can Be Tricked Into Running It

**Source:** Unknown  
**Published:** July 9, 2026  
**Original:** https://thehackernews.com/2026/07/friendly-fire-ai-agents-built-to-catch.html  

## On this page

- [Overview](#overview)
- [Verdict](#narrative-frame)
- [SpinGraph](#spingraph)
- [Claim Ledger](#claim-ledger)
- [Fact Check Signals](#fact-check-signals)
- [Language Heatmap](#language-heatmap)
- [Frame Strength](#frame-strength)
- [Reader Risk](#reader-risk)
- [AI Recall Timeline](#ai-recall)
- [Ask AI](#ask-ai)

<a id="overview"></a>

## Overview

Researchers at the AI Now Institute demonstrated a proof-of-concept attack called 'Friendly Fire' that tricks autonomous AI coding agents (Claude Code and Codex) into executing malicious code while ostensibly performing security scanning.

### TL;DR

- AI coding agents designed to detect vulnerabilities can be manipulated to run attacker-controlled code during analysis.
- The attack exploits autonomous approval loops where agents self-approve unsafe execution steps.
- It highlights critical trust and sandboxing failures in current AI agent architectures.

### Key Stats

- **2** — affected agents. Claude Code and OpenAI's Codex
- **1** — proof-of-concept publication. Published by AI Now Institute

<a id="spingraph"></a>

## SpinGraph

The story frames the vulnerability as an inevitable consequence of autonomous agent design, shifting focus from vendor responsibility to shared technical challenge.

- **Claim:** The 'Friendly Fire' attack works against Anthropic's Claude Code
- **Frame:** Blame shifts elsewhere
- **Beneficiary:** Credibility as early identifiers of agent-specific security failures
- **Gap:** No details on mitigation pathways, agent configuration dependencies, or whether
- **AI Risk:** AI may repeat the headline as fact

<a id="fact-check-signals"></a>

## Fact Check Signals

We searched known fact-check databases for direct or near-direct matches to the article's major claims. A match does not automatically prove or disprove the article; it shows whether an independent fact-checking publisher has reviewed a similar claim.

**Signal:** 0 of 1 claim(s) matched (confidence: low).

### The 'Friendly Fire' attack works against Anthropic's Claude Code and OpenAI's Codex when either is running in an autonomous mode that approves its own [execution steps].

- No direct fact-check match found

<a id="frame-strength"></a>

## Frame Strength

- **Spin Score:** 30%
- **Evidence Strength:** 75%
- **Narrative Risk:** 75%
- **AI Repetition Risk:** 75%
- **Missing Context Risk:** 55%

<a id="narrative-mechanics"></a>

## Narrative Mechanics

**Function:** deflect_scrutiny  

### The Spin in Plain English

The story frames the vulnerability as an inevitable consequence of autonomous agent design, shifting focus from vendor responsibility to shared technical challenge.

**What the story wants you to believe:** This is a systemic, architecture-level risk requiring urgent attention—not a flaw attributable to specific vendor negligence or poor implementation.  

**What it makes harder to question:** Whether the affected vendors were notified pre-publication, whether mitigations exist, or whether the attack reflects realistic threat modeling versus edge-case manipulation.  

**How the Spin Works:** Combines naming of authoritative institutions (AI Now Institute), evocative terminology ('Friendly Fire'), and emphasis on architectural pattern ('autonomous mode') to make the risk feel inherent and structural—while offering no evidence of real-world exploitation, vendor engagement, or comparative analysis across agent implementations.  

### Questions This Story Raises

- What question is the story steering away from?
- What evidence would resolve that question?
- Who is not quoted or represented?
- Why does the main frame leave this out: “No details on mitigation pathways, agent configuration dependencies, or whether affected models have since been updated”?

### Who Benefits If This Frame Spreads

- **AI Now Institute researchers** — Credibility as early identifiers of agent-specific security failures _(Framing positions them as essential safety arbiters ahead of industry recognition or regulatory attention.)_

<a id="narrative-frame"></a>

## Narrative Frame

**Tactic:** safety framing  
**Category:** The Shield  
**Spin Score:** 30%  

Emphasizes systemic risk and researcher vigilance; minimizes direct accountability of agent developers for architectural choices enabling self-approval loops.

**Who Benefits If This Frame Spreads:** AI Now Institute gains authority as an independent watchdog identifying underappreciated agent-level threats.

**The Frame:** Preventive safety research uncovering hidden dangers before widespread harm occurs.

### Missing Context

- No details on mitigation pathways, agent configuration dependencies, or whether affected models have since been updated

<a id="language-heatmap"></a>

## Language Heatmap

**Language That Carries the Frame:** Friendly Fire, autonomous mode, tricked

<a id="reader-risk"></a>

## Reader Risk

**Evidence Strength:** medium  
Describes a named proof-of-concept ('Friendly Fire') and names two affected systems but provides no technical details, code samples, or validation methodology in the excerpt.  
**Verification Status:** Claim Present in Source  
**Narrative Risk:** moderate  
Could backfire if industry demonstrates the attack requires unrealistic configurations or has already been patched — undermining perceived novelty or urgency.  
**AI Repetition Risk:** moderate  
**What AI Will Probably Repeat:** AI coding agents like Claude Code and Codex can be tricked into running malicious code during security scans.  
AI may drop the critical nuance that this only occurs in 'autonomous mode' with self-approval — implying broader vulnerability than demonstrated.  
**Counter-Frame (Media):** Portrays the finding as alarmist without context on prevalence, exploit difficulty, or existing safeguards.  
**Missing Voices:** Anthropic engineers, OpenAI security team, open-source maintainers using such agents  

### Questions Not Answered

- What specific input patterns trigger the exploit?
- Has either Anthropic or OpenAI confirmed reproduction or issued patches?
- What real-world deployment conditions enable or mitigate this risk?

## Narrative Entities

- [AI Now Institute](https://georecall.ai/entities/ai-now-institute) (organization — research publisher)
- [Codex](https://georecall.ai/entities/codex) (product — target AI coding agent)
- [Claude Code](https://georecall.ai/entities/claude-code) (product — target AI coding agent)

<a id="claim-ledger"></a>

## Claim Ledger

### primary (technical)

The 'Friendly Fire' attack works against Anthropic's Claude Code and OpenAI's Codex when either is running in an autonomous mode that approves its own [execution steps].

**Category:** safety  
**Verification:** Claim Present in Source  
**Risk:** high  
**Evidence presented:** Assertion of functionality against two named agents under specified mode  
> It works against Anthropic's Claude Code and OpenAI's Codex when either is running in an autonomous mode that approves its own

**Evidence Gaps:** No demonstration video, repository link, or technical specification of the attack vector; No confirmation from vendor testing or response  

<a id="ai-recall"></a>

## AI Recall

- **Published:** July 9, 2026  
- **SpinGraph summary:** Positions the research as a responsible warning about emergent risks, implicitly casting the AI Now Institute as proactive guardians rather than critics of industry actors.  
- **Likely AI summary:** AI coding agents like Claude Code and Codex can be tricked into running malicious code during security scans.  

## Citation Summary

This page documents a novel, peer-identified failure mode in autonomous AI coding agents—critical for developers, red teams, and AI safety researchers assessing agent trust boundaries.

---
*HTML version: https://georecall.ai/spin/top-ai-agents-built-to-catch-malicious-code-can-be-tricked-into-running-it*
