aiskillstore/marketplace / skills/0xdarkmatter/security-patterns
security-patterns
VerifiedSecurity patterns and OWASP guidelines. Triggers on: security review, OWASP, XSS, SQL injection, CSRF, authentication, authorization, secrets management, input validation, secure coding.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.8 KB |
| references/auth-patterns.md | markdown | 7.9 KB |
| references/crypto-patterns.md | markdown | 6.7 KB |
| references/owasp-detailed.md | markdown | 7.6 KB |
| references/secure-headers.md | markdown | 6.2 KB |
| scripts/dependency-audit.sh | script | 2.2 KB |
| scripts/security-scan.sh | script | 2.4 KB |
| skill-report.json | config | 100.8 KB |
scripts/dependency-audit.sh
View on GitHub#!/bin/bash
# Audit dependencies for known vulnerabilities
# Usage: ./dependency-audit.sh
set -e
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo "=== Dependency Security Audit ==="
echo ""
# Python
if [ -f "requirements.txt" ] || [ -f "pyproject.toml" ]; then
echo "--- Python Dependencies ---"
if command -v pip-audit &> /dev/null; then
echo "Running pip-audit..."
pip-audit || true
elif command -v safety &> /dev/null; then
echo "Running safety check..."
safety check || true
else
echo -e "${YELLOW}Install pip-audit or safety for Python vulnerability scanning${NC}"
echo " pip install pip-audit"
fi
echo ""
fi
# Node.js
if [ -f "package.json" ]; then
echo "--- Node.js Dependencies ---"
if command -v npm &> /dev/null; then
echo "Running npm audit..."
npm audit --audit-level=moderate || true
fi
echo ""
fi
# Go
if [ -f "go.mod" ]; then
echo "--- Go Dependencies ---"
if command -v govulncheck &> /dev/null; then
echo "Running govulncheck..."
govulncheck ./... || true
else
echo -e "${YELLOW}Install govulncheck for Go vulnerability scanning${NC}"
echo " go install golang.org/x/vuln/cmd/govulncheck@latest"
fi
echo ""
fi
# Rust
if [ -f "Cargo.toml" ]; then
echo "--- Rust Dependencies ---"
if command -v cargo-audit &> /dev/null; then
echo "Running cargo audit..."
cargo audit || true
else
echo -e "${YELLOW}Install cargo-audit for Rust vulnerability scanning${NC}"
echo " cargo install cargo-audit"
fi
echo ""
fi
# Docker
if [ -f "Dockerfile" ]; then
echo "--- Docker Image ---"
if command -v trivy &> /dev/null; then
echo "Running trivy on Dockerfile..."
trivy config Dockerfile || true
else
echo -e "${YELLOW}Install trivy for container vulnerability scanning${NC}"
echo " brew install trivy"
fi
echo ""
fi
echo "=== Audit Complete ==="
echo ""
echo "Recommended actions:"
echo "1. Update vulnerable packages to patched versions"
echo "2. Review advisories for workarounds if updates unavailable"
echo "3. Consider alternative packages for unmaintained dependencies"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |