Malicious code in stellar-api-core (npm)
The npm package stellar-api-core version 1.0.5 contains malicious code that grants persistent admin access to a hardcoded Discord user ID. This backdoor allows the attacker to retrieve sensitive Nakama user tokens from the bot's admin panel. Additionally, the package silently sends permanent invite links for every Discord guild the bot joins to hardcoded Discord webhook URLs, enabling the attacker to join those guilds and further extract user tokens.
AI Analysis
Technical Summary
The malicious code in stellar-api-core (npm package version 1.0.5) unconditionally appends a hardcoded Discord user ID (1489655840662093854) to the adminIds list, granting that user persistent admin privileges on all deployments of the bot. The bot's admin panel handler returns Nakama access and refresh tokens as a Discord attachment, allowing the attacker to exfiltrate user credentials. Furthermore, two hardcoded Discord webhook URLs receive permanent invite links for every guild the bot is in or joins, along with notifications on user token events (add, refresh, delete). This functionality enables the attacker to join those guilds and extract user tokens via the admin panel.
Potential Impact
The attacker gains persistent administrative access to all deployments of the bot using the compromised package, enabling unauthorized access to sensitive user credentials (Nakama tokens). The silent exfiltration of Discord guild invite links allows the attacker to infiltrate those guilds and potentially compromise additional users. This results in a significant breach of confidentiality and trust for users and administrators relying on the affected package.
Mitigation Recommendations
No official patch or remediation guidance is currently available. Users should immediately stop using stellar-api-core version 1.0.5 and remove it from their environments. Investigate any deployments using this version for signs of compromise, especially unauthorized Discord admin access or suspicious webhook activity. Monitor for updates from the package maintainers or trusted security advisories for any forthcoming fixes or official guidance.
Malicious code in stellar-api-core (npm)
Description
The npm package stellar-api-core version 1.0.5 contains malicious code that grants persistent admin access to a hardcoded Discord user ID. This backdoor allows the attacker to retrieve sensitive Nakama user tokens from the bot's admin panel. Additionally, the package silently sends permanent invite links for every Discord guild the bot joins to hardcoded Discord webhook URLs, enabling the attacker to join those guilds and further extract user tokens.
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 malicious code in stellar-api-core (npm package version 1.0.5) unconditionally appends a hardcoded Discord user ID (1489655840662093854) to the adminIds list, granting that user persistent admin privileges on all deployments of the bot. The bot's admin panel handler returns Nakama access and refresh tokens as a Discord attachment, allowing the attacker to exfiltrate user credentials. Furthermore, two hardcoded Discord webhook URLs receive permanent invite links for every guild the bot is in or joins, along with notifications on user token events (add, refresh, delete). This functionality enables the attacker to join those guilds and extract user tokens via the admin panel.
Potential Impact
The attacker gains persistent administrative access to all deployments of the bot using the compromised package, enabling unauthorized access to sensitive user credentials (Nakama tokens). The silent exfiltration of Discord guild invite links allows the attacker to infiltrate those guilds and potentially compromise additional users. This results in a significant breach of confidentiality and trust for users and administrators relying on the affected package.
Mitigation Recommendations
No official patch or remediation guidance is currently available. Users should immediately stop using stellar-api-core version 1.0.5 and remove it from their environments. Investigate any deployments using this version for signs of compromise, especially unauthorized Discord admin access or suspicious webhook activity. Monitor for updates from the package maintainers or trusted security advisories for any forthcoming fixes or official guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13352
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a73851fbf8831d5394ef889
Added to database: 08/05/2026, 18:46:55 UTC
Last enriched: 08/05/2026, 23:16:31 UTC
Last updated: 09/07/2026, 22:28:35 UTC
Views: 17
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.