Business security guide · xAI Grok

How to secure Grok Bot and Grok Build for businesses.

A five-step playbook for getting a handle on Grok across a company, with nothing to buy: find it, decide who may use what, lock the laptops, govern bots and keys, and keep watching.

Updated 4 min readDrycraf Cyber OperationsGrok Business, Grok Bot, Grok Build, xAI API

The short answer

Grok comes in through four doors: personal X and SuperGrok accounts, the Grok Business app, Grok Bot (through Cursor), and Grok Build on developers' laptops. Secure it in five steps. Find each door. Decide which accounts and data are allowed. Lock the laptops with a managed requirements file. Govern bots, connectors and API keys. Watch the audit events and the news, and review monthly.

  1. Find every way Grok is in
  2. Decide which accounts and data are allowed
  3. Lock the laptops
  4. Govern bots, connectors and keys
  5. Watch, and review monthly

The playbook, without buying anything

01

Find every way Grok is in

Grok rarely arrives through procurement. Look for each way in.

  • Search expense reports for SuperGrok, X Premium, Grok Business and Cursor subscriptions.
  • On company laptops, look for ~/.grok/ folders and the grok command: that's Grok Build. Local session history lives in ~/.grok/.
  • Search your code for XAI_API_KEY and calls to api.x.ai.
  • Check whether a Cursor team exists, and whether its Grok Bot page is enabled.
  • Check DNS or proxy logs for grok.com, x.ai and api.x.ai from company devices.
02

Decide which accounts and data are allowed

Write down the rules before you set anything.

  • Company data goes only into Grok Business or Enterprise, or into Grok Bot through the company's Cursor team, never into personal X or SuperGrok accounts.
  • List the data that never goes in: customer personal data, secrets and regulated data.
  • Name who may run Grok Build, and on which repositories.
  • Set the Grok Bot rule for local execution: Ask every time, or Never allow.
03

Lock the laptops

Grok Build's guardrails live in files on each machine, so deliver them the way you deliver other policy: through MDM.

  • Push a root-owned /etc/grok/requirements.toml with disable_bypass_permissions_mode = true and company sign-in ([auth.oidc] with disable_api_key_auth).
  • Standardise a sandbox profile and a short list of deny rules.
  • Keep production credentials and long-lived cloud keys off developer laptops.
  • If version 0.2.93 ever ran, rotate the secrets in the repositories it opened.
04

Govern bots, connectors and keys

Every connector and key is a door into your data. Open them one at a time.

  • Provision connectors in the console only after review.
  • Cap Grok Bot's approval and local-execution settings from the Cursor dashboard.
  • Limit each API key to its models and endpoints, with rate limits, and keep keys in a secrets manager.
  • Use zero data retention and the US endpoint where your data needs them.
05

Watch, and review monthly

Grok changes fast, and so does its security story. Put 30 minutes on the calendar each month.

  • Pull the console's audit events for API key, member and settings changes.
  • Review Cursor's audit logs for Grok Bot control events if you're on Enterprise.
  • Re-run the step-one searches.
  • Read xAI's changelog and security news. In the past year Grok has had a shared-chat indexing exposure, a leaked developer key, and a coding agent that uploaded whole repositories.

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.

  • TruffleHogAGPL-3.0Finds leaked credentials across git history, buckets and chat exports, and checks whether each one still works, so you know what to rotate first.
  • 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.
  • garakApache-2.0NVIDIA's LLM vulnerability scanner: probes a model or bot for prompt injection, data leakage and jailbreaks.
  • promptfooMITTests and red-teams prompts, agents and RAG apps against injection, data leaks and policy breaks, in CI.

At scale

Three consoles and a file on every laptop: where Glasswarden comes in

Grok Business is managed at console.x.ai, Grok Bot from the Cursor dashboard, and Grok Build from a file on each laptop, and none of them sees the personal X accounts nobody registered. Glasswarden, from Drycraf, runs where your people and agents work, puts every AI tool on one inventory, holds them all to one policy, and sends fixes straight back to the agent that caused the problem.

AI VisibilityEvery AI tool on one inventoryWhich assistants and agents are in use, their versions, models and MCP servers, by person, team and device.
AI ControlOne policy, wherever agents runRules that warn or block, such as no reading secret files, for everyone or one team, with exceptions that expire.
AI RemediationFixes, Direct to AgentWhen something's exposed, Glasswarden writes the fix for the owner's coding agent and closes it only when telemetry shows it's gone.

Questions admins ask

Is Grok safe to use at work?

It can be, with the right account and settings. Use Grok Business or Enterprise (xAI says business data is never used for training), lock Grok Build down with a managed requirements file, keep Grok Bot asking before it acts, and keep company data out of personal X and SuperGrok accounts.

Where are Grok Bot's admin settings?

On the Grok Bot page of your Cursor team dashboard, because Grok Bot signs in with a Cursor account. Your Cursor SSO and SCIM setup carries over, and audit logs cover admin, security and sign-in events plus Grok Bot control events.

Can we see what Grok Build did on a laptop?

Grok Build keeps local session history in ~/.grok/, even with zero data retention on. There's no central admin view of it, which is why a company-wide inventory of agents and their actions matters.

Does the xAI API have IP allowlists or key expiry?

Not in the documentation we reviewed. Keys can be limited to models and endpoints and given rate limits; to retire one, delete it through the Management API.

Sources

  1. xAI: Introducing Grok Business and Grok Enterprise
  2. Grok user guide
  3. Grok organization (SSO, SCIM, roles)
  4. Grok connectors
  5. Grok Build overview
  6. Grok Build permissions
  7. Grok Build enterprise configuration
  8. Grok Build sandbox (source docs)
  9. Grok Bot overview
  10. Grok Bot for teams and enterprises
  11. Grok Bot approvals, security and privacy
  12. xAI API security FAQ (training, retention, ZDR, regions)
  13. xAI Management API (key permissions, audit events)
  14. The Next Web: Grok Build uploaded entire git repositories
  15. 9to5Mac: 370,000 Grok chats made public
  16. The Register: Grok chat prompt injection

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.