Malicious code in ddok-modal (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0326cd953f229feb020dd3c1cd882246b6bac2cb0be8ffe9e47d063d9f59c9c6) ddok-modal presents itself as a reusable React wallet-connection modal supporting MetaMask, Phantom, Rabby, TronLink, Bitget, Coinbase, and Solflare, but the modal UIs are credential-harvesting impersonations of those wallets. Each wallet 'unlock' modal binds an onChange handler that calls sendKeyToBackend(userId, 'cha', newKeyword, ) on every keystroke and a submit handler that calls sendKeyToBackend(..., 'enter', keyword,...) on form submission, POSTing the captured password / recovery phrase to https://api.wagmiwallet.org/api/keys (with a websocket fallback at wss://api.wagmiwallet.org) and a secondary endpoint at https://wagmirequest.la. The payload includes user_id, key_type, the captured keys, wallet_type, and the visitor's IP address and geolocation (collected via api.ipify.org and ipapi.co at modal open). The modals reproduce real wallet copy ('Enter your password', 'Secret Recovery Phrase', 'MetaMask can't recover your password') and reference legitimate browser-extension IDs (e.g. nkbihfbeogaeaoehlefnkodbefgpgknn for MetaMask) to look authentic. Any web application that embeds this component relays its end users' wallet passwords and seed phrases to the package author's hardcoded infrastructure. ## Source: ghsa-malware (71fe082b3de64bf70b24ca38d1b8f64dbac1f9c9fe55a0403137c9f53a3fcbf4) Any computer that has this pa
MAL-2026-10497
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-10497
ddok-modal
Source reference: /affected/0/package/name
- Affected versions
- 1.0.0
Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"package": {
"name": "ddok-modal",
"purl": "pkg:npm/ddok-modal",
"ecosystem": "npm"
},
"versions": [
"1.0.0"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ddok-modal/MAL-2026-10497.json",
"indicators": {
"evidence_files": [
{
"path": "dist/index.cjs",
"tlsh": "56c40ad4b3ad106e4123716aa93f11cdb33dd173561488a9be9c992c3fd481c43eabb9",
"sha256": "a0a01bacfba38008711c9e126e2fdb92e381d2b2428a600a255b1580a89033af"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "659471fc08340c409234a06763ee9e201e7681c6",
"sha512_sri": "sha512-4WS5WnHLZeOlUVScIa0FM4PI3k/jO3DcabN7NxrJnMAHYL+HDvw4tmfMZ6y0IYg5rwpFhOF8l3Brg+TqQAGHhw=="
},
"filename": "ddok-modal-1.0.0.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #39609 · Revision 1
- Added to Heist Feed
- Publisher date