security-scan
Comprehensive security and compliance scanning for AWS CDK projects. Use when running security audits, checking license compliance, scanning container vulnerabilities, or running aggregated SAST/IaC/secret analysis before deployment.
How do I install this agent skill?
npx skills add https://github.com/aws-samples/sample-agent-skills-for-builders --skill security-scanIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides a comprehensive security scanning workflow for AWS CDK projects. It uses industry-standard tools and follows security best practices, including sanitizing output in its generated reports. All external dependencies and tools are sourced from trusted organizations or well-known services.
- Socketwarn
1 alert: gptAnomaly
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Security 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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/aws-samples/sample-agent-skills-for-builders/security-scan">View security-scan on skillZs</a>