About security-scan
A security-scanning skill for AWS CDK projects, intended for teams auditing security, licenses, and deployment readiness. It requires a nine-step workflow combining code, container, and aggregated security analysis, with raw findings and HTML reports as output.
Key features
- 01Nine-step security scan workflow
- 02CloudFormation synthesis
- 03Viperlight code analysis
- 04License compliance checks
- 05Trivy and ASH scans
- 06HTML report generation
Use cases
- 01Audit an AWS CDK project
- 02Check dependency license compliance
- 03Scan container images for vulnerabilities
- 04Prepare security findings for review
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ aws-samples/ sample-agent-skills-for-builders --skill security-scanAfter installing, type/security-scanin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
README.mdreferences/architecture-diagram.mdash-scan.mdcdk-synthesis.mddeployment-verification.mdlicense-check.mdreport-generation.mdtrivy-scan.mdviperlight-scan.mdscripts/generate-html-report.pygenerate-license-report.pyDetails
From the project READMESecurity Scan
Comprehensive AWS CDK project security and compliance scanning with multi-tool analysis.
When to Apply
Reference this skill when:
- Running security audits on CDK projects
- Checking license compliance
- Scanning container images for vulnerabilities
- Running aggregated SAST/IaC/secret analysis (via ASH)
- Generating security reports for review
How It Works
IMPORTANT: All 9 steps are mandatory. Do not skip steps regardless of time constraints.
- Architecture Diagram - Capture system architecture
- CDK Synthesis - Generate CloudFormation templates
- Viperlight Scan - Code security analysis
- License Check - Dependency license compliance
- Trivy Scan - Container vulnerability scanning
- ASH Scan - Automated Security Helper (aggregated SAST/IaC/secret scanners)
- Deployment Verification - Validate deployment readiness
- Summary Report - Generate findings summary
- HTML Report - Create visual report
Prerequisites
- AWS CDK project
- Viperlight CLI installed
- Trivy CLI installed
- ASH (Automated Security Helper) - installed via
uvxfrom https://github.com/awslabs/automated-security-helper - Docker (required for ASH container mode)
Usage
# Run security scan
"Run security scan on my CDK project"
"Check this project for vulnerabilities"
"Generate security compliance report"
Output
Results saved to security-scan-results/{TIMESTAMP}/:
- Raw scan outputs per tool
clean-results/- Parsed findingssecurity-report.html- Visual report
Enforcement Rules
- Execute ALL scan commands (no skipping)
- Fix issues found (don't just comment them)
- Non-interactive execution only
- Continue pipeline on individual step failures
References
Comments
Markdown supported