logoalt Hacker News

Defang Security Incident

69 points • by gregsadetsky • yesterday at 9:47 PM • 20 comments • view on HN

Comments

skinfaxi • today at 12:00 AM

>We used a separate GitHub App for local development and testing. It was installed on two of our own repositories and had more permissions than it needed, including permission to change deployment environments. Acting as that app, the attacker pushed a commit to one of those repositories and tagged it as a release. Our production environment trusted release tags, so their code ran in our CI with access to our production credentials, and the attacker copied them.

How did the attacker act as the app? How did the attacker gain access to the app credentials?

I wonder which audits would have uncovered this over-permissioning. Certainly not ISO 27001 or SOC 2 as I've seen them done.

lajr • yesterday at 10:10 PM

So if you installed the Defang GitHub App, the attacker can:

- push commits and branches

- change repo settings

- deploy and activate trusted workflows which can access any of the cloud credentials you have

- even more (secret overwrite, protection rules)

This seems like it could have a very large blast radius

➕ show 3 replies
neya • today at 12:08 AM

Holy crap!

    If you installed the Defang GitHub App: what the attacker could use:

    - push commits and branches
    - change workflow files and start workflow runs
    - overwrite Actions secrets and variables
    - change deployment environments and their protection rules
    - open and merge pull requests
    - change repository settings, including branch protection, deploy keys and collaborators
If you have billing details with us

    - your name and email address
    - your billing address, or the parts of it you gave us, and your tax ID if you entered one
    - the brand, last four digits and expiry date of your card
    - your subscription and invoice history
So, an attacker basically has everything about me - who I am, where I live, what banks I have an account with, my entire source code. Basically, if my attacker wanted, my career could be over. Damn.
➕ show 1 reply
amingilani • yesterday at 10:26 PM

It must have been very hard to write this post. I'm sorry folks. #HugOps

taariqlewis • yesterday at 10:39 PM

Thank you for the heads up. As with TODOIst and 1Password, we're noticing the Github access threads. Are LLMs leaking github keys?

floornext • yesterday at 10:30 PM

does anyone sign release tags, my ci just fires on any tag push

➕ show 1 reply
jasongill • yesterday at 10:23 PM

> downloaded a copy of our main database

ah ok, so just about the worst-case scenario for a business.

> These can include database passwords and any environment variable built from a defang config value, such as a database URL that contains a password.

oh, it's even worse than I thought, as now not only their database is pwned - yours is too!

➕ show 1 reply
kjuulh • yesterday at 10:31 PM

It is a hard time right now for SaaS businesses. This is basically a death sentence, main database + what looks like customer secrets leaked.

I guess it is time to go back to really spending time on defense in depth, removing non critical vendors, etc, and pray that some script kiddy with daddy's credit card doesn't nuke your business.

nusl • yesterday at 10:49 PM

Wow this is insane. Pure incompetence that it took 11 days to detect? Nobody checks releases at all? Deployments, anything? For something this sensitive to so many users?

"Installed the security update on November 15."

What security update? If they knew about this before, they left it until Nov 23? Or just a random security update that they happened to install on Nov 15?

""" Become AI-Native. Maintain Engineering Sovereignty. """

Ah right.

rvz • yesterday at 10:19 PM

> On November 12, 2026 an attacker copied the credentials we use to run Defang and downloaded a copy of our main database. Here is what happened, what was exposed, what we have done, and what you should do.

No chance. It's over.

tamimio • yesterday at 11:23 PM

Wild how a lot of the incidents lately are through github

primeobsession • today at 12:19 AM

[flagged]