rust-security

Audit Rust dependencies with cargo-audit and enforce policies via cargo-deny.

159|20|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill rust-security-mohitmishra786
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-security
Source: https://github.com/mohitmishra786/low-level-dev-skills/tree/main/skills/rust/rust-security
Command: npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill rust-security-mohitmishra786

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers secure their Rust projects by auditing dependencies for vulnerabilities, enforcing security policies, and writing memory-safe code.

Core Features & Use Cases

  • Dependency Auditing: Use cargo-audit to find known vulnerabilities in your project's dependencies.
  • Policy Enforcement: Implement cargo-deny to enforce rules on licenses, crate bans, and sources.
  • Memory Safety: Learn patterns for writing safe Foreign Function Interfaces (FFI) and leverage tools like Miri for soundness checks.
  • Fuzzing: Integrate fuzz testing to discover security bugs.
  • Use Case: A developer needs to ensure their new Rust library is safe to publish by checking for known CVEs, preventing the use of GPL-licensed dependencies, and verifying memory safety in FFI calls.

Quick Start

Use the rust-security skill to audit your Rust project's dependencies for known vulnerabilities.

Frequently Asked Questions about rust-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Rust dependencies for known vulnerabilities?

Audit Rust dependencies for known vulnerabilities by running cargo-audit against your project's Cargo.lock file. This scans your dependency tree for reported Rust CVEs and helps secure your supply chain before publishing.

How do I enforce license and source policies in a Rust project?

Enforce license, crate ban, and source policies in Rust projects by configuring cargo-deny. This tool checks dependencies against your defined rules to ensure compliance and block unauthorized or risky crates.

What is the best way to check memory safety in Rust FFI calls?

Check memory safety in Rust FFI calls by applying safe Foreign Function Interface patterns and using Miri for soundness checks. This combination identifies undefined behavior and verifies safe memory handling across boundaries.

Can I integrate fuzz testing into my Rust CI/CD pipeline?

You can integrate fuzz testing into your Rust CI/CD pipeline to discover security bugs. By adding fuzzing alongside dependency auditing and policy enforcement, you achieve comprehensive security reviews during development.

Does cargo-deny work with cargo-audit for Rust supply chain security?

Yes, cargo-deny works with cargo-audit to enhance Rust supply chain security. While cargo-audit detects known CVEs in dependencies, cargo-deny enforces broader rules for licenses, banned crates, and allowed sources.

Why do I need Miri for Rust soundness checks if the compiler is safe?

You need Miri for Rust soundness checks because the compiler does not catch all unsafe code issues or FFI undefined behavior. Miri executes your code to detect memory safety flaws that standard compiler checks miss.