ersinkoc/security-check/sc-iac
Claude Code and agent skill by ersinkoc/security-check
- community
Checking that the SKILL.md file is still in the repository.
Infrastructure-as-Code security scanning — Dockerfile, Kubernetes, Terraform, and GitHub Actions misconfigurations
Install
npx vskill@latest install ersinkoc/security-check/sc-iacSKILL.md
The same SKILL.md was published earlier as ersinkoc/security-check/sc-iac.
SC: Infrastructure-as-Code Security
Purpose
Scans Infrastructure-as-Code files for security misconfigurations including Dockerfile anti-patterns, Kubernetes privilege escalation, Terraform resource exposure, and GitHub Actions injection vulnerabilities. Covers the full deployment pipeline from build to runtime.
Activation
Called by sc-orchestrator during Phase 2 when IaC files are detected (Dockerfile, *.tf, k8s manifests, workflow files).
Phase 1: Discovery
File Patterns
Dockerfile Checks
- Running as root (missing USER directive)
- Secrets in build args (
ARG PASSWORD=secret) - Using
latesttag for base images - ADD instead of COPY (ADD can auto-extract and fetch URLs)
- Exposed unnecessary ports
Kubernetes Checks
- Privileged containers, hostPID, hostNetwork
- hostPath volume mounts
- Missing network policies
- Default service account with broad permissions
- Missing resource limits
- Missing securityContext (readOnlyRootFilesystem, runAsNonRoot)
Terraform Checks
- Public S3 buckets, public RDS instances
- Overly permissive IAM policies (Action: *)
- Hardcoded credentials in .tf files
- Missing encryption (at rest and in transit)
- Security groups with 0.0.0.0/0 ingress
GitHub Actions Checks
- Expression injection in
run:blocks pull_request_targetwith checkout of PR code- Untrusted third-party actions without pinned SHA
- GITHUB_TOKEN with excessive permissions
- Secrets in workflow logs
Severity Classification
- Critical: Privileged containers, hardcoded secrets in IaC, public databases, script injection in CI
- High: Running as root, overly permissive IAM, public storage, hostPath mounts
- Medium: Missing network policies, unpinned actions, missing encryption
- Low: Missing resource limits, using latest tags, minor configuration improvements
Output Format
Finding: IAC-{NNN}
- Title: {IaC misconfiguration type}
- Severity: Critical | High | Medium | Low
- Confidence: 0-100
- File: file/path:line
- Vulnerability Type: CWE-250 (Excessive Privileges) | CWE-732 (Incorrect Permission) | CWE-798 (Hardcoded Credentials)
- Description: {What was found}
- Impact: Container escape, data breach, lateral movement, supply chain attack.
- Remediation: {Specific fix with corrected configuration}
- References: https://cwe.mitre.org/data/definitions/250.html
Common False Positives
- Development docker-compose — running as root in local dev environment
- CI-only Dockerfiles — build containers with elevated privileges for CI tasks
- Terraform plan output — resource definitions that are overridden by variables
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sc-iac/SKILL.md
Popularity
- Repository stars
- 46
- Repository forks
- 5
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/ersinkoc/security-check/sc-iac)