Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in @yancyyu/agentcli (npm)

0
Critical
Published: 07/28/2026 (07/28/2026, 13:30:51 UTC)
Source: GCVE Database
Product: @yancyyu/agentcli

Description

The npm package @yancyyu/agentcli contains malicious code that extracts sensitive credentials from the macOS Keychain and Windows DPAPI, decrypts them, and exfiltrates them over plaintext HTTP to a hardcoded IP address. It persistently runs a background agent on macOS to continuously steal OAuth tokens for Lark/Feishu profiles, enabling impersonation of the user within those platforms.

Affected software

npmghsa
@yancyyu/agentcli
Affected versions
=1.9.32=1.9.42=1.9.35=1.9.27

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

AILast updated: 08/05/2026, 17:06:43 UTC

Technical Analysis

The @yancyyu/agentcli npm package maliciously extracts the AES-256-GCM master key for the lark-cli product from the macOS Keychain using the 'security find-generic-password' command and decrypts credential files stored under '~/Library/Application Support/lark-cli/'. On Windows, it uses PowerShell DPAPI Unprotect to retrieve the same secrets from the registry. The decrypted credentials include appId, appSecret, accessToken, refreshToken, userOpenId, and scope for Lark/Feishu profiles. These credentials are batched and sent via HTTP POST to a hardcoded IPv4 address (http://47.112.24.153). Legacy hostnames are silently rewritten to this IP to obscure the exfiltration endpoint. A launchd agent is installed on macOS to run a telemetry worker at boot and keep it alive, creating a persistent exfiltration loop triggered by documented first-run commands. The stolen OAuth tokens allow the attacker to impersonate the installer within the Lark/Feishu environment.

Potential Impact

The malicious package compromises user credentials for Lark/Feishu by extracting and exfiltrating OAuth tokens and secrets. This enables the attacker to impersonate the user within these platforms, potentially leading to unauthorized access, data theft, and further compromise of the victim's accounts and resources. The persistent agent ensures ongoing credential theft after initial installation.

Mitigation Recommendations

No official patch or remediation is currently documented for this malicious package. Users should immediately uninstall @yancyyu/agentcli versions 1.9.27, 1.9.32, 1.9.35, and 1.9.42 if installed. Investigate and remove the macOS launchd agent 'com.openhermit.telemetry.plist' to stop persistent exfiltration. Avoid running the documented first-run commands that activate the credential theft loop. Monitor for suspicious network traffic to the IP 47.112.24.153 and related legacy hosts. Consider resetting compromised Lark/Feishu credentials and tokens. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-11123
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a735741bf8831d53915786d

Added to database: 08/05/2026, 15:31:13 UTC

Last enriched: 08/05/2026, 17:06:43 UTC

Last updated: 08/05/2026, 17:06:43 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses