socketsecurity
Socket Security CLI for CI/CD
What it is and what it does
Socket Security CLI is a command-line tool that scans Python projects for supply-chain security issues—vulnerabilities, policy violations, and license risks—and reports results in multiple formats. It integrates directly into CI/CD pipelines to gate deployments based on security findings, with support for diff-based PR scanning, full-scope analysis, and reachability-aware filtering to reduce noise.
The tool connects to Socket's backend service via API token and can export findings as SARIF (for GitHub, GitLab, and other platforms), JSON reports, SBOMs, and legal/compliance artifacts. It supports both simple policy enforcement (exit on blocking issues) and detailed investigation workflows (full-scope SARIF with instance-level detail). Configuration is flexible—via CLI flags, environment variables, or TOML/JSON config files—and includes presets for common scenarios like legal compliance and FOSSA compatibility.
Use it for:
- Gate pull requests in CI/CD by scanning diffs against a baseline commit and blocking merges if new security issues are found.
- Generate SARIF reports for GitHub Advanced Security, GitLab Dependency Scanning, or other security dashboards.
- Export legal/compliance artifacts (SBOM, license inventory) in standard or FOSSA-compatible formats for audit trails.
- Analyze reachability of vulnerabilities to prioritize fixes based on whether issues are actually used in your code.
- Enforce supply-chain security policies across teams by running scans on every commit to the default branch.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Socket Security CLI scans Python projects for supply-chain security risks, generates SARIF reports, and integrates with CI/CD pipelines to enforce security policies.
Yes, if you need supply-chain security scanning in CI/CD. The tool is actively maintained, has low install friction, and integrates well with common platforms (GitHub, GitLab, Buildkite, Bitbucket). Requires Python 3.11+ and a Socket Security API token. No known vulnerabilities. MIT license is permissive. Start with a basic policy scan or SARIF export to evaluate fit.
Install
socketsecurity on PyPI
pip
pip install socketsecurityuv
uv add socketsecuritypoetry
poetry add socketsecurityInstalling socketsecurity
Before you install
Low install friction with a pure-Python wheel. Active maintenance with a release 2 days old. Requires Python 3.11 or later and 11 runtime dependencies including requests, beautifulsoup4, and gitpython.
License in practice
MIT License permits free use, modification, and redistribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install socketsecurity
export SOCKET_SECURITY_API_TOKEN="your-token"
socketcli --target-path .
Requires Python 3.11 or later and a valid Socket Security API token set via SOCKET_SECURITY_API_TOKEN environment variable.
Verify before relying
- Whether the CLI's exit codes (0, 1, 2, 3) and blocking behavior match your CI/CD platform's expectations.
- Whether the package's reachability analysis covers all dependency types in your project (transitive, optional, dev).
- Whether SARIF output is compatible with your security scanning dashboard or SIEM integration.
Package facts
| License | MIT License Copyright (c) 2022 Socket Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — beautifulsoup4, brotli, brotlicffi, gitpython, markdown, mdutils, packaging, prettytable, python-dotenv, requests, socketdev |
| Maintenance | actively maintained — 2 days since the last release |
| First released | |
| Downloads | 220,640/month — #9,295 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: socketsecurity-2.6.4-py3-none-any.whl
Keywords: oss, sca, security, socket.dev, socketsecurity
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
ca9ca9 analyzes Python package supply chains to…
copyleft · top 15,000 on PyPI
socketdevA Python SDK that wraps the Socket.dev REST…
permissive · top 15,000 on PyPI
pysentry-rsPySentry scans Python projects for known…
permissive · top 15,000 on PyPI
guarddogGuardDog is a CLI tool that scans PyPI, npm,…
permissive · top 15,000 on PyPI
safetySafety CLI scans Python project dependencies…
permissive · top 5,000 on PyPI
bridgecrewWraps checkov to provide infrastructure-as-code…
permissive · top 15,000 on PyPI
cisco-ai-skill-scannerScans AI Agent Skills for prompt injection,…
permissive · top 15,000 on PyPI
sarif-toolsParses, analyzes, and transforms SARIF (Static…
permissive · top 15,000 on PyPI
truffleHogScans Git repositories and other sources for…
unclear · top 15,000 on PyPI
ci-infoDetects which continuous integration platform…
permissive · top 15,000 on PyPI