Return to Threats

Attackers Use Malicious Terraform Providers to Deliver Go Malware via HashiCorp Registry

thehackernews.com 2026-09-23 AI supply chain Critical

What Happened

Cybersecurity researchers have disclosed Go-based malware distributed via two Go Modules and two Terraform providers, marking the first time threat actors are using the centralized repository hosted by HashiCorp as a distribution vector for malicious payloads. According to Aikido, the list of Terraform providers and Go modules is below - gocommunity-io/dockerd (222 downloads) kreuzwenker/

Why It Matters

Researchers reported that attackers distributed Go-based malware through two malicious Terraform providers and two Go modules hosted in public registries, including HashiCorp’s Terraform Registry.[1][15] The packages contained hidden activation logic and the malware used blockchain and Slack infrastructure for command and control.[1][15] RealGround analysis: compromised infrastructure dependencies can affect AI systems and agent environments that rely on Terraform or Go packages, creating a significant software supply-chain risk; organizations should inventory dependencies, validate provider provenance, and monitor registry-sourced components.

Healthcare Fintech SaaS SMB AI startups

RealGround Analysis

This signal maps to AI supply chain. Organizations using AI agents, LLM APIs, SaaS integrations, or sensitive data workflows should review whether this class of issue could create unauthorized tool execution, data leakage, weak approval gates, or unmanaged supply-chain exposure.

Recommended Actions

  • Restrict AI agent tool permissions and production write paths.
  • Review sensitive data access across prompts, logs, embeddings, memory, and SaaS integrations.
  • Add human approval workflows for high-impact or state-changing actions.
  • Run prompt injection and indirect prompt injection tests against affected workflows.
  • Document the owner, control gap, and remediation deadline for this risk class.

Source

https://thehackernews.com/2026/09/attackers-use-malicious-terraform.html

Talk to AI CISO