Python Supply-Chain & Application Security

Parent: Python Patterns and Best Practices · researched 2026-06-01T05:05:23.552Z· 14 sources · 7 concepts · skill python-supply-chain-security

Python application security splits into two layers that share one toolchain:

Overview

1. Dependency auditing — pip-audit

2. SBOM generation (Software Bill of Materials)

3. Static application security testing — bandit

4. Provenance — sigstore, PEP 740 attestations & Trusted Publishing

5. Hash-pinned dependencies (reproducible, tamper-evident installs)

Methodology — layered project posture

Anti-Patterns

Troubleshooting

2025-2026 threat landscape (why this matters)

References (sources)

Children

Frontier under this node: 2025-2026 threat landscape (typosquatting, dependency confusion, PyPI phishing, GhostAction, Shai-Hulud), CI/pipeline hardening (OpenSSF Scorecard, zizmor, SHA-pinned Actions), Dependency auditing (pip-audit — PyPA, OSV + PyPA Advisory DB, -r/PEP 751 lockfile input, --fix, cyclonedx output), Hash-pinned reproducible installs (pip --require-hashes, pip-compile --generate-hashes, uv lock), Provenance — sigstore/PEP 740 digital attestations + Trusted Publishing OIDC (keyless signing, gh-action-pypi-publish ≥1.11.0, pypi-attestations verify), SBOM generation (CycloneDX vs SPDX, cyclonedx-py, syft, lib4sbom, PEP 770 SBOMs-in-wheels), Static application security testing (bandit — PyCQA AST plugins, B-codes, severity×confidence, [tool.bandit]/# nosec, baseline workflow)

← the whole tree · 3D view· how to read this page