How to Secure Grok Build and Grok Bot: 10 Controls for 2026

Summary: The weeks before someone resigns are when customer lists, pricing and source code are most likely to walk out the door, and AI tools now make that data easier to reshape and carry. Companies that watch data movement on the device, in context, can protect what matters without treating every employee like a suspect.

Kitecyber | Data & Gen AI Security | November 2026

A developer installs Grok Build with one command, types grok in a repository and asks it to fix a flaky test. It reads the code, runs the suite, edits files and commits. A sales lead installs the Grok Bot desktop app, connects Gmail and Salesforce, and lets a Bot reconcile a pipeline report overnight on its cloud computer, occasionally asking to run a command on her laptop. An analyst pastes a customer list into grok.com to clean it up.

Each of these is a reasonable way to get work done. Each also puts an xAI agent or model in contact with company files, credentials and data. This guide explains where the risk sits, walks through ten controls security teams can apply using what xAI and its partners provide, highlights the defaults that matter most, and closes with the policies to set for everyday Grok use.

Key takeaways

Why Grok’s agents change the risk model

Grok Build is xAI’s coding agent for the terminal. It runs as an interactive TUI, headlessly in scripts and CI, or inside other apps through the Agent Client Protocol. It reads and edits files, runs shell commands, uses Git, spawns parallel subagents, loads skills, plugins and hooks, and connects to MCP servers. It installs with a curl | bash script or npm, runs on macOS and Linux (Windows through PowerShell, Git Bash or WSL), and can even import sessions from Claude Code.

Grok Bot gives AI “teammates” a persistent Linux computer in the cloud, with a shell, a browser, a desktop and the user’s logins. Every Bot on an account shares that computer. The Grok Bot desktop app for macOS, Windows and Linux lets Bots act on the member’s own machine as well: run commands, read files and move files between the cloud computer and the laptop. Grok Bot is built on and operated by Cursor’s agent platform, so its admin controls live in the Cursor dashboard.

Grok chat is available on grok.com, the Grok apps and inside X, plus Grok Business and Grok Enterprise workspaces with connectors to tools such as Google Drive, SharePoint, Salesforce, Slack and custom MCP servers.

Shared responsibility

xAI and its partners provideYour organization decides
Model safeguards, product security, sandbox profiles, permission engineWhich plans, accounts and agents employees may use
Business data commitments (Grok Business and Enterprise: no training on business data)What data employees and agents may send
Admin controls: requirements.toml, login pinning, SSO and SCIM (Enterprise), Grok Bot network policy and MCP allowlist (Enterprise)Whether those controls are deployed, tested and enforced on every device
Zero data retention options, audit logs and OpenTelemetry export (Enterprise)Who collects and reviews logs, and how incidents are handled

Consumer Grok is different. Independent reviews of xAI’s terms report that consumer conversations can be used for training unless users opt out, and that authorized staff may review them. Business commitments only help if employees are actually signed in to business accounts.

What has already gone wrong

The pattern: permissive defaults, untrusted content steering an agent with access, and sharing features that reach further than users expect.

Six surfaces where data can leave through Grok

10 controls to secure Grok Build and Grok Bot on employee devices

1. Build an inventory of Grok agents, accounts and add-ons

grok inspect shows the rules, skills, plugins, hooks and MCP servers Grok discovers in a directory, which makes spot checks easy.

Priority: Immediate

2. Pin Grok to your company team and block personal use

[grok_com_config]
force_login_team_uuid = “<your-team-uuid>” # also disables API-key login

A personal login or a login to the wrong team is rejected, cached tokens are re-checked on every refresh, and leftover XAI_API_KEY values cannot skip SSO. Use disable_api_key_auth = true on its own if you need SSO without team pinning, and [auth.oidc] to authenticate against your own identity provider.

Priority: Immediate

3. Deploy admin-enforced requirements for Grok Build

Grok Build loads five configuration layers. The highest, /etc/grok/requirements.toml, is root-owned and fail-closed: pinned values cannot be overridden by user config, environment variables, remote settings or lower layers. xAI recommends pushing it with MDM, golden images or configuration management.

A reasonable starting baseline:

# /etc/grok/requirements.toml
[grok_com_config]
force_login_team_uuid = “<your-team-uuid>”

[ui]
disable_bypass_permissions_mode = true # no –yolo, Ctrl+O or /always-approve

[sandbox]
profile = “workspace” # sandbox is off by default

[marketplace]
require_sha = true # plugins must be pinned to a commitzz

Then add allow and deny rules, MCP allow and deny lists, and telemetry settings for your environment.

The important gotcha: Grok Build reads a subset of Claude Code’s managed-settings.json (permission rules, MCP allowlists and marketplace restrictions), but it deliberately does not apply Claude’s disableBypassPermissionsMode. A laptop locked down for Claude Code can still run Grok with –yolo. Set disable_bypass_permissions_mode in Grok’s own system file, because the lock is ignored in the user-writable ~/.grok/requirements.toml.

Priority: High

4. Turn the sandbox on and protect credentials

Grok Build’s sandbox uses Landlock on Linux and Seatbelt on macOS, and it is off by default.

Priority: High

5. Treat repositories, instruction files and add-ons as untrusted input

Priority: High

6. Govern MCP servers and connectors with least privilege

Priority: High

7. Configure the Grok Bot desktop app and cloud computer deliberately

Most of these controls are Enterprise only. Self-serve Teams do not get network controls, the MCP allowlist, audit logs or OpenTelemetry export, which is a strong reason to restrict Grok Bot to Enterprise or block it.

Priority: High

8. Control what sensitive data reaches the prompt

Grok Bot’s documentation notes that restricting egress limits where data can be sent, and points to inference hooks for checking what reaches the model. On the laptop, the same question applies to every paste, upload and agent file read.

Priority: High

9. Monitor activity and prepare an incident playbook

Priority: Medium–High

10. Write an AI acceptable-use policy and train people on it

Priority: Foundational

Securing everyday Grok chat use: the policies to configure

Area Policy to configure Why it matters
Plan Use Grok Business or Enterprise for any company data Business plans state no training on business data; consumer plans differ
Identity Enterprise: custom SSO, SCIM, domain verification and claims, custom roles Access follows your identity lifecycle
Workspaces Enterprise: turn off personal workspaces Keeps employees in the governed team workspace
Retention and keys Set custom data retention; consider customer-managed keys and Enterprise Vault; request zero data retention where needed Limits how long prompts and outputs persist
Connectors Add only approved connectors in the xAI console and review their access Connectors are the main path to bulk data
Sharing Team workspace links open only for licensed team members; set Grok Build share links to invited users or only you Prevents the kind of public exposure seen in 2025 and 2026
Audit Use advanced audit and security controls and review user analytics Evidence for investigations and audits
Personal accounts If employees use consumer Grok or Grok in X, require them to turn off model training and avoid company data entirely Consumer terms allow training and staff review

Quick-start checklist

#ControlNative optionPriority
1Inventory CLIs, apps, accounts and add-onsMDM inventory, grok inspectImmediate
2Company team onlyforce_login_team_uuid, disable_api_key_auth, SSO/SCIM, no personal workspacesImmediate
3Admin-enforced requirements/etc/grok/requirements.toml, disable_bypass_permissions_modeHigh
4Sandbox and credential protection[sandbox] profile, sandbox.toml deny lists, web_fetch offHigh
5Untrusted repos and add-onsPlan mode, plugin trust, require_sha, marketplace allowlistHigh
6MCP and connector governanceMCP allow/deny lists, console connectors, Grok Bot MCP allowlistHigh
7Grok Bot configurationLocal execution cap, network policy, Auto-review, no sudoHigh
8Data-aware controlsInference hooks, plus endpoint DLP for local dataHigh
9Monitoring and incident responseExternal OTel, audit logs, Action RecordingMedium–High
10Policy and trainingInternalFoundational

Where native controls stop

Where Kitecyber fits

Kitecyber provides Gen AI and data security that runs on the endpoint, the layer where Grok Build and the Grok Bot desktop app actually work. A single lightweight agent combines device posture, OS and process activity, user activity, network activity and on-device data classification across 80+ categories. That context lets security teams:

Kitecyber can run as SaaS, self-hosted or with your own keys, and typically goes live in about a day. It complements xAI’s native controls rather than replacing them.

Book a Kitecyber walkthrough at kitecyber.com to see Grok and every other AI agent on your endpoints, what they can reach, and how to stop risky actions before data leaves the device.

Frequently Asked Questions

It can be, when configured deliberately. Pin logins to your team, deploy /etc/grok/requirements.toml with the sandbox on and always-approve locked off, restrict MCP servers and plugins, and keep it updated.

No. The default profile is off. Pin workspace or strict in requirements.toml.

Partly. Grok reads Claude’s permission rules, MCP allowlists and marketplace restrictions, but not its bypass-permissions lock. Set disable_bypass_permissions_mode = true in Grok’s system requirements.toml.

xAI states that Grok Business and Enterprise data is not used for training, and Grok Build supports zero data retention at the team level. Consumer Grok and Grok in X follow different terms, including training by default unless users opt out.

Yes, through the desktop app, when local execution is enabled and approved. The default asks every time. xAI recommends Never allow unless there is a specific need, and admins can cap it team-wide.

Use Grok Enterprise to turn off personal workspaces, pin Grok Build logins with force_login_team_uuid, and use endpoint and web controls for grok.com, because we found no documented tenant-restriction header for grok.com at the time of writing.

Ajay Gulati

Ajay Gulati is a passionate entrepreneur focused on bringing innovative products to market that solve real-world problems with high impact. He is highly skilled in building and leading effective software development teams, driving success through strong leadership and technical expertise. With deep knowledge across multiple domains, including virtualization, networking, storage, cloud environments, and on-premises systems, he excels in product development and troubleshooting. His experience spans global development environments, working across multiple geographies. As the co-founder of Kitecyber, he is dedicated to advancing AI-driven security solutions.

Scroll to Top