Malicious code in tn-advertisement (npm)
Description
The npm package 'tn-advertisement' version 5.0.0 contains malicious code that performs an unconditional outbound HTTP request to a unique subdomain of oastify.com upon being required. This behavior reveals the installer's public IP and DNS resolver to an external party, indicating code execution on the installer's machine. The package lacks legitimate functionality and is consistent with reconnaissance payloads used in dependency confusion supply-chain attacks. Installing or running this package likely results in full compromise of the affected system.
Affected software
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
Technical Analysis
The 'tn-advertisement' npm package (version 5.0.0) contains malicious code embedded in its main entry file (postinstall.js). Upon requiring the package, it performs an unconditional HTTP GET request to a unique subdomain of oastify.com, a Burp Suite Collaborator out-of-band testing infrastructure. This outbound beacon discloses the installer's public IP address and DNS resolver information to the attacker controlling the subdomain, confirming code execution on the victim's machine. The package has no advertised legitimate functionality and is consistent with dependency-confusion reconnaissance payloads used to verify successful supply-chain compromise before further exploitation. The presence of this package on a system should be treated as a full compromise.
Potential Impact
Any system that has installed or is running the 'tn-advertisement' package version 5.0.0 should be considered fully compromised. The malicious code allows an external attacker to confirm code execution on the victim machine and potentially gain full control. All secrets and keys stored on the compromised system are at risk and should be rotated immediately from a secure, unaffected environment. Removing the package alone does not guarantee removal of all malicious artifacts or backdoors introduced by the attacker.
Mitigation Recommendations
Immediate removal of the 'tn-advertisement' package version 5.0.0 is recommended. However, due to the high likelihood of full system compromise, all secrets and credentials stored on the affected machine should be rotated from a different, trusted device. Conduct a thorough investigation and remediation of the affected system, including checking for persistence mechanisms and other malware. No official patch or fix is available for this malicious package; remediation relies on removal and incident response.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5838
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-j2c8-6hx3-7994"]
- Ecosystems
- ["npm"]
Threat ID: 6a870a73acd9273b49b58a80
Added to database: 08/20/2026, 14:08:51 UTC
Last enriched: 09/11/2026, 00:02:08 UTC
Last updated: 10/03/2026, 13:17:40 UTC
Views: 51
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.