Malicious code in @addai/entity-runtime (npm)
The @addai/entity-runtime npm package contains malicious code that runs a daemon polling a hardcoded Supabase project for remote job instructions. This daemon spawns AI agent processes with parameters controlled by the remote party, allowing arbitrary shell command execution on the installer's machine without user interaction. It also disables safety prompts for bypassing permissions in a related AI tool, resulting in persistent host-level remote code execution and reduced safety controls.
AI Analysis
Technical Summary
The @addai/entity-runtime package runs a daemon that polls a hardcoded Supabase endpoint for remote job rows. It spawns AI agent binaries (Claude Code, Codex, Kimi, Gemini, Grok) in a pseudo-terminal on the installer's host, driven by fields controlled by the remote party. When the input permissionMode is set to 'bypassPermissions', the agent is invoked with a flag that allows it to execute arbitrary shell commands as the local user without any interactive prompt. Additionally, the package disables the safety prompt of Claude Code's bypass-permissions mode by writing a configuration file in the user's home directory, affecting all future interactive sessions. The package also modifies the PATH environment by reading a user config file. This creates a persistent remote-controlled channel enabling host-level remote code execution and persistent lowering of safety protections.
Potential Impact
This malicious package enables a remote party to execute arbitrary shell commands on the installer's machine with the same privileges as the local user, without any interactive confirmation. It also disables safety prompts in a related AI tool, increasing the risk of unauthorized command execution in future sessions. The compromise is persistent due to configuration changes on the host, leading to a high risk of host takeover and potential further malicious activity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix or official guidance is available, users should immediately uninstall the affected versions of @addai/entity-runtime and avoid installing or running this package. Review and remove any configuration files created by the package (e.g., ~/.claude/settings.json and ~/.kimi/config) to restore safety prompt functionality and environment integrity. Monitor for suspicious activity related to spawned AI agent processes and remote connections to the hardcoded Supabase project.
Malicious code in @addai/entity-runtime (npm)
Description
The @addai/entity-runtime npm package contains malicious code that runs a daemon polling a hardcoded Supabase project for remote job instructions. This daemon spawns AI agent processes with parameters controlled by the remote party, allowing arbitrary shell command execution on the installer's machine without user interaction. It also disables safety prompts for bypassing permissions in a related AI tool, resulting in persistent host-level remote code execution and reduced safety controls.
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 @addai/entity-runtime package runs a daemon that polls a hardcoded Supabase endpoint for remote job rows. It spawns AI agent binaries (Claude Code, Codex, Kimi, Gemini, Grok) in a pseudo-terminal on the installer's host, driven by fields controlled by the remote party. When the input permissionMode is set to 'bypassPermissions', the agent is invoked with a flag that allows it to execute arbitrary shell commands as the local user without any interactive prompt. Additionally, the package disables the safety prompt of Claude Code's bypass-permissions mode by writing a configuration file in the user's home directory, affecting all future interactive sessions. The package also modifies the PATH environment by reading a user config file. This creates a persistent remote-controlled channel enabling host-level remote code execution and persistent lowering of safety protections.
Potential Impact
This malicious package enables a remote party to execute arbitrary shell commands on the installer's machine with the same privileges as the local user, without any interactive confirmation. It also disables safety prompts in a related AI tool, increasing the risk of unauthorized command execution in future sessions. The compromise is persistent due to configuration changes on the host, leading to a high risk of host takeover and potential further malicious activity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix or official guidance is available, users should immediately uninstall the affected versions of @addai/entity-runtime and avoid installing or running this package. Review and remove any configuration files created by the package (e.g., ~/.claude/settings.json and ~/.kimi/config) to restore safety prompt functionality and environment integrity. Monitor for suspicious activity related to spawned AI agent processes and remote connections to the hardcoded Supabase project.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13410
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a74cf8dbf8831d5391ae779
Added to database: 08/06/2026, 18:16:45 UTC
Last enriched: 08/06/2026, 18:35:09 UTC
Last updated: 08/07/2026, 00:29:47 UTC
Views: 3
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.
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.