with one click
security-check
Check dependency security vulnerabilities
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Check dependency security vulnerabilities
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
AI Agent code quality check - Use Ruff to check code standards for LangChain, AutoGen, and other AI Agent projects
Database migration management - Use Flyway and Atlas for version-controlled database schema migrations
Dockerfile best practices check - Use hadolint to validate Dockerfile security, performance, and compliance
Format JavaScript/TypeScript code with Prettier
Format Python code with Black
Auto-generate project changelog
| name | security-check |
| description | Check dependency security vulnerabilities |
Check project dependencies for known security vulnerabilities, supporting multiple languages and package managers:
| Language/Tool | Check Tool | Installation |
|---|---|---|
| Python | pip-audit, Safety | pip install pip-audit safety |
| JavaScript | npm audit | Built into npm |
| Java | OWASP Dependency-Check | Download CLI |
| .NET | dotnet list package --vulnerable | Built into .NET SDK |
| Ruby | bundler-audit | gem install bundler-audit |
| Go | govulncheck | go install golang.org/x/vuln/cmd/govulncheck@latest |
"Check project security vulnerabilities"
"Scan dependencies for CVEs"
"Run security audit"
Python:
# Using pip-audit (recommended)
pip-audit # Scan current environment
pip-audit -r requirements.txt # Scan specific file
# Using Safety
safety check # Scan current environment
safety check --json # JSON output
JavaScript/Node.js:
npm audit # Scan and show vulnerabilities
npm audit fix # Auto-fix (minor versions)
npm audit fix --force # Force fix (may break compatibility)
npm audit --json # JSON output
Yarn:
yarn audit # Scan vulnerabilities
yarn audit --level high # Show high severity only
pnpm:
pnpm audit # Scan vulnerabilities
pnpm audit --fix # Auto-fix
Java (Maven):
# Using OWASP Dependency-Check
mvn org.owasp:dependency-check-maven:check
# Using Snyk
snyk test
.NET:
dotnet list package --vulnerable # List vulnerabilities
dotnet list package --vulnerable --include-transitive # Include transitive deps
Ruby:
bundle audit check # Check Gemfile.lock
bundle audit update # Update vulnerability database
Go:
govulncheck ./... # Scan all packages
govulncheck -json ./... # JSON output
npm audit output:
found 3 vulnerabilities (1 moderate, 2 high) in 856 scanned packages
run `npm audit fix` to fix 2 of them.
1 vulnerability requires manual review. See the full report for details.
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High │ Regular Expression Denial of Service in lodash │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ lodash │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >=4.17.21 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ express │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ express > lodash │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://github.com/advisories/GHSA-x5rq-j2xg-h7qm │
└───────────────┴──────────────────────────────────────────────────────────────┘
pip-audit output:
Found 2 known vulnerabilities in 1 package
Name Version ID Fix Versions
------- ------- --------------- ------------
urllib3 1.26.5 PYSEC-2021-108 1.26.5
PYSEC-2021-59 1.26.4
audit-level=high # Only report high and above
audit=true # Auto-check on install
security:
ignore-vulnerabilities:
# Temporarily ignore specific CVE (must comment reason)
12345:
reason: "Verified not affecting our use case"
expires: "2026-12-31"
continue-on-vulnerability-error: false
name: Security Audit
on: [push, pull_request]
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run npm audit
run: npm audit --audit-level=high
continue-on-error: true
- name: Run Snyk
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
security_scan:
stage: test
image: python:3.11
script:
- pip install pip-audit
- pip-audit -r requirements.txt
allow_failure: true
Q: What to do after finding vulnerabilities?
A:
Q: What if npm audit fix breaks compatibility?
A:
npm audit to see detailsnpm update package-namenpm audit fix --dry-run to previewQ: How to ignore specific vulnerabilities?
A:
npm audit fix --force or .auditrc.safety-policy.ymlQ: CI/CD security check failures causing build failures?
A:
continue-on-error: true as warningQ: How to prevent introducing vulnerabilities?
A: