<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/graphalgo-malware-spreads-to-terraform-and-go-hqi2wj8y7" -->

---
title: Graphalgo Malware Spreads to Terraform and Go | daily.dev
description: Security researchers identified Go-language malware, dubbed Graphalgo, distributed through at least two malicious Terraform providers (gocommunity-io/dockerd...
canonical: https://daily.dev/posts/graphalgo-malware-spreads-to-terraform-and-go-hqi2wj8y7
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Graphalgo Malware Spreads to Terraform and Go | daily.dev
og:description: Security researchers identified Go-language malware, dubbed Graphalgo, distributed through at least two malicious Terraform providers (gocommunity-io/dockerd...
og:url: https://daily.dev/posts/graphalgo-malware-spreads-to-terraform-and-go-hqi2wj8y7
og:image: https://api.daily.dev/og/posts/HQi2wJ8y7.png
og:image:alt: Graphalgo Malware Spreads to Terraform and Go
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Graphalgo Malware Spreads to Terraform and Go

**[Aikido Security](https://daily.dev/sources/aikido-security)** · 7 min read · 5 upvotes · 1 comments

## Summary

Security researchers identified Go-language malware, dubbed Graphalgo, distributed through at least two malicious Terraform providers (gocommunity-io/dockerd and kreuzwenker/docker, the latter a typosquat of the popular kreuzwerker/docker provider with 56 million downloads) and two Go Modules (gocommunity.io/orderedbtree and gogets.dev/btreex). The malware is a Go port of a campaign previously seen in NPM packages, sharing blockchain, Slack, and public-key infrastructure. It activates only under specific conditions (a matching SHA256 hash of Terraform variables, or a crafted price value), suggesting a targeted attack rather than mass distribution. A second-stage RAT uses dual command-and-control channels: Slack bot messaging and an Ethereum smart contract on Arbitrum Sepolia for encrypted dead-drop commands. The threat actor also created fake Go package ecosystem websites (gogets.dev, gocommunity.io) to add social-engineering legitimacy, and backdated Go module commit timestamps to evade suspicion. This marks the first known systematic malware distribution via Terraform providers, expanding the threat beyond typical developer workstation targeting into DevOps and infrastructure deployment credentials.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.aikido.dev/blog/graphalgo-terraform-go-modules>

## Questions this post answers

### What malicious Terraform providers were found distributing malware in the Graphalgo campaign?

Two malicious Terraform providers were identified: gocommunity-io/dockerd and kreuzwenker/docker, the latter a typosquat of the popular kreuzwerker/docker provider which has 56 million reported downloads. Both hide a hidden entry point in resource_docker_container_funcs.go that only activates when a SHA256 hash of specific Terraform variables matches a hardcoded value, indicating a targeted rather than mass-distribution attack.

_Teams vetting Terraform providers before deployment can follow ongoing supply-chain incident coverage on daily.dev._

### How does the Graphalgo Go malware communicate with its command-and-control infrastructure?

It uses dual channels: a Slack bot posting to workspaces like portfolio-devs.slack.com and portfolio-testers.slack.com, and an Ethereum smart contract on the Arbitrum Sepolia testnet at address 0xAD02b5cDE693529d3bdA0266299501ad0193036C. It polls blockchain instructions every 3 seconds and Slack every 10 seconds, using shared-key encryption so only intended clients can decrypt commands.

_Developers investigating unusual outbound traffic to blockchain or chat APIs can track similar dead-drop techniques via daily.dev._

### Which Go Modules were found carrying the Graphalgo malware payload?

Two Go Modules were affected: gocommunity.io/orderedbtree, published August 11 with the malware in plaintext, and gogets.dev/btreex, published September 8 with the payload hidden in a ZIP archive disguised as a SQL file. The btreex package used forged commit dates backdated to November 2025, which pkg.go.dev and the module proxy displayed as authoritative since Go Modules trusts commit timestamps.

_Go developers auditing dependency provenance can keep tabs on module supply-chain risks through daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@nahum** · 0 upvotes

> kreuzwenker vs kreuzwerker, I read it 3 times. activation on a SHA256 of your tf vars means a CI scan with dummy vars never fires it, and .terraform.lock.hcl just pins the bad provider if the typo was there on first init.
>
> anyone running a provider allowlist on their registry mirror?

## Similar posts on daily.dev

- [Malicious Go Module Exposes GitHub Malware Lure Network Span...](https://daily.dev/posts/malicious-go-module-exposes-github-malware-lure-network-span--fqwgrwl88) · Socket · 14 upvotes · 0 comments
- [New GoGra malware for Linux uses Microsoft Graph API for comms](https://daily.dev/posts/new-gogra-malware-for-linux-uses-microsoft-graph-api-for-comms-vwc7uzrie) · BleepingComputer · 0 upvotes · 0 comments
- [Malicious Go “crypto” Module Steals Passwords and Deploys Re...](https://daily.dev/posts/malicious-go-crypto-module-steals-passwords-and-deploys-re--hubou1zfx) · Socket · 59 upvotes · 2 comments
- [GPT-Proxy Backdoor in npm and PyPI turns Servers into Chinese LLM Relays](https://daily.dev/posts/gpt-proxy-backdoor-in-npm-and-pypi-turns-servers-into-chinese-llm-relays-9yh9mksmp) · Aikido Security · 0 upvotes · 0 comments

---

Tags: [#cyber](https://daily.dev/tags/cyber), [#golang](https://daily.dev/tags/golang), [#malware](https://daily.dev/tags/malware), [#terraform](https://daily.dev/tags/terraform)

[View this post on daily.dev](https://daily.dev/posts/graphalgo-malware-spreads-to-terraform-and-go-hqi2wj8y7)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Graphalgo Malware Spreads to Terraform and Go","url":"https://daily.dev/posts/graphalgo-malware-spreads-to-terraform-and-go-hqi2wj8y7","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/graphalgo-malware-spreads-to-terraform-and-go-hqi2wj8y7"},"datePublished":"2026-09-22T15:11:45.801Z","dateModified":"2026-09-22T15:12:43.276Z","description":"Security researchers identified Go-language malware, dubbed Graphalgo, distributed through at least two malicious Terraform providers (gocommunity-io/dockerd...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a31a5aaf6f1bbcbac0f37115009ad0c3?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a31a5aaf6f1bbcbac0f37115009ad0c3?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Aikido Security","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Aikido Security","logo":"https://media.daily.dev/image/upload/s--vJDqDYv_--/f_auto,q_auto/v1774959928/logos/aikido-security?_a=BAMAMiWQ0","url":"https://daily.dev/sources/aikido-security"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/graphalgo-malware-spreads-to-terraform-and-go-hqi2wj8y7","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"cyber,golang,malware,terraform","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Aikido Security","item":"https://daily.dev/sources/aikido-security"},{"@type":"ListItem","position":3,"name":"Graphalgo Malware Spreads to Terraform and Go"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/graphalgo-malware-spreads-to-terraform-and-go-hqi2wj8y7","comment":[{"@type":"Comment","text":"kreuzwenker vs kreuzwerker, I read it 3 times. activation on a SHA256 of your tf vars means a CI scan with dummy vars never fires it, and .terraform.lock.hcl just pins the bad provider if the typo was there on first init.\nanyone running a provider allowlist on their registry mirror?","datePublished":"2026-10-01T17:27:45.721Z","url":"https://daily.dev/posts/HQi2wJ8y7#c-F3wPgMl3I","author":{"@type":"Person","name":"Nahum Litvin","url":"https://daily.dev/nahum","image":"https://lh3.googleusercontent.com/a-/AOh14GhvJ2y-9R45d5ee78ZdAo8l7J3t4G8fINkx5PEqBfA=s100"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/graphalgo-malware-spreads-to-terraform-and-go-hqi2wj8y7#faq","mainEntity":[{"@type":"Question","name":"What malicious Terraform providers were found distributing malware in the Graphalgo campaign?","acceptedAnswer":{"@type":"Answer","text":"Two malicious Terraform providers were identified: gocommunity-io/dockerd and kreuzwenker/docker, the latter a typosquat of the popular kreuzwerker/docker provider which has 56 million reported downloads. Both hide a hidden entry point in resource_docker_container_funcs.go that only activates when a SHA256 hash of specific Terraform variables matches a hardcoded value, indicating a targeted rather than mass-distribution attack. Teams vetting Terraform providers before deployment can follow ongoing supply-chain incident coverage on daily.dev."}},{"@type":"Question","name":"How does the Graphalgo Go malware communicate with its command-and-control infrastructure?","acceptedAnswer":{"@type":"Answer","text":"It uses dual channels: a Slack bot posting to workspaces like portfolio-devs.slack.com and portfolio-testers.slack.com, and an Ethereum smart contract on the Arbitrum Sepolia testnet at address 0xAD02b5cDE693529d3bdA0266299501ad0193036C. It polls blockchain instructions every 3 seconds and Slack every 10 seconds, using shared-key encryption so only intended clients can decrypt commands. Developers investigating unusual outbound traffic to blockchain or chat APIs can track similar dead-drop techniques via daily.dev."}},{"@type":"Question","name":"Which Go Modules were found carrying the Graphalgo malware payload?","acceptedAnswer":{"@type":"Answer","text":"Two Go Modules were affected: gocommunity.io/orderedbtree, published August 11 with the malware in plaintext, and gogets.dev/btreex, published September 8 with the payload hidden in a ZIP archive disguised as a SQL file. The btreex package used forged commit dates backdated to November 2025, which pkg.go.dev and the module proxy displayed as authoritative since Go Modules trusts commit timestamps. Go developers auditing dependency provenance can keep tabs on module supply-chain risks through daily.dev."}}]}
```

