Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

@logdna-web/stylesnpm

@logdna-web/styles is a confirmed malicious npm package (MAL-2026-10226) that steals credentials and exfiltrates sensitive data (malicious version 0.8.40). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @logdna-web/styles (npm)

MAL-2026-10226
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @logdna-web/styles

What this malware does

The @logdna-web/styles package was published to the npm registry by user 'click2ai' (maintainer email [email protected]) as part of a dependency-confusion / reconnaissance campaign. The package name mimics the internal/private package naming convention of a target organization (the @logdna-web scope (LogDNA/Mezmo-style naming)) so that a misconfigured resolver installs this public lookalike instead of the intended private dependency.

The package declares a preinstall hook ("npm install @sentry/node && node examples/verify.js") that executes automatically at npm install time, before any application code runs. The bundled examples/verify.js initializes the @sentry/node client against a hardcoded, attacker-controlled Sentry DSN with sendDefaultPii enabled, resolves the installing host's public egress IP address by requesting Cloudflare's /cdn-cgi/trace endpoint (using a spoofed desktop-browser User-Agent to bypass bot challenges), then deliberately triggers a runtime exception and captures it. Flushing the event beacons the collected host telemetry (public IP plus Sentry default PII such as hostname, OS username and runtime/environment metadata) to the attacker's Sentry ingest endpoint at o4510485815754752.ingest.us.sentry.io.

Each impersonated namespace in the campaign beacons to a distinct Sentry project ID, letting the operator attribute successful installs to specific victim organizations — behaviour consistent with a dependency-confusion reconnaissance beacon rather than legitimate error monitoring. The install-time payload is byte-for-byte identical across all packages published by this account, differing only in the package name and the target DSN. This package's beacon targets Sentry project 4511632708141056.

Package is published under a scope that impersonates the legitimate @logdna / LogDNA brand and is named 'styles', but its actual purpose is error reporting via Sentry. package.json declares scripts.preinstall = 'npm install @sentry/node && node examples/verify.js'. The preinstall script (examples/verify.js) fetches the installer machine's public IP from Cloudflare's /cdn-cgi/trace endpoint, then deliberately triggers an exception which @sentry/node — initialized with a hardcoded DSN at o4510485815754752.ingest.us.sentry.io (project 4511632708141056) belonging to the package author — captures and uploads, sending the installer's egress IP and event metadata to the author's Sentry project at npm install time without disclosure or opt-out. Separately, src/index.js exports an init() that falls back to the same hardcoded DEFAULT_DSN whenever the caller does not pass options.dsn and SENTRY_DSN is unset, and forces sendDefaultPii:true, so any consumer who calls init() without explicit configuration silently routes their captured errors, user context, and IPs to the author's Sentry project rather than their own. The scope/name mismatch with the advertised 'styles' purpose, combined with install-time IP exfiltration and a silent-relay default in the public API, is consistent with opportunistic targeting of developers searching for LogDNA packages.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Malicious versions

1 flagged
0.8.40

Indicators of compromise (SHA-256)

578fbb4ba04912bad5d72e105ec24a7d02ad2ae610058ba2f866955e13df40e3
8b4b91f17d77d1d1b576161c6f5fd8d6ef6d9a1f288f37cb72f3e06c98e690f5

Detection & response playbook

Credential / info stealer
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for @logdna-web/styles (version 0.8.40). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging @logdna-web/styles across your stack and pipelines.

  2. If you installed it — respond

    @logdna-web/styles is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If @logdna-web/styles was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks @logdna-web/styles before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. @logdna-web/styles on npm has been identified as a malicious package (version 0.8.40 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-009869GHSA-qcrg-93h5-r265

References

Credits

  • Amazon Inspector · finder
  • SafeDep · finder

Detect & block this

O3 blocks @logdna-web/styles-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

@logdna-web/styles (npm) malicious package — MAL-2026-10226 | O3 Security