proc-macro1
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Ces versions ajoutent une dépendance typosquattée (proc-macro1, imitant le légitime proc-macro2). Le script de build build.rs de proc-macro1 exécute la charge malveillante au moment de la compilation.
Techniques & procedures
21 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
1 technique
Reconnaissance
the attacker subtly modified the package manifests to import an external, typosquatted dependency named proc-macro1.
Initial Access
4 techniques
Initial Access
Hackers compromised the maintainer account for the widely used Rust crate arrayref to introduce malware that executed on developers’ systems during compilation... Within a 23-minute window, the attacker also poisoned two other crates, append-only-vec and internment, in the same supply-chain attack.
Version 0.3.10 kept the macro source byte for byte and added a single line to the manifest: [dependencies] proc-macro1 = "1.0.107"
This rogue package took advantage of the automated build process in the Rust package manager, cargo, downloading and executing an unauthorized payload in the background... because build scripts run during compilation, building an affected project was sufficient to execute the payload.
A separate account, dtolney, published proc-macro1. The username closely resembles David Tolnay’s real dtolnay account.
Execution
6 techniques
Execution
Cargo compiles and runs build scripts automatically during compilation, so resolving the dependency was enough.
Écrit le payload dans /tmp/rust-setup (Unix) ou %TEMP%\rust-setup.ps1 (Windows) Exécute le payload en lui passant l’adresse C2 comme argument
Télécharge un payload spécifique à la plateforme... Écrit le payload dans /tmp/rust-setup (Unix)... Exécute le payload en lui passant l’adresse C2 comme argument
On Windows it writes a PowerShell script and a VBScript launcher under %TEMP% and starts them hidden... let child = Command::new("wscript.exe")
A script within proc-macro1, named "build.rs," executed during compilation...
В пакете proc-macro1 обнаружен код, выполняющий загрузку и запуск вредоносного бинарного файла и открывающий обратную оболочку. В Unix-системах файл сохранялся как /tmp/rust-setup, а в Windows — %TEMP%\rust-setup.ps1 или %TEMP%\rust-setup-launch.vbs.
Stealth
3 techniques
Stealth
Reconstruit une URL C2 depuis des fragments Base64
proc-macro1 is a typosquat of proc-macro2, a crate with more than 154 million downloads, and the malicious logic lives in its build.rs.
The launcher runs hidden and does not wait for the process. The source comment states that routing through WScript is what escapes Cargo’s job object, so PowerShell keeps running after the build finishes.
Defense Impairment
2 techniques
Defense Impairment
Désactive la validation TLS via un vérificateur AcceptAll personnalisé
The loader: ... Disables TLS certificate verification.
Credential Access
1 technique
Credential Access
The payload was designed to exfiltrate host information and credentials from browsers like Google Chrome, Brave, and Edge.
Discovery
2 techniques
Discovery
The payload was designed to exfiltrate host information and credentials from browsers like Google Chrome, Brave, and Edge.
The build script picks the binary to fetch by operating system and architecture. It supports four targets and aborts the build on anything else.
Command and Control
1 technique
Command and Control
The script rebuilds a payload URL from Base64 fragments, resolving to https://23.254.165[.]112:9089/.
Exfiltration
1 technique
Exfiltration
The payload was designed to exfiltrate host information and credentials from browsers like Google Chrome, Brave, and Edge.
Observables
13 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.