Business security guide · OpenAI ChatGPT & Codex

How to secure ChatGPT and Codex for your business.

A five-step playbook for running ChatGPT and Codex safely across a company, with nothing to buy: find personal accounts and keys, write the policy, configure the workspace, govern Codex, and review monthly.

Updated 3 min readDrycraf Cyber OperationsChatGPT Business and Enterprise, Codex

The short answer

Run it in five steps. Find where ChatGPT and Codex are already used, including personal accounts and API keys. Decide on a one-page policy. Configure the workspace: SSO, an app allowlist, and GPT sharing. Govern Codex in the cloud and on laptops. Review every month, because OpenAI's controls and labels change often.

  1. Find where ChatGPT and Codex already are
  2. Write a one-page policy
  3. Configure the workspace
  4. Govern Codex
  5. Review it every month

The playbook, without buying anything

01

Find where ChatGPT and Codex already are

Most companies have more ChatGPT than they think: personal Plus accounts, API keys in scripts, Codex on laptops.

  • Search expense reports for ChatGPT Plus, Pro and Business subscriptions and OpenAI API charges.
  • Search your code for OPENAI_API_KEY, AGENTS.md files and .codex/ folders.
  • In your identity provider, look for OAuth grants to ChatGPT and OpenAI.
  • Check DNS or proxy logs for chatgpt.com and api.openai.com.
02

Write a one-page policy

Decide what's allowed before you configure anything.

  • Company data goes only into the company workspace.
  • List the data that never goes in: customer personal data, secrets and regulated data.
  • Name the approved apps and GPTs, and who approves new ones.
  • Set what Codex may do: which repositories, whether the cloud agent may use the internet, and who reviews its pull requests.
03

Configure the workspace

Turn the policy into settings. The free guide has the clicks.

  • Verify the domain and require SSO.
  • Disable unreviewed apps, limit approved apps' tools, and turn off new tools by default.
  • Restrict who can build apps with custom MCP servers and who can share GPTs with the whole workspace.
04

Govern Codex

Codex works in two places, OpenAI's cloud and the developer's laptop, and each needs its own guardrails.

  • In the cloud, keep agent internet access off by default, and use domain allowlists and GET-only requests where it's needed.
  • On laptops, enforce approval and sandbox settings with Agent security requirements or a managed requirements.toml.
  • Review every Codex pull request as you would a new contributor's.
  • Keep production credentials out of Codex environments and off laptops.
05

Review it every month

OpenAI ships often and renames things. Put 30 minutes on the calendar each month.

  • Look for new apps, tools and workspace permissions.
  • Compare seats with your HR roster and remove leavers.
  • Re-run the step-one searches.

Free and open-source tools to check out

None of these needs a purchase. Read each tool's own documentation before you run it on company systems.

  • GitleaksMITScans repositories and their history for committed secrets, such as API keys an AI agent wrote into a config file. Runs as a pre-commit hook or in CI.
  • Agent Scan (formerly mcp-scan)Apache-2.0Scans the MCP servers, agent configs and skills on a machine for tool poisoning, prompt injection and risky permissions.
  • promptfooMITTests and red-teams prompts, agents and RAG apps against injection, data leaks and policy breaks, in CI.
  • garakApache-2.0NVIDIA's LLM vulnerability scanner: probes a model or bot for prompt injection, data leakage and jailbreaks.
  • PresidioMITDetects and redacts personal data in text, so you can strip it from prompts, logs and exports before they reach an AI service.

At scale

Beyond one workspace: where Glasswarden comes in

Workspace settings govern the ChatGPT you pay for. They don't see personal ChatGPT accounts, OpenAI keys in scripts, or Codex running on laptops next to Claude Code and Cursor. Glasswarden, from Drycraf, runs where people and agents work, sees all of it, holds it to one policy, and sends fixes straight back to the agent that caused the problem.

AI VisibilityChatGPT and Codex, everywhereChatGPT in the browser and Codex CLI sessions and tool calls, with versions, models and MCP servers, by person and device.
AI ControlThe same rules for every agentOne policy for Codex, Claude Code and Cursor, warning or blocking where they run, with expiring exceptions.
AI RemediationFixes, Direct to AgentGlasswarden writes the fix for the owner's Codex and closes it only when its telemetry shows the risk is gone.

Questions admins ask

ChatGPT Business or Enterprise?

Business covers SSO, domain verification and app controls. Move to Enterprise when you need the Compliance API, custom retention, per-role app access, or a workspace-wide switch for conversation sharing.

Is Codex safe to give the internet?

Only narrowly. OpenAI recommends limiting it to the domains a task needs and to GET, HEAD and OPTIONS requests. An agent with open internet access can be tricked by a malicious page or issue into sending data out.

Can we see what employees ask ChatGPT?

On Enterprise and Edu, through the Compliance API. Business has no equivalent admin export.

Sources

  1. ChatGPT for work: cloud security
  2. Apps and connectors administration
  3. GPTs and sharing administration
  4. Codex cloud: internet access
  5. Codex admin setup
  6. Roles and workspace permissions
  7. Codex managed configuration (Agent security)
  8. Domain verification

Checked against the vendors' own documentation on November 6, 2026. Admin consoles change: if a menu has moved, the vendor's page above is the authority. Product names are trademarks of their owners; Drycraf is independent of them.