Claude Code Opus 5 Auto Mode Hijacked via Prompt Injection to Execute Malicious Code
Claude Code Opus 5 in Auto Mode was tricked into running malicious code through a website summary request in a lab test.
Overview
A security researcher named Embrace The Red demonstrated that Claude Code Opus 5 in Auto Mode can be tricked into running malicious codeSoftware built to steal data, spy on users, lock files, or take control of a computer. The attack succeeded in 60% to 80% of attempts during a limited lab test. The tool uses a safety classifierA machine learning model trained to sort inputs into categories such as safe or malicious to reduce approval promptsThe text instruction or question a user or program sends to an artificial intelligence model, but it is not designed to replace a sandboxAn isolated test environment where a program can run without touching the rest of the computer or operating-systemThe core software on a computer or phone that manages hardware, files, memory, and running apps security controlsThe technical rules, tools, and policies put in place to prevent, detect, or limit cyberattacks. The background idea is that the system can be manipulated by targeted, multi-step attacks that bypass automated safeguards. The attack started with a request to summarize a website that hosted a ZIP archive containing a malicious Python file. The poisoned Python module launched another isolated Python process that downloaded and executed a later-stage payloadThe part of an attack or malware file that carries out the harmful action on the target.
Terms in this story
- Malicious Code
- Software built to steal data, spy on users, lock files, or take control of a computer. News reports use malware as the umbrella term for viruses, ransomware, spyware, and trojans that criminals install on phones, laptops, or servers without permission. Security+ objective 2.4 lists the term
- classifier
- A machine learning model trained to sort inputs into categories such as safe or malicious. Security filters and AI guardrails run a fast classifier on incoming messages to block spam, phishing lures, or prompt injection attempts before they reach the user or main model.
- Prompt
- The text instruction or question a user or program sends to an artificial intelligence model. In AI security news, a prompt includes both the visible question typed by a user and the hidden instructions that an attacker might embed in a web page.
- sandbox
- An isolated test environment where a program can run without touching the rest of the computer. Web browsers run each tab inside a sandbox so a malicious page cannot read your personal files, and analysts detonate suspicious attachments in a sandbox to watch what they do. Security+ objective 4.1 lists the term
- operating-system
- The core software on a computer or phone that manages hardware, files, memory, and running apps. Because every application relies on the operating system, a security flaw in the operating system itself affects millions of devices until users install a system update.
- security controls
- The technical rules, tools, and policies put in place to prevent, detect, or limit cyberattacks. Network firewalls, multifactor authentication, disk encryption, and regular backups are all security controls that auditors check after an incident. Security+ objective 1.1 lists the term
- payload
- The part of an attack or malware file that carries out the harmful action on the target. A phishing email and an exploit are only the delivery steps, while the payload is the ransomware or spyware that actually runs once the computer is compromised.
- Prompt Injection
- Hiding instructions inside text or data so an AI model ignores its rules and obeys the attacker. An attacker might hide invisible text on a web page or inside an email so that when an AI assistant summarizes it, the assistant forwards private data to the attacker.
- tool calls
- A structured request from an AI model asking its host program to run an external function. When an AI assistant checks your calendar, runs a shell script, or queries a database, it emits a tool call that the surrounding software executes.
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- shell
- The command-line interpreter program that accepts text commands and runs them on an operating system. When an attacker exploits a web server and pops a shell, they can type operating system commands directly as if they were sitting at the server's keyboard.
- binary
- Base 2, where each byte is written as 8 ones and zeros. In security news, the word binary refers either to raw data made of ones and zeros or to a compiled executable program that runs directly on a computer's processor. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Cyber Security News website. Cite the article, not this page.
Read the full article on Cyber Security News (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Research and reports
"Claude Code Opus 5 Auto Mode Hijacked via Prompt Injection to Execute Malicious Code..." Found by reading the article; these exact words are in it - Who is affected: "Claude Code Opus 5 Auto Mode..."
Copied word for word from the article - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......Mode Hijacked via Prompt Injection to Execute Malicious Code..." Found in the headline - CYBR 101 week 10: the web, cookies, phishing, incident response and logs
"......into running malicious code via a simple website summary request. In a limited lab test,..." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"Claude Code Opus 5 Auto Mode Hijacked via..." Found in the headline - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of code injection and its employment in cyberspace operations.
"Claude Code Opus 5 in Auto Mode can be tricked into running malicious code..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role