Skip to content

MAL-2026-10723 Malicious code in @yeaft/webchat-agent (npm)

Unknown
Published
Updated
Exploit status
No public exploit known

Description


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (b627f9a4ff0aaacfcd612224f76fe679e9d0a04578519d75516136e7496aad43)

The package installs itself as a user-level service (systemd on Linux via service/linux.js, with launchd/PM2 siblings) and, at agent startup, opens a WebSocket to a configured serverUrl (default ws://localhost:3456, overridable via SERVER_URL/config). The WebSocket message router in connection/message-router.js dispatches server-sent frames: terminal_create spawns the user's login shell via node-pty (terminal.js: pty.spawn(shell,...)) in the agent's workDir, and terminal_input writes the server's msg.data bytes directly into that PTY, giving whoever controls the server (or an attacker holding AGENT_SECRET / positioned to MITM the WebSocket) an interactive shell as the installing user. An upgrade_agent message handled by connection/upgrade.js runs npm install @yeaft/webchat-agent@latest --registry=https://pkg.yeaft.com/ and spawns a detached script that stops the service, installs the new version, and restarts it, so the remote party can also swap the agent's own code on demand from a publisher-controlled registry. On every startup, index.js additionally git-clones https://github.com/yeaft/yeaft-skills.git from the mutable main branch into ~/.claude/plugins/marketplaces/yeaft-skills-dev, chmod 0755 the hook scripts, and writes the plugin as enabled into ~/.claude/settings.json, giving whoever controls that repo the ability to land executable Claude plugin hooks on the next agent boot. The service/linux.js unit also prepends ~/.local/bin and ~/.npm-global/bin to PATH in the service environment. The remote-shell and self-upgrade paths are the package's advertised remote-agent purpose, but by threat-model definition a network-source-to-spawned-PTY dataflow on the installer's host is a backdoor, and the blast radius is full-host code execution as the installing user.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
yeaft @yeaft/webchat-agent(npm) = 1.0.171; = 1.0.172; = 1.0.173; = 1.0.175 +143 more No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
yeaft @yeaft/webchat-agent(npm) = 1.0.171 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.199 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.325 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.376 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.189 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.283 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.252 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.238 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.243 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.282 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.216 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.184 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.352 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.329 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.361 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.281 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.217 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.188 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.312 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.350 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.253 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.355 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.300 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.206 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.257 No fix listed
Show 122 more
ProductAffected versionsFixed in
yeaft @yeaft/webchat-agent(npm) = 1.0.226 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.337 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.309 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.273 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.311 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.269 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.289 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.258 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.222 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.374 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.224 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.351 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.336 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.335 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.242 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.307 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.172 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.228 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.219 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.321 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.249 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.211 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.371 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.368 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.244 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.262 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.344 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.180 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.237 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.334 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.323 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.250 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.315 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.298 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.354 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.227 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.332 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.274 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.182 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.378 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.245 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.369 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.192 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.194 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.220 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.338 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.296 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.232 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.367 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.202 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.310 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.324 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.341 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.308 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.255 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.364 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.198 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.204 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.247 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.277 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.290 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.203 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.263 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.201 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.254 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.288 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.278 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.349 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.183 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.235 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.175 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.260 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.365 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.285 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.239 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.295 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.353 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.331 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.193 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.384 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.185 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.342 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.240 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.304 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.246 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.287 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.292 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.173 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.264 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.359 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.195 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.316 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.377 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.234 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.267 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.210 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.270 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.314 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.363 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.181 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.221 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.293 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.233 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.214 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.373 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.333 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.200 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.356 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.190 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.207 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.284 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.317 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.294 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.272 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.186 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.271 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.348 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.191 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.357 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.213 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.347 No fix listed
yeaft @yeaft/webchat-agent(npm) = 1.0.265 No fix listed

References