{
  "id": 22867327,
  "title": "I benchmarked my pickle scanner against the tools it competes with and published the losses",
  "url": "https://urgent.news/2026/12/01/i-benchmarked-my-pickle-scanner-against-the-tools-it-competes-with",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-01T00:32:24.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/sunwukhan/i-benchmarked-my-pickle-scanner-against-the-tools-it-competes-with-and-published-the-losses-4i7f"
  },
  "original_language": null,
  "account": "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.\n\nPicklesentry 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.\n\nThe 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.\n\nPickle-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.",
  "summary": "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…",
  "summary_source": "publisher",
  "key_points": [
    "Picklesentry scanner outperforms competitors with 76/96 malicious files detected",
    "New rule flags pickle files invoking dangerous stdlib globals",
    "Version 0.5.0 improves accuracy without increasing false positives"
  ],
  "editors_take": "The developer claims that the updated scanner provides better accuracy for detecting unsafe deserialization in Python code and machine learning data files compared to previous versions.",
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}