logoalt Hacker News

charcircuittoday at 2:04 AM3 repliesview on HN

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


Replies

mcintyre1994today at 7:20 AM

Nope, the most restrictive option available is to disallow tokens and require 2FA. I think that using exclusively hardware 2FA and not having the backup codes on the compromised machine probably would have prevented this attack though.

show 1 reply
fortuitous-frogtoday at 2:53 AM

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.

hsbauauvhabzbtoday at 2:23 AM

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