News for hackers. Stuff that matters.

DDerTyp

Re:Don't become an engineering manager on Tuesday March 03, 2026 @04:11PM (#47239051)
Can you elaborate more about this? Why is it irrelevant in Western Europe?
Re:I tracked Amazon's Prime Day prices. We've been played on Friday October 10, 2025 @04:38AM (#45536580)
Obvious comment to various Amazon price trackers like https://keepa.com/
Re:NPM debug and chalk packages compromised on Monday September 08, 2025 @02:55PM (#45172286)
TIL: I need to fix my CI pipeline. Gonna create a jira ticket I guess…

Thank you!

Re:NPM debug and chalk packages compromised on Monday September 08, 2025 @02:49PM (#45172215)
You’re right and the excerpt you quoted was poorly worded and confusing. A lockfile is designed to do exactly what you said.

The package.json locked the file to ^1.3.2. If a newer version exists online that still satisfies the range in package.json (like 1.3.3 for ^1.3.2), npm install will often fetch that newer version and update your package-lock.json file automatically.

That’s how I understand it / that’s my current knowledge. Maybe there is someone here who can confirm/deny that. That would be great!

Re:NPM debug and chalk packages compromised on Monday September 08, 2025 @12:18PM (#45170159)
Noticed that after ten mins, contacted author immediatly and he seems to be working on it / restoring his account / removing malware on published packages.

Kinda "proud" on it haha :D

Re:NPM debug and chalk packages compromised on Monday September 08, 2025 @12:16PM (#45170133)
One of the most insidious parts of this malware's payload, which isn't getting enough attention, is how it chooses the replacement wallet address. It doesn't just pick one at random from its list.

It actually calculates the Levenshtein distance between the legitimate address and every address in its own list. It then selects the attacker's address that is visually most similar to the original one.

This is a brilliant piece of social engineering baked right into the code. It's designed to specifically defeat the common security habit of only checking the first and last few characters of an address before confirming a transaction.

We did a full deobfuscation of the payload and analyzed this specific function. Wrote up the details here for anyone interested: https://jdstaerk.substack.com/p/we-just-found-malicious-code...

Stay safe!

It looks like a lot of packages of the author have been compromised (in total over 1 billion downloads). I've updated the title an added information to the blog post.
Update: It seems like all packages of the author got hacked.
The discrepancy comes from how npm packages are published. What you see on GitHub is whatever the maintainer pushed to the repo, but what actually gets published to the npm registry doesn’t have to match the GitHub source. A maintainer (or someone with access) can publish a tarball that includes additional or modified files, even if those changes never appear in the GitHub repo. That’s why the obfuscated code shows up when inspecting the package on npmjs.com.

As for the “0 downloads” count: npm’s stats are not real-time. There’s usually a delay before download numbers update, and in some cases the beta UI shows incomplete data. Our pipeline picked up the malicious version because npm install resolved to it based on semver rules, even before the download stats reflected it. Running the build locally reproduced the same issue, which is how we detected it without necessarily incrementing the public counter immediately.

Hey, I just found your LinkedIn Profile and noticed that we studied at the same university - even the same degree! I've send you a request on LinkedIn, so maybe we could connect and have a chat?

Have a great day!

Resources to learn Docker/containerization of an monolithic web-application

Hey :)I developed a software which is a plain simple monolithic web application. Pretty basic: ASP.NET with angular and SQL Server as a database. Currently I use one windows server for each customer. I do this to make sure, that no software bug accidently shows data of customer A to customer B (privacy is the most important priority).I am considering containerizing the application. From what I...

( Read More... | 2 comments | 3 points | on HN )

Ask HN: Books to read when you transform from SWE into SWE Management?

Hello HackerNews!I started my SWE career in 2016. I'm in a team which develops an enterprise SaaS-Application. Now I got the opportunity to transform into a leader role which focuses on DevOps, Tests, QA, Documentation and related topics.So far, we set goals and start to introduce the team (around 5 people) into that topic.My question is - are there any good books, articles, podcasts, ... which...

( Read More... | 93 comments | 314 points | on HN )
Re:How to Get Promoted on Tuesday September 29, 2020 @05:16AM (#24625515)
Thanks for sharing this with us. This advice (change from being a shooting star to helping others to improve) seems to be in contrast to the article. Or am I missing something?

Older »