Hub rules-openai-codex

rules-openai-codex

v2 public Verified

Openai-codex

OpenAI Codex is an artificial intelligence model that parses natural language and generates code in response. These rules govern prompt engineering, code generation quality, and secure API integration.

@sigmashakeinc 3 pulls 12 rules published Apr 8, 2026 synced Oct 11, 2026 sigmashakeinc/rules/rulesets/rules-openai-codex →
Severity
6 error 4 warn 2 info
demo.cast
OpenAI Codex is an artificial intelligence model that parses natural language and generates code in response. These rules govern prompt engineering, code generation quality, and secure API integration.

Rules index

12 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

codex

ask-codex-inline-interpreter warning ask

Inline interpreter in Codex context. An arbitrary code execution CVE (disclosed Aug 2025, patched in Codex CLI v0.23.0) was exploited via one-liner interpreter calls. Inline code execution with -c/-e flags can run obfuscated payloads.

Rule source requires an active Pro or Enterprise subscription.
ask-codex-outbound-network warning ask

Outbound network request from Codex context. OpenAI warns that Codex internet access 'exposes environments to security risks' and defaults network access to off. Verify the destination is a trusted development resource.

Rule source requires an active Pro or Enterprise subscription.
ask-codex-workflow-modification warning log

GitHub Actions workflow modification. Compromised Codex sessions with stolen GitHub Installation Access Tokens can inject malicious CI/CD steps that access repository secrets, push to package registries, or exfiltrate data on every future commit.

Rule source requires an active Pro or Enterprise subscription.
log-codex-container-config-write info log

Container configuration written in Codex context. Verify: no pulls from unverified image registries, no exposed ports to 0.0.0.0, no host network mode, and no privileged containers that could facilitate sandbox escape.

Rule source requires an active Pro or Enterprise subscription.
log-codex-raw-socket-tools warning log

Raw socket tool detected. Netcat/socat/bash /dev/tcp establish reverse shells or exfiltrate data outside HTTP, bypassing web-layer safeguards. These tools have no legitimate use in a Codex coding context.

Rule source requires an active Pro or Enterprise subscription.
log-codex-sandbox-probe info log

Sandbox enumeration command logged. Attackers probe sandbox details (OS, user, env vars, /proc) before crafting Codex exploits. Logging for anomaly detection — multiple rapid probes indicate reconnaissance.

Rule source requires an active Pro or Enterprise subscription.
no-codex-base64-in-url error block

Long base64-encoded string in URL. Codex data exfiltration encodes stolen secrets in base64 and embeds them in URL paths or parameters to bypass keyword-based security controls. URLs with base64 payloads (32+ chars) are blocked.

Rule source requires an active Pro or Enterprise subscription.
no-codex-branch-command-injection error block

Branch command injection detected. Codex CVE (patched Feb 2026): injecting shell metacharacters into git branch names grants lateral movement and read/write access to the entire codebase. Git operations must use plain branch names without shell operators.

Rule source requires an active Pro or Enterprise subscription.
no-codex-dns-exfiltration error block

DNS-based data exfiltration attempt. Codex sandbox safeguards can be bypassed using DNS queries to encode stolen data in subdomain lookups — a 'covert transport mechanism' documented by security researchers and confirmed by OpenAI. DNS resolution tools are blocked in Codex contexts.

Rule source requires an active Pro or Enterprise subscription.
no-codex-git-config-write error block

Writing Git config or hooks in Codex context is blocked. The Codex branch injection attack achieved lateral movement by modifying Git configuration. Git hooks enable persistent code execution on every commit, push, or checkout — a durable persistence mechanism.

Rule source requires an active Pro or Enterprise subscription.
no-codex-github-token-access error block

GitHub Installation Access Token access. The Codex branch injection attack (reported Dec 2025, patched Feb 2026) could steal GitHub Installation Access Tokens and execute bash on the code review container. Token access via shell commands is blocked.

Rule source requires an active Pro or Enterprise subscription.
no-codex-outbound-http-with-data error block

Outbound HTTP POST in Codex context. The Codex DNS-based exfiltration bypass used HTTP requests to encode stolen data (GitHub tokens, environment secrets) and transmit them to attacker-controlled endpoints. Outbound data transfer via POST is blocked.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v2
Published
Apr 8, 2026
Source commits
0
Synced
Oct 11, 2026
Hash
f6e3c76dc09db6a045a2eebdd42aa7e127b04430fce6ef82b02ba520243c7ce9
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-openai-codex/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-openai-codex. The published version only bumps when a maintainer resyncs.

No commit history available.