Reverse engineering a $1B Legal AI tool exposed 100k+ confidential files
TL;DR Highlight
Subdomain hunting found an unauthenticated API that leaked a full-admin Box token
Who Should Read
Backend or full-stack developers shipping AI features fast while handling external file storage or SaaS API keys alongside the frontend
Core Mechanics
- It started with subdomain enumeration
- The author used subdomain enumeration to find margolis.filevine.com.
- The page just kept loading and showed no Fetch/XHR requests.
- Minified JS revealed a hidden endpoint
- A fetch to BOX_SERVICE/recommend appeared in the JavaScript.
- Another JS file defined BOX_SERVICE as an AWS execute-api URL under /prod.
- The API required no authentication
- The author built a payload like {"projectName":"Very sensitive Project"} and called /prod/recommend.
- The response came back without any auth token.
- The response contained a Box admin token
- The boxToken was a live, maximum-access admin token for the law firm's entire Box filesystem.
- It covered files, logs, and user information.
- A 'confidential' search proved the impact
- Searching for 'confidential' returned nearly 100k results.
- The author stopped testing immediately and reported it to Filevine.
- Scope and disclosure timeline
- According to the author, this affected one law firm's non-production instance, with no other clients impacted.
- Found Oct 27, acknowledged Nov 4, fix confirmed Nov 21, published Dec 3.
Community Reactions
- Commenters said backend duties were pushed to the frontend
- Handing a high-privilege Box key to the frontend was called an architecture failure.
- They argued a backend proxy would have handled search and download.
- Commenters questioned what SOC 2 is worth
- Several said even a basic pentest would have caught this.
- One engineer said compliance paperwork eats time while impactful issues get ignored.
- A commenter described AI-rush pressure
- They said they worked in several agentic roles this year, and well-run orgs went move-fast-and-break-things out of fear that big AI companies would ship first.
- A commenter urged a full Box audit
- They noted shared links created earlier could stay active even after the API token is invalidated.
- Commenters blamed the customer's IT too
- Connecting an open demo environment to a firm's entire Box drive was called a serious professional misjudgment.
How to Apply
- Grep your frontend bundle for secrets
- Today, grep your build output (JS) for token, secret, key, and execute-api strings.
- Check the network tab for external-service tokens inside API responses.
- Move external storage access behind a backend proxy
- Keep admin tokens for Box or S3 on the server only and never send them to the browser.
- Offer only short-lived, narrowly scoped tokens or server-mediated downloads.
- Audit auth on every API endpoint
- List your public endpoints, such as API Gateway routes, and call each without a token.
- Add auth or delete any route that returns 200.
- Confirm demo and staging environments are not connected to production data.
Try It
# Paste into Claude Code: scan my frontend for exposed secrets (a lightweight check inspired by the article)
Audit the frontend source and build output of the current repo.
1. Find places where tokens, secrets, apiKeys, admin-level tokens, or external-service credentials (Box, S3, etc.) are shipped to the browser in code or API responses.
2. List API endpoints callable without authentication (e.g. execute-api, /prod, /recommend style paths) found in the code.
3. For each finding, give the file path, why it is risky, and a fix that moves it behind a server-side proxy.
Mask any real secret values in your output.
Target directory: {{frontend path}}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques