Y
Hacker News
new
|
ask
|
show
|
jobs
by
awongh
18 days ago
I guess this is only specific to a file in the root of the repo, so it doesn't allow for an NPM supply chain attack?
1 comments
beart
18 days ago
It has nothing to do with npm. However, a binary could be configured to extract your git/npm secrets using this exploit, which could then lead to a npm supply chain attack (or pip, etc. etc.).
link
awongh
18 days ago
I meant the attack would be the other way around- if an infected package had the git.exe file in their root.
Or, the infected package could also copy that file into the parent project's root.
link
beart
18 days ago
Oh yeah that's a good point - two layers of auto executing scripts/binaries.
link