Tuesday, 02 January 2024 12:17 GMT

Laravel-Lang Breach Exposes Composer Supply Chain Risks Arabian Post


(MENAFN- The Arabian Post) clearfix">Hackers have compromised the Laravel-Lang open-source ecosystem, turning trusted PHP localisation packages into a vehicle for credential theft and remote code execution across developer machines and build systems.

The attack, detected on May 22, targeted packages used by Laravel applications to manage translations, attributes and HTTP status messages. Security teams tracking the incident identified malicious activity across laravel-lang/lang, laravel-lang/http-statuses, laravel-lang/attributes and laravel-lang/actions, with more than 700 historical package versions or tags affected across the wider organisation. Earlier confirmed findings covered 233 poisoned versions across three repositories, before additional tag activity widened the scope.

The compromise did not rely on inserting malware directly into the main source code of the official repositories. Instead, the attacker abused GitHub's tag mechanism, redirecting trusted version tags towards malicious commits from a controlled fork. That tactic made older versions appear legitimate to developers installing packages through Composer, the dependency manager widely used in PHP projects.

The most serious element of the attack was the use of Composer's autoload feature. A malicious file named src/helpers. php was added through the autoload. files configuration, meaning the code could run automatically when an application loaded Composer's vendor/autoload. php file. Laravel, Symfony and many PHP tools routinely invoke this file during normal execution, raising the risk that the payload could activate without any direct call to the compromised package.

The payload was designed as a cross-platform credential stealer. Once executed, it fingerprinted the host, contacted the command-and-control domain flipboxstudio. info, downloaded a larger PHP payload and attempted to harvest sensitive material from developer workstations, cloud environments and continuous integration systems. The malware targeted environment files, AWS keys, Google Cloud credentials, Azure tokens, Kubernetes configuration files, Docker credentials, Vault tokens, SSH private keys, Git credentials, Composer authentication files and shell histories.

See also n8n flaws widen automation security risk

The attack also sought data from browsers, password managers and cryptocurrency wallets, underscoring how modern supply chain compromises are no longer limited to stealing project-specific secrets. Systems running Windows, Linux and macOS were all within the malware's reach. On Windows, the payload used a script launcher to execute silently, while on Unix-like systems it attempted background execution through PHP and system commands.

Laravel-Lang is not part of the official Laravel framework, but its packages are widely used by developers building multilingual applications. That distinction is important for limiting confusion, though it does not reduce the operational risk for teams that installed poisoned versions. The laravel-lang/lang repository alone has thousands of stars and is a familiar dependency in PHP localisation workflows.

The chronology points to a coordinated release-process compromise rather than an isolated malicious update. Tag changes appeared in rapid succession late on May 22 and into May 23 UTC, with some repositories showing many historical tags recreated within tight windows. The pattern suggests automation and indicates that the attacker may have obtained credentials or token access capable of pushing tags across several repositories in the organisation.

Package repositories and maintainers moved to contain the exposure by unlisting or blocking malicious versions and alerting affected users. Developers have been urged to avoid relying only on version numbers, because rewritten tags can make a known version point to different code. Teams using Laravel-Lang packages are being advised to verify commit hashes from before May 22, inspect lockfiles, audit build logs and search for outbound traffic to the known command-and-control domain.

See also Formbook phishing turns stealth into scale

The incident highlights a growing weakness in open-source dependency management: trust often extends not only to code repositories, but also to metadata, tags and automated release pipelines. Attackers increasingly target the machinery that publishes and resolves packages rather than the package code visible on a project's main branch. That can defeat casual review and leave developers exposed even when they believe they are installing a long-established version.

MENAFN24052026000152002308ID1111161935



The Arabian Post

Legal Disclaimer:
MENAFN provides the information “as is” without warranty of any kind. We do not accept any responsibility or liability for the accuracy, content, images, videos, licenses, completeness, legality, or reliability of the information contained in this article. If you have any complaints or copyright issues related to this article, kindly contact the provider above.

Search