An enterprise pull-through proxy focused on software supply-chain security. It
caches content pulled from upstream registries and source forges, scans Git
commits with an LLM API, and associates package artifacts with the Git commits
that produced them (e.g. via build-provenance attestations).
It supports package managers (pip, npm, cargo, Go modules, NuGet), Docker/OCI
registries, and Git over HTTPS and SSH, with content-addressable caching, LLM
commit scanning, a sandboxed LLM review of each downloaded package's contents,
packageβcommit provenance resolution, admission policy,
authentication/RBAC/quotas, a tamper-evident audit log, a download log that
shows which package was downloaded from which client address, and Prometheus
metrics plus an admin dashboard.
Documentation: see docs/ for the full operator and user guides β
architecture, configuration,
client setup, security model,
threat model, and the admin runbook.
For a screenshot tour of the admin dashboard, see the
admin UI walkthrough.
To point tooling at the proxy, start with docs/clients.md:
one page per package manager β what to configure, how to hand it a token and
a private CA, how to check it works, and what it does to your lock files.
Every ecosystem is tested with its real package manager. On each push, CI
runs the real npm, pip, cargo, go, dotnet, mvn, Docker Engine,
helm, bundler, composer, terraform, conan, conda, apt-get, dnf,
git, mix, bazel, julia, cpanm, R, dart pub, ovsx, nix, deno,
cabal, brew, ansible-galaxy, r10k and huggingface_hub clients β
configured to use the proxy, with no other network route β against the real
proxy binary and registries: a good
package installs (and re-installs from the cache), and a package whose source
commit the LLM scan flagged malicious is refused β explicitly configured, through
TLS interception, and in NAT mode. See
docs/ecosystem-tests.md; the verified client
configuration for each ecosystem is in
docs/ecosystem-tests-reference.md.
The client guide is executed, too. Every configuration snippet in
docs/clients/ is, line for line, in a script that the real
client runs (the four that are not say so) β in the ecosystem tests, or in the
client lab, which serves the proxy over HTTPS with a
private CA, with and without a required token, to some sixty client
configurations (Yarn, pnpm, Bun, uv, Poetry, Gradle, containerd, skopeo,
OpenTofu, micromamba, β¦) on a network where the proxy is the only reachable
host and every name a client looks up is recorded. A test fails when a
snippet and its script drift apart.
Every package is read before it is served β in every ecosystem, proven.
With llmPackageScan enabled, a language model reviews the unpacked contents
of each artifact a client pulls β in a sandbox: nothing is executed, the model
has three read-only tools over an in-memory copy and no network β and the
proxy refuses what it judges malicious, quarantines it, and records a finding.
A CI suite proves it for every upstream type the proxy fronts, through the
real proxy binary with a mock model: a benign package is served and the model
saw its contents, a flagged one is refused and stays refused, verdicts are
reused, both fail modes behave, and a prompt injection inside a package does
not turn the verdict. See
docs/llm-package-scan.md; the ecosystem Γ scenario
matrix is attached to every CI run. A second suite pulls reconstructions of
real attacks (the Trivy/TeamPCP campaign, LiteLLM, event-stream,
ua-parser-js, β¦) through the proxy with a real model behind the scan; it
stays switched off in CI until a credential is configured
(docs/llm-live-scan.md).
Who pulled what. The admin console's Downloads tab (and
GET /admin/api/downloads, ptctl downloads) lists every package download
with the client address it came from β and every attempt an admission gate
refused β filterable by address, CIDR, package and outcome. It is on by
default and tested end to end with the real cargo and go clients. See
docs/download-log.md.
And by whom. An address is a machine, a NAT gateway or a shared build
host. With personal cache links, a cache user signs in through your OpenID
Connect identity provider and gets their own address for every package source
β https://proxy.example.com/u/<link>/v1/npm/ β and every download through
it is recorded under their name. Tested end to end with the real npm,
pip, cargo, go, Docker Engine and git. See
docs/user-links.md.
Or with no client configuration at all. Besides the explicit package
sources, the proxy intercepts TLS: clients keep registry.npmjs.org,
pypi.org, repo.maven.apache.org, β¦ and either use the proxy as their
HTTPS_PROXY or β in NAT mode β are sent to it by the network (a NAT redirect,
or DNS), trusting only the proxy's CA. Requests are routed by host and path
into the same cache and admission pipeline, and the download links in what
the proxy serves stay on the host the client asked for. Every ecosystem's real
client runs in both modes in CI, the NAT leg with nothing reachable but the
registry hostnames. See docs/intercept-mode.md.