Skip to main content

Malicious code in spf-analytics (npm)

0
Critical
Published: 08/25/2026 (08/25/2026, 08:30:04 UTC)
Source: GCVE Database
Product: spf-analytics

Description

The spf-analytics npm package version 1.0.0 contains malicious obfuscated code that harvests sensitive customer information from Shopify-style storefronts. It collects personally identifiable information (PII) including name, phone, email, address, cart details, and payment method, encrypts the data, and sends it to a hardcoded third-party endpoint without the storefront operator's knowledge or consent. The malicious behavior is concealed through code obfuscation and indirect references, making detection difficult.

Affected software

npmghsa
spf-analytics
Affected versions
=1.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/10/2026, 18:48:55 UTC

Technical Analysis

The spf-analytics package (version 1.0.0) includes a heavily obfuscated browser script designed to listen for a specific window event ('gokwik_events') and harvest extensive customer PII such as name, phone, email, full address, city, state, country, postal code, cart line items, order total, and payment method. This data is encrypted using a hardcoded RSA-OAEP public key wrapping an AES-GCM session key and exfiltrated via POST requests to https://connector.internalwebhooks.com/spf-analytics, a non-first-party endpoint unknown to the storefront operator. The script uses localStorage to cache fingerprints to avoid duplicate data uploads and employs obfuscation techniques to hide the endpoint URL, encryption keys, event names, and captured fields, preventing casual inspection and detection. The package masquerades as an analytics tool but functions as a data exfiltration backdoor.

Potential Impact

Sensitive customer data including PII and payment information is stolen and transmitted to an unauthorized external server. This compromises customer privacy and can lead to identity theft, fraud, and regulatory violations for the affected storefront operators. The malicious code operates covertly, making detection and mitigation challenging without thorough code review or behavioral monitoring.

Mitigation Recommendations

No official patch or remediation is currently documented. Operators using spf-analytics version 1.0.0 should immediately remove this package from their storefronts and audit their environments for signs of data exfiltration. Avoid using this package or any untrusted third-party scripts from unverified sources. Monitor network traffic for suspicious POST requests to unknown endpoints. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-14486
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a8d9ae7acd9273b493e1741

Added to database: 08/25/2026, 13:38:47 UTC

Last enriched: 09/10/2026, 18:48:55 UTC

Last updated: 10/03/2026, 22:18:45 UTC

Views: 60

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses