Better HN
topnewbestaskshowjobs
Log inSign up

abhisek

1,105 karma · joined May 1, 2012 (14y ago) · 179 submissions

Dabbling into open source software supply chain security

github.com/safedep/pmg

Submissions

comment 1mo ago · link · parent

What are you talking about? Even dependency cooldown of 24h is enough to protect the consumers from these breaches. The attack did not have any novelty, used a newly registered look-alike domain for C2 and a PTH technique which is now known.

Sandbox comes in for the unknown ones and yes, its a pain to get the profile right.

comment 1mo ago · link · parent

Not sure about a service, but PMG enforces dependency cooldown and sandbox on package install. https://github.com/safedep/pmg

comment 1mo ago · link · parent

Yes if you use LLM to analyse everything. Not really if you analyse diffs, with heuristics to select candidates for LLM/agent based analysis. But at the cost of missing out novel attacks.

4.

Compromised LiteLLM 1.107.0 on PyPI Installs a Credential Stealer and Backdoor(safedep.io ↗)

596 points · by abhisek · 1mo ago · 201 comments

5.

Package managers have an integrity problem(blog.trailofbits.com ↗)

4 points · by abhisek · 1mo ago · discuss

6.

Why does mathmain need an encrypted loader?(safedep.io ↗)

138 points · by abhisek · 2mo ago · 43 comments

comment 3mo ago · link · parent

This is exactly what PMG is designed for ie. install/build time process level sandboxing. It currently doesn't support cargo, but I believe the challenges are same.

Here is my learning building PMG:

Sandboxing is good when the workload is predictable, and the goal of sandbox is to guard against exploitation of vulnerabilities, like sandbox protecting chrome tabs (renderers). But unfortunately build scripts are not predictable, at least not in npm/pypi world and I have seen build scripts doing weirdest of the things which is no different from malware. When popular packages do weird things, build breaks and users end up turning off the sandbox. This is a perpetual problem to deal with while building sandbox (or any least privilege solution) to protect unbounded workloads.

https://github.com/safedep/pmg

8.

Malicious Rust crate Arrayref runs a build-time payload(safedep.io ↗)

554 points · by abhisek · 3mo ago · 511 comments

comment 3mo ago · link · parent

GitHub announced this a while back:

https://github.blog/changelog/2026-07-28-npm-publish-time-ma...

comment 4mo ago · link · parent

#2 post on HN currently is: India’s first privately developed rocket reaches orbit on dramatic debut launch. In the same page, there is this news about banning an OSS app, built on open tech. Just saying.

11.

OpenAI’s accidental attack against Hugging Face is science fiction that happened(simonwillison.net ↗)

587 points · by abhisek · 4mo ago · 450 comments

12.

Show HN: PMG, open source package firewall(github.com ↗)

4 points · by abhisek · 4mo ago · 2 comments

comment 4mo ago · link · parent

Over engineering is really an NFR of green field projects.

comment 4mo ago · link · parent

Building Package Manager Guard (PMG) - https://github.com/safedep/pmg

With all the supply chain attacks on OSS ecosystems targeting developers, PMG is a practical protection using a combination of threat intel, policy and sandbox.

It’s a package firewall on the terminal really. It has been surprisingly effective against most of the recent attacks.

15.

Jscrambler 8.14.0 Compromised with Credential Stealer(safedep.io ↗)

3 points · by abhisek · 4mo ago · discuss

comment 5mo ago · link · parent

Smells like contagious interview campaign by DPRK folks. They have been doing this for a while. Even using IDE settings, Claude hooks for malicious code execution.

comment 6mo ago · link · parent

Attackers are just having fun due to abysmal state of npm and some of the insecure design choices by GitHub and GitHub Actions. Every attack gives them credentials which in turn used to stage more attacks.

comment 6mo ago · link · parent

I partly agree. Agents are not going to replace senior devs. Exactly for the internal context and the decision making that comes with it.

But senior devs are also expected to have a compounding effect even pre-AI. Writing a single doc, refactoring legacy code to make it extensible, building security frameworks specific to the project and many more. All of these would compound the dev team.

I think the same will happen with agents working on a org specific paved path set by senior devs.

comment 6mo ago · link · parent

Just implemented Landlock + seccomp notify based sandbox in PMG. A tool to protect cli package managers against malicious packages. There were quite a few quirks involved due to Go routines when it comes to handling messages from the kernel.

https://github.com/safedep/pmg

20.

Claude Mythos and Cybersecurity(schneier.com ↗)

4 points · by abhisek · 7mo ago · discuss

21.

Coruna: The Mysterious Journey of a Powerful iOS Exploit Kit(cloud.google.com ↗)

1 points · by abhisek · 7mo ago · discuss

comment 8mo ago · link · parent

We just analysed the payload. Technical details here: https://safedep.io/malicious-litellm-1-82-8-analysis/

We are looking at similar attack vectors (pth injection), signatures etc. in other PyPI packages that we know of.

comment 8mo ago · link · parent

I have been using superpowers for Gryph development for a while. Love the brainstorming and exploration that it brings in. Haven’t really compared token usage but something in my bucket.

comment 8mo ago · link · parent

I think this is the right approach to building sandbox for agents ie. over existing OS native sandbox capabilities so that they are truly enforced.

However the challenge is, sandbox profiles (rules) are always workload specific. How do you define “least privilege” for a workload and then enforce it through the sandbox.

Which is why general sandboxes wont be useful or even feasible. The value is observing and probably auto-generating baseline policy for a given workload.

Wrong or overly relaxed policies would make sandbox ineffective against real threats it is expected to protect against.

comment 8mo ago · link · parent

We found a malicious npm package pino-sdk-v2 impersonating pino, one of the most widely used Node.js loggers with nearly 20 million weekly downloads. The package is a near copy of pino’s source, docs, and README with one addition: an obfuscated payload in lib/tools.js that scans .env files for secrets and exfiltrates them to a Discord webhook on require().

pino-sdk-v2@9.9.0 copies pino’s entire source tree with a single modification: obfuscated credential stealing code injected into lib/tools.js

The payload scans .env, .env.local, .env.production, .env.development, and .env.example for secret keys

Extracted credentials are sent to a hardcoded Discord webhook

No install hooks. The code executes on require(), bypassing scanners that only flag install scripts

26.

Step by Step Analysis of Malicious NPM Package(safedep.io ↗)

1 points · by abhisek · 9mo ago · discuss

123456