安全客July 29, 2026🇨🇳Translated from Chinese

OpenAI Open-Sources Codex Security CLI for AI-Driven Code Vulnerability Detection and Remediation

OpenAI has open-sourced Codex Security, a command-line tool designed to discover, validate, and remediate security vulnerabilities in codebases, particularly those produced by AI coding assistants such as Cursor and Copilot.

The release addresses a growing gap: while AI tools accelerate code generation, traditional security reviews remain slow and expensive, and conventional static application security testing (SAST) tools generate excessive false positives that bury real issues.

Unlike rule-based SAST solutions that rely on pattern matching, Codex Security uses contextual AI analysis to understand how code behaves in its actual runtime context, enabling more meaningful findings and the generation of reviewable patches.

The project is based on OpenAI’s lightweight programming agent Codex, which entered research preview in March and is now distributed under the Apache-2.0 license. The npm package @openai/codex-security has already attracted significant attention on Hacker News, where the story surfaced faster than any official announcement.

Installation requires Node.js 22 or later and Python 3.10 or later. Users can run a basic scan with a single command after logging in, without needing a ChatGPT Plus subscription. Full capabilities are unlocked by providing an OpenAI API key via an environment variable, making the tool suitable for CI/CD pipelines.

Key use cases include repository-wide scans, pull-request analysis before code merges, automated checks in continuous integration, and tracking remediation status across multiple runs through a local state directory.

Security teams are advised to treat the tool as an assistant rather than an autonomous decision-maker, given the inherent uncertainty of model-driven judgments and the risk of both missed vulnerabilities and hallucinations.

Related articles

HabrAI Security

Inside the AI Companion: How Multi-Agent Orchestration Powers Retail Decision-Making

GlowByte has detailed the architecture of its multi-agent AI platform designed to serve as a personal assistant for category managers in large retail networks. The system separates responsibilities between a central personal AI companion that manages dialogue and orchestration and multiple specialized functional agents that handle data queries, corporate memory, anomaly detection, and consequence calculations. Security is enforced through a strict Tier-model that limits autonomous actions, prevents direct database access by the orchestrator, and requires human approval for any external changes. The platform also supports secure Agent-to-Agent communication under explicit allowlists to coordinate meetings and reminders across teams without manual intervention. Corporate, personal, and collective memory layers ensure continuity while protecting sensitive individual data. The article emphasizes that prompt injection risks remain an open industry challenge, with the Tier-model and human approval gates serving as the primary safeguards.

HabrAI Security

Prompt Injection Explained: One Practical Demonstration Shows Why It Is Not a Technical Vulnerability

The article demonstrates through direct experiments that prompt injection is not a technical attack but a normal operational behavior of large language models. The author uploaded a PDF containing Dostoevsky text plus hidden instructions to nine AI services and measured how many followed the embedded directives. Two services ignored the instructions entirely, five partially reformatted output, and two fully executed both the list formatting and the persistent account-wide instruction. The same services were then asked to translate the hidden instructions, resulting in eight out of nine interpreting the translation request itself as an executable command. The piece concludes that the only reliable mitigations are explicit user-level rules or service-level refusals, as demonstrated by ChatGPT and Claude.

BoletimSecAI Security

AgentForger Vulnerability in ChatGPT Workspace Agents Enabled Malicious AI Deployment via Single Phishing Link

A vulnerability in ChatGPT Workspace Agents allowed attackers to create and deploy a malicious AI agent inside an organization from a single phishing link. Named AgentForger, the flaw was fixed by OpenAI on June 8, 2026. The attack exploited a permissive parameter in the Agent Builder that accepted instructions directly through the URL. An authenticated user opening the prepared link would trigger automatic execution of the command without additional confirmation. The victim required access to Workspace Agents and at least one pre-authorized enterprise connector such as Outlook, Gmail, Google Drive, Slack, Teams, or Google Calendar. The malicious prompt instructed the platform to create an agent, connect available applications, disable approval requests, publish the component, and schedule it for recurring operation. In the demonstration, the agent monitored emails from the attacker with subjects starting with “TASK” and executed the contained instructions while returning results to the attacker-controlled address.

安全客AI Security

AI Coding Tools Under Fire: Grok Build Uploads Entire Git Histories, Claude Code Suspected of Silent Transfers

Security researcher cereblab uncovered that Grok Build 0.2.93 establishes separate HTTPS channels to exfiltrate full Git repositories, resulting in a 27800-fold traffic discrepancy between task context and storage uploads to Google Cloud Storage buckets. The tool ignores user instructions such as "do not read" and decouples the improve_model_enabled client switch from the server-controlled trace_upload_enabled flag, allowing continued uploads even when privacy settings are disabled. Similar concerns emerged around Claude Code, which maintains undisclosed WebSocket connections that transmit file paths, dependency trees, and code metadata without user awareness or audit logs. Comparative traffic audits showed that Codex and Gemini produced no anomalous outbound activity, while Grok Build and Claude Code were the only tools confirmed to perform data transfers beyond user authorization. The incidents highlight systemic issues including server-side remote control of client behavior, lack of third-party audits for closed-source binaries, and the conflict between model training data needs and user data sovereignty. Experts recommend zero-trust measures such as network blocking, Docker sandboxing without mounting .git directories, git filter-repo sanitization, and preference for auditable open-source alternatives like Continue.dev or locally deployed Ollama models.