alxayo/sec-check/checkov-security-scan
Claude Code and agent skill by alxayo/sec-check
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Scan Infrastructure as Code (IaC) for security misconfigurations and compliance violations using Checkov. (1) Primary use for Terraform, CloudFormation, Kubernetes manifests, Dockerfiles, Helm charts, ARM/Bicep templates, GitHub Actions, GitLab CI, and CI/CD pipelines. (2) Detects cloud misconfigurations, exposed secrets, overly permissive IAM policies, unencrypted storage, public access risks, container security issues. (3) Use for IaC security audits, compliance scanning (CIS, SOC2, HIPAA, PCI-DSS), pre-deployment validation, CI/CD security gates. Do NOT use for application source code vulnerabilities (use bandit, graudit) or dependency/package audits (use guarddog, dependency-check).
Install
npx vskill@latest install alxayo/sec-check/checkov-security-scanSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Checkov Security Scanning Skill
This skill enables scanning Infrastructure as Code (IaC) for security misconfigurations and compliance violations using Checkov - an open-source static analysis tool by Bridgecrew/Palo Alto Networks that covers 20+ frameworks with 1000+ built-in security checks.
Key Distinction: Checkov detects IaC misconfigurations (insecure cloud resource configurations). For application source code vulnerabilities, usebandit(Python) orgraudit(multi-language). For dependency audits, useguarddogordependency-check.
Quick Reference
| Task | Command | |
|---|---|---|
| Scan a directory | checkov -d /path/to/iac/ | |
| Scan a specific file | checkov -f main.tf | |
| Scan Terraform only | checkov -d . --framework terraform | |
| Scan Kubernetes manifests | checkov -d ./k8s --framework kubernetes | |
| Scan Dockerfile | checkov -f Dockerfile --framework dockerfile | |
| JSON output for automation | -o json | |
| SARIF output for CI/CD | -o sarif | |
| List all available checks | checkov --list | |
| Skip specific checks | --skip-check CKV_AWS_1,CKV_DOCKER_7 | |
| Fail only on HIGH/CRITICAL | --hard-fail-on HIGH,CRITICAL |
When to Use This Skill
PRIMARY USE CASES:
- Audit Terraform configurations for AWS, Azure, GCP, and other cloud providers
- Scan Kubernetes manifests for container security issues
- Check Dockerfiles for security best practices
- Validate CloudFormation templates before deployment
- Scan Helm charts and Kustomize configurations
- Audit GitHub Actions, GitLab CI, and other CI/CD workflows
- Compliance scanning against CIS benchmarks, SOC2, HIPAA, PCI-DSS
- Pre-commit/pre-deployment security gates
DO NOT USE FOR:
- Application source code vulnerabilities → use
bandit(Python) orgraudit - Dependency/package audits → use
guarddogordependency-check - Shell script security → use
shellcheck - Runtime security scanning → use specialized runtime tools
Decision Tree: Choosing the Right Scan
Prerequisites
Checkov must be installed. If not available, install it:
Troubleshooting Installation:
Core Scanning Commands
Scan a Directory
Scan Specific Files
Framework-Specific Scans
Output Formats
Available Check Categories
Checkov includes 1000+ built-in checks across multiple categories.
Check ID Prefixes by Provider
| Prefix | Provider/Category | Example Checks | |
|---|---|---|---|
CKV_AWS_* | Amazon Web Services | IAM, S3, EC2, RDS, Lambda | |
CKV_AZURE_* | Microsoft Azure | VMs, Storage, AKS, SQL | |
CKV_GCP_* | Google Cloud Platform | GKE, Cloud Storage, IAM | |
CKV_DOCKER_* | Dockerfiles | Image security, USER directive | |
CKV_K8S_* | Kubernetes | Pod security, RBAC, network policies | |
CKV_GHA_* | GitHub Actions | Workflow security, secrets | |
CKV_GITLABCI_* | GitLab CI | Pipeline security | |
CKV_SECRET_* | Secrets Detection | Hardcoded credentials | |
CKV_ALI_* | Alibaba Cloud | Alibaba-specific resources | |
CKV_OCI_* | Oracle Cloud | OCI resources | |
CKV_TF_* | Terraform General | Provider-agnostic checks | |
CKV_OPENAPI_* | OpenAPI/Swagger | API specification security | |
CKV_ANSIBLE_* | Ansible | Playbook security | |
CKV_ARGO_* | Argo Workflows | Workflow security |
Security Check Categories
| Category | Description | MITRE ATT&CK | |
|---|---|---|---|
| Encryption | Data at rest/transit encryption | T1530 | |
| Access Control | IAM policies, RBAC, authentication | T1078 | |
| Network Security | Security groups, firewalls, ingress/egress | T1046, T1190 | |
| Public Access | Publicly accessible resources | T1190 | |
| Logging & Monitoring | Audit logs, CloudTrail, CloudWatch | T1562 | |
| Secrets Management | Hardcoded credentials, API keys | T1552 | |
| Container Security | Privileged containers, root users | T1610 | |
| Compliance | CIS benchmarks, SOC2, HIPAA, PCI-DSS | - |
Example Checks by Framework
Terraform (AWS):
| Check ID | Description | |
|---|---|---|
CKV_AWS_1 | Ensure IAM policies don't allow full "-" admin privileges | |
CKV_AWS_2 | Ensure ALB protocol is HTTPS | |
CKV_AWS_3 | Ensure EBS is encrypted by default | |
CKV_AWS_18 | Ensure S3 access logging is enabled | |
CKV_AWS_19 | Ensure S3 bucket has server-side encryption | |
CKV_AWS_20 | Ensure S3 bucket is not publicly readable | |
CKV_AWS_21 | Ensure S3 bucket versioning is enabled | |
CKV_AWS_23 | Ensure every security group has a description | |
CKV_AWS_24 | Ensure no security group allows ingress from 0.0.0.0/0 to port 22 | |
CKV_AWS_25 | Ensure no security group allows ingress from 0.0.0.0/0 to port 3389 |
Kubernetes:
| Check ID | Description | |
|---|---|---|
CKV_K8S_1 | Do not admit containers sharing host PID namespace | |
CKV_K8S_2 | Do not admit privileged containers | |
CKV_K8S_3 | Do not admit containers running as root | |
CKV_K8S_8 | Ensure liveness probe is configured | |
CKV_K8S_9 | Ensure readiness probe is configured | |
CKV_K8S_21 | Default namespace should not be used | |
CKV_K8S_22 | Use read-only filesystem for containers | |
CKV_K8S_28 | Ensure seccomp profile is set | |
CKV_K8S_35 | Prefer using secrets for sensitive environment variables |
Dockerfile:
| Check ID | Description | |
|---|---|---|
CKV_DOCKER_1 | Ensure port 22 (SSH) is not exposed | |
CKV_DOCKER_2 | Ensure HEALTHCHECK instructions are added | |
CKV_DOCKER_3 | Ensure USER instruction is added (non-root) | |
CKV_DOCKER_7 | Ensure base image uses non-latest tag | |
CKV_DOCKER_8 | Ensure package manager caches are cleaned | |
CKV_DOCKER_9 | Ensure COPY is used instead of ADD | |
CKV_DOCKER_10 | Ensure secrets are not stored in Dockerfile | |
CKV_DOCKER_11 | Ensure base image is pinned using digest |
GitHub Actions:
| Check ID | Description | |
|---|---|---|
CKV_GHA_1 | Ensure run step does not use shell injection | |
CKV_GHA_2 | Ensure actions use pinned SHA | |
CKV_GHA_3 | Ensure workflow run is not triggered on workflow_run | |
CKV_GHA_4 | Ensure self-hosted runners are not used | |
CKV_GHA_7 | Ensure ACTIONS_ALLOW_UNSECURE_COMMANDS is not set | |
CKV2_GHA_1 | Ensure top-level permissions are read-only |
Selective Check Scanning
Severity Filtering
Configuration File
Create .checkov.yaml in your project root:
Create config from CLI args:
Workflow for Security Audit
Quick Scan (1-2 minutes)
Comprehensive Audit (3-5 minutes)
Pre-Deployment Validation
CI/CD Integration
GitHub Actions
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/checkov-security-scan/SKILL.md
Popularity
- Repository stars
- 8
- Repository forks
- 4
- 7-day trend score
- 11
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 2 Apr 2026, 7 months ago.
Extension points
hookPre/post lifecycle hooksconfigConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alxayo/sec-check/checkov-security-scan)