@immobiliarelabs/backstage-plugin-ldap-authnpm
Advisory published Updated
@immobiliarelabs/backstage-plugin-ldap-auth is a confirmed malicious npm package (MAL-2026-6528) that executes malicious code on install (malicious versions 1.1.4, 2.0.5, 3.0.2…). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @immobiliarelabs/backstage-plugin-ldap-auth (npm)
What this malware does
The package ships a binding.gyp at the tarball root that contains GYP command-expansion syntax (<!(...) / <!@(...)) in its sources/targets configuration (binding.gyp line 6). npm implicitly invokes node-gyp rebuild whenever a binding.gyp is present — even with no declared install/postinstall script — and node-gyp evaluates <!(...) as a shell command during the configure step. This causes attacker-controlled shell to execute on the installer's machine on a default npm install, equivalent to a postinstall lifecycle hook. The package presents itself as an LDAP auth plugin for Backstage, a pure-JavaScript role for which a native addon (and thus a binding.gyp performing shell expansion) is not warranted. The traced content additionally tripped the model safety filter on output, corroborating the malicious shape of the embedded command. Installer impact: arbitrary code execution under the user running npm install, before any application code is invoked.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for @immobiliarelabs/backstage-plugin-ldap-auth (5 malicious versions).
If you installed it — respond
Remove @immobiliarelabs/backstage-plugin-ldap-auth from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If @immobiliarelabs/backstage-plugin-ldap-auth was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks @immobiliarelabs/backstage-plugin-ldap-auth-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.