Vulnerability and malware checks in uv
uv gains two preview security features: `uv audit`, a native replacement for pip-audit that checks locked dependencies against known vulnerabilities and adverse statuses like deprecation, running 4-10x faster on typical projects, and an opt-in malware check (`UV_MALWARE_CHECK=1`) that queries OSV for MAL advisories on every sync and aborts before malicious code runs. The malware check exists because PyPI quarantines only remove the index pointer, so lockfiles that reference object storage directly can still install quarantined distributions. Because it relies on public advisories, dependency cooldowns are still recommended. Planned work includes vulnerability-aware resolution, reachability analysis with ty, and alternative backends such as PYSEC.
Related posts
- Securing Python projects from supply-chain attacks
Astral mediumAdeptHash-pinning is the core defense against compromised maintainer accounts or hacked distribution servers, because version pins alone fail when PyPI files can be added post-release and GitHub Action tags can be force-pushed. Concrete hardening steps for Python projects on GitHub: pin Actions by commit SHA (via pinact, Dependabot or Renovate), verify SHA-256 hashes of downloaded binaries in Bash, Python or TypeScript, use PyPI Trusted Publishing over OIDC, require approvals on release environments, and lint workflows with zizmor. With uv, add dependency cooldowns via exclude-newer, lock CI tools as dependency groups and run them with UV_LOCKED, lock PEP 723 scripts, and set no-build to avoid executing source-distribution build backends.
- tar-codec: a fast and secure tar parser for the Rust ecosystem
Astral mediumAdepttar-codec is a new Rust tar parser that uv uses from 0.13 onward to read Python source distributions. It runs roughly twice as fast as the previous astral-tokio-tar and cuts exposure to parser differentials, where uv, pip and an index like PyPI could see different contents in the same archive. Security reports against the lenient tokio-tar fork family led Astral to rewrite the parser instead of retrofitting constraints. The post walks through tar's block structure and the V7, UStar/pax and GNU variants, including header layouts, pax extended header records and global/local precedence, explaining where differential risks come from.
- Safer Docker Hub Pulls via a Sonatype-Protected Proxy
Docker mediumAdeptRouting Docker Hub pulls through a Nexus Repository Docker proxy with Sonatype Repository Firewall gives an organization a single, auditable checkpoint. Images are inspected at download time, malware and high-severity vulnerabilities are quarantined before any layer reaches developers, and approved layers are cached to avoid rate limits. The setup covers authenticating with a Docker Hub Organization Access Token scoped to read/pull, creating a docker (proxy) repository pointing at registry-1.docker.io behind a stable hostname, and enabling the Firewall Audit and Quarantine capability. The recommended rollout is to start with conservative policies (malware and CVSS ≥ 8), monitor violations and cache hit rate, then tighten enforcement; blocked pulls return a 404 by default.
- Our response to the TanStack npm supply chain attack
OpenAI easyNovice
Two OpenAI employee devices were compromised via the malicious TanStack npm package in the Mini Shai-Hulud supply chain attack, leading to credential-focused exfiltration from a limited set of internal repositories that held code-signing certificates for iOS, macOS and Windows apps. OpenAI isolated systems, revoked sessions, rotated credentials, blocked new notarizations with the old certificate, and is rotating signing certificates, which requires macOS users to update apps before the revocation deadline (extended to June 26, 2026). The affected devices had not yet received hardening controls rolled out after the Axios incident, including package manager minimumReleaseAge settings and provenance validation, which would have blocked the malicious package. No customer data, IP or signed malware was found.
- Coding Agent Horror Stories: The CVE That Did Not Exist
Docker mediumAdeptA self-hosted, read-only AI code review bot running on Ollama answered a routine PostgreSQL 16.11→16.13 patch bump with a 1,500-word report alleging an "architectural takeover". The report cited a nonexistent CVE, named Kubernetes resources that did not exist and urged revoking all IAM access. Read-only permissions stopped the agent from acting, but its output could still push a human with real access into causing an outage, so agent output should be treated as untrusted input. The walkthrough moves the reviewer into a Docker Sandbox microVM with the repo mounted read-only, no credentials, and deny-all networking except the model port. It also adds a CI step that checks every cited CVE ID against the NVD API and flags the review when any ID is fake.