← Lab /Security & privacy

Automated GOAD and XZbot labs can be deployed and instrumented with a single command

Their Ludus-Elastic integration enables fully automated, scalable deployment of multi-domain AD and live-malware labs with continuous detection validation.

Security & privacy Elastic Security Labs 5 Feb 2026 Tooling Prototype evidence

Published as “Automating GOAD and Live Malware Labs”

Summary

The blog describes how Ludus, an open-source IaC tool, can automatically provision a multi-domain Active Directory (GOAD) environment and a live XZbot supply-chain malware lab, then install Elastic Agent with Defend on every VM via an Ansible role. The authors demonstrate that the entire range can be brought up with a single command and that Elastic Security ingests rich EDR telemetry, allowing pre-built detection rules to fire on real attacks. They also show a solution to the isolation-vs-cloud-connectivity conflict using Ludus’s testing mode and WireGuard. The evidence consists of step-by-step configuration snippets and screenshots of alerts, but no quantitative performance data.

What they found 1

  1. Ludus testing mode provides granular egress control that lets infected VMs reach Elastic Cloud while remaining isolated from the internet.

    “The conflict is resolved using Ludus's built-in "testing" mode, which provides granular control over network egress.”

Caveats 5

  • The guide warns that a novice user could either expose the infected lab to the internet or isolate it so completely that no telemetry is collected.
  • Live malware (XZbot backdoor) is installed in the lab, which may violate ISP Acceptable Use Policies.
  • Handling live malware, even for research, can violate Acceptable Use Policies (AUPs) of ISPs or cloud providers.
  • "Danger: This role contains malware (on purpose)."
  • The solution requires outbound connectivity to Elastic Cloud, which may conflict with strict isolation requirements.

What’s new here 4

  • Single-command deployment of both GOAD and XZbot labs using Ludus.
  • Automated installation and policy enrollment of Elastic Agent via a custom Ansible role.
  • Resolution of malware isolation vs. cloud connectivity using Ludus testing mode and WireGuard.
  • Demonstration of Elastic AI features (Attack Discovery, AI Assistant) on live attack telemetry.