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.
- Find every way Grok is in
- Decide which accounts and data are allowed
- Lock the laptops
- Govern bots, connectors and keys
- Watch, and review monthly
The playbook, without buying anything
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 thegrokcommand: that's Grok Build. Local session history lives in~/.grok/. - Search your code for
XAI_API_KEYand calls toapi.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.
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.
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.tomlwithdisable_bypass_permissions_mode = trueand company sign-in ([auth.oidc]withdisable_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.
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.
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.
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
- xAI: Introducing Grok Business and Grok Enterprise
- Grok user guide
- Grok organization (SSO, SCIM, roles)
- Grok connectors
- Grok Build overview
- Grok Build permissions
- Grok Build enterprise configuration
- Grok Build sandbox (source docs)
- Grok Bot overview
- Grok Bot for teams and enterprises
- Grok Bot approvals, security and privacy
- xAI API security FAQ (training, retention, ZDR, regions)
- xAI Management API (key permissions, audit events)
- The Next Web: Grok Build uploaded entire git repositories
- 9to5Mac: 370,000 Grok chats made public
- 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.