The Subdomain Security Trap: How Grok Build Exposed 35,000 Enterprise Applications via Passive DNS

An architectural review of SpaceXSI's Grok Build leak, examining why placing capability-based tokens in subdomains exposes confidential enterprise data to passive DNS logging.

Published: 2026.11.30

Passive DNS Enumeration
43,601 Hosts

Discovered under grok.me via pDNS telemetry

Public Access Exposure
>35,000 Apps

Accessible without authentication or login gates

Internal SpaceXSI Impact
24 Core Apps

Compromised internal sales plans and infrastructure

Executive Takeaway ·Encoding capability-based authorization tokens into DNS subdomains rather than encrypted HTTP request paths invalidates link privacy across enterprise env…

A security design failure in Grok Build—the AI application generation platform operated by SpaceXSI—has exposed confidential internal data from thousands of enterprises, including SpaceXSI itself. Security research conducted by Claroc identified 43,601 active hostnames under the grok.me root domain using passive DNS records. Over 35,000 of these deployments resolved directly into live, unauthenticated web applications containing proprietary enterprise data, ranging from advertising plans and internal sales territory mappings to employee records and medical files.

The root cause does not stem from a broken cryptographic primitive or an exploited zero-day injection. Instead, it originates from a flawed application deployment architecture: provisioning capability-based access tokens as DNS subdomains rather than protected URL path parameters.

Grok Build Authorization Failure Pipeline

How architectural URL placement exposes enterprise data to passive reconnaissance

01 · Application Generation
Subdomain Token Provisioning

Grok Build generates unique multi-word prefixes on grok.me with default public permissions.

02 · DNS Resolution Leak
Passive DNS Telemetry Capture

Central DNS resolvers log query transactions into publicly indexable threat intelligence feeds.

03 · Unauthenticated Access
Arbitrary Project Enumeration

External actors pull historical hostnames and access internal applications without credentials.

The Subdomain Routing Flaw: Why Left-Side Entropy Breaks Capability-Based Access

Capability-based security models rely on the principle that holding an unguessable uniform resource identifier grants access to an underlying object. Google pioneered this pattern across Google Docs and Google Drive, appending high-entropy alphanumeric strings to the right of the domain name within the URL path. Because standard HTTP infrastructure encrypts the full path behind Transport Layer Security (TLS), intermediate networking appliances, recursive resolvers, and certificate monitoring services cannot inspect the token.

SpaceXSI engineers inverted this model by placing the randomized tokens to the left of the base domain as subdomains (e.g., cinder-crane-sand-frost.grok.me). Generating three or four random words yields approximately 38 bits of cryptographic entropy, which theoretically prevents brute-force URL guessing across billions of combinations.

However, routing an application through a distinct subdomain forces every client browser to submit an authoritative DNS query before establishing an HTTPS handshake. Passive DNS (pDNS) telemetry networks continuously harvest these lookup transactions from recursive resolvers worldwide.

Consequently, the exact string designed to serve as an unguessable access key gets indexed in publicly queryable databases including Farsight, SecurityTrails, and VirusTotal within minutes of creation.

Capability Token Placement Architecture

Path-based TLS protection versus subdomain DNS reconnaissance leakage

TLS Encrypted
Path-Based Authorization (Google Model)
  • • Token sits right of domain: docs.google.com/d/{TOKEN}
  • • Path parameters protected inside TLS payload
  • • Recursive DNS resolvers only see the base domain
  • • Zero exposure in public passive DNS telemetry
Publicly Broadcast
Subdomain Authorization (Grok Build Model)
  • • Token sits left of domain: {TOKEN}.grok.me
  • • Browser must execute plain DNS lookup for host
  • • Passive DNS networks capture and log unique names
  • • Allows automated enumeration of all live assets
Verdict ·Hosting capability tokens on subdomains invalidates link privacy by design.

Quantitative Exposure: Analyzing 43,601 Discovered Endpoints

Claroc’s investigation revealed that roughly 95% of active Grok Build web applications defaulted to “Anyone with the link” permissions. While the interface allowed users to toggle visibility to “invited users” or “only you,” default deployments created instant, public exposures.

A representative from Cursor—the AI development environment recently acquired by SpaceXSI—contended that applications remain private by default unless explicitly shared. Direct testing contradicted this position: every newly generated micro-app was immediately live on the public web under its assigned hostname.

The exposed data extended into SpaceXSI’s own enterprise sales division. Claroc located 24 internal SpaceXSI operational applications, including a confidential onboarding plan for sales executives, a territory mapping document charting 594 enterprise accounts, and internal infrastructure IP addresses. Additional exposed instances belonged to Fortune 500 corporations, luxury travel providers, and a defense contractor.

Exposure VectorSubdomain-Based (Grok Build)Path-Based Capability (Google Cloud / Drive)Authenticated Enterprise Workspace
Token LocationLeft of domain (token.domain.com)Right of domain (domain.com/path/token)Identity Provider Header (OIDC / SAML)
Exposure in Passive DNS100% of queried domains0% (Base domain only)0% (Protected behind gateway)
Entropy PreservationCompletely defeated by pDNS logsIntact (38–128 bits behind TLS)N/A (Guarded by session cookies)
Default Access PolicyPublic (“Anyone with the link”)Restricted / Team-scopedStrict Corporate Single Sign-On (SSO)
Reconnaissance FrictionZero (API queries via pDNS)Impractical (Requires dictionary crawl)Blocked (Requires corporate IdP auth)
Enumeration Count43,601 hosts discoveredUndiscoverable without path leakEnterprise zero-trust isolation

Following formal disclosure, SpaceXSI revoked access to the 24 internal company applications, returning 404 errors. However, tens of thousands of third-party enterprise micro-apps remained accessible, creating persistent data exposure risks.

Access Control Mechanics: Discoverability vs Entropy

Theoretical security entropy versus empirical exposure across deployment architectures

Theoretical Entropy Empirical pDNS Leakage
Path-Based Tokens (Google) Full Privacy
Theoretical Entropy 38–128 Bits
Empirical pDNS Leakage 0% Logged
Subdomain Tokens (Grok Build) Full Exposure
Theoretical Entropy 38 Bits
Empirical pDNS Leakage 100% Logged

The Shadow AI Attack Surface Across Generative App Builders

The Grok Build breach highlights an emerging enterprise risk: the rapid proliferation of autonomous coding agents and prompt-to-app platforms. Tools such as Grok Build, Lovable, Bolt, and Replit allow non-technical business units to construct functional applications in minutes. However, their underlying deployment models frequently bypass corporate identity and access management (IAM) guardrails.

When enterprise teams purchase commercial SaaS software, the tool sits behind an established Single Sign-On (SSO) provider such as Okta or Microsoft Entra ID. Conversely, when internal teams use generative agents to assemble rapid internal tooling—such as sales dashboards, candidate tracking systems, or campaign trackers—they frequently host sensitive data inside unauthenticated micro-containers.

Agentic Micro-App Deployment Trade-Offs

Balancing departmental execution speed against corporate data perimeter integrity

Departmental Velocity Advantages
  • + Zero-configuration deployment within 120 seconds
  • + Elimination of procurement and engineering queues
  • + Rapid prototyping of functional sales and ops tooling
Enterprise Governance Penalties
  • – Bypasses corporate Okta and Entra ID authentication
  • – Subdomain provisioning reveals infrastructure to pDNS
  • – Data residency and leak containment controls fail

The issue is systemic across the emerging agentic ecosystem. Competitors like Lovable, Bolt, and Replit similarly provision unique subdomains for generated web applications, allowing external security researchers and threat actors to monitor passive DNS feeds and Certificate Transparency (CT) logs to harvest corporate assets.

Meta experienced a parallel exposure with its Muse agent, which forced the company to disable its public link-sharing capability entirely after identifying similar data leakage channels. Grok Build, however, contained a significantly higher concentration of sensitive corporate artifacts due to its tight integration with enterprise user workflows.

Mitigation Architecture: Securing AI-Generated Micro-Apps

Enterprise infrastructure leaders must treat agent-generated applications as untrusted endpoints. Engineering and security teams must implement four immediate defenses to mitigate capability-based leakage across generative tools:

  • Egress-Level DNS Filtering: Configure enterprise secure web gateways (SWG) to block outbound browser traffic and API calls to known unauthenticated agent domains, including wildcard routes under *.grok.me.
  • Automated Passive DNS Reconnaissance: Deploy threat intelligence scripts against tools like SecurityTrails and VirusTotal to monitor passive DNS records matching corporate domain references, brand names, and internal project code words.
  • Mandatory Reverse-Proxy Routing: Prohibit the direct public sharing of agent-generated URLs for internal company operations. Require any citizen-developed application handling corporate data to sit behind an enterprise reverse proxy enforcing OIDC or SAML authentication.
  • Hardened Vendor Selection: Prioritize generative coding platforms that enforce path-based token storage behind authenticated gateways and configure projects to private workspaces by default.

Organizations must recognize that capability-based security fails whenever the capability identifier is transmitted across cleartext infrastructure. For production workloads and internal business operations, strict enterprise identity verification must supersede link-based sharing mechanisms.

Related Benchmark Reports

View All in Category →
Weekly Briefing

Weekly Tech & Business Data Briefing

Verified software analysis, practical gotchas, and essential supply-chain updates delivered weekly.

Unsubscribe with 1 click anytime. Zero spam.

* We may earn an affiliate commission from links in this report, at no extra cost to you and with zero impact on our benchmark data.