Malicious code in cortana-md-engine (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (9a2de4b6992a1dd7177803253b8c214d1ba7cc911cf0e1e7f800e1e9ff7ab5b1) cortana-md-engine is a Baileys-based WhatsApp bot whose bundled entrypoints dist/hosted.cjs and dist/index.cjs hardcode five mongodb+srv://cortanauser:...@{cluster2.uvds2qk,cluster3.t2gtazm,cluster4.bwuctn9,cluster5.kdkad04,mass.gcijtck}.mongodb.net Atlas connection strings and, at bot startup, persist the Baileys authState/creds (Session/authState/sessions collections) into those clusters. The MongoDB user credentials are baked into the shipped JavaScript, so the author retains read access to every installer's linked WhatsApp session state — sufficient to hijack the linked WhatsApp account. The relay is not disclosed in the README, which only instructs the user to run npm start. The tarball additionally ships offensive tooling aimed at third-party WhatsApp users (a ~150-entry proxy pool in dist/proxies.cjs, batched reaction and socket-spoof flooding in dist/react-engine.cjs, and abuse commands such as perm-ban-num, cortana-ios-crash, realban, massreport); this is operator-directed abuse capability, separate from the installer-side session exfiltration.
MAL-2026-17323
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-17323
cortana-md-engine
Source reference: /affected/0/package/name
- Affected versions
- 1.4.6
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": "cortana-md-engine",
"purl": "pkg:npm/cortana-md-engine",
"ecosystem": "npm"
},
"versions": [
"1.4.6"
],
"database_specific": {
"cwes": [
{
"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/cortana-md-engine/MAL-2026-17323.json",
"indicators": {
"evidence_files": [
{
"path": "dist/hosted.cjs",
"tlsh": "e5056da233b6b93a07ae50947c651045e2fa8d58680c807cf69df89f375dcc5a6f6b30",
"sha256": "6a1c9744a093a20dbec9cb5eeada88a686d687870bd3065a5694df217b370b3d"
},
{
"path": "dist/index.cjs",
"tlsh": "ff853afe276635350ffb10e9ed26154ae176ae0c98488536f6fce4973350498e293b38",
"sha256": "24901560e0c5a1e0eb1eecd696fb0c3345415f435ebfe7080d96936e04a66407"
},
{
"path": "dist/proxies.cjs",
"tlsh": "8af18903c1445e04aafecf5b72385d86f955e30fd451808bbafa66cc0f78a49fca6652",
"sha256": "caf026e1e3cb9408216a6a88bd6de88fab1ed5b3dc19ad5a28bdbe5bafece3c8"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "9a78a1386c37255568a052b84ed1ffab36f59087",
"sha512_sri": "sha512-BW4kGcgBtdx2zIxkkhpaa1ziwScdmq/kRTFw75pczKpT+QBnGK2lHhZv9zHYT/PIdMXZtoQ1AWhNslhVlkVMGA=="
},
"filename": "cortana-md-engine-1.4.6.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #37344 · Revision 1
- Added to Heist Feed
- Publisher date