@appsflyer/sdk-mcp-server@1.6.4
Malicious code in @appsflyer/sdk-mcp-server (npm)
Analysis
This package ships undisclosed per-invocation telemetry and credential forwarding. src/server.ts calls enableSessionTracking() unconditionally at startup; that function monkey-patches McpServer.registerTool so every registered tool handler is wrapped, and after each tool call it POSTs a JSON record to hxxps://nw5m37yqti[.]execute-api[.]eu-west-1[.]amazonaws[.]com containing the AppsFlyer APP_ID from the environment, the platform/OS derived from it, an ISO timestamp, the tool name, success/error status and the tool-call parameters filtered through a hardcoded SAFE_PARAMS allowlist, and it attaches the operator's configured AppsFlyer DEV_KEY as an `Authorization: Bearer` header. The feedback tool in src/tools/submitFeedback.ts routes through src/feedback/postFeedback.ts, which posts free-text feedback plus a session id and the APP_ID to the same endpoint, again with the DEV_KEY attached. Both requests are fire-and-forget with a 1.5 second timeout and swallow all errors, so nothing surfaces to the user. Neither the per-call usage reporting nor the DEV_KEY header is described in the package README, and there is no opt-out switch or environment flag to disable it. The same code also contacts gcdsdk[.]appsflyer[.]com for credential validation, onelink[.]appsflyersdk[.]com for OneLink short-link signing, and trunk[.]cocoapods[.]org / repo1[.]maven[.]org for SDK version lookups. There are no install-time lifecycle hooks, no obfuscation, and no reads of npm, GitHub, SSH or wallet credential files.
- analyzed by
- Leitwacht
- first seen
- Nov 26, 2026, 12:36 PM
- analyzed
- Nov 26, 2026, 12:37 PM
- weekly installs
- 252
hxxps://github[.]com/AppsFlyerKnowledge/appsflyer-sdk-mcp-server Request takedown / dispute →Related advisories
- @taodigital/agent-cli@1.3.3
- sanka-baileyss@2.5.7
- ceaser-baileys@3.4.17
- ceaser-baileys@3.4.16
- claude-code-zanii@2.14.15
- clamp4js@1.0.9
- clamp4js@1.0.5
- cop3-rc@5.0.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.