Post Mortem: axios NPM supply chain compromise

(github.com)

30 points | by Kyro38 3 hours ago ago

12 comments

  • Zopieux an hour ago

    Not much we didn't know (you're basically SOL since an owner was compromised), however we now have a small peek into the actual meat of the social engineering, which is the only interesting news imho: https://github.com/axios/axios/issues/10636#issuecomment-418...

    • hatmanstack 32 minutes ago

      jasonsaayman and voxpelli had useful write ups from the "head on a swivel" perspective of what to watch out for. Jason mentioned "the meeting said something on my system was out of date." they were using Microsoft meeting and that's how they got RCE. Would love more color on that.

  • fraywing an hour ago

    Incredible uptick in supply chain attacks over the last few weeks.

    I feel like npm specifically needs to up their game on SA of malicious code embedded in public projects.

    • simulator5g an hour ago

      That's the reality of modern war. Many countries are likely planting malware on a wide scale. You can't even really prove where an attack originated from, so uninvolved countries would also be smart to take advantage of the current conflict. Like if you primarily wrote German, you would translate your malware to Chinese, Farsi, English, or Hebrew, and take other steps to make it appear to come from one of those warring countries. Any country who was making a long term plan involving malware would likely do it around this time.

    • ipnon an hour ago

      NPM is designed to let you run untrusted code on your machine. It will never work. There is no game to step up. It's like asking an ostrich to start flying.

      • dcrazy 31 minutes ago

        It’s far from a complete solution, but to mitigate this specific avenue of supply chain compromise, couldn’t Github/npm issue single-purpose physical hardware tokens and allow projects (or even mandate, for the most popular ones) maintainers use these hardware tokens as a form of 2FA?

        • yjftsjthsd-h 6 minutes ago

          What would a physical token give you that totp doesn't?

          Edit: wait, did the attacker intercept the totp code as it was entered? Trying to make sense of the thread

  • akersten an hour ago

    Any good payload analysis been published yet? Really curious if this was just a one and done info stealer or if it potentially could have clawed its way deeper into affected systems.

  • uticus an hour ago

    > March 31, around 01:00 UTC: community members file issues reporting the compromise. The attacker deletes them using the compromised account.

    Interesting it got caught when it did.

  • charcircuit an hour ago

    Does OIDC flow block this same issue of being able to use a RAT to publish a malicious package?

    • fortuitous-frog 7 minutes ago

      No. axios (v1 at least; not v0) were setup to publish via OIDC, but there's no option on npmjs for package maintainers to restrict their package to *only* using OIDC. The maintainer says his machine was infected via RAT, so if he was using software-based 2FA, nothing could have prevented this.

    • hsbauauvhabzb 36 minutes ago

      No, once the computer is compromised nothing really helps assuming the attacker is patient enough.