一键导入
security-scanner
Scan code and dependencies for security vulnerabilities. Check npm audit, pip safety, and common security issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scan code and dependencies for security vulnerabilities. Check npm audit, pip safety, and common security issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Track your sports bets in a local CSV journal. Calculate ROI, CLV, win rate by sport/bet-type, and identify where you're actually making money.
Build optimal Daily Fantasy Sports lineups for DraftKings and FanDuel. Maximize projected points under salary cap constraints for NBA, NFL, and MLB slates.
Analyze market sentiment for stocks and crypto using Reddit, news headlines, and fear/greed indicators. Get a quick read on crowd psychology before trading.
Track hot and cold streaks for sports teams and players. Identify momentum patterns, ATS performance trends, and regression-to-mean signals.
Calculate portfolio rebalancing trades to hit target allocations. Supports stocks, crypto, and mixed portfolios.
Calculate optimal bet sizes using the Kelly Criterion formula. Maximize long-term bankroll growth while managing risk.
| name | security-scanner |
| description | Scan code and dependencies for security vulnerabilities. Check npm audit, pip safety, and common security issues. |
| homepage | https://github.com/ianalloway/openclaw-skills |
| metadata | {"openclaw":{"emoji":"🔒","requires":{"bins":["npm","pip","grep"]},"credentials":[]}} |
Scan your projects for security vulnerabilities in dependencies and common code issues.
Check for known vulnerabilities in npm packages:
npm audit
Get JSON output for parsing:
npm audit --json | jq '{vulnerabilities: .metadata.vulnerabilities, total: .metadata.vulnerabilities.total}'
Fix automatically where possible:
npm audit fix
Check Python dependencies with pip-audit:
pip install pip-audit && pip-audit
Or use safety (requires free API key from https://safetycli.com/):
pip install safety && safety check
Check requirements.txt directly:
pip-audit -r requirements.txt
Search for potential API keys and secrets:
grep -rn "api_key\|apikey\|secret\|password\|token" --include="*.js" --include="*.ts" --include="*.py" --include="*.env" .
Check for potentially dangerous code patterns:
# JavaScript/TypeScript - eval usage
grep -rn "eval(" --include="*.js" --include="*.ts" .
# Python - exec/eval usage
grep -rn "exec(\|eval(" --include="*.py" .
# SQL injection risks
grep -rn "execute.*%s\|execute.*f\"" --include="*.py" .
Find debug statements that shouldn't be in production:
grep -rn "console.log\|debugger\|print(" --include="*.js" --include="*.ts" --include="*.py" .
find . -name ".env*" -not -path "*/node_modules/*" -not -path "*/.git/*"
Ensure sensitive files are ignored:
cat .gitignore | grep -E "\.env|secret|credential|\.pem|\.key"
Using Trivy (install: https://trivy.dev/):
trivy image your-image:tag
# Check for root user
grep -n "USER root" Dockerfile
# Check for latest tag
grep -n "FROM.*:latest" Dockerfile
Run a quick audit on a project:
# For npm projects
echo "=== NPM Audit ===" && npm audit 2>/dev/null || echo "Not an npm project"
# Check for secrets
echo "=== Potential Secrets ===" && grep -rn "password\|secret\|api_key" --include="*.js" --include="*.py" --include="*.ts" . 2>/dev/null | head -20
# Check for .env files
echo "=== Environment Files ===" && find . -name ".env*" -not -path "*/node_modules/*" 2>/dev/null
Create .github/dependabot.yml:
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
Create SECURITY.md in your repo to establish responsible disclosure guidelines.