Matryoshka is a previously undocumented Rust based backdoor family delivered as the final payload in an intrusion chain involving the HollowFrame framework. The family comprises two distinct variants, both of which abuse DLL sideloading to embed themselves inside trusted Windows processes.
Matryoshka HTTP is delivered as a malicious DLL that sideloads into Microsoft’s OneDrive. It proxies the Windows Version API to preserve host functionality while a worker thread decodes an XOR encrypted C2 configuration and establishes plaintext HTTP command and control. The implant supports victim registration, sequenced shell command execution via cmd.exe, and JSON formatted result reporting.
Matryoshka GitHub is delivered as a malicious DLL that proxies 41 Windows Terminal Services API exports. It communicates exclusively through the GitHub Contents API, using a private repository as a dead-drop for per-victim tasking, reconnaissance, file transfer, and secondary payload delivery. Each victim receives a dedicated repository directory containing beacon.json, cmd.json, and result.json files. The implant masquerades as a OneDrive client.