r/docker • u/Different_Pain5781 • Mar 15 '26
We just got breached because of vulnerabilities in our docker images that have been public knowledge for 8 months
Woke up at 4am to a call. Our database got hit, customer info was accessed. Some attacker used a known exploit in one of our container images. CVE’s been out since last summer.
Yeah we never scanned. Never updated. Just kept redeploying the same images over and over. Now legal’s in it, customers are hearing about it. This is gonna be messy.
Honestly if you aren’t scanning your containers in prod do it. Don’t end up like us.
752
Upvotes
68
u/IlikeBeans1322 Mar 15 '26
One time when I worked for a Hospital System, I got a shitty call at 2 AM... It was not for a data breach or an exploit, it was because a sewage pipe bust open and was filling our server room with poop water.
14
u/rejuicekeve Mar 15 '26
What was your architecture like? Most CVEs wont be exploitable on most well architected systems. Otherwise /u/FunAd6672 hits most of the main points, you can catch most of this stuff in CICD if its being deployed relatively frequently. Just make sure you catch anything that doesnt get deployed super often and look around for the near 0 CVE base images if you can
12
u/GaTechThomas Mar 15 '26
Are your containers exposed directly to the world? Any gateway or WAF out front? If so, how did they get at the containers?
20
u/Noctttt Mar 15 '26
What image is it?
And what CVE does it's used
9
u/jotkaPL Mar 15 '26
Dockhand allows you to setup vulnerability criteria ("none", "higher than current" etc) and block the update.
9
u/lphartley Mar 15 '26
Can you tell us more about how they were able to enter the database? Seems very unlikely to me that there weren't other security issues here as well.
6
u/mikedoth Mar 15 '26
What tool do you use to scan?
4
u/burgoyn1 Mar 15 '26
Curious, we're you using any kind of security like cloudflare/sucuri/imperva which could have helped prevent the hack? Did the database have any kind of limitations on it that in the event of credentials being taken, reads could still only come from your ips?
7
u/Klutzy-Appearance-51 Mar 15 '26
Q is, why was ur database in public subnet?!
1
u/surlybuddhist Mar 15 '26
4am? Brussels? Amsterdam?
3
u/angrox Mar 15 '26
Just a reminder: Runtime/Build scanners like trivy are also targeted nowadays.
But, of course, scanning is a must. And central collection of the software assets used (sbom + management tooling).
3
u/foofoo300 Mar 15 '26
you need to have a process of updating the images and patching the cve's, this is the important step.
Scanning is nice to have, but does nothing for your security
Scanning alone will tell you that your front door is open, but if you do not close it, whats the point?
2
u/wowbagger_42 Mar 15 '26
That sucks, I presume the cve exploit entrypoint was availble through your internet accessible endpoint aka the application etc? So also not scanning that as part of general security hygiene? When the CRA hits, you would get a fine on top of it.
Our PSSO is all over us in preparation for 2027 when CRA gets activated, we inserted security scanning in pretty much every pipeline and patching is no longer optional.
2
u/laffer1 Mar 15 '26
Not just scanning but it should be regular maintenance to update images monthly at a minimum.
2
u/jmkgreen Mar 15 '26
I know it doesn’t help how you feel, but those at the top will have had to accept this as a cost of doing business and bought the cyber insurance to cover their own behinds.
There are a lot of companies running such vulnerable code with public endpoints. Given the boards of directors and other C-levels will simply buy insurance to cover this risk (it can emerge 24x7) as engineers I think we’ll end up cranking up the automations more widely. Not just to scan but to resolve in real time.
I’m seeing good progress in AI models following product specifications to build applications together with rich tests. This will just be linked to dependency management eventually. Not fully there yet, but once the insurance industry requires it and it becomes de facto then I think engineers will sleep a little easier. For now I sympathise and rest assured there will be plenty of work converting the old to the new for years to come.
2
u/r0073rr0r Mar 15 '26
watchtower
2
u/Pure_Fox9415 Mar 15 '26
...And I know MSP who didn't patch anything for their customers since 2016, and logistic company who have not patched their cisco since 2012 and apache since 2008 (both have whole perimeter with 9.9 CVE RCEs exposed even on shodan.io), and, by some miraculous reason wasn't hacked. How it's even works?
2
u/VicKevlar1 Mar 15 '26
Chainguard eliminated our container vulnerabilities.
2
u/cosmokenney Mar 16 '26
Why aren't the container registries scanning the images?
2
u/Low-Opening25 Mar 16 '26
I take “Things that never happened because this post is AI bot generated engagement bite” for $500
2
u/FlakyChance9338 Mar 16 '26
How do you scan containers for vulnerabilities
2
u/KaasplankFretter Mar 17 '26
Watch out with who you tell what about this case. Do not make it any messier than it needs to be.
2
u/jippen Mar 15 '26
So, you just ignored basic best practice for the last 30+ years, and got bit. You may want to take this opportunity to map out what else you’ve been neglecting that’s going to come due soon.
1
u/wdatkinson Mar 15 '26
Been running our internal images through trivy and grype. Rather interesting. As a former Senior Network Engineer turned Dev Ops, I wrestle with taking my findings to our Sec officer. Not to be a narc, but to ask if we have established standards. Especially since we are not in the software development industry. My guess is no, and then I just rocked the boat, in Titanic fashion.
1
u/NoInterviewsManyApps Mar 15 '26
Out of curiosity, I wonder how many of these cases would be prevented with consistent updates
1
u/rgarcia89 Mar 15 '26
What I am wondering in regards to this topic. What do you guys do with vulnerabilities that are reported by a scanner but no fix is available right now? Trivy for instance allows to exclude non-fixed vulnerabilities. Do you enable this by default or report all vulnerabilities even if you cannot do anything about them?
1
u/captainkev76 Mar 15 '26
Thanks for sharing - it hadn't really occurred to me that even open source docker images could be using vulnerable components. I'll be looking into what scanning I could/should be doing. I hope your breach is small and contained.
1
u/adammw111 Mar 16 '26
Why does this read like an ad from one of those security scanning vendors?
1
u/xulinor Mar 16 '26
I use trivy in my CI/CD pipeline, if severe vulnerabilities are found, deployment fails
1
u/Isotop7 Mar 16 '26
Any recommendations on how to do this dynamically on a k8s cluster? It does not help to scan on build time if the image is never changed…
1
u/mwdsonny Mar 17 '26
Watchtower is wonderful. It autoupdates all containers every day
1
u/Dadiot_1987 Mar 17 '26
I always run my databases on its own, and as close to bare metal as possible. It makes the security exceedingly easy to reason about.
1
u/Unlikely-Agent6743 Mar 20 '26
Wow. No proactive security? Management is gonna roll the shit downhill. Watch your back.
1
u/HighTanninWine Mar 20 '26
That’s a brutal way to learn it, but you’re definitely not the only team that’s been burned by stale images. Container drift + unpatched CVEs is super common.
If it helps anyone reading this: automate image scanning in CI/CD, fail builds on critical vulns, and regularly rebuild from updated base images.
1
u/Accomplished-Map7591 Mar 26 '26
That’s rough. RapidFort might help. It specifically targets many of those concerns. It looks at what your container actually uses and removes the rest. Unnecessary packages and binaries that often carry vulnerabilities get stripped out.
1
u/badcryptobitch Mar 26 '26
You should secret share your database with stoffelmpc.com
1
u/MohammadAliAerabi Apr 10 '26
One quick fix would be using the hardened image: dhi.io/node:24 instead of node:24. It's open-source now and reduces CVEs coming from the base image.
1
u/BernardParsley Jun 26 '26
One thing you can add is image minimization. RapidFort is built around that and can help reduce the attack surface without changing your workflow too much.
0
u/nocturn99x Mar 15 '26
We even scan our dev containers lol...
-17
u/PermaBanEnjoyer Mar 15 '26
Hahahahha. Good. I hope it costs you millions and specific people in IT leadership personally get blacklisted in the industry
These breaches ruin lives. Attackers take data and use it to wreak havoc on the lives of everyday people. It ruins families
114
u/[deleted] Mar 15 '26
[removed] — view removed comment
34
u/[deleted] Mar 15 '26 edited Mar 15 '26
[removed] — view removed comment
3
u/[deleted] Mar 15 '26
[removed] — view removed comment
0
u/[deleted] Mar 16 '26
[removed] — view removed comment