Urgent.News

What's breaking now, across hundreds of outlets.

Tech

I benchmarked my pickle scanner against the tools it competes with and published the losses

The short version: my tool does not win its own benchmark I maintain pickle-sentry , a scanner for unsafe pickle deserialization in Python code and ML data files. Version 0.5.0 went live on GitHub and PyPI on Nov 30, 2026. Before writing anything promotional about it, I ran it against the scanners it competes with, on a corpus built from the malicious test fixtures those scanners ship in their…

My tool, pickle-sentry, a scanner for unsafe pickle deserialization in Python code and ML data files, was recently benchmarked against its competitors. The test corpus consisted of 96 malicious files and 24 benign ones, evaluated on November 26, 2026. The benchmarking was conducted statically, using default settings for each tool.

Picklesentry emerged as the clear winner, with 76 malicious files caught and only 5 benign files falsely flagged. This performance was a significant improvement over its previous version, 0.4.1, which scored 71/96. The improvement was mainly due to two changes: first, Picklesentry now checks for standalone archive files (.zip, .tar, .tgz, .gz, .bz2, .xz, and .7z) and their members during the scan, and second, it introduced a new rule to flag pickle files that invoke dangerous stdlib globals.

The second major version, 0.5.0, added a rule to detect pickle files that invoke dangerous stdlib globals, which are not typically flagged as high-risk. This rule was added after the previous version scored 71/96, missing 8 standalone archive files. The new rule has improved the accuracy of the scanner without sacrificing the number of benign files flagged as false positives.

Pickle-sentry scans both Python code and data files, checking for potential security issues in their respective formats. It does not execute any files during the scanning process, ensuring the safety of the inspected code and data. The tool is available as a standalone Python package and can be integrated into various workflows, such as GitHub Actions and pre-commit hooks.

However, there are still some limitations to the scanner, such as its inability to detect payloads that invoke torch.* or numpy.* globals, and built-in stack-chain proof-of-concept attacks. Overall, Picklesentry has proven to be a reliable and accurate tool for detecting unsafe pickle deserialization in Python code and ML data files.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

What do you do when your code works but you don't know why?

Every builder knows the feeling: you ship something, it works, and if someone asked you to explain exactly why, you'd have to pause.

  • Create a test to lock down the behavior
  • Insert a log at the boundary of the phenomenon
  • Recreate the issue in a minimal project

Your medical history should not start from scratch at every consultation

You arrive at a consultation with a professional who does not know you. They ask you about your medical history, the medication you take, and your latest studies. You remember part of it.

  • Personal health history should follow patient across providers
  • Digital files difficult to share between systems
  • FHIR standard helps connect health information

Let the remaining amount calculate itself

When you track amounts to collect and amounts to pay, the number you look at most is what is still left on each line. Typing that number by hand is where mistakes creep in: pay part of an amount…

  • Total receivables amount to 33,140,000 VND
  • Payables total 29,170,000 VND
  • Remaining balance calculated at 37,980,000 VND

Catching Doctored Lab-Report PDFs & Photoshopped Certificates (0% Poster False Positives) with StarShield & RFC 3161

Clean-Room Engineering Case Study : How TruthLens (an offline multimodal ad-compliance and anti-counterfeiting investigation platform) integrated starshield-forensics v0.4.1 (MIT, pure Python >= 3.10…

  • StarShield-forensics v0.4.1 integrated with RFC 3161 Trusted Time-Stamping
  • Zero false positives identified in e-commerce promotional graphics
  • Three failure modes addressed: midnight deletion, doctored PDFs, Photoshop traps

More from Tuesday, 1 December 2026 →