The Dark Web Data Goldmine: How I Found My Company’s Leaked Credentials Before the Bad Guys Did (…
A former contractor committed a .env file to a personal GitHub repository, exposing hashed credentials that were cracked and sold on a dark web marketplace. An attacker could use these credentials to access internal systems, and the author demonstrated a chain from a development Jenkins server to production customer data.
Free link 🎈
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 a former contractor committed a .env file containing hashed credentials to a personal GitHub repository, and those hashes were cracked.
Impact
The leaked credentials could have allowed an attacker to access internal systems and potentially expose PII of over 50,000 customers, though the author intervened before any known misuse.
What the attacker needed
A former contractor with repository access; public GitHub repository; weak password hashing; dark web marketplace access
The fix
The company implemented GitHub secret scanning, network segmentation, credential rotation automation, and dark web monitoring.
How it was found
- The author found a dark web listing selling corporate admin credentials and verified the sample data matched company email formats and employee roles.
- The author searched public code repositories and found a former contractor's personal GitHub with a committed .env file containing hashed credentials.
- The author confirmed the leak by checking last login timestamps for the affected accounts, which showed failed login attempts from unusual locations.
- The author initiated a controlled password reset for the affected employees under the guise of a security drill.
- The author documented a proof-of-concept attack chain from a stolen credential to a development Jenkins server, then to production data via hardcoded credentials in a backup job.
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.
A developer accidentally uploaded a file containing secret passwords to a public code-sharing site. Criminals found it, cracked the passwords, and tried to sell them. The author discovered the sale and changed the passwords before anyone could misuse them.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.