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

  1. 1
    Docker container security cheat sheet
    4 people · 198 points · first shared 2021 · 35 comments on HN
  2. 2
  3. 3
    Separating work and personal Git accounts on your laptop
    2 people · 7 points · first shared 2021 · discussion on HN
  4. 4
    Millions of .git folders exposed publically by mistake
    2 people · 6 points · first shared 2022 · discussion on HN
  5. 5
  6. 6
    The State of Secrets Sprawl 2025
    2 people · 3 points · first shared 2025 · discussion on HN
  7. 7
  8. 8
  9. 9
    GitHub Exposed a Private SSH Key: What You Need to Know
    2 people · 1 points · first shared 2023 · discussion on HN
  10. 10
    Dropbox breach hack github circleci
    2 people · first shared 2022
  11. 11
    Leaking secrets on github what to do
    2 people · first shared 2022
  12. 12
  13. 13
    Using Git hooks for automated secrets detection
    1 people · 23 points · first shared 2020 · discussion on HN
  14. 14
    Why secrets like API keys in Git are such a problem
    1 people · 14 points · first shared 2020 · 3 comments on HN
  15. 15
    Love, 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/
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.

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close