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
Discovered under grok.me via pDNS telemetry
Accessible without authentication or login gates
Compromised internal sales plans and infrastructure
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.
How architectural URL placement exposes enterprise data to passive reconnaissance
Grok Build generates unique multi-word prefixes on grok.me with default public permissions.
Central DNS resolvers log query transactions into publicly indexable threat intelligence feeds.
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.
Path-based TLS protection versus subdomain DNS reconnaissance leakage
- • 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
- • 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
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 Vector | Subdomain-Based (Grok Build) | Path-Based Capability (Google Cloud / Drive) | Authenticated Enterprise Workspace |
|---|---|---|---|
| Token Location | Left of domain (token.domain.com) | Right of domain (domain.com/path/token) | Identity Provider Header (OIDC / SAML) |
| Exposure in Passive DNS | 100% of queried domains | 0% (Base domain only) | 0% (Protected behind gateway) |
| Entropy Preservation | Completely defeated by pDNS logs | Intact (38–128 bits behind TLS) | N/A (Guarded by session cookies) |
| Default Access Policy | Public (“Anyone with the link”) | Restricted / Team-scoped | Strict Corporate Single Sign-On (SSO) |
| Reconnaissance Friction | Zero (API queries via pDNS) | Impractical (Requires dictionary crawl) | Blocked (Requires corporate IdP auth) |
| Enumeration Count | 43,601 hosts discovered | Undiscoverable without path leak | Enterprise 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.
Theoretical security entropy versus empirical exposure across deployment architectures
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.
Balancing departmental execution speed against corporate data perimeter integrity
- + Zero-configuration deployment within 120 seconds
- + Elimination of procurement and engineering queues
- + Rapid prototyping of functional sales and ops tooling
- – 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.