frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Stop trusting torch.load() – I built a tool to scan AI models for RCE

https://github.com/ArseniiBrazhnyk/Veritensor
1•arseniibr•1h ago

Comments

arseniibr•1h ago
Hi HN,

I've been working with MLOps pipelines lately, and it always bothered me that torch.load() (and Pickle in general) is basically an RCE vulnerability we've all just accepted. We download gigabytes of opaque weights from Hugging Face and run them in production, often with full privileges.

I looked for existing tools, but many relied on simple regex (easy to bypass) or didn't verify if the file was tampered with in transit.

So I built Veritensor. It’s a CLI tool to gatekeep models before they hit your runtime.

How it works under the hood: 1. Pickle Emulation — Instead of grepping for os.system, it emulates the Pickle VM stack. This catches obfuscated payloads (like STACK_GLOBAL assembly) without actually executing the code. 2. Identity Check — It hashes your local file and queries the Hugging Face Hub API to ensure it matches the upstream version bit-for-bit (detects MITM or corruption). 3. License Headers — It parses metadata from Safetensors/GGUF to detect restrictive licenses (like CC-BY-NC or AGPL) so you don't accidentally ship them in a commercial product. 4. Signing — Integrates with Sigstore Cosign to sign the container if the scan passes.

It supports PyTorch, Keras (checks for Lambda layers), and GGUF. Written in Python, Apache 2.0.

I’d love to hear your feedback on the detection logic or edge cases I might have missed with the Pickle emulation.

Repo: https://github.com/ArseniiBrazhnyk/Veritensor

PyPI: pip install veritensor

Running cheap and crappy USB hard drives in RAID0 is indeed a terrible idea

https://ounapuu.ee/posts/2026/01/14/raid0/
1•speckx•36s ago•0 comments

How to Use LLMs for Continuous, Creative Code Refactoring

https://thenewstack.io/how-to-use-llms-for-continuous-creative-code-refactoring/
1•rbanffy•1m ago•0 comments

Beijing tells Chinese firms to stop using US and Israeli cybersecurity software

https://www.yahoo.com/news/articles/exclusive-beijing-tells-chinese-firms-094036030.html
1•jmsflknr•2m ago•0 comments

How to avoid dynamic linking of Steam's client library using a old trick

https://nullonerror.org/2025/06/03/how-to-avoid-dynamic-linking-of-steam-s-client-library-using-a...
1•delduca•2m ago•0 comments

How to Stand Out When Every AI Product Promises the Same Magic

https://toolsfortech.substack.com/p/how-to-stand-out-when-every-ai-product
1•eh_tk•6m ago•0 comments

Show HN: A kids' math app without dark patterns

https://playlumi.app/
1•matheusml•6m ago•0 comments

Can AI Generate New Ideas?

https://www.nytimes.com/2026/01/14/technology/ai-ideas-chat-gpt-openai.html
1•lateforwork•7m ago•0 comments

Molecular bio-researcher, lifespan elongation

1•vikmarec•8m ago•0 comments

Clone Wars: IBM Edition

https://hackaday.com/2026/01/14/clone-wars-ibm-edition/
1•quantumfissure•8m ago•0 comments

Show HN: AI Vibe Coding Hackathon

https://vibe.devpost.com/
1•abdibrokhim•9m ago•0 comments

US approves sale of Nvidia's advanced AI chips to China

https://www.bbc.com/news/articles/cg4erx1n04lo
2•01-_-•9m ago•0 comments

Show HN: AlgoMommy – Organize video clips by talking while recording (macOS)

https://www.algomommy.com/show-hn.html
1•diarmuid_glynn•10m ago•0 comments

Technical Analysis of Starlink Terminal GPS Spoofing/Jamming Detection in Iran

https://github.com/narimangharib/starlink-iran-gps-spoofing/blob/main/starlink-iran.md
2•bazzmt•10m ago•0 comments

Making hypermadia-driven applications feel faster

https://postomator.com/updates/making-hypermedia-driven-applications-faster/
1•eljs•12m ago•0 comments

Introduction to Formal Methods (Part 2): From Spec to Code

https://vikramsg.github.io/introduction-to-formal-methods-part-2/
1•whinvik•13m ago•0 comments

Markiplier Will Open Iron Lung on 2,500 Screens with No Distributor

https://www.indiewire.com/news/analysis/markiplier-open-iron-lung-2500-screens-no-distributor-123...
1•Tomte•14m ago•0 comments

I built an app to install AI as if it were Steam or the App Store

https://getdione.app/
1•deeivihh•15m ago•0 comments

Apple-TSMC: The Partnership That Built Modern Semiconductors

https://newsletter.semianalysis.com/p/apple-tsmc-the-partnership-that-built
1•akyuu•16m ago•0 comments

Getting Real Leverage from Claude Code

https://estsauver.com/blog/claude-code-workflow
1•estsauver•17m ago•0 comments

I built a geocoder for AI agents because I couldn't afford Google Maps

https://jonready.com/blog/posts/geocoder-for-ai-agents.html
2•mips_avatar•17m ago•1 comments

Pain and Reflection = Progress

https://federicopereiro.com/progress-formula/
1•swah•19m ago•0 comments

The open-source Ableton-style music composer for the web

https://github.com/AppsYogi-com/ComposeYogi
3•vaibhav1312•19m ago•0 comments

Audacious: Playback Control

https://github.com/madprops/playback-control
1•the_stocker•20m ago•0 comments

Interface Craft: a library for those committed to designing with uncommon care

https://www.interfacecraft.dev/
1•duck•20m ago•0 comments

What Is Cloud.microsoft?

https://support.microsoft.com/en-us/office/what-is-cloud-microsoft-7ba4c8b9-d062-4444-84a5-fca6c3...
2•microsoftedging•20m ago•0 comments

Are diffs still useful for AI-assisted code changes?

2•nuky•21m ago•1 comments

Can the American Oboe Sing Again?

https://www.nytimes.com/2026/01/14/arts/music/oboe-laubin-jim-phelan.html
2•perihelions•21m ago•0 comments

Show HN: DanceJump For YouTube – turning videos into browser rhythm game

https://chromewebstore.google.com/detail/dancejump-for-youtube/hhdeflibphdghcpblkekakmbennfcaci
1•maaydin•21m ago•0 comments

The Androgen Warp

https://factsandreason.substack.com/p/the-androgen-warp
1•paulpauper•22m ago•0 comments

Man got $2,500 whole-body MRI that found no problems – then had stroke

https://arstechnica.com/health/2026/01/man-got-2500-whole-body-mri-that-found-no-problems-then-ha...
1•_fs•22m ago•0 comments