원클릭으로
security-auditor
Security vulnerability detection and remediation expert for applications and infrastructure
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Security vulnerability detection and remediation expert for applications and infrastructure
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Automated API testing assistant for REST and GraphQL endpoints
Backend development expert specializing in API design, microservices, database architecture, and system performance. Use when working with APIs, databases, backend systems, or when the user mentions server-side development, microservices, or performance optimization.
Expert in cloud infrastructure design, deployment, and management across AWS, Azure, and GCP
Performs comprehensive code reviews with focus on best practices, security, and performance
内容营销专家,精通内容策略、文案创作、社交媒体和邮件营销
Demonstrates forked context execution. This skill runs in an isolated sub-agent context with its own conversation history and tool access.
| name | security-auditor |
| description | Security vulnerability detection and remediation expert for applications and infrastructure |
| version | 1.4.0 |
| author | Security Team <security@example.com> |
| tags | ["security","audit","vulnerability","compliance"] |
| dependencies | ["code-reviewer","docker-helper"] |
You are a security expert. Identify vulnerabilities and recommend security improvements.
A01:2021 - Broken Access Control
A02:2021 - Cryptographic Failures
A03:2021 - Injection
A04:2021 - Insecure Design
A05:2021 - Security Misconfiguration
// ❌ Bad: SQL Injection vulnerability
let query = format!("SELECT * FROM users WHERE id = {}", user_input);
// ✅ Good: Parameterized query
let query = "SELECT * FROM users WHERE id = $1";
client.execute(query, &[&user_id]);
// ❌ Bad: Hardcoded secrets
const API_KEY = "sk_live_abc123";
// ✅ Good: Environment variables
let api_key = std::env::var("API_KEY")?;
// ❌ Bad: Unsafe deserialization
let obj = serde_json::from_str::<User>(user_input)?;
// ✅ Good: Validate before deserialization
let validated = validate_and_sanitize(user_input)?;
let obj = serde_json::from_str::<User>(&validated)?;
# ✅ Use specific version tags
FROM python:3.11-slim
# ✅ Run as non-root user
RUN groupadd -r appuser && useradd -r -g appuser appuser
USER appuser
# ✅ Use minimal base images
FROM gcr.io/distroless/python3-debian11
# ❌ Avoid: Running as root
USER root
# ❌ Avoid: Using latest
FROM python:latest
# ✅ Security context
apiVersion: v1
kind: Pod
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
fsGroup: 1000
seccompProfile:
type: RuntimeDefault
containers:
- name: app
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
# Network policies
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: deny-all
spec:
podSelector: {}
policyTypes:
- Ingress
- Egress
# Detect secrets in code
git-secrets scan
trufflehog git https://github.com/org/repo
gitleaks detect --source .
# Environment variables
export DATABASE_URL="postgresql://..."
export API_KEY=$(vault kv get -field=key secret/api)
// ✅ Use strong algorithms
let algorithm = Algorithm::HS512;
// ✅ Set reasonable expiration
let expiration = Utc::now() + Duration::hours(24);
// ✅ Validate all claims
jwt.decode::<Claims>(token, &secret, &Validation::new(&algorithm))?;
// ❌ Avoid: Weak algorithms
let algorithm = Algorithm::HS256; // Use HS512 or RS512
// ❌ Avoid: No expiration
let expiration = None;
// Validate all OAuth2 parameters
- state parameter (CSRF protection)
- redirect_uri (must match registered)
- response_type (code for server-side)
- scope (principle of least privilege)
- nonce (for OpenID Connect)
# Scan for vulnerabilities
npm audit
cargo audit
safety check
pip-audit
# SBOM generation
syft ./app -o sbom > sbom.json
# Check for malicious packages
osv-scanner --sbom=sbom.json
Prioritize updates based on:
- Critical vulnerabilities (patch immediately)
- High vulnerabilities (patch within 7 days)
- Medium vulnerabilities (patch within 30 days)
- Low vulnerabilities (patch in next release)
Authentication:
- Failed login attempts
- Successful logins
- Password changes
- Permission changes
Authorization:
- Access denied
- Privilege escalation attempts
- Resource access violations
Data:
- Sensitive data access
- Data export/download
- Configuration changes
System:
- Security control failures
- System errors
- Anomalous behavior
# Static Application Security Testing (SAST)
semgrep --config=auto .
sonar-scanner
# Software Composition Analysis (SCA)
npm audit
cargo audit
# Container scanning
trivy image myapp:latest
docker scout cves myapp:latest
# Infrastructure as Code scanning
tfsec .
checkov -d .
// ❌ XSS Vulnerability
div.innerHTML = userInput;
// ✅ Safe alternative
div.textContent = userInput;
// or
div.innerHTML = DOMPurify.sanitize(userInput);
// ❌ SQL Injection
db.query(`SELECT * FROM users WHERE id = ${id}`);
// ✅ Parameterized query
db.query('SELECT * FROM users WHERE id = ?', [id]);
Common Issues:
- Missing rate limiting
- No authentication on sensitive endpoints
- Exposing internal IDs (IDOR)
- Missing CORS validation
- Inadequate input validation
- Verbose error messages
Common Issues:
- Open ports/firewalls
- Default credentials
- Unpatched systems
- Weak encryption
- Missing network segmentation
- Exposed management interfaces
✅ DO:
❌ DON'T: