Skip to content

Commit d082b39

Browse files
bumahkib7claude
andcommitted
feat: add comprehensive security audit command
New `rma security` command (alias: `rma audit`) that provides: - Multi-language dependency vulnerability scanning: - Rust (Cargo.lock via RustSec) - npm (package-lock.json, yarn.lock via OSV) - Python (requirements.txt, poetry.lock via OSV) - Go (go.mod, go.sum via OSV) - Java (pom.xml, build.gradle via OSV) - Docker security scanning: - Dockerfile security checks (USER, latest tag, secrets, etc.) - docker-compose.yml misconfigurations - Privileged mode, host network, sensitive mounts - Code security analysis: - Hardcoded secrets - Injection vulnerabilities - Unsafe patterns Output shows CVE → Fix mappings with: - Advisory IDs (RUSTSEC, GHSA, CVE) - Affected package and version - Fixed versions when available - Recommended fix commands Supports multiple output formats: - pretty (default): colored terminal output - json: machine-readable JSON - sarif: for CI/CD integration - markdown: for reports Usage: rma security . # Scan current directory rma security --fix # Show fix commands rma security --format json # JSON output rma audit --skip-docker # Skip Docker scanning Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 8e17e95 commit d082b39

File tree

5 files changed

+1332
-9
lines changed

5 files changed

+1332
-9
lines changed

Cargo.lock

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ sha2 = "0.10"
4242
crossterm = "0.28"
4343
futures = "0.3"
4444
walkdir = "2"
45+
regex = "1"
4546

4647
[dev-dependencies]
4748
tempfile.workspace = true

crates/cli/src/commands/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub mod init;
1010
pub mod plugin;
1111
pub mod scan;
1212
pub mod search;
13+
pub mod security;
1314
pub mod stats;
1415
pub mod suppress;
1516
pub mod watch;

0 commit comments

Comments
 (0)