frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: PMG, open source package firewall

https://github.com/safedep/pmg
3•abhisek•2h ago
Hi HN

I am the founder of SafeDep. We have been detecting malicious packages for a while. Coming from DevSecOps background, I always considered malicious package detection & protection to be a build stage problem. But I was wrong since the S1ngularity and early Shai-Hulud days.

In 2026, we pretty much started worrying more about our own dev machines than CI/CD environment. Depending only on threat intelligence data (OSV / SafeDep / Socket / any other source) to protect our own dev machines did not feel right. We wanted to build a multi-layered protection that can get 100% visibility of OSS packages coming in, and can protect against known and “hopefully” unknown threats. That’s how Package Manager Guard (PMG) started. Core idea was simple:

- Start a local proxy (localhost)

- Make sure supported package managers like npm, pnpm, pip etc. goes through it

- Use threat intelligence data to fail fast on known malicious packages

- Apply policies like dependency cooldown as additional guardrails

- Adopt a policy language like CEL to support custom policies (roadmap)

- Everything stays local with stackable policies and audit log

- Threat model - Protect “willing” developers against malicious open source packages

Note: PMG does not consider a malicious developer as part of its threat model. So no real effort has been put to “enforce”, rather the goal is reduced friction while being effective.

Then came across Anthropic’s SRT and suddenly realized that in-process OS-native sandboxing is a good solution for limiting blast radius against unknown threats, especially since package managers have predictable runtime behaviour that can be allowed via. a sandbox while denying larger user permissions. Adopted seatbealt on MacOS and Landlock + Seccomp BPF for Linux. Seccomp BPF with Go was a battle of its own due to lack of control on OS threads, but finally managed to get it working without major performance cost.

To summarize, PMG does not only depend’s on SafeDep’s ability to find malicious packages. It enforces dependency cooldown (useful if you are stuck with older npm/pnpm), sandbox to protect against malicious packages. Our near term goal is to support CEL as a policy language and improve tooling around sandbox rules to make adoption easier.

Any feedback is welcome.

Comments

MidavEE•2h ago
Thanks!

I trained a 30M-param LLM from scratch and the scaling "floor" was a mirage

https://github.com/rishipadhye/my-LLM
1•rpadhye•2m ago•0 comments

Where Did All the Computer-Science Professors Go?

https://www.theatlantic.com/technology/2026/07/ai-companies-hiring-academics/688002/
1•enjoyyourlife•2m ago•0 comments

Show HN: TokenPath – token-level citations for LLM output, read from attention

https://tokenpath.ai
2•apoorvumang•5m ago•0 comments

Ramble Sessions with LLM's

https://twitter.com/karpathy/status/2079610838143623371
1•pretext•7m ago•0 comments

'VPNs are lawful technical tools,' says EU Court in landmark copyright ruling

https://www.techradar.com/vpn/vpn-privacy-security/vpns-are-lawful-technical-tools-says-eu-court-...
2•healsdata•10m ago•0 comments

N.J. MVC error registered 6,600 undocumented immigrants to vote

https://www.nj.com/politics/2026/07/thousands-of-undocumented-immigrants-were-registered-to-vote-...
1•speckx•15m ago•1 comments

Dementia symptoms that show up years before diagnosis

https://www.washingtonpost.com/wellness/2026/07/21/these-dementia-symptoms-can-show-up-years-befo...
1•brandonb•15m ago•0 comments

FBI Director Kash Patel Planning a Trip to Russia

https://www.reuters.com/world/us/fbi-director-kash-patel-planning-trip-russia-politico-reports-20...
7•Rooster61•15m ago•3 comments

Shardhash Protocol: Sharden Issuer

https://github.com/babakkarimib/shardhash
1•babakkarimib•16m ago•0 comments

OpenAI Shares Some Alignment Problems

https://thezvi.substack.com/p/openai-shares-some-alignment-problems
2•7777777phil•16m ago•0 comments

Jobflo is getting more useful

https://apps.apple.com/us/app/jobflo-private-job-tracker/id6759933192
1•jsrothwell•16m ago•0 comments

Pete Hegseth's Reckless Message to Helicopter Pilots

https://www.theatlantic.com/international/2026/07/hegseth-reckless-military-helicopter/688008/
4•Jtsummers•17m ago•0 comments

Why AI Needs a "Genie Coefficient"

https://spectrum.ieee.org/ai-agent-benchmark
1•mikelgan•17m ago•1 comments

SWARÓG: a highly powerful agent for network monitoring and content generation

https://medium.com/@a.galecki/swar%C3%B3g-highly-powerful-agent-for-network-monitoring-and-conten...
1•NodesHub•18m ago•1 comments

Fei-Fei Li says robotics simulation startup SceniX joins World Labs

https://runtimewire.com/article/fei-fei-li-scenix-joins-world-labs
1•ryanmerket•19m ago•0 comments

Show HN: Ounce, Stop measuring wealth in inflating fiat. Measure it in gold

https://useounce.com/
1•halfradaition•20m ago•0 comments

Show HN: Observability for Coding Agents and LLM Applications

https://telemetry.dev/
2•ephraimduncan•20m ago•0 comments

Impossible Colors

https://en.wikipedia.org/wiki/Impossible_color
1•akramachamarei•21m ago•1 comments

Ask HN: My Microsoft for Startups subscription is expiring

1•alexander2002•22m ago•0 comments

Substack adds an AI detector to help spot blogs written by no one

https://www.theverge.com/ai-artificial-intelligence/968855/substack-pangram-ai-detecting-tool
1•droidjj•22m ago•0 comments

Gritt: AI to Build Infrastructure with Robotics

https://www.gritt.ai/
1•wslh•22m ago•0 comments

Show HN: Collecte MTL – niche web app to know Montreal waste collection schedule

https://collectemtl.ca/
2•scastiel•23m ago•0 comments

Bruno Blocker – I made an free and lightweight focus app

https://www.brunoblocker.com/
2•aksel_salmi•24m ago•2 comments

France first European country to ban social media access for under-15s

https://www.theguardian.com/world/2026/jul/21/france-ban-social-media-access-under-15s
5•Erikun•24m ago•1 comments

Show HN: Posecode, a text language and renderer for human movement

https://www.posecode.org/play
5•brnbrn•24m ago•0 comments

Jimothy the raccoon has a rare spinal condition. Here's what that means

https://www.popsci.com/science/whats-jimothy-raccoon-condition/
2•speckx•25m ago•0 comments

Wordle

https://en.wikipedia.org/wiki/Wordle
3•chistev•26m ago•0 comments

Three-Body Scattering for Generative Modeling

https://arxiv.org/abs/2607.18198
2•E-Reverance•26m ago•0 comments

Judge approves $1.5B Anthropic settlement, reduces class counsel fees to 6.8% [pdf]

https://storage.courtlistener.com/recap/gov.uscourts.cand.434709/gov.uscourts.cand.434709.680.0_4...
5•ilamont•28m ago•0 comments

New HollowGraph malware uses Microsoft Graph for stealthy C2 comms

https://www.bleepingcomputer.com/news/security/new-hollowgraph-malware-uses-microsoft-graph-for-s...
5•devonnull•28m ago•0 comments