java/src/main/resources/targets/claude/skills/knowledge-packs/security/SKILL.md
Complete security reference: OWASP Top 10, security headers, secrets management, input validation, cryptography (TLS, hashing, key management), and pentest readiness checklist. Read during security reviews or when implementing security-sensitive features.
npx skillsauth add edercnj/claude-environment securityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Provides comprehensive security guidelines covering application security, cryptography, and pentest readiness.
See rules/06-security-baseline.md for secure defaults, forbidden patterns, and defensive coding requirements.
| Reference | Content |
|-----------|---------|
| references/security-principles.md | Data classification, input validation, secure error handling, credentials storage |
| references/application-security.md | OWASP Top 10, CSP, security headers, secrets management, dependency security |
| references/cryptography.md | TLS requirements, cipher suites, hashing algorithms, key management, field-level encryption |
| references/pentest-readiness.md | Pre-pentest hardening checklist, common vulnerabilities, remediation (if enabled) |
| references/sbom-generation-guide.md | SBOM generation with CycloneDX and SPDX formats, tools by language, CI integration |
| references/supply-chain-hardening.md | SLSA framework levels, Sigstore/cosign setup, provenance attestation |
| references/sarif-template.md | SARIF 2.1.0 template with required fields, custom properties, and examples per severity |
| references/security-scoring.md | Security scoring model: formula, grades A-F, severity weights, output conventions |
| references/security-skill-template.md | Canonical structure for security scanning skills, CI integration snippets, error handling conventions |
A Software Bill of Materials (SBOM) enumerates every component in a software artifact, enabling vulnerability tracking and license compliance at scale.
Preferred Formats:
| Format | Standard | Use Case | |--------|----------|----------| | CycloneDX | OWASP standard | Security-focused, supports VEX, services, and ML/AI components | | SPDX | ISO/IEC 5962:2021 | License-focused, broad ecosystem adoption, ISO standard |
Generation Tools by Language:
| Language | CycloneDX Tool | SPDX Tool |
|----------|---------------|-----------|
| Java (Maven) | cyclonedx-maven-plugin | spdx-maven-plugin |
| Java (Gradle) | cyclonedx-gradle-plugin | spdx-gradle-plugin |
| Node.js | @cyclonedx/cdxgen | spdx-sbom-generator |
| Python | cyclonedx-bom | spdx-sbom-generator |
| Go | cyclonedx-gomod | spdx-sbom-generator |
| Rust | cyclonedx-rust-cargo | spdx-sbom-generator |
| .NET | CycloneDX (dotnet tool) | spdx-sbom-generator |
CycloneDX output must include:
Sign all release artifacts to guarantee authenticity and integrity.
Sigstore/cosign (recommended for container images and binaries):
cosign verify with certificate identity and issuerSigning requirements:
Supply-chain Levels for Software Artifacts (SLSA) defines incremental security levels for build integrity.
| Level | Name | Requirements | |-------|------|-------------| | Level 1 | Build provenance | Automated build process, provenance document generated | | Level 2 | Hosted build | Build runs on hosted service, authenticated provenance | | Level 3 | Hardened builds | Hardened build platform, non-falsifiable provenance, isolated builds | | Level 4 | Two-party review | Two-person review of all changes, hermetic and reproducible builds |
Minimum target: SLSA Level 2 for all production artifacts.
Provenance attestation:
Lock file integrity is the first line of defense against supply chain attacks.
Requirements:
CI enforcement:
Software Composition Analysis tools detect known vulnerabilities and license issues in third-party dependencies.
Recommended tools by language:
| Language | Primary Tool | Alternative | |----------|-------------|-------------| | Java / Kotlin | OWASP Dependency-Check | Snyk, Grype | | JavaScript / TypeScript | npm audit, Snyk | Grype, Socket | | Python | pip-audit, Safety | Snyk, Grype | | Go | govulncheck | Snyk, Grype | | Rust | cargo-audit | Snyk, Grype | | .NET | dotnet list package --vulnerable | Snyk, Grype | | Containers | Grype, Trivy | Snyk Container |
CI integration requirements:
Track and enforce license compatibility across all dependencies.
SPDX license identifiers (use standardized identifiers):
| Category | Licenses | Risk | |----------|----------|------| | Permissive | MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC | Low | | Weak copyleft | LGPL-2.1, LGPL-3.0, MPL-2.0, EPL-2.0 | Medium — review required | | Strong copyleft | GPL-2.0, GPL-3.0, AGPL-3.0 | High — legal review required | | Proprietary | Commercial, custom | High — explicit approval required |
License compatibility enforcement:
Transitive dependencies are the hidden attack surface of modern software.
Risk categories:
Mitigation strategies:
skills/compliance/ — regulatory framework requirements (GDPR, HIPAA, PCI-DSS)skills/infrastructure/ — container security, Kubernetes security contextskills/observability/ — security event logging and audit trail patternstools
Documentation automation v2: stack-aware generation from documentation.targets.
development
Generates or updates CI/CD pipelines per project stack with actionlint validation.
tools
Generates ADRs from architecture-plan mini-ADRs with sequential numbering and index update.
development
Formats source code; first step of the pre-commit chain (format -> lint -> compile).