Malicious Packagist Packages Masquerading as Laravel Utilities Deploy PHP RAT
Supply Chain Risk · 3 sources · Updated 5mo ago · First seen Mar 4, 2026

Security researchers reported a PHP supply-chain compromise on Packagist in which packages published by the actor nhattuanbl embedded a remote access trojan (RAT) while masquerading as legitimate Laravel utility libraries. The RAT payload was identified in src/helper.php within nhattuanbl/lara-helper and nhattuanbl/simple-queue, while nhattuanbl/lara-swagger acted as a “clean” loader by declaring nhattuanbl/lara-helper as a hard Composer dependency, causing the malicious code to be pulled in during installation.
Once installed, the malware initiates outbound connectivity to the command-and-control endpoint helper[.]leuleu[.]net:2096, sends host profiling/reconnaissance data, and then awaits operator commands, enabling full remote control of the affected host. Reporting indicates the actor used reputation seeding by publishing additional clean packages under the same long-standing Packagist account (created in 2015) during a June–December 2024 publishing window, before releasing the RAT-bearing packages; researchers submitted takedown requests, but the packages were still available at the time of publication. Impacted Laravel/PHP applications may expose sensitive secrets available to the running process (e.g., .env environment variables, database credentials, and API keys).


