At first glance, ASTRO looks like a serious tool. It’s a command and control framework written in Rust that targets Windows, Linux and macOS. It has more than 200 command variants and covers everything from Kerberoasting to kernel writes through vulnerable drivers. It even ships traffic profiles that make its beacons look like Slack.
Read further into its own internal audits, though, and the picture changes. Sleep masking is switched off in practice. Stack spoofing leaves the real return address on the stack. Four of its six build targets didn’t compile. ThreatMon’s malware analysis team went through the source, configuration and deployment files. This post covers what ASTRO can do, where it falls short, and what defenders can actually hunt for.
The framework is split the way you’d expect from a team that has seen other C2 projects. A shared protocol crate defines commands and message types. The agent handles execution on the host, and the server manages sessions, tasking and reporting. The operator component provides a CLI and a WebUI. A separate tools/ directory holds a packer, a stub generator, a stager, a loader and a relay.
ASTRO operational workflow from build to operator control
ASTRO has no built-in initial access. How the agent reaches a machine is up to the operator, whether through phishing, an exploited service or stolen credentials. Once the agent runs, it opens an encrypted session to the server, picks up tasks, executes them and sends results back.
The release profile strips symbols, optimizes for size and enables link-time optimization. That’s normal for anyone who wants smaller binaries, and it doesn’t make the agent harder to detect by itself.
This is where ASTRO earns attention. The CommandType enum runs past 1,050 lines and reads like a post-exploitation checklist:
On Linux and macOS, the agent’s options are narrower. It runs commands through fork/execve with direct syscalls but has no real in-process injection. The macOS LaunchAgent persistence is marked as incomplete in the audit.
One detail stands out for network defenders. ASTRO doesn’t have to beacon on a fixed timer. Its schedule enum has four modes: continuous with jitter, business hours only, trigger-only (silent until a DNS TXT or ICMP signal arrives), and a “human pattern” mode that alternates between short active bursts and long idle stretches.
BeaconSchedule enum showing the four timing modes
If your hunting logic relies on spotting regular intervals, a host running in BusinessHours mode will look a lot like an employee’s laptop.
The analysis gets more interesting here, because ASTRO’s own security audits are surprisingly candid.
Sleep masking offers three modes on paper: Ekko, HeapFull and StackSafe. In practice the protected-region list is empty and the runtime path is never called. Configuration and payload data stay readable in memory while the agent sleeps. For a responder with a memory image, that’s good news.
Stack spoofing in moonwalkpp.rs uses a call instruction that leaves the agent’s real return address on the stack. The concealment it was meant to provide doesn’t hold.
Syscalls are issued directly from the agent’s own .text section. An alternative “hookchain” backend exists, but nothing on the active path uses it. Syscalls that don’t originate from ntdll are a well-known detection signal.
ETW and AMSI patching writes short, familiar stubs (B8 00 00 00 00 C3 and 31 C0 C3) over EtwEventWrite and AmsiScanBuffer. The bytes are obfuscated on disk but plain in memory once applied. These are patterns plenty of tools use, so they’re useful context but not an ASTRO-specific signature.
None of this makes ASTRO harmless. If an operator gets the agent running, LSASS still gets dumped and tickets still get forged. Weak stealth gives defenders more chances to catch it. It doesn’t reduce what the agent can do.
ASTRO includes BYOVD support for RTCore64.sys (MSI Afterburner) and gdrv.sys (Gigabyte). Kernel reads are always available. Kernel writes are gated behind an environment variable, ASTRO_ALLOW_KERNEL_WRITES=1. The intended operations include removing EDR callbacks, modifying code integrity, hiding processes through kernel list manipulation and interfering with the Threat Intelligence ETW provider.
The catch is hardcoded structure offsets. These differ across Windows builds, so the same operation that works on one machine can blue-screen another. Either way, a driver being installed as a service and then accessed shortly after is something you should be alerting on regardless of which framework is behind it.
ASTRO is a good example of how C2 development is shifting. Rust, modular crates, malleable profiles and Kubernetes-ready deployment used to be features of commercial red team platforms. They now show up in projects like this one. Whoever is behind it seems to read the same research defenders do and is aiming for the coverage of a commercial framework, even if the stealth layer isn’t there yet.
We don’t expect the bugs to last. Sleep masking and stack spoofing are fixable, and the build failures are module declaration issues, not design flaws. The window where ASTRO is this easy to see in memory is probably short.
ThreatMon’s malware analysis team follows emerging frameworks like ASTRO alongside the platform’s infrastructure and underground forum monitoring. When a new C2 surfaces, customers get the hunting artifacts and detection guidance early, while the tool is still finding its users. If you want to check whether any of the indicators above appear in your environment, or keep tabs on how ASTRO develops, talk to our team.