Back to skill

Security audit

Infrastructure as Code

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent infrastructure-as-code reference skill whose risky commands are expected for managing cloud resources, but users should still verify accounts and preview changes before running deployment or deletion examples.

Before installing or using this skill, treat its IaC commands as capable of changing real cloud infrastructure and incurring cost. Run previews first, confirm the target account, region, workspace, stack, and environment, avoid production unless intentional, pin container images and provider versions, and be especially careful with destroy or delete examples.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The quick-start workflow includes terraform apply and terraform destroy with no adjacent warning that these commands make real changes to live cloud resources and may incur cost or data loss. In a skill intended for agent use, omission of guardrails increases the chance an automated or inattentive user executes destructive actions in the wrong environment.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
94% confidence
Finding

The EC2 user_data launches a Docker image via ${var.docker_image} without demonstrating that the image must be pinned to an immutable tag or digest. In IaC, this can lead to non-reproducible deployments or accidental/malicious image substitution if a mutable tag like latest is used, causing different code to run on later applies.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The environment-specific apply example directly selects or creates a workspace and then runs terraform apply -var-file="env/$ENV.tfvars" without a warning or approval checkpoint. This pattern can steer users or agents into making unintended live changes across environments, especially if $ENV is mis-specified or credentials point to production.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The CloudFormation CLI examples include create, update, and delete operations without clearly warning that they affect deployed resources and may create costs, outages, or permanent deletion. In agent-consumable documentation, these are operationally risky because they normalize direct execution of powerful commands without environment validation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The Pulumi quick-start shows pulumi up and pulumi destroy as routine workflow commands without an explicit warning about live resource modification and deletion. In the context of an infrastructure skill, this can cause accidental changes or teardown when copied verbatim by users or autonomous agents.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.