Malicious code in @yancyyu/agentcli (npm)
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.
AI Analysis
Technical Summary
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.
Malicious code in @yancyyu/agentcli (npm)
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
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 @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.
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 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.