Cybersecurity news

Jessica Doner

Back to the list

Researchers escape OpenAI Codex sandbox to run commands on host

BleepingComputer,

Security researchers found two ways to escape the OpenAI Codex sandbox, allowing malicious code to run on a developer's machine without approval.

AI and securityVulnerabilities and patches

Overview

Security researchers discovered two methods to escape the sandboxAn isolated test environment where a program can run without touching the rest of the computer of OpenAI Codex, a coding agent that runs inside a restricted environment to prevent untrusted code from affecting the wider system. The more serious flaw, called Heapjack, allows a user to execute commands on their own computer without approval or visual confirmation by simply opening a malicious repositoryA central storage place where a software project's source code, change history, and configuration files are kept and asking a question. This happens because the trusted and untrusted code share the same memory space, allowing the untrusted code to steal a security tokenA short-lived digital pass that a server gives a logged-in user or app and impersonate the trusted component. The researchers reported these issues to OpenAI on August 12, and the company fixed them within eight days. The vulnerability affected both the desktop app and the command-line tool, meaning that anyone using the software was at risk of having their system compromised by external code. Users of the software now have a patchedA software update released by a developer to fix a bug or close a security flaw version that prevents this specific type of unauthorized command execution.

Terms in this story

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
repository
A central storage place where a software project's source code, change history, and configuration files are kept. Software teams collaborate by pushing code to a shared repository, and attackers scan public repositories for accidentally committed API keys or try to poison popular projects.
token
A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
patched
A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term
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.
remote code execution
A flaw that lets an attacker run their own code on someone else's computer over a network. This is one of the most dangerous bug classes in the news because an attacker across the internet can send a crafted request and take control of a server.
CLI
A text-based terminal interface where users type commands instead of clicking buttons in a graphical window. Software teams and administrators manage cloud servers and code repositories through a CLI because text commands are fast and easy to automate in scripts.
JavaScript
The programming language that web browsers run to make web pages interactive, and that also runs on servers. Because every browser runs JavaScript automatically when loading a page, attackers use malicious JavaScript in cross-site scripting, fake browser updates, and compromised software packages.
UUID
A long randomly generated identifier string used to label records or devices uniquely without central coordination. Cloud apps use a random UUID instead of sequential numbers for user and file identifiers so attackers cannot easily guess the next record's address.
validation
Checking that data sent by a user matches the expected format and size before using it. Many injection and overflow vulnerabilities happen because a program skips input validation and trusts whatever string or file size an outside user sends. Security+ objective 4.1 lists the term
proof of concept
A working sample of code or steps that shows a reported security flaw can really be triggered. When researchers publish a proof-of-concept for a new bug, defenders can test their own systems, but criminals also watch for that code and adapt it for real attacks.
open-source
Software whose source code is publicly available for anyone to inspect, use, modify, and share. Most websites and apps rely on hundreds of open-source code libraries, so a single security flaw or malicious update in a popular library can affect thousands of companies at once.

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 BleepingComputer website. Cite the article, not this page.

Read the full article on BleepingComputer (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.

How a story is connected to the course, and every objective, week and job role

Related