GitGuardian Blog
blog.gitguardian.com · Company blog · on HN since 2018
The blog of GitGuardian, a secrets detection company, covering leaked credentials, Git security, and Docker best practices.
What HN saysHN links it for guidance on remediating exposed secrets and open-sourcing safely, and cites its finding that most leaked secrets stay valid.
43HN people shared it
9linked it in comments
85stories submitted
1.2Kstory points
3 months agolast shared
2018people per year2026
Most-shared posts
- 1Docker container security cheat sheet4 people · 198 points · first shared 2021 · 35 comments on HN
- 2Toyota suffered a data breach by accidentally exposing a secret key on GitHub3 people · 599 points · first shared 2022 · 258 comments on HN
- 3Separating work and personal Git accounts on your laptop2 people · 7 points · first shared 2021 · discussion on HN
- 4Millions of .git folders exposed publically by mistake2 people · 6 points · first shared 2022 · discussion on HN
- 5How to safely open-source internal software – Some best practices2 people · 3 points · first shared 2021 · discussion on HN
- 6The State of Secrets Sprawl 20252 people · 3 points · first shared 2025 · discussion on HN
- 7Demystifying Docker: Understanding and Optimizing Your Images2 people · 3 points · first shared 2025 · discussion on HN
- 8Building internal secrets detection: how SAP scans Git repos for secrets2 people · 2 points · first shared 2020 · discussion on HN
- 9GitHub Exposed a Private SSH Key: What You Need to Know2 people · 1 points · first shared 2023 · discussion on HN
- 10Dropbox breach hack github circleci2 people · first shared 2022
- 11Leaking secrets on github what to do2 people · first shared 2022
- 12Best practices for managing and storing secrets like API keys and credentials1 people · 200 points · first shared 2020 · 35 comments on HN
- 13Using Git hooks for automated secrets detection1 people · 23 points · first shared 2020 · discussion on HN
- 14Why secrets like API keys in Git are such a problem1 people · 14 points · first shared 2020 · 3 comments on HN
- 15Love, Death and PostgreSQL Triggers (2022)1 people · 13 points · first shared 2024 · discussion on HN
What HN people wrote when they linked it
mcdwayne · 2023-04-06
Basically, rotate as soon as you can* and start looking through your AWS logs and setting to see if any services you don't recognize have been spun up. Is you think you have been attacked or see stuff you did not spin up, contact AWS support ASAP!
*Do NOT just revoke keys if it is in a production system where other people are working or are depending on. Talk to your team and figure out what the remediation process is internally and follow that!
If you are working by yourself and no one is relying on services this key is associated with, then yeah, just revoke and replace ASAP.
Here are a couple blogs that cover what you are looking for as well
https://blog.gitguardian.com/leaking-secrets-on-github-what-to-do/
https://blog.gitguardian.com/thinking-like-a-hacker-aws-keys-in-privat…
lumberjack24 · 2022-10-14
Here's a checklist [1] (again, from gitguardian) of steps to follow before open-sourcing projects and [2] a guide on how to remediate hardcoded/exposed secrets.
[1] https://blog.gitguardian.com/safely-open-source-software-best-practice…
[2] https://blog.gitguardian.com/leaking-secrets-on-github-what-to-do/
Sayrus · 2025-07-03
"70% of secrets leaked in 2022 remain valid today"[1] is a quote that should help understand the situation.
[1] https://blog.gitguardian.com/the-state-of-secrets-sprawl-2025/
jsight · 2025-05-06
It was just an example. It used to be fairly common for people to sync some of their dotfiles via git, and from time to time someone would leak a directory that contained sensitive data without them realizing it. I'd guess things like tokens used by cli tools were more common than whole .ssh directories, but I'm sure both happened.
Not quite the same thing, but also a leak: https://blog.gitguardian.com/github-exposed-private-ssh-key/
I guess all these folks saying professionals would never make a mistake like this will also have insulting names for github engineers. :shrug
zer00eyz · 2024-02-09
https://blog.gitguardian.com/crappy-code-crappy-copilot/
https://news.ycombinator.com/item?id=39168105
There is plenty of evidence that none of this code is good. Github is now deep into the MS copilot shitty hype machine cycle. You have been warned that M$ gonna M$.
segudev · 2023-05-29
If the numbers look suspicious to you, I would suggest you check what is found more specifically about your company/organization.
GitGuardian can provide an automatic audit of your company-specific leaks we found on GitHub. Just ask: https://www.gitguardian.com/complimentary-audit-secrets-leaks-public-g…
More details on how it works: https://blog.gitguardian.com/github-secrets-leak-free-audit/
compressedgas · 2022-11-09
Direct article link: https://blog.gitguardian.com/exposed-git-folders-exposed/
cwinq · 2022-11-02
some details on this breach: https://blog.gitguardian.com/dropbox-breach-hack-github-circleci/
lbriner · 2021-11-22
* The hardening of images is pretty important: https://blog.gitguardian.com/how-to-improve-your-docker-containers-sec…
* Working out/testing how upgrades can be made to ingresses without downtime
* Designing and testing SSL cert rotation
* Having a strategy for image version updates (e.g. not using "latest" but how to decide when an upgrade to a newer image is or isn't acceptable)
* How to super-optimise layering or image builds including ADD vs COPY, realising that copying everything at once usually breaks this, working out where/how to perform things like OS updates
* How to correctly inject build versions from CI into the docker executable
* How to use databases inside containers with e.g. schema and data updates
* The various kubernetes network options
* How DNS works in kubernetes (and when it doesn't)
* Debugging containers that fail to start or run
* Using probes correctly and understanding ready vs liveness vs startup
* How to check for node health dynamically to control external load balancers
* Using pod anti-affinity to balance pods across all nodes
* Understanding how to lof effectively from the container
Those are a few I can think of off the top of my head.