Cloud Agents

Security overview

View as Markdown

Cloud Agents run in isolated virtual machines in Grok Build's cloud. To evaluate them against your security requirements, start with what happens when an agent runs, how access is granted, where the code and data live, how they're isolated and encrypted, and which controls you have at each stage.

For the configuration reference, including secret types, network access modes, and egress IP ranges, see Secrets & Network. For federating a VM into AWS, GCP, Azure, or a custom verifier without long-lived keys, see OIDC tokens.

See the Trust Center for certifications, subprocessors, and architecture, and Security and Privacy Hardening for the controls you own across all of Grok Build. Grok Build is SOC 2 Type 2 compliant and commits to at-least-annual penetration testing by reputable third parties.

How Cloud Agents work

A Cloud Agent is a coding agent that runs in a virtual machine in Grok Build's cloud instead of on a developer's laptop. The VM holds a full development environment: the cloned repository, installed dependencies, configured secrets, and network access.

A single run moves through these stages:

  1. Start. A user or integration starts a task from the web app, IDE, CLI, API, Slack, or a linked issue or pull request.
  2. Provision. Grok Build provisions an isolated VM for that agent and clones the authorized repository into it.
  3. Run. The agent runs code and tools inside the VM and streams its progress, output, and artifacts back to the user.
  4. Persist. Conversation state, metadata, and artifacts are saved to managed storage so you can review and resume the run.
  5. Hand off. The agent pushes its branch and opens a pull request for a human to review before anything merges. Pull requests open ready for review unless you ask for a draft.
  6. Recycle. VM runtime resources are hibernated and then deleted on lifecycle timers once the run is idle.

Access and authorization

Cloud Agents reach your code through the Cursor GitHub or GitLab App, not through any single person's credentials.

  • Admins install the app. Enabling Cloud Agents takes admin privileges on both Grok Build and your Git provider. An admin installs the Cursor app on your Git organization and grants access only to the repositories you choose.
  • Users connect their own account. Once the app is installed, each user who wants to start an agent connects their own Git account. This is a second, per-user layer on top of the org-level install.
  • Access is inherited, never widened. A Cloud Agent can only reach repositories the triggering user could already reach. Starting an agent never grants access to a repository the user didn't already have.

Team admins can go further and lock a Git organization to your Grok Build organization with Protected Git Scopes, so only your teams can start Cloud Agents on its repositories.

Grok Build employees do not have access to the code inside Cloud Agent VMs. Access attempts are monitored by Grok Build's security team.

Isolation and infrastructure

Each agent runs in its own VM boundary, not a shared process sandbox. One agent cannot see another agent's code, environment, or state.

  • Per-agent VMs. Every agent gets a dedicated environment, isolated from other agents and other users.
  • MicroVM isolation. Runtime workspaces run on Firecracker-based microVM infrastructure.
  • Account-level separation. Cloud Agent VMs run in a separate AWS account from the rest of Grok Build's production infrastructure, so the code-execution environment is walled off from Grok Build's other services.

Encryption

Grok Build encrypts Cloud Agent data in transit and at rest.

  • In transit. TLS 1.2 or higher for service-to-service and client-to-service traffic.
  • At rest. AES-256, with per-agent keys so each agent's session data is encrypted under its own key.
  • Customer-managed keys. Enterprise teams can map a customer-managed KMS key (CMEK/BYOK) for Cloud Agent server-side encryption, so you control key rotation and access. See Data encryption.

What data is stored, where, and for how long

A Cloud Agent touches four kinds of data. Each is stored in a different place and follows its own retention rule.

DataWhat it holdsWhere it livesRetention
Runtime workspaceThe checked-out repository, build artifacts, and tool-execution context for a live runThe isolated Cloud Agent VMRecycled automatically after the run goes idle; the timer refreshes when you send follow-up prompts
VM snapshotsPoint-in-time copies of the VM disk (including cloned code) used to start and resume without recloningSnapshot and cache layer outside the active VM, encryptedRolling 30 days of inactivity; each start or resume extends it, then automatic deletion
Conversation statePrompts, model responses, tool calls, diff context, and demo artifacts that make up the transcriptGrok Build backend, encrypted with per-agent keysKept indefinitely by default so you can revisit and resume runs; deletable on demand
Secrets and tokensCloud Agent secrets, OAuth tokens, and API credentials you configureEncrypted credential stores in Grok Build's backendKept until you delete or remove them

The Delete Agent API removes an agent's conversation transcript and artifacts on demand. Snapshots can't be deleted on demand; they follow the 30-day inactivity window above. Enterprise teams can also cap conversation retention with retention policies. For the full detail on retention and deletion, see Data retention.

Privacy and model data

Cloud Agents run in Privacy Mode. With Privacy Mode on, Grok Build never trains on code accessed by Cloud Agents or on the prompts and responses their runs generate. Most models also run under Grok Build's zero-data-retention agreements, so providers don't store or train on requests and responses. See Privacy and Data Governance for the model-by-model detail and the exceptions.

Legacy Privacy Mode is not supported for Cloud Agents, because agents need to store code and environment data in the cloud while they run. Enforce standard Privacy Mode org-wide so every run inherits its zero-data-retention guarantees.

Autonomy and prompt injection

Cloud Agents auto-run terminal commands so they can iterate on tests without stopping for approval on every step. This is more autonomous than the foreground agent, and it changes the risk model: an attacker who plants instructions in content the agent reads (a prompt-injection attack) could try to make the agent exfiltrate code to an external host. See OpenAI's explanation of prompt-injection risk for cloud agents.

The layers that contain this risk:

  • Network egress controls. Restrict outbound traffic to a default set plus your allowlist, or to your allowlist only, so a compromised agent has nowhere to send data. Enterprise admins can lock the policy org-wide. See Network access.
  • Redacted runtime secrets. Mark secrets as Runtime Secrets so their values are stripped from the transcript, tool output, and commits and never reach the model.
  • File exclusion. Add sensitive paths to .cursorignore to keep them out of the agent's context.
  • Human-in-the-loop handoff. Agents open pull requests for review. Nothing merges until a person reviews the change.
  • Signed commits. Every agent commit is signed with an HSM-backed Ed25519 key and shows a "Verified" badge on GitHub, so agent-authored changes are attributable and can satisfy signed-commit branch protection. See Signed commits.

For deeper defense, pair these with hooks to enforce policy and log activity at agent lifecycle points, and have Bugbot or Security Review review agent output before it ships.

Risk considerations

RiskMitigation
Full codebase in the cloudIsolated per-agent VMs, AES-256 encryption, and automatic VM and snapshot deletion on lifecycle timers.
Third-party or insider accessNo Grok Build employee access to code in agent VMs, with monitored access attempts. VMs run in a separate AWS account from other Grok Build services.
Agent autonomyScope bounded by the repository and the triggering user's access. External reach is limited to configured tools and terminal commands, gated by network egress controls and reviewed through pull requests.
Network access and exfiltrationInternet access is on by default but can be restricted to allowlisted domains, down to allowlist-only, and locked org-wide.
Secret exposureEncrypted secret storage, redacted runtime secrets kept out of the model, build-only secrets scoped to the Docker build, and OIDC tokens for short-lived cloud federation.

Auditability

Cloud Agent activity is logged and attributable.

  • Session logging. Runs are logged, and team admins can review activity from the Cloud Agents dashboard.
  • Attributed changes. Every commit and pull request an agent creates is attributed and visible in your Git history, with signed, verified commits.
  • Audit logs. Authentication and admin events flow to your audit logs, which Enterprise teams can stream to a SIEM, webhook, or S3.
  • Run diagnostics. The built-in Grok Build Cloud MCP exposes transcripts, run events, environment details, and setup logs for a run.

Data deletion

MechanismWhat it removesHow
ArchiveHides an agent from the dashboardArchive from the dashboard
Delete Agent APIAn agent's conversation transcript and artifactsDelete Agent API
Snapshot expiryVM snapshots and cached codeAutomatic after 30 days of inactivity
Retention policy (Enterprise)Conversations older than your chosen windowRetention policies
Account deletionThe account and its associated dataDelete account

FAQ

Are Cloud Agents less secure than local agents?

They carry a different risk profile, not a worse one. Running an agent unattended in an isolated sandbox with egress restrictions and minimal permissions can be tighter than a developer's laptop, which usually has full internet access and elevated privileges.

Does Grok Build store an entire repository permanently?

No. Grok Build clones the repository to run the agent, and that clone can live in VM snapshots to speed up future starts, but it isn't kept indefinitely. Snapshots are deleted after 30 days of inactivity.

Can a Cloud Agent access repositories the developer can't?

No. Access is gated by the triggering developer's Git access. A Cloud Agent can't reach a repository the developer didn't already have access to.

Can you restrict which repositories Cloud Agents reach?

Yes. Cloud Agents can only reach repositories you authorize through your Git provider connection. You control which repositories are available, and admins can lock scopes with Protected Git Scopes.

Can a Cloud Agent read secrets and credentials?

Configure secrets through the Secrets tab in your dashboard. They're encrypted at rest with KMS, encrypted in transit, and injected as environment variables at runtime. Mark sensitive values as Runtime Secrets to keep them out of the transcript, tool output, and commits. As a matter of practice, keep secrets out of the repository; if sensitive files must live there, add them to .cursorignore. For cloud roles, mint OIDC tokens from the VM instead of storing long-lived access keys.

Can you audit Cloud Agent activity?

Yes. Sessions are logged, admins can review activity from the dashboard, and every commit and pull request an agent creates is attributed in your Git history. Enterprise teams can stream audit logs to a SIEM.

How is data deleted?

Archive an agent from the dashboard, or use the Delete Agent API to remove its transcript and artifacts. Full account deletion and Enterprise retention policies remove data on a broader schedule.

Nothing here overrides the MSA, DPA, or other binding contractual terms.


Last updated: November 27, 2026