Security review

From brucesongs/kali-claw · View interactive version

Security review is an AI agent skill from the GitHub repository brucesongs/kali-claw. Comprehensive security checklist and review patterns for analyzing applications, configurations, and infrastructure. This skill provides structured review methodology to identify vulnerabilities across OWASP Top 10 categories during penetration testing.

How to use this skill

Skill file

Skill: Security Review

Supplementary Files:

- payloads.md — Security review commands, test payloads, and audit scripts organized by OWASP category

- test-cases.md — Structured test cases for security review checklists covering secrets, input validation, injection, authentication, and data exposure

- guides/ — Deep-dive methodology guides for systematic security auditing

Summary

This skill provides structured review methodology to identify vulnerabilities across OWASP Top 10 categories during penetration testing.

Domain: assessment

Description

Comprehensive security checklist and review patterns for analyzing applications, configurations, and infrastructure. This skill provides structured review methodology to identify vulnerabilities across OWASP Top 10 categories during penetration testing.

Difference from security-bounty-hunter: bounty-hunter focuses on finding single exploitable vulnerabilities for reporting. This skill provides a systematic review framework to audit an entire application or system comprehensively.

Use Cases

Core Tools

| Tool | Category | Purpose |

|------|----------|---------|

| Semgrep | SAST | Multi-language pattern-based code scanning |

| CodeQL | SAST | Semantic code analysis (GitHub) |

| Bandit | SAST (Python) | Python security lint |

| Snyk Code | SAST | Commercial SAST with dependency scan |

| SonarQube | SAST | Code quality + security platform |

| Trivy | Container/FS | Container, filesystem, and IaC scanning |

| Syft / Grype | SBOM | SBOM generation + vulnerability matching |

| detect-secrets | Secrets | Pre-commit secret detection (Yelp) |

| gitleaks | Secrets | Git history secret scanner |

| semgrep-secret | Secrets | Secret detection rules pack for Semgrep |

| checkov / tfsec | IaC | Terraform / CloudFormation static analysis |

| eslint-plugin-security | Lint | JavaScript/TypeScript security rules |

| CodeSeen / reviewdog | Review | Automated PR review integration |

Methodology

Security Review Checklist

1. Secrets Management

Check for:

Tools:

# Scan for secrets in code
trufflehog filesystem /path/to/repo
gitleaks detect --source /path/to/repo

# Check for exposed files on web server
curl -s http://target/.env
curl -s http://target/.git/HEAD
curl -s http://target/backup.sql
curl -s http://target/config.yml.bak
2. Input Validation

Check for:

3. Injection Flaws

SQL Injection:

Command Injection:

LDAP Injection:

Template Injection:

4. Authentication & Authorization

Authentication:

Authorization:

5. Security Headers & Transport
# Verify security headers
curl -sI http://target | grep -i "strict-transport\|content-security\|x-frame\|x-content-type\|x-xss"

# Check TLS configuration
nmap --script ssl-enum-ciphers -p 443 target
sslyze --regular target
6. API Security

Check for:

7. Dependency Security
# Audit dependencies
npm audit
pip-audit
cargo audit

# Check for known vulnerabilities
snyk test
grype /path/to/image
trivy image target-image:tag

Review Workflow

Step 1: Surface Mapping

Step 2: Prioritized Review

  1. Authentication and session management
  2. Authorization and access control
  3. Input validation and injection points
  4. Secrets and sensitive data handling
  5. Security headers and transport
  6. Dependencies and third-party components

Step 3: Evidence Collection

Step 4: Report

Severity Classification

| Level | Criteria | Action |

|-------|----------|--------|

| CRITICAL | Remote code execution, data breach, auth bypass | Immediate remediation |

| HIGH | Significant data exposure, privilege escalation | Remediate before release |

| MEDIUM | Limited data exposure, misconfiguration | Plan remediation |

| LOW | Information leakage, minor misconfiguration | Address when convenient |

| INFO | Best practice deviation, no direct exploit | Document for improvement |

Defense Perspective

Detection Methods

Security Review Audit

SIEM Detection Rules

Defense Evasion Techniques

Operational Security for Reviewers

Orchestration

ECC Loop Pattern: Sequential Pipeline

surface map → prioritized review → evidence collection → report

Rationale: Security reviews require systematic coverage following a defined checklist order. Each phase builds on the previous one — surface mapping identifies entry points, prioritized review allocates effort by risk, evidence collection captures reproducible findings, and report generation delivers actionable results.

Integration:

Cross-Skill Pipeline:

repo-scan → security-review → verification-loop → chronicle

repo-san classifies the codebase and identifies high-value targets, security-review performs systematic OWASP audit, verification-loop confirms findings independently, chronicle archives the final report.

Quality Gate:

Report Template

# Security Review Report
*Target: [system/application] | Date: [date] | Scope: [boundaries]*

## Executive Summary
[Overall risk rating and key findings]

## Findings

### [SEVERITY] [Title]
- **CWE**: [CWE-ID]
- **OWASP**: [Category]
- **Location**: [file/endpoint]
- **Description**: [what was found]
- **Evidence**: [reproduction steps]
- **Impact**: [what attacker can achieve]
- **Remediation**: [how to fix]

## Summary Statistics
| Severity | Count |
|----------|-------|
| Critical | N |
| High | N |
| Medium | N |
| Low | N |
| Info | N |
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.