
security-audit
Security audit skill that adds OWASP, CWE, and CVSS checks with PHP/TYPO3 scanning for projects.
- GitHub stars
- 92
What it does
- Adds the
security-auditskill covering OWASP Top 10, CWE Top 25 2025, and CVSS v4.0 risk scoring - Runs 80+ automated checkpoints from
checkpoints.yamlfor deep PHP and TYPO3 code scanning - Includes
PreToolUsewarnings through acheck_risky_command.pyhook on risky shell commands - Designed for auditing PHP applications, GitHub repositories, and CI/CD security pipelines
Security audit patterns for PHP applications following OWASP guidelines. Covers XXE, SQL injection, XSS, CSRF detection, CVSS v3.1 scoring, and secure coding practices. By Netresearch.
Add marketplace
/plugin marketplace add netresearch/claude-code-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install security-audit@netresearch-claude-code-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceSecurity Audit Skill
Security audit patterns (OWASP Top 10, LLM Top 10 2025, CWE Top 25 2025, CVSS v4.0), cloud/IaC, GitHub security. 80+ PHP/TYPO3 checkpoints (v14.3 LTS in typo3-security.md).
Expertise Areas
- Vulnerabilities: XXE, SQLi, XSS, CSRF, command injection, path traversal, file upload, deserialization, SSRF, SSTI, JWT, type juggling
- Standards: OWASP Top 10 / API / LLM (2025), CWE Top 25, CVSS v3.1/v4.0, OWASP ASVS
- Cloud & IaC: AWS; Terraform, Kubernetes, Docker, Helm, Ansible
- API & Frontend: REST/GraphQL authZ, rate limits, mass assignment, CSP, DOM-XSS
- AI Agents: SKILL.md/AGENTS.md/CLAUDE.md/mcp.json/hooks.json audit; prompt injection; excessive agency
Reference Files (in references/, .md implied)
- Core: owasp-top10, cwe-top25, xxe-prevention, cvss-scoring, api-key-encryption
- Prevention: deserialization-prevention, path-traversal-prevention, file-upload-security, input-validation, error-message-sanitization, ssh-forced-command-hardening
- Architecture: authentication-patterns, security-headers, security-logging, cryptography-guide, security-invariants, indistinguishability-defences
- Ordering-sensitive guarantees: formal-model-checking — finite design checks for concurrency, commits and process loss; use when those orderings affect a specific security claim
- Language features (
*-security-features): php, python, javascript-typescript, nodejs, go - Frameworks (
*-security): typo3, typo3-fluid, typo3-typoscript, symfony, react, vue - Cloud & IaC: aws-security, iac-security
- API & Frontend: api-security, frontend-security
- AI Agent: llm-security (OWASP LLM Top 10 2025)
- Threats: modern-attacks, cve-patterns
- DevSecOps: ci-security-pipeline, supply-chain-security, automated-scanning, gha-security, git-history-secrets
- Incident: supply-chain-incident-response
Security Checklist
-
semgrep/opengrep,trivy fs --severity HIGH,CRITICAL,gitleaksclean - bcrypt/Argon2 passwords, CSRF on state changes, TLS 1.2+
- Server-side input validation; parameterized SQL; XML entities off
- Output encoding + CSP; no unserialize() on user input
- API keys encrypted; exception messages sanitized
- Secrets out of VCS; audit logging on
- Uploads validated, renamed, outside web root
- Headers HSTS + X-Content-Type-Options; dependencies scanned
GitHub Actions Security
- NEVER interpolate
${{ inputs.* }}/${{ github.event.* }}inrun:— useenv: - Dependency triage: upgrade > override > dismiss. Full patterns:
references/gha-security.md.
Verification
./scripts/security-audit-dispatcher.sh /path/to/project # auto-detect stack
./scripts/security-audit.sh /path/to/project # PHP-only
./scripts/github-security-audit.sh owner/repo # GH repo
Dispatcher detects the stack from indicator files and runs matching scripts/scanners/*.sh (13 ecosystems; see references/ index).
Contributing: https://github.com/netresearch/security-audit-skill
Readme
Security Audit Skill
Security audit patterns (OWASP Top 10, CWE Top 25 2025, CVSS v4.0) and GitHub project security checks for any project. Deep automated PHP/TYPO3 code scanning with 80+ checkpoints, 41 reference guides, and PreToolUse warnings.
Compatibility
This is an Agent Skill following the open standard originally developed by Anthropic and released for cross-platform use.
Supported Platforms:
- Claude Code (Anthropic)
- Cursor
- GitHub Copilot
- Other skills-compatible AI agents
Skills are portable packages of procedural knowledge that work across any AI agent supporting the Agent Skills specification.
Features
- Vulnerability Assessment: XXE injection, SQL injection, XSS, CSRF, command injection, path traversal, file upload vulnerabilities, insecure deserialization, SSRF, type juggling, SSTI, JWT flaws, LDAP injection, email header injection, session fixation
- Risk Scoring: CVSS v3.1 and v4.0 scoring methodology, risk matrix assessment, impact and likelihood analysis, prioritization frameworks
- Secure Coding: Input validation, output encoding, cryptographic best practices (sodium), session management, authentication patterns, security headers
- Standards Compliance: OWASP Top 10, CWE Top 25 (2025), OWASP ASVS v4.0, Proactive Controls — applicable to any project
- PHP/TYPO3 Deep Scanning: 80+ automated checkpoints, PHP 8.x security features, framework patterns (TYPO3, Symfony, Laravel)
- DevSecOps: CI/CD security pipeline, SAST, dependency scanning, supply chain security, SLSA
Installation
Marketplace (Recommended)
Add the Netresearch marketplace once, then browse and install skills:
# Claude Code
/plugin marketplace add netresearch/claude-code-marketplace
/plugin install security-audit@netresearch-claude-code-marketplace
Without a marketplace
Since Claude Code 2.1.157 a plugin directory under your personal skills directory loads on its own, including the hooks this repo ships:
mkdir -p ~/.claude/skills
git clone https://github.com/netresearch/security-audit-skill.git \
~/.claude/skills/security-audit
It loads as security-audit@skills-dir on the next session. Update with git -C ~/.claude/skills/security-audit pull and start a new session; remove it by deleting the directory. This route has no claude plugin update.
npx (skills.sh)
Install with any Agent Skills-compatible agent:
npx skills add https://github.com/netresearch/security-audit-skill --skill security-audit
Limitation:
npx skillsinstallsSKILL.md-based skills only. This repo also shipshooks, which it does not install — use the marketplace or the skills directory for those.
Download Release
Download the latest release and extract to your agent's skills directory.
Git Clone
git clone https://github.com/netresearch/security-audit-skill.git
Composer (PHP Projects)
composer require netresearch/security-audit-skill
Requires netresearch/composer-agent-skill-plugin.
npm (Node Projects)
npm install --save-dev \
@netresearch/agent-skill-coordinator \
github:netresearch/security-audit-skill
Requires @netresearch/agent-skill-coordinator, which discovers the skill in node_modules and registers it in AGENTS.md via a postinstall hook. For pnpm, also allowlist the coordinator's postinstall:
{
"pnpm": {
"onlyBuiltDependencies": ["@netresearch/agent-skill-coordinator"]
}
}
Usage
This skill is automatically triggered when:
- Conducting security assessments
- Identifying vulnerabilities (XXE, SQL injection, XSS, CSRF, command injection)
- Scoring security risks with CVSS v3.1 or v4.0
- Implementing secure coding practices
- Auditing PHP applications for security issues
- Reviewing code for OWASP Top 10 vulnerabilities
- Setting up CI/CD security pipelines
Example queries:
- "Audit this code for XXE vulnerabilities"
- "Check for SQL injection risks"
- "Score this vulnerability using CVSS v4.0"
- "Review authentication implementation for security flaws"
- "Implement secure XML parsing"
- "What security headers should this application set?"
Structure
security-audit-skill/
├── SECURITY.md # Security policy
├── hooks/
│ └── hooks.json # PreToolUse hook configuration
├── scripts/
│ ├── check_risky_command.py # Risky command detection hook
│ ├── validate_checkpoints.py # checkpoints.yaml structure check
│ └── test_*.py # Tests (run by ci.yml)
├── skills/security-audit/
│ ├── SKILL.md # Skill definition
│ ├── checkpoints.yaml # 80+ automated security checkpoints
│ ├── scripts/
│ │ ├── security-audit-dispatcher.sh # Detects the stack, runs the matching scanners
│ │ ├── scanners/ # Per-ecosystem scanner modules
│ │ ├── security-audit.sh # PHP project security audit
│ │ └── github-security-audit.sh # GitHub repo security audit
│ └── references/ # 41 reference guides
└── .github/
└── workflows/
├── ci.yml # Python tests
├── lint.yml # Skill validation, linters, ShellCheck
├── security.yml # Secret, workflow, dependency and SAST scans
└── release.yml # Release automation
Expertise Areas
Vulnerability Assessment
- XXE (XML External Entity) injection detection
- SQL injection pattern recognition
- XSS (Cross-Site Scripting) analysis
- CSRF protection verification
- Command injection detection
- Path traversal prevention
- File upload security
- Insecure deserialization
- SSRF detection
- Authentication/authorization flaws
Risk Scoring
- CVSS v3.1 scoring methodology
- CVSS v4.0 scoring methodology
- Risk matrix assessment
- Impact and likelihood analysis
- Prioritization frameworks
Secure Coding
- Input validation patterns
- Output encoding strategies
- Secure configuration
- Cryptographic best practices (sodium)
- Session management
- Authentication patterns (Argon2, JWT, MFA)
- Security headers (HSTS, CSP)
DevSecOps
- SAST integration (PHPStan, Semgrep, CodeQL)
- Dependency scanning (composer audit, Trivy)
- Supply chain security (SLSA, Sigstore)
- Container security (Hadolint, Trivy)
- SBOM generation (CycloneDX)
Security Audit Checklist
Authentication & Authorization
- Password hashing uses bcrypt/Argon2 (PASSWORD_ARGON2ID)
- Session tokens are cryptographically random (random_bytes)
- Session fixation protection enabled (session_regenerate_id)
- CSRF tokens on all state-changing operations
- Authorization checks on all protected resources
- Rate limiting on authentication endpoints
Input Handling
- All input validated server-side
- Parameterized queries for all SQL
- XML parsing with external entities disabled (LIBXML_NONET only)
- File uploads restricted by type (MIME validation) and size
- Path traversal prevention on file operations
- No unserialize() with user input
Output Handling
- Context-appropriate output encoding (htmlspecialchars)
- Content-Type headers set correctly
- X-Content-Type-Options: nosniff
- Content-Security-Policy configured
- X-Frame-Options or CSP frame-ancestors set
- Strict-Transport-Security (HSTS) enabled
Data Protection
- Sensitive data encrypted at rest (sodium_crypto_secretbox)
- TLS 1.2+ for data in transit
- Secrets not in version control
- PII handling compliant with regulations
- Audit logging for sensitive operations
Related Skills
- enterprise-readiness-skill: References this skill for security assessment
- php-modernization-skill: Type safety enhances security
- typo3-testing-skill: Security test patterns
Development
Run the tests from the repository root with uv:
uv run scripts/test_risky_patterns.py # hook patterns: expected matches and non-matches
uv run scripts/test_check_risky_command.py # hook input and output as Claude Code uses them
uv run scripts/test_audit_scripts.py # audit scripts against fixtures (needs bash 4+, GNU grep, jq)
uv run scripts/validate_checkpoints.py # checkpoints.yaml structure and unique IDs
pre-commit run --all-files # the linters CI runs in Skill Validation
CI runs the three test scripts on Python 3.12 and 3.13 (.github/workflows/ci.yml). A failing test prints its name and the assertion that failed; the test scripts exit non-zero. A change to the hook or the audit scripts comes with a test in these files.
Dependencies
- Using the skill: the audit scripts need bash 4+, GNU grep (for
grep -P) andfind;github-security-audit.shneeds theghCLI. The hook needsuv, which runs it on Python 3.11 or later, and uses only the standard library.composer,npm,govulncheckandtrufflehogare optional: a scanner calls them only whencommand -vfinds them, and the skill does not install them. TruffleHog runs with--no-verification; setSECURITY_AUDIT_VERIFY_SECRETS=1to let it verify candidate secrets with their services. - Installing the skill:
composer.jsonrequiresnetresearch/composer-agent-skill-plugin(^2.0);package.jsondeclares@netresearch/agent-skill-coordinatoras a peer dependency. The repository commits no lock file for either; the consuming project resolves them. - Development and CI:
scripts/validate_checkpoints.pydeclares PyYAML as inline script metadata, whichuv runinstalls; the test scripts use the standard library. The pre-commit hooks are pinned byrev:in.pre-commit-config.yaml. The workflows call reusable workflows fromnetresearch/skill-repo-skill,netresearch/.githubandnetresearch/typo3-ci-workflowsat@main; the third-party actions inside those are pinned to commit SHAs there. - Tracking: Renovate (
renovate.json,config:recommendedwith pre-commit updates enabled) opens update pull requests, and.github/workflows/auto-merge-deps.ymlhands them to the organisation's auto-merge workflow. On pull requests, dependency review and Composer Audit check the dependencies (.github/workflows/security.yml). New dependencies must meet the licence and vulnerability rules of the organisation's security policy linked below.
Governance and policies
This repository follows the Netresearch organisation policies:
- Governance: ownership, roles, how decisions are made and disputes resolved, and continuity.
- Roadmap: planned and explicitly excluded work for the coming year.
- Handling of dependency and code analysis findings: thresholds, deadlines and the exception process for dependency (SCA) and static analysis (SAST) findings.
- Secret management: how CI and release credentials are stored, accessed and rotated.
- Access roster: who holds administrative access to this repository and the organisation.
The architecture of this skill (actors, components, data flows) is described in docs/ARCHITECTURE.md, and its security assurance case (threat model, trust boundaries, countermeasures and limits) in docs/SECURITY-ASSURANCE.md. Supported versions and vulnerability reporting: SECURITY.md.
Checks that run on every pull request to main in this repository:
- Security (
.github/workflows/security.yml): Betterleaks secret scanning, zizmor workflow analysis, dependency review, and, through thetypo3-ci-workflowssecurity reusable, Composer Audit and Opengrep SAST (findings handled as the organisation's static analysis rule sets out). - Skill Validation (
.github/workflows/lint.yml): skill structure, plugin manifest sync, markdownlint, yamllint, actionlint, JSON syntax, version checks, ShellCheck at the validator's default severityerror, ruff and the checkpoint schema. The pre-commit hook runs ShellCheck atstyle. - CI (
.github/workflows/ci.yml): the tests listed under Development. - Eval Validation, Harness Verification, the template drift check, Labeler and PR Quality Gates.
- CodeQL as the
codeqljob of.github/workflows/security.yml. - Configured outside the workflows: DCO sign-off check, SonarCloud code analysis, CodeRabbit review, and GitHub secret scanning with push protection, which rejects pushes that contain a recognised secret.
Which of these checks must pass before a merge is set in the repository's branch protection, not in this repository.
License
This project uses split licensing:
- Code (scripts, workflows, configs): MIT
- Content (skill definitions, documentation, references): CC-BY-SA-4.0
See the individual license files for full terms.
Credits
Developed and maintained by Netresearch DTT GmbH.
Made with love for Open Source by Netresearch
Details
- Marketplace
- netresearch/claude-code-marketplace
- Source
- netresearch/security-audit-skill
- Category
- Security
- Listed since
- Apr 7, 2026
More from netresearch/claude-code-marketplace
All 41- skill-repo
- typo3-a11y
- typo3-ckeditor5
- typo3-conformance
- typo3-core-contributions
- typo3-ddev
- typo3-docs
- typo3-extension-upgrade
- typo3-project-upgrade
- typo3-site-conformance
- typo3-testing
- typo3-typoscript-ref
- typo3-upgrade-effort-model
- typo3-vite
- agent-harness
- agent-rules
- automated-assessment
- cli-tools
- concourse-ci
- context7
- data-tools
- docker-development
- enterprise-readiness
- file-search
Similar to security-audit
More Security
owasp-top-10Skillnickcrew/claude-cortex655 installsGuided review of the OWASP Top 10 2021 risks with detection and remediation patterns for audits.
laravel-owasp-securitySkillasyrafhussin/agent-skills1.1K installsSecurity audit and secure coding guide for Laravel 13 and React/Inertia.js apps covering the OWASP Top 10.
security-guidancePluginComposioHQ/awesome-claude-plugins2K starsSecurity best practices and vulnerability detection
security-practicesPluginmiles990/claude-software-skills26 starsOWASP Top 10, authentication, and secure coding practices
securityPlugingreyhaven-ai/claude-code-config31 starsSecurity scanning and vulnerability auditing following OWASP Top 10 guidelines with automated remediation
security-reviewerPluginposhan0126/dotclaude871 starsOWASP-style review: injection, auth, data exposure, weak crypto. Severity-ranked with file:line + fix.