← Lab /Security & privacy

GuardDog 3.0 scores npm and PyPI packages, boosting malicious package detection

GuardDog 3.0 can accurately estimate the probability a package is malicious using a YARA-based risk engine and sandboxed scanning

Security & privacy Datadog Security Labs 26 Jun 2026 Tooling Deployed evidence

Published as “Introducing GuardDog 3.0: A new rules engine, transparent sandboxing, and more”

Why it matters

Provides an open-source, sandboxed, YARA-based scanner that can prioritize malicious packages, helping supply-chain security teams triage threats.

Summary

GuardDog 3.0 replaces Semgrep with YARA for static analysis of npm and PyPI packages and adds a risk scoring engine that combines capability and threat-indicator rules. It also runs extraction and scanning inside a transparent Nono sandbox to limit exploitation. In evaluations on a curated set of over 27,000 malicious packages (clustered to reduce duplication) the tool reports risk scores up to 10/10, flagging dozens of risks per malicious sample, demonstrating its ability to prioritize truly malicious packages.

What they found 2

  1. A malicious sample triggered 30 risk detections and received a maximum risk score

    “found 30 risks.”

  2. The same sample was classified as high risk with a score of 10.0 out of 10

    “Assessment: High risk (10.0/10)”

Caveats 2

  • On environments where Nono isn't supported, pass the --no-sandbox flag to disable it.
  • many of these 27k packages are extremely similar or even identical, which can bias our evaluation set.

What’s new here 4

  • Switched scanning engine from Semgrep to YARA for lower memory use and faster processing
  • Introduced a multi-factor risk scoring engine that aggregates severity, attack-chain completeness, specificity, and sophistication
  • Added default sandboxing of extraction and scanning via nono-py
  • Implemented clustering of the malicious-package dataset with TLSH to avoid duplicate bias in evaluations