GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - sudorm-rf0/depscope: Rust Cargo.lock dependency risk scanner and CI gate: identify source, checksum, and version risks; generate CycloneDX SBOMs.

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 

Repository files navigation

๐Ÿ” depscope

Scope your Rust dependency supply chain from a single Cargo.lock.

Rust unsafe forbidden CycloneDX License

GitHub stars GitHub last commit


depscope parses a lockfile into a source-agnostic view and applies a small, deterministic set of supply-chain risk heuristics. It is dependency-light, #![forbid(unsafe_code)], and drives both a human-readable CLI and a CI gate from the same pure logic.

Why

A Cargo.lock is the ground truth of what actually ships. Before trusting a build โ€” or auditing one โ€” it helps to know:

  • which packages come from Git instead of crates.io,
  • which registry packages are missing a checksum (integrity can't be verified),
  • which crates are pinned to multiple major versions (wider attack surface),
  • which dependencies are still pre-1.0 (unstable API).

depscope answers those questions in one command and exits non-zero when a CI gate finds something it shouldn't.

Try it on a real lockfile

You can run the analyzer directly from this repository without installing a global binary or providing any secrets:

git clone https://github.com/sudorm-rf0/depscope.git
cd depscope
cargo run --locked -- scan Cargo.lock
cargo run --locked -- risks Cargo.lock

This reads the repository's own lockfile. risks reports heuristic signals to investigate; it is not a vulnerability advisory database or proof that a dependency is exploitable. Use check separately when you intentionally want a nonzero CI gate.

Install

cargo install depscope

Or build from this source checkout with cargo build --locked --release. Requires Rust tooling compatible with the rust-version declared in Cargo.toml.

Usage ยท Risk levels ยท Source code ยท Report an issue

Usage

# Count packages grouped by source
depscope scan path/to/Cargo.lock

# List detected risks (human-readable)
depscope risks path/to/Cargo.lock

# Same, as JSON
depscope risks path/to/Cargo.lock --json

# Emit a minimal CycloneDX 1.5 SBOM
depscope sbom path/to/Cargo.lock

# CI gate: non-zero exit if any High/Medium risk is found
depscope check path/to/Cargo.lock

Example

$ depscope scan Cargo.lock
Scanned 333 packages from Cargo.lock
  registry   332
  root       1

$ depscope risks Cargo.lock
[MEDIUM] [email protected], 3.0.0 โ€” Multiple versions locked (2.0.119, 3.0.0); consider unifying to reduce attack surface and bloat.
[LOW] [email protected] โ€” Pre-1.0 version โ€” API is not stabilized; upgrades may break.

Risk levels

Level Triggers
HIGH Git-sourced dependency; registry package missing a checksum
MEDIUM Local path dependency; non-standard source; duplicate versions
LOW Pre-1.0 version

Library

The analysis is exposed as a small, #![forbid(unsafe_code)] library so it can be embedded or tested directly:

use depscope::{from_lockfile, detect_risks};

let pkgs = from_lockfile("Cargo.lock")?;
let risks = detect_risks(&pkgs);

License

Licensed under either of MIT or Apache-2.0 at your option.

About

Rust Cargo.lock dependency risk scanner and CI gate: identify source, checksum, and version risks; generate CycloneDX SBOMs.

Topics

cargocargo-lockciclidependency-analysisdevtoolsrustsecuritystatic-analysissupply-chain

Resources

Readme

Contributing

Contributing

Security policy

Security policy
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.