--- id: guarddog version: "3.2.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # guarddog — GuardDog is a CLI tool for identifying malicious open source packages License: permissive · Maintenance: active · Downloads: 157.8K/mo ## What it is and what it does GuardDog is a static analysis tool that downloads and scans open source packages across multiple ecosystems (PyPI, npm, Go, Rust, RubyGems, GitHub Actions, VSCode extensions) to detect supply chain attacks. Rather than flagging every suspicious pattern independently, it uses a risk-correlation model: it identifies both code capabilities (what the package can do, like network access) and threat indicators (suspicious domains, obfuscation), then flags actual risks only when both appear in the same file or across related files. This reduces alert fatigue by distinguishing between legitimate functionality and genuine malicious intent. The tool runs YARA rules against package source code and analyzes metadata to score packages on a 0-10 risk scale based on attack chain completeness, specificity, and sophistication. Scans execute inside a kernel-level sandbox (Landlock on Linux, Seatbelt on macOS) to prevent malicious code from executing during extraction or analysis. It supports scanning remote packages, local archives, directories, and S3 buckets, with output in JSON or SARIF format for CI/CD integration. Use it for: - Scan dependencies in a requirements.txt or package.lock file before deployment to catch known malicious packages - Integrate into CI/CD to automatically flag high-risk packages during pull requests or builds - Triage a suspected compromised package by scanning it locally to understand its capabilities and threat indicators - Verify the security posture of third-party packages before adding them to a monorepo or internal registry - Generate SARIF reports for integration with security dashboards or SIEM systems like Datadog ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. GuardDog is a CLI tool that scans PyPI, npm, Go, Rust, RubyGems, GitHub Actions, and VSCode extension packages to identify malicious code and supply chain attacks using YARA rules and metadata analysis. Yes. GuardDog is actively maintained, has no known vulnerabilities, and fills a specific gap in supply chain security by correlating code capabilities with threat indicators rather than generating false-positive noise. The sandboxed scanning protects against execution during analysis. Install it if you need to audit dependencies across multiple package ecosystems or integrate package security checks into CI/CD; skip it if you only use a single ecosystem and already have ecosystem-specific tooling. ## Install pip install guarddog uv add guarddog poetry add guarddog ## Installing guarddog Before you install: Low friction installation via pip or uvx; actively maintained with recent releases. Requires modern Python (3.10+) and 18 runtime dependencies including boto3, pygit2, and yara-python. Sandboxed scanning on Linux and macOS protects against malicious code execution during analysis. License in practice: Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for integration into security workflows and CI/CD pipelines. Quickstart: pip install guarddog guarddog pypi scan requests guarddog pypi scan requests --version 2.28.1 guarddog pypi verify requirements.txt --output-format=json Requires Python 3.10+. Sandboxed scanning (default) requires Linux Landlock or macOS Seatbelt; use --no-sandbox to disable. Windows requires Docker. Verify before relying: - Accuracy and false-positive rate of YARA rules and risk scoring model in real-world supply chain scenarios - Performance characteristics when scanning large monorepos or dependency trees with hundreds of packages - Coverage and detection capability for emerging or novel malware patterns not yet in the rule set ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 157.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags malicious package detection, supply chain security scanning, pypi package vulnerability scanner, npm package security analysis, open source package risk assessment, yara-based code analysis, dependency threat detection, package metadata inspection, supply-chain-security, malware-detection, multi-ecosystem [View on SkillFed](https://skillfed.io/packages/guarddog) · [View on PyPI](https://pypi.org/project/guarddog/)