logoalt Hacker News

XYen0ntoday at 4:39 AM9 repliesview on HN

If everyone avoids using packages released within the last 7 days, malicious code is more likely to remain dormant for 7 days.


Replies

otterleytoday at 4:42 AM

What do you base that on? Threat researchers (and their automated agents) will still keep analyzing new releases as soon as they’re published.

show 3 replies
cozzydtoday at 4:41 AM

that's why people are telling others to use 7 days but using 8 days themselves :)

show 2 replies
shreysshtoday at 9:31 AM

Worth noting this attack was caught because people noticed anomalous network traffic to a new endpoint. The 7-day delay doesn't just give scanners time, it gives the community time to notice weird behavior from early adopters who didn't have the delay set.

It's herd immunity, not personal protection. You benefit from the people who DO install immediately and raise the alarm

show 1 reply
jmward01today at 4:43 AM

I suspect most packages will keep a mix of people at 7 days and those with no limit. That being said, adding jitter by default would be good to these features.

show 1 reply
DimmieMantoday at 4:41 AM

They’re usually picked up by scanners by then.

Aurornistoday at 4:55 AM

Most people won’t.

7 days gives ample time for security scanning, too.

3abitontoday at 5:27 AM

This highly depends on the detection mechanism.

bakugotoday at 4:46 AM

> If everyone avoids using packages released within the last 7 days

Which will never even come close to happening, unless npm decides to make it the default, which they won't.

131hntoday at 11:03 AM

[dead]