Moonlight

Blood Moon C2

Framework analysis

b3acon

Mail-based C2 generated as PowerShell: reads commands from IMAP Drafts, executes them, and sends results to the same account through SMTP.

C#JavaScriptPowerShell
4 observablesReviewed 2026-10-31c94211c0dca5 ↗

Framework Overview

Embedded IMAP/SMTP task script, C# mailbox helper and JavaScript generator, including encoded and plain HTA/VBS/JScript wrapper branches.

Source Version c94211c0dca5

Architecture

Source Flow01 / 03
IMAP DraftsPowerShell + C#
Fetch and Select New Tasks: The generated helper fetches draft subjects/bodies and PowerShell filters numeric IDs.1Send Command Output: PowerShell evaluates new commands and emails the result to the configured account.2Retain Output in the Account: From and To use the same configured address; replies are separate from Drafts tasking.3IMAP Drafts: Operator task messages
IMAP DraftsOperator task messages
PowerShell + C#: ID filter / IEX
PowerShell + C#ID filter / IEX
SMTP output: Same-account messages
SMTP OutputSame-account messages