The Recon Goldmine Hidden Inside Exposed AI Instruction Files
AI instruction files such as CLAUDE.md and GEMINI.md were being deployed to production web roots because build pipelines copied entire repositories. An attacker could read these files to learn internal architecture, deployment workflows, debugging routes and some login information.
But recently, while doing routine reconnaissance during bug hunting, I started noticing something unusual appearing across multiple targets:
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely deployment pipelines copied entire repositories into public web roots without filtering out AI instruction and internal documentation files.
Impact
Exposed files could reveal internal architecture, deployment workflows, debugging instructions, infrastructure naming, security assumptions and some login information, though the text does not show these details being used to compromise a system.
What the attacker needed
AI instruction files committed to the repository; Deployment copies the whole repository; Files are reachable from the internet
The fix
Deployments should copy only required build artefacts, exclude AI instruction files via ignore files, block markdown access at the web server and fail CI builds when such files appear in artefacts.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When developers build a website, they often copy the whole project folder onto the public server. That folder can include notes written for AI coding assistants, which describe how the system works and where internal services live. Anyone on the internet can then open those notes like a normal web page and learn things the company meant to keep private.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.