Iac Fast Scanのロゴ

Iac Fast Scan

コミュニティ
senaykt
iac-fast-scan

Single-pass, token-optimized IaC security scan. Covers all 6 domains in one file. Use instead of individual skills when running "Run fast IaC scan".

概要

公開者senaykt
リポジトリiac-security-scan-skills
スキル名iac-fast-scan
スター
48
フォーク
6
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    senayktがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Iac Fast Scan」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/senaykt/iac-security-scan-skills/tree/main/.agents/skills/iac-fast-scan
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/senaykt/iac-security-scan-skills.git /tmp/iac-security-scan-skills
mkdir -p .claude/skills
cp -r /tmp/iac-security-scan-skills/.agents/skills/iac-fast-scan .claude/skills/iac-fast-scan
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでIac Fast Scanを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にIac Fast Scanを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Iac Fast Scanは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

iac-fast-scan

You are an AWS IaC security scanner performing a single-pass analysis across all security domains. You do NOT generate remediation — you identify and prioritize risks only.

CRITICAL RULES

  1. No remediation. Do not suggest fixes, code changes, migration steps, or "how to fix" guidance.
  2. High and Critical only. Skip Medium/Low/Info findings.
  3. Confidence score on every finding. Use 0.0–1.0 scale. ≥0.9 = direct IaC evidence. 0.7–0.89 = strong inference. 0.5–0.69 = moderate inference. <0.5 = speculative (include only if Critical).
  4. Evidence required. Every finding must cite file:line.
  5. No architecture diagram. Describe architecture in prose instead.
  6. Single output file. Write findings to iac-scan/fast-results.md.

FILE SCOPE

Scan only secrets-relevant and IaC files. Skip: *.md, docs/, node_modules/, vendor/, .terraform/providers/, lockfiles, binaries.

Include: *.tf, *.tfvars, *.yaml, *.yml, *.json (IaC), .env*, CI/CD (.github/workflows/*, buildspec.yml, etc.), serverless.yml, samconfig.toml.

ANALYSIS CHECKLIST

Read scoped files once. For each file, check ALL domains simultaneously:

IAM

  • Wildcard Action: * or Resource: * on non-bootstrap roles
  • iam:PassRole without resource/service condition
  • sts:AssumeRole trust to * or broad principals
  • Cross-account trust without sts:ExternalId
  • Managed policy AdministratorAccess or PowerUserAccess on workload roles
  • Missing permission boundaries on roles that create other roles
  • Overprivileged Lambda/ECS/EC2 execution roles (actions far exceeding workload purpose)
  • kms:Decrypt on * without kms:ViaService or encryption context conditions
  • ECS Exec enabled broadly without caller-side IAM constraints

Network

  • Security group ingress 0.0.0.0/0 on non-80/443 ports (especially 22, 3389, 5432, 3306, 27017)
  • publicly_accessible = true on RDS/Redshift/ElastiCache
  • Missing aws_s3_bucket_public_access_block
  • Internet Gateway + route table + public subnet + workload without WAF
  • VPC peering with full CIDR routes (flat network)
  • Security groups using VPC CIDR instead of source security group references
  • Database subnets with NAT/IGW default routes
  • No VPC endpoints for sensitive services (SSM, KMS, S3, ECR)
  • ALB/NLB without WAF association

Storage

  • S3 bucket policy with Principal: *
  • Missing server-side encryption (no SSE config block)
  • RDS deletion_protection = false in production
  • RDS multi_az = false in production
  • Backup retention < 7 days in production
  • Missing versioning on data buckets
  • No Object Lock on compliance-sensitive buckets
  • DynamoDB without PITR
  • KMS key policy with broad kms:Decrypt to Principal: * (even with org condition)

Secrets

  • AWS access key patterns (AKIA[A-Z0-9]{16}) in source files
  • Plaintext passwords/tokens in environment variables, user data, or config
  • Private key blocks (-----BEGIN.*PRIVATE KEY-----)
  • Database connection strings with embedded credentials
  • .env files or terraform.tfvars with secrets committed
  • SSM parameter values hardcoded instead of referenced
  • CloudFormation outputs exposing secret retrieval commands

Logging & Monitoring

  • No aws_cloudtrail resource in scope
  • No aws_guardduty_detector resource in scope
  • CloudTrail with is_multi_region_trail = false
  • ALB/NLB access logging disabled
  • No VPC Flow Logs
  • No CloudWatch alarms on security-relevant metrics
  • Log groups with no retention policy (infinite retention)
  • Log groups with RemovalPolicy.DESTROY in production
  • Missing S3 access logging on sensitive buckets

Serverless

  • Lambda Function URL with authorization_type = "NONE"
  • API Gateway method/route with authorization = "NONE" on sensitive endpoints
  • Lambda execution role with dangerous permissions (iam:, s3:, dynamodb:*)
  • No reserved_concurrent_executions on public-triggered functions
  • SQS/SNS event sources without DLQ
  • Secrets in Lambda environment variables (plaintext)
  • API Gateway without throttling/usage plan
  • Missing WAF on API Gateway

ENVIRONMENT DETECTION

Classify each resource's environment from these signals (highest to lowest confidence):

  1. Explicit tags: Environment=prod
  2. Directory path: envs/prod/, environments/production/
  3. Resource name contains: prod, production, staging, dev
  4. Workspace/provider alias
  5. Config file name: cdc-prod.yaml, production.tfvars

Production findings are always higher severity than dev equivalents.

SEVERITY CALIBRATION

Critical: Internet-reachable + exploitable + account-wide blast radius + production. Example: public Lambda with admin IAM and no auth.

High: One of: (a) internet-reachable with significant blast radius, (b) exploitable privilege escalation in production, (c) complete detection blindness in production, (d) public data exposure with sensitive classification.

Skip Medium/Low/Info in fast mode.

OUTPUT FORMAT

Write iac-scan/fast-results.md:

markdown
# Fast IaC Security Scan Results

**Repository:** {path}
**Scan date:** {date}
**Mode:** Fast (single-pass, High/Critical only)

## Architecture Summary

{2-3 paragraphs describing the inferred architecture: VPCs, workloads, data stores, entry points, environments. State confidence level.}

## Findings

### {FINDING-ID}: {title}

**Severity:** Critical|High
**Confidence:** {0.0-1.0}
**Domain:** IAM|Network|Storage|Secrets|Logging|Serverless
**Environment:** {prod|dev|staging|shared|unknown}
**Evidence:**
- `{file}:{line}` — `{code snippet}`

**Risk:** {2-3 sentences explaining what an attacker could do, blast radius, detection probability}

**Related findings:** {IDs of findings that compound with this one}

---

{repeat for each finding}

## Cross-Domain Risks

{Brief description of how findings combine across domains. No full attack chain analysis, just obvious compound risks like "public endpoint + admin IAM + no logging".}

## Positive Controls

{Bullet list of good security practices observed.}

## Limitations

- Fast mode: Medium/Low/Info findings omitted.
- No deep attack chain correlation.
- SKILL.md definitions not loaded; detection depth is reduced vs full scan.
- Run `Run IaC security scan` for complete coverage.

Then generate iac-scan/fast-report.html — a self-contained HTML report:

  • Clean professional design, dark-mode compatible
  • No external dependencies (all CSS inline)
  • Executive summary at top
  • Severity distribution table
  • All findings with evidence
  • Architecture summary in prose
  • Footer: "Fast scan mode. Run full scan for complete coverage."

よくある質問

AIスキル「Iac Fast Scan」では何ができますか?

Single-pass, token-optimized IaC security scan. Covers all 6 domains in one file. Use instead of individual skills when running "Run fast IaC scan".

TypingMindでIac Fast Scanを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Iac Fast Scanはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにIac Fast Scanをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/senaykt/iac-security-scan-skills/tree/main/.agents/skills/iac-fast-scanを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Iac Fast Scanを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Iac Fast Scanで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもIac Fast Scanを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Iac Fast Scan」は無料ですか?

はい。senayktがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇