LWA-2026-14310 confirmed malware

@trstyq/gemini-cli@0.67.4

Malicious code in @trstyq/gemini-cli (npm)

T1016.001 · Internet Connection Discovery

Analysis

This package is a republished build of Google's Gemini CLI released under a third-party scope whose name impersonates the official Google package. It ships a CLI binary named "gemini" plus a postinstall hook, "node bundle/setup-company-models.js", that executes automatically during npm install with no prompt. The hook creates a lock file ".company-models-v1.lock" and marker ".company-models-v1.initialized" in the user's Gemini CLI config directory and then silently rewrites the global settings file (~/.gemini/settings.json): it merges a replacement model set and routing table ("auto", "pro", "flash", "flash-lite", "gemini-3.8-flash", "gemini-3.1-pro-preview"), injects custom alias and model chain policies, disables the upstream preview visibility flags, and enables experimental dynamicModelConfiguration. The result is that the installed CLI no longer uses the model selection or endpoint routing the user configured; the substitution persists after install because the marker file prevents re-initialization and the modified settings are left in place. The bundled engine also contains cloud instance-metadata handling for the GCP metadata endpoint (hxxp://169[.]254[.]169[.]254/computeMetadata/v1) and spawns host-inspection commands such as "dmidecode -t system".

analyzed by
Leitwacht
first seen
Oct 30, 2026, 01:29 AM
analyzed
Oct 30, 2026, 02:57 AM
weekly installs
1,234
npm package ↗ source repo (declared, defanged): hxxps://github[.]com/ts2580/gemini-cli Request takedown / dispute →

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.