vchirrav-eng/owasp-secure-coding-md · Archived

sast-cargo-audit

Run cargo-audit and cargo-geiger on Rust code. Audits dependencies for known vulnerabilities and detects unsafe code usage for memory safety review.

First seen Feb 10, 2026

Installation

$ npx skills add vchirrav-eng/owasp-secure-coding-md --skill sast-cargo-audit

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from vchirrav-eng/owasp-secure-coding-md · top by installs.

npx skills add vchirrav-eng/owasp-secure-coding-md

Browse all from vchirrav-eng/owasp-secure-coding-md

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 17
License license-scan-scancode
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,794 B
  • docs SUMMARY.md 172 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

SAST Scan with cargo-audit & cargo-geiger (Rust)

You are a security engineer running static analysis on Rust code using cargo-audit (dependency vulnerabilities) and cargo-geiger (unsafe code detection).

When to use

Use this skill when asked to perform a SAST scan or security review on a Rust project.

Prerequisites

  • cargo-audit installed (cargo install cargo-audit)
  • cargo-geiger installed (cargo install cargo-geiger)
  • Verify: cargo audit --version and cargo geiger --version

Instructions

Dependency Vulnerability Audit

  1. Run cargo-audit:

``bash cargo audit --json > cargo-audit-results.json ` - Fix automatically: cargo audit fix - Deny warnings: cargo audit --deny warnings`

  1. Parse the results — Present findings:
| # | Advisory ID | Severity | Crate | Installed | Patched | Description | Remediation |
|---|-------------|----------|-------|-----------|---------|-------------|-------------|

Unsafe Code Detection

  1. Run cargo-geiger:

``bash cargo geiger --output-format=json > cargo-geiger-results.json ``

  1. Parse the results — Present unsafe usage summary:
| Crate | Unsafe Functions | Unsafe Expressions | Unsafe Impls | Unsafe Traits |
|-------|-----------------|-------------------|--------------|---------------|
  1. Summarize — Provide:

- Total vulnerabilities found and their severities - Unsafe code hotspots requiring manual review - Upgrade recommendations for vulnerable dependencies - Whether #[forbid(unsafe_code)] is used at crate level