-= Per source details. Do not edit below this line.=-
install.cjs runs on npm postinstall and performs two attacker-controlled remote-code paths. First, it spawns osascript with 'do shell script' on macOS to display a native admin authentication dialog, then pipes https://update.apex-arena-router.com/loader.sh into zsh — a mutable, attacker-controlled URL whose host is unrelated to the package's declared publisher. Second, it downloads an OS-specific 'apex' binary from the github.com/Apex-Foundation/copilot releases (an org unrelated to the declared author can1357), chmods it 0o755, and stages it for execution with no hash or signature verification. The package is a hollow lure: package.json declares main./src/index.ts and ~150 export subpaths, but the tarball ships no src/ directory. README, description, homepage, author, and repository metadata are copied verbatim from the unrelated legitimate project @oh-my-pi/pi-coding-agent (can1357), and the package name impersonates the @copilot-mcp scope. The only shipped code is install.cjs (the dropper) and apex.cjs (which invokes the downloaded binary). Installing this package yields remote code execution on the installer's machine and, on macOS, an admin-privilege escalation via social-engineered credential prompt.
{
"malicious-packages-origins": [
{
"source": "amazon-inspector",
"sha256": "1c50752cfe66886c0388a1bc5a637ea28c41556dc55df6a833048a6861f003c4",
"versions": [
"1.0.0"
],
"import_time": "2026-08-05T13:08:36.41675371Z",
"modified_time": "2026-08-05T12:29:44Z",
"id": "IN-MAL-2026-014678"
},
{
"sha256": "7c67774146664b91e2a32db292400b675e11ea982d84d600436e0f05c98d106d",
"source": "amazon-inspector",
"modified_time": "2026-08-05T12:28:33Z",
"versions": [
"1.0.4"
],
"import_time": "2026-08-05T13:08:35.684968838Z",
"id": "IN-MAL-2026-014670"
},
{
"sha256": "c95a10852a2ffe12a9d2b124d014e2092dc2f2d45821ab92feae8cb5308b94ea",
"source": "amazon-inspector",
"import_time": "2026-08-05T13:08:35.43458143Z",
"modified_time": "2026-08-05T12:28:16Z",
"versions": [
"1.0.6"
],
"id": "IN-MAL-2026-014668"
},
{
"sha256": "a9914f8d0049a694677146664d1ccc97f6c22ad4da6d7516df6b89aca1038d42",
"source": "amazon-inspector",
"modified_time": "2026-08-05T12:27:30Z",
"versions": [
"1.0.8"
],
"import_time": "2026-08-05T13:08:35.046619804Z",
"id": "IN-MAL-2026-014663"
},
{
"sha256": "c5950e2ea3707a2e1980d40a8dcf3b1d3a6f628e0c645c16681a69f1519f4216",
"source": "amazon-inspector",
"modified_time": "2026-08-05T12:28:58Z",
"versions": [
"1.0.2"
],
"import_time": "2026-08-05T13:08:35.957484956Z",
"id": "IN-MAL-2026-014673"
},
{
"sha256": "cc4f22ec9d8178ec431e531ad619137c5ad45f16fcec1e8b9d1e5f1dff0a9390",
"source": "amazon-inspector",
"modified_time": "2026-08-05T12:28:42Z",
"versions": [
"1.0.17"
],
"import_time": "2026-08-05T13:08:35.78272408Z",
"id": "IN-MAL-2026-014671"
},
{
"source": "amazon-inspector",
"sha256": "db3a342727ed2f0b264610060bc655650f4593f767f8bfc74f2596fddebeba86",
"versions": [
"1.0.3"
],
"import_time": "2026-08-05T13:08:35.565891856Z",
"modified_time": "2026-08-05T12:28:24Z",
"id": "IN-MAL-2026-014669"
},
{
"source": "amazon-inspector",
"sha256": "fb0ab81a0d6381793515c0114c6ec09b2c37a4b270bad78cfb524ad658fd39e1",
"versions": [
"1.0.16"
],
"import_time": "2026-08-05T13:08:35.872675038Z",
"modified_time": "2026-08-05T12:28:50Z",
"id": "IN-MAL-2026-014672"
},
{
"sha256": "281fff3b92aca15619d6fe90d0937f7de4b64a842606bf075a1df8a1edf1be4f",
"source": "amazon-inspector",
"import_time": "2026-08-05T13:08:41.059044648Z",
"modified_time": "2026-08-05T12:36:06Z",
"versions": [
"1.0.22"
],
"id": "IN-MAL-2026-014723"
},
{
"sha256": "5ef76eb0d54a5367c418f1796303f7596c3f881664b90495fb16efdf13e1d557",
"source": "amazon-inspector",
"import_time": "2026-08-05T13:08:35.202820237Z",
"modified_time": "2026-08-05T12:27:46Z",
"versions": [
"1.0.5"
],
"id": "IN-MAL-2026-014665"
},
{
"sha256": "6c21f6b832569e73d76688cd181daa0821b94f00d41205fc1ba2003671c8946c",
"source": "amazon-inspector",
"modified_time": "2026-08-05T12:27:55Z",
"versions": [
"1.0.7"
],
"import_time": "2026-08-05T13:08:35.276937086Z",
"id": "IN-MAL-2026-014666"
},
{
"sha256": "7be50b386dc90979307b118d6b733815cca1c32994688af4e00f80931c45fc6c",
"source": "amazon-inspector",
"import_time": "2026-08-05T13:08:36.670373121Z",
"modified_time": "2026-08-05T12:29:58Z",
"versions": [
"1.0.1"
],
"id": "IN-MAL-2026-014680"
},
{
"sha256": "ae1ed0a38c6e56f2b734ce040970b45fd23d33838b8be6fe64b226fd255ad109",
"source": "amazon-inspector",
"versions": [
"1.0.21"
],
"import_time": "2026-08-05T14:19:41.220921529Z",
"modified_time": "2026-08-05T13:08:47Z",
"id": "IN-MAL-2026-014900"
}
]
}{
"package_integrity": [
{
"hashes": {
"sha1": "233f90180b529aa32911901e5222e9ed9c3cd24c",
"sha512_sri": "sha512-AvIqnoEEELRwbsJchnWFB1c3iysB6nvoApRazOZJvjduE+fBbXoPrdfZnqpgldAFXdnDNLqgG4/wKXcBn0JIfQ=="
},
"filename": "apex-1.0.0.tgz"
}
],
"evidence_files": [
{
"path": "install.cjs",
"sha256": "8e7c7c491d4de92a6b1f43d22bdc1d4237571c449a6f604d557d9549ab432e19",
"tlsh": "356112c902f4a5740b92a5aa808b146bb93390137505d888be6cc749ff975b1c737afe"
},
{
"path": "package.json",
"sha256": "96f05df5efcd8d539023225cea99eb1096cbfd62cd15823ff130ff381a7c45d1",
"tlsh": "93728d07e0ec5d8702a67121ad6a6a23e1a9894709247c203aec5bbd8f4d55f40ff76f"
}
]
}
[
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506",
"name": "Embedded Malicious Code"
}
]
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@copilot-mcp/apex/MAL-2026-12314.json"