Logo Auditing Infrastructure As Code Exposures

Auditing Infrastructure As Code Exposures

Tổ chức
UnboundCompute
auditing-infrastructure-as-code-exposures

Audit existing infrastructure-as-code definitions (Terraform, OpenTofu, CloudFormation, Bicep, Pulumi) for resource state that would provision an insecure resource, after variables, modules, and account defaults are resolved. Covers storage exposed to the public, a security-group or firewall rule open to the whole internet on a sensitive port, an identity or resource policy with wildcard actions or principals, encryption left off or a snapshot or image shared publicly, logging or audit trails disabled, and a plaintext secret in a variable default or connection string. Use when reviewing the static definition files, not authoring or refactoring them, and not walking the runtime identity graph. The declared resource block is the source, the insecure provisioned resource it would create is the sink, and effective config that violates the baseline is the bug.

Tổng quan

Nhà phát hànhUnboundCompute
Kho mãsecurity-agent-skills
Tên kỹ năngauditing-infrastructure-as-code-exposures
Sao
27
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được UnboundCompute công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Auditing Infrastructure As Code Exposures trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-infrastructure-as-code-exposures
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-infrastructure-as-code-exposures .claude/skills/auditing-infrastructure-as-code-exposures
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Auditing Infrastructure As Code Exposures trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Auditing Infrastructure As Code Exposures ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Auditing Infrastructure As Code Exposures không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Auditing infrastructure-as-code exposures: what the definition would actually provision

Infrastructure-as-code is desired state, so the bug is not what a line says but what the resource becomes once variables resolve, modules compose, and account defaults apply. A bucket ACL that reads public may be overridden by an account block, and a security group open to the internet may sit in a private subnet nothing routes to. This audit reads the definition and asks one question per resource: once applied, does this provision a resource that violates its security baseline, least exposure, encryption on, least privilege, logging on, no plaintext secret. Everyone has the checklist; the work that matters is adjudicating the effective config and killing the finding that a different layer already neutralizes. Anchor on auditing what exists, not generating or refactoring it.

When to use

  • You have Terraform, OpenTofu, CloudFormation, Bicep, or Pulumi definitions for infrastructure in scope.
  • A resource block declares storage, a network rule, an identity or resource policy, encryption, or logging.
  • You want to know which blocks would provision an insecure resource once applied, not just which lines look wrong.

Scope check

Audit only definitions for infrastructure you own or are authorized to assess, and never apply a definition or mutate a live account to test a finding, adjudicate on the resolved config, not by provisioning. If you can't name the authorization, stop.

The loop

  1. Resolve the effective config first. For each resource, follow the variables, locals, modules, and any tfvars, parameter files, or workspace overrides that feed its arguments, and factor in account or region defaults (default encryption, a block-public-access setting, an org policy). The literal in the module is not what deploys; the resolved state is. Settle it before judging any field.

  2. Check storage exposure. Look for a bucket or object ACL of public-read or public-read-write, a bucket or resource policy with a wildcard principal, or block-public-access disabled, then confirm no account-level block or explicit deny overrides it. Public storage is the effective policy, not the ACL.

  3. Check network ingress. Look for a security-group or firewall rule allowing the whole internet (an all-addresses source) on a sensitive port (remote admin, database, cache, search), then check whether the resource is actually reachable: a public subnet with an internet route and a public address, versus a private subnet a deny rule or absent route isolates.

  4. Check identity and resource policies. Look for a policy granting wildcard actions or resources, an admin-equivalent managed policy, or a wildcard principal on a resource policy, then check for a condition, a permissions boundary, or an organization control that caps the effective grant. A wildcard narrowed by a real condition is not the same finding as an open one.

  5. Check encryption, logging, and plaintext secrets. Look for encryption switched off or a snapshot or machine image shared publicly, access or audit logging or versioning disabled where the resource needs it, and a hardcoded password, key, or token in a variable default, a sensitive value's default, or a connection string. For a secret, report only that it is present in the definition; hand its blast-radius to the secret-reachability skill.

  6. Confirm and record. Confirm by showing the resolved config provisions the insecure resource and no other layer neutralizes it. Kill the lead if an account block or explicit deny overrides a public ACL, if the open rule attaches only to a resource with no internet path, if the absent encryption field still provisions encrypted under an account default, if a wildcard policy is capped by a condition or boundary or service-control policy, if the value comes from an apply-time override rather than the literal, if the resource is never instantiated (count zero, empty iteration, a disabled flag, an uncalled module), or if a hardcoded secret is a documented placeholder or resolved from a secret manager at apply. Record the block, the resolved state, and the baseline it violates.

Where infrastructure-as-code leaks

  • The bug is the effective config, not the line. Variables, modules, and account defaults change what provisions; adjudicate the resolved state, or you report the source and miss the deploy.
  • A public ACL under an account block is inert. Storage exposure is the effective policy after overrides and denies, not the permissive ACL read alone.
  • An open rule with no route is not reachable. A whole-internet ingress on a private-subnet resource with no public address and no route exposes nothing; reachability is part of the finding.
  • A wildcard with a real condition is a different finding. A source-address, org, tag, or boundary condition caps the grant; report the uncapped wildcard, not the constrained one.
  • A never-instantiated resource provisions nothing. Count zero, an empty iteration, a disabled flag, or an uncalled module means the insecure block never deploys.

Worked example (a confirm and a kill)

Confirm. A security-group rule allows ingress from the whole internet on the database port; the group attaches to an instance with a public address in a public subnet routed to an internet gateway, and no deny rule intervenes. The resolved config exposes the database to the internet. Confirmed internet-open database ingress on a reachable instance, high rising to critical for a credential-store port, remediation = restrict the source to the application tier and remove the public address.

Kill. A bucket declares a public-read ACL, but the account enforces block-public-access with a deny-all-public policy that overrides the ACL, so the applied bucket is private. Killed, kill_reason = "the public ACL is overridden by an account block-public-access setting that denies all public access, so the effective bucket policy is private."

Rationalizations to reject

  • "The ACL says public, so it is public." -> Not if an account block or a deny policy overrides it. Adjudicate the effective policy, not the ACL in isolation.
  • "The rule is open to the whole internet." -> Is the resource reachable? An open rule on a private, unrouted resource with no public address exposes nothing.
  • "The IAM policy has a wildcard action." -> Is it capped by a condition, boundary, or org policy? A constrained wildcard is a different, weaker finding than an open one.
  • "Encryption is not set." -> Does the account default to encrypted? An absent field can still provision an encrypted resource; check the default before flagging.
  • "There is a password in the variable default." -> Is it a documented placeholder, or resolved from a secret manager at apply? Only a real literal baked into the deploy is the finding.

Executing this in practice

You need the definition files, the variables, modules, and apply-time overrides that resolve each argument, the account and region defaults, and any org or boundary policy that caps a grant. For each resource, resolve the effective config and decide whether it provisions an insecure resource no other layer neutralizes. Reading the block tells you what it asks for; resolving the variables, defaults, and overrides tells you what it actually provisions.

Related

  • auditing-kubernetes-workload-and-rbac-hardening - the sibling for the Kubernetes YAML plane; this skill owns cloud provider resources, that one owns RBAC subjects and workload security contexts.
  • auditing-container-image-build-hardening - the sibling for the image build plane; a hardcoded secret or root default in a Dockerfile belongs there, cloud resource state belongs here.
  • hunting-non-human-identity-and-secret-reachability - takes the blast-radius of a secret this skill finds present in a definition, and the runtime reach of an over-granted identity.
  • FINDING-SCHEMA.md - source = the declared resource block, sink = the insecure provisioned resource, evidence = the resolved effective config that violates the baseline.

Câu hỏi thường gặp

Kỹ năng AI Auditing Infrastructure As Code Exposures làm được gì?

Audit existing infrastructure-as-code definitions (Terraform, OpenTofu, CloudFormation, Bicep, Pulumi) for resource state that would provision an insecure resource, after variables, modules, and account defaults are resolved. Covers storage exposed to the public, a security-group or firewall rule open to the whole internet on a sensitive port, an identity or resource policy with wildcard actions or principals, encryption left off or a snapshot or image shared publicly, logging or audit trails disabled, and a plaintext secret in a variable default or connection string. Use when reviewing the...

Vì sao nên dùng Auditing Infrastructure As Code Exposures trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Auditing Infrastructure As Code Exposures là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Auditing Infrastructure As Code Exposures trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-infrastructure-as-code-exposures. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Auditing Infrastructure As Code Exposures?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Auditing Infrastructure As Code Exposures với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Auditing Infrastructure As Code Exposures với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Auditing Infrastructure As Code Exposures có miễn phí không?

Có. Kỹ năng này được UnboundCompute phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇