SI

senaykt/iac-security-scan-skills

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

48 stars 质量 59 趋势 17MIT

为你的AI工作流程提供IAC安全扫描技能

概览

基于AI的基础设施即代码安全评估。将这些数据导入任何Terraform或CloudFormation项目,告诉你的AI代理扫描,获得包含攻击路径和合规映射的优先级安全报告。 支持、和——无插件、无API密钥、无安装。 1. 将该仓库复制到你的 Terraform 项目根中: 4. 在终端中读取发现,打开 iac-scan/report.html,或导入IAC扫描/findings.csv。 扫描仪分为三步运行,由 AGENTS.md(Claude Code 为 CLAUDE.md)协调: IAC分析技能绘制整个仓库:技术栈、环境、资源清单、架构模式、互联网暴露点、信任边界和跨账户关系。 它还生成iac-scan/analysis.md的优化表(≤120行——无完整的JSON图转储):- ——将每个IaC文件映射到需要的下游技能。- ——完全跳过无关的领域技能。

概述(AI 翻译)

基于AI的基础设施即代码安全评估。将这些数据导入任何Terraform或CloudFormation项目,告诉你的AI代理扫描,获得包含攻击路径和合规映射的优先级安全报告。

支持 Cursor、Claude Code、Opencode、Codex CLI 和 Windsurf——无插件、无 API 密钥、无安装。

快速启动

  1. 将该仓库复制到你的 Terraform 项目根中:

  2. 在你的 AI IDE 中打开该项目。

  3. 告诉代理:

  4. 在终端中读取发现,打开iac-scan/report.html,或导入iac-scan/findings.csv。

工作原理

扫描仪分为三步运行,由AGENTS.md(或Claude代码的CLAUDE.md)协调:

第一步 — 代码库分析

iac-analysis 技能映射整个仓库:技术栈、环境、资源清单、架构模式、互联网暴露点、信任边界和跨账户关系。

它还生成一个紧凑的优化表 iac-scan/analysis.md(≤ 120行——无完整的 JSON 图转储):

  • 文件路由 — 将每个 IaC 文件映射到需要它的下游技能。
  • 推荐技能 — 完全跳过无关领域技能。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

IaC Security Scanner

AI-powered security assessment for Infrastructure-as-Code. Drop this into any Terraform or CloudFormation project, tell your AI agent to scan, and get a prioritized security report with attack paths and compliance mappings.

Works with Cursor, Claude Code, Opencode, Codex CLI, and Windsurf — no plugins, no API keys, no installation.

Quick Start

  1. Copy this repo into your Terraform project root:
cp -r iac-security-scanner-skills/{AGENTS.md,CLAUDE.md,.agents,.claude,.cursor} ./
  1. Open the project in your AI IDE.

  2. Tell the agent:

Run IaC security scan
  1. Read findings in the terminal, open iac-scan/report.html, or import iac-scan/findings.csv.

How It Works

The scanner runs in three steps, orchestrated by AGENTS.md (or CLAUDE.md for Claude Code):

Step 1                    Step 2 (parallel)              Step 2.5              Step 3
┌──────────────┐    ┌──────────────────────────┐    ┌─────────────────┐    ┌──────────────┐
│              │    │  iac-iam                 │    │                 │    │              │
│              │    │  iac-network             │    │                 │    │              │
│ iac-analysis ├───►│  iac-storage             ├───►│ iac-attack-chain├───►│  iac-report  │
│              │    │  iac-secrets             │    │                 │    │              │
│              │    │  iac-logging-monitoring  │    │                 │    │              │
│              │    │  iac-serverless          │    │                 │    │              │
└──────────────┘    └──────────────────────────┘    └─────────────────┘    └──────────────┘
  analysis.md         *-results.md                   attack-chain.md        report.html + CSV

Step 1 — Codebase Analysis

The iac-analysis skill maps the entire repository: technology stack, environments, resource inventory, architecture patterns, internet exposure points, trust boundaries, and cross-account relationships.

It also produces optimization tables in a compact iac-scan/analysis.md (≤ 120 lines — no full JSON graph dumps):

  • File Routing — maps each IaC file to the downstream skills that need it.
  • Recommended Skills — skips irrelevant domain skills entirely.
  • Secrets File List — for fast/scoped scans, lists only IaC/CI/CD/env files for iac-secrets (full scan uses all files).

Step 2 — Security Analysis (parallel)

Domain-specific skills run in parallel. Each skill receives only the files routed to it and produces deep, context-aware findings — not shallow linting.

Skill What it detects
iac-iam Privilege escalation paths, wildcard permissions, dangerous trust relationships, PassRole abuse, cross-account trust, lateral movement chains
iac-network Public exposure, VPC segmentation gaps, security group misconfigurations, unrestricted egress, missing VPC endpoints
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add senaykt/iac-security-scan-skills
新手?先看 mcpskill.org 教程 →