iac-security
Skill by snyk
IaC Security is a Snyk agent skill that scans infrastructure as code for misconfigurations, security risks and compliance violations before deployment. It is for developers and platform teams working with Terraform, Kubernetes, CloudFormation or Azure ARM.
Install iac-security
Built from the published package, never by AI.
git clone --depth 1 https://github.com/snyk/studio-recipes /tmp/studio-recipes && mkdir -p ~/.claude/skills && cp -r /tmp/studio-recipes/command_directives/synchronous_remediation/skills/iac-security ~/.claude/skills/iac-securityRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/snyk/studio-recipes /tmp/studio-recipes && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/studio-recipes/command_directives/synchronous_remediation/skills/iac-security ~/.gemini/antigravity-cli/skills/iac-securityAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
IaC Security is an agent skill from Snyk that scans infrastructure as code for misconfigurations, security risks and compliance violations before deployment. It covers Terraform (.tf, .tf.json and .tfvars files, plus plan JSON), Kubernetes and Helm manifests, AWS CloudFormation, Azure ARM templates and Serverless Framework files. The skill runs the snyk_iac_scan tool through a Snyk MCP server.
The skill guides the assistant through discovery, scanning, severity triage and remediation. Its examples include blocking public S3 access, restricting security group rules and enabling RDS encryption. It also covers re-scanning to verify fixes and recording accepted risks in a .snyk policy file. It suits developers and platform teams who write or review infrastructure code and want checks before deployment.
Written from the project's SKILL.md and checked against it.
What it can do
- snyk_iac_scanScans a directory or file for infrastructure as code security issues.
- Terraform variable scanningScans Terraform directories using a .tfvars file passed as var_file.
- Terraform plan scanningScans plan JSON produced by terraform show -json for more accurate results.
- Custom rulesRuns scans with a custom rules bundle written in Rego.
- Severity triageGroups findings as Critical, High, Medium or Low in summary tables.
- Domain groupingSorts issues into network, data protection, access control and logging.
- Remediation patternsProvides secure configuration examples for Terraform, Kubernetes and CloudFormation.
- Fix verificationRe-scans after changes and compares issue counts before and after.
What you need
- Snyk MCP server connection
- Authenticated Snyk account
- Terraform CLI (optional, for plan-based scanning)
Try asking
- Scan my Terraform directory for security misconfigurations
- Check this Kubernetes manifest for pod security issues
- Review my CloudFormation template and suggest secure fixes
Good to know
- Plan-based Terraform scanning requires the optional Terraform CLI.
- Helm charts are supported only when a Chart.yaml file is present.
- Custom rules must be written in Rego and bundled as .tar.gz.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: command_directives/synchronous_remediation/skills/iac-security/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: mcp_snyk_snyk_iac_scan Read Write Edit Bash Grep
Alternatives to iac-security
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
iac-security: common questions
Which IaC formats does it support?
Terraform (.tf, .tf.json, .tfvars), Terraform plan JSON, Kubernetes YAML, Helm charts, AWS CloudFormation, Azure ARM templates and serverless.yml are listed as supported.
How are accepted risks handled?
The skill suggests a .snyk policy file with ignore entries that include a reason and an expiry date.
Does it scan Terraform plans?
Yes. It can scan plan JSON created with terraform show -json, which the skill describes as more accurate than scanning files alone.
How do I install iac-security?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is iac-security free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is iac-security safe to use?
It scores 70 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to iac-security?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
