Dependency Firewall early access: 50% off the base fee. See pricing

Cargo Dependency Firewall

Rust crates can include build scripts that execute before the package is compiled. Bytesafe blocks malware, packages with known vulnerabilities and policy violations before they reach your build.

Dependency Firewall sits in front of your existing repository, protecting developers, CI/CD pipelines and AI agents.

EU-based company · Software supply chain security since 2018.

Logs

Firewall cargo-ci
StatusPackageRule
Allowed
clap@4.5.48
Log all downloads
Allowed
hyper@1.7.0
Exception
Blocked
reqwest@0.12.24
Delay 7 days
Allowed
tokio@1.47.1
Log all downloads
Blocked
rustdecimal@1.23.1
Known malware
Allowed
serde@1.0.228
Log all downloads
Allowed
tracing@0.1.41
Log all downloads
Allowed
anyhow@1.0.100
Log all downloads

Intercepts every Cargo package request before it reaches you.

Every package install is a potential entry point. Traditional SCA tools find problems after packages are already in your environment. Dependency Firewall intercepts every Cargo request before it reaches your developers, CI/CD pipelines or AI agents.

You define the rules: block packages with known CVEs, block known malicious packages, or delay newly published versions for a configurable period to give the ecosystem community time to surface zero-day threats.

Works in front of enterprise repository platforms and any Cargo registry. No agent installs. No workflow changes.

Public crates.io registry

Vulnerable and malicious versions included

Risky packages
Bytesafe

Dependency Firewall

Policy engine
Vetted packages only

Developers and CI/CD

Internal environment

What Dependency Firewall does for Cargo

Each firewall runs the checks you turn on, on every package request. Rules block or log, and every decision is recorded.

Malware blocking
Blocks packages that match malware data, including malicious payloads and suspicious install hooks. Every block is logged with the package and the rule.
Vulnerability blocking
Blocks versions with CVEs above a CVSS or EPSS score you set, per firewall. New advisories apply on the next request.
Package delay
Holds newly published versions for a window you set, so malware feeds can catch a bad release before your builds install it.
Exception workflow
Developers request an exception from the blocked install. The team you choose approves it, adjusting scope or expiry, or denies it with a comment. Every request and decision is in the audit log.
Dependency confusion
Upstream priority rules make internal package names always resolve from your private registry. A public package with the same name cannot take its place.
Package observations
Every package that passes records first-seen and last-seen time and request counts. When a new advisory lands, you see which firewalls served the package and since when.
Audit log
Every allow, block and exception is logged with the package, version, rule, requester and time. Export it to your SIEM.

Half the base fee for your first 3 months

€49.50 instead of €99 per month, plus €100 usage credit. Start with a 14-day trial. See what's new

How Cargo installs go through the firewall

Your package manager asks the firewall instead of the public registry. The firewall fetches the package from upstream, checks it against your rules and serves it only if it passes.

  1. 1

    Change the registry setting

    Point Cargo at the firewall, on laptops and CI runners. Lockfiles, manifests and install commands stay the same.

  2. 2

    Set the rules

    Block by CVSS or EPSS score, known malware, license or package age. Shared rules go on a baseline firewall that team and CI firewalls inherit, and they run first.

    Rules on a firewall: block downloads with CVSS above 7, log all downloads, and a 7-day delay inherited from npm-baseline
    Rules on the npm-ci firewall. The 7-day delay is inherited from npm-baseline. Shown for npm.
  3. 3

    Read the log

    A version held back by a rule is left out of the version list, so the package manager resolves an older one. A blocked download fails the install. Every decision is logged with the rule and who asked.

    Firewall log: lerna, nx and js-yaml versions blocked by the 7-day delay, other packages allowed
    New versions held by the delay rule, next to allowed downloads. Shown for npm.

Point Cargo at Bytesafe Dependency Firewall

Point Cargo at the firewall in .cargo/config.toml and it takes over from crates.io as the source for every dependency. No Cargo.toml edits, no change to how anyone builds, and lockfiles stay portable. Requires Rust 1.74 or newer.

Works with the repositories you already use

JFrog Artifactory
Sonatype Nexus
GitLab
GitHub Packages
Azure Artifacts
AWS CodeArtifact

Inside Dependency Firewall

The screens your developers and security team work with.

1 of 7 · Logs

Live firewall logs

Every request is logged: package name, version, status, ecosystem, which firewall evaluated it, which rule triggered and who requested it. Filter by firewall or user, and tail live during incidents or CI/CD runs.

Developers get a fast answer when an install fails, and AppSec gets an audit trail for every decision.

Live request log with blocked packages and rule details
Live request log with blocked packages and rule details

Known attacks on crates.io

Malicious releases, account takeovers and dependency confusion have all been used against packages there.

arrayref, proc-macro1

Build-time dropper

A compromised maintainer account published new versions of arrayref, internment and append-only-vec, each adding one dependency: proc-macro1, a typosquat of proc-macro2. Its build script assembled a command and control address, disabled certificate checks and ran a payload during compilation. Nothing in the crates had to be called. arrayref alone has around 245 million downloads. The versions were live for 86 to 107 minutes.

faster_log, async_println

Credential theft

Two crates cloned the fast_log logging library and kept it working as cover. Alongside it they scanned source files for Ethereum private keys and Base58 Solana keys and posted matches to an endpoint named to look like Solana RPC infrastructure. Published in May 2025, they reached 8,424 downloads before removal in September.

rustdecimal

Typosquatting

A crate named to be misread as rust_decimal shipped the real library's source with one function changed. Decimal::new checked for the GITLAB_CI environment variable and, when it found it, downloaded and ran a Mythic Poseidon payload on Linux and macOS. It had under 500 downloads across six weeks before the crates.io team removed it.

Also blocks vulnerable and malicious container images before they reach a build agent or production node.

Container Dependency Firewall

Compared with other enterprise dependency firewalls

Other enterprise dependency firewalls are often bundled into repository platforms. Dependency Firewall is an independent firewall that works with any registry and is built in the EU.

CriterionDependency FirewallOther enterprise firewalls
Works with your existing repositoryYes, as a proxy in front of itBundled into their platform most often
Deploys in minutesYesUsually weeks of platform work most often
Predictable pricingOne meter sets the price, no overageSeveral axes with overage most often
EU data residencyYesNo, US-based most often

Frequently asked questions

How do I point Cargo at Bytesafe Dependency Firewall?
Add the firewall as a registry in .cargo/config.toml and set it to replace crates.io as the source. Every dependency you already have then resolves through the firewall, with no Cargo.toml changes and no loss of lockfile portability. The dashboard generates the exact config for your firewall when you create it.
Can a Cargo.lock pull a crate the firewall blocked?
No. A lockfile names an exact version and goes straight to the download, so the firewall applies your rules to the download itself, not only to the index it resolved from. A blocked version fails either way.
Does cargo publish work through the firewall?
Yes. Publish, yank and unyank are forwarded to the registry you configure as the publish target. Published crates are scanned for malware and secrets first, and yanks are logged like any other write.
Is Cargo support production ready?
Yes. The full rule set applies: vulnerabilities, malware, licenses, name and version rules, and release delay, on the same advisory and malicious package data as every other ecosystem. Rust 1.74 or newer is required. See docs.bytesafe.dev/firewall/ecosystems/cargo for current status.
Can different Cargo projects have different policies?
Yes. You can create separate firewalls per project. They are lightweight and easy to clone. You can also differentiate by the user or token used for the session. Firewall configurations are small JSON files that can be managed in Git.
Can Cargo packages be delayed before they reach developers?
Yes. Dependency Firewall can hold newly published package versions for a window you configure before they reach developers or pipelines. Centralizing delay rules means the protection applies automatically across all teams and pipelines without each project configuring it separately.
What happens if a Cargo package passes through but malware is found later?
The firewall tracks all packages via observations: first-seen date, last-seen date, and which firewalls they passed through. When new malware data surfaces, you can see exactly which projects downloaded the affected package and when.
Can firewall rules be automated?
Yes. All configuration is available via API. Configurations can be version-controlled in Git and deployed through your existing automation. All changes are tracked with full rollback support.
Does Dependency Firewall work with enterprise repository platforms?
Yes. Dependency Firewall speaks the same protocols as your package managers, so it is fully transparent to enterprise repository platforms and package registries, including JFrog Artifactory, Sonatype Nexus, GitLab, GitHub Packages and Azure Artifacts.
How is licensing structured?
Two plans: Cloud for SaaS and Enterprise for custom deployment, Managed Cloud or On-Premise. Cloud is priced on whichever you use most: active users, packages scanned or downloads served. See pricing for plan details and add-ons.

Put Cargo installs behind the firewall

Try the setup above on one project and check the firewall log after the next install. Or book a demo and go through your registries and rules with an engineer.

Book a Demo