MAL-2026-18208

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ecg-internal/favourites-ui/MAL-2026-18208.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18208
Aliases
  • GHSA-g8hh-8pxg-jr3x
Published
2026-10-23T01:59:31Z
Modified
2026-10-23T02:45:05Z
Summary
Malicious code in @ecg-internal/favourites-ui (npm)
Details

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

Source: amazon-inspector (e0f37fd70766d2ddda31ffe3b985eba596fd927fdd589a9ceff04d4a695e3bb1)

The package publishes under the internal-looking scope @ecg-internal/ and ships a postinstall script (beacon.cjs) plus a top-level require() side effect in index.js that call a fire() function. fire() POSTs a JSON payload containing os.hostname(), the install __dirname, process.cwd(), and the Node version to the hardcoded bare-IP endpoint http://185.158.107.175:8787/_ah/dc over plain HTTP. index.js otherwise exports a Proxy whose property access returns a no-op function, and an in-source comment states that 'a build that completes and calls back is cleaner evidence' — the module provides no real functionality and exists only to produce an install-time callback. The combination of an internal-scope name, a stub module, and an automatic bare-IP beacon carrying installer host identifiers is a dependency-confusion probe: build pipelines that mistakenly resolve this public package instead of the intended private @ecg-internal/favourites-ui disclose internal hostnames and build-path information to the operator of 185.158.107.175.

Source: ghsa-malware (e133233e109135c00c63c294eddb92ed208a79ef68deb740d86bc60e59e220a1)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-021594",
            "import_time":  "2026-10-23T02:25:38.36794538Z",
            "modified_time":  "2026-10-23T01:59:31Z",
            "sha256":  "30f3affd8f27bbe822a15d3f6656cf55c431e37d1f2910e00e8272d94915b7ac",
            "source":  "amazon-inspector",
            "versions":  [
                "99.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-021598",
            "import_time":  "2026-10-23T02:25:38.682901038Z",
            "modified_time":  "2026-10-23T01:59:59Z",
            "sha256":  "e0f37fd70766d2ddda31ffe3b985eba596fd927fdd589a9ceff04d4a695e3bb1",
            "source":  "amazon-inspector",
            "versions":  [
                "1.1.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-021595",
            "import_time":  "2026-10-23T02:25:38.444958312Z",
            "modified_time":  "2026-10-23T01:59:39Z",
            "sha256":  "ef29926bcac7698a54c3901bbbda0f936ed6ed3ef3dbc70e771c16a4faf5b682",
            "source":  "amazon-inspector",
            "versions":  [
                "0.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-021600",
            "import_time":  "2026-10-23T02:25:38.775440128Z",
            "modified_time":  "2026-10-23T02:00:15Z",
            "sha256":  "f5e6908e6df16b99b21a45327bb85dc80139d424ad363d4121b34c10651833e3",
            "source":  "amazon-inspector",
            "versions":  [
                "3.0.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-021597",
            "import_time":  "2026-10-23T02:25:38.626416608Z",
            "modified_time":  "2026-10-23T01:59:52Z",
            "sha256":  "509adadad793d6028b802d1aefca6e66e1bfce35018b8fc08db0c7211278abc6",
            "source":  "amazon-inspector",
            "versions":  [
                "2.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-021596",
            "import_time":  "2026-10-23T02:25:38.553544313Z",
            "modified_time":  "2026-10-23T01:59:45Z",
            "sha256":  "8004c2f345cdf30eb4af28a1a54f56be6cdc586bd9666526b6b06825e15ef22f",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-021599",
            "import_time":  "2026-10-23T02:25:38.735383181Z",
            "modified_time":  "2026-10-23T02:00:07Z",
            "sha256":  "dd6fb0a78c783012998186014c58590785850e15628a0bb60ed6092d5a48569f",
            "source":  "amazon-inspector",
            "versions":  [
                "2.0.0"
            ]
        },
        {
            "id":  "GHSA-g8hh-8pxg-jr3x",
            "import_time":  "2026-10-23T02:36:25.379009569Z",
            "modified_time":  "2026-10-23T02:05:25Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "e133233e109135c00c63c294eddb92ed208a79ef68deb740d86bc60e59e220a1",
            "source":  "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / @ecg-internal/favourites-ui

Package

Name
@ecg-internal/favourites-ui
View open source insights on deps.dev
Purl
pkg:npm/%40ecg-internal/favourites-ui

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.0.1
1.*
1.0.0
1.1.0
2.*
2.0.0
2.0.1
3.*
3.0.0
99.*
99.0.1

Database specific

cwes
[
    {
        "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.",
        "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.",
        "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.",
        "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.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "beacon.cjs",
            "sha256":  "f61d875bd327c15818875905fb8f466a56f444caacf34198c6b6d5f8990d6384",
            "tlsh":  "ef3140eba8e1a0489aa77098c94b4409b17af0068501ab54fd5c92919f6293c33fa8dc"
        },
        {
            "path":  "README.md",
            "sha256":  "e904db9c4056812ad5c68cf8e7cea1437f45aacf9270ea321f16f64753718f6a",
            "tlsh":  "25d02b346421657154250b7609a1b0685bf8d1b8c81605bd545e9b5c505ba3c432267a"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "favourites-ui-99.0.1.tgz",
            "hashes":  {
                "sha1":  "6a1088337c8bf4e508c3bae39858fb2186217c3d",
                "sha512_sri":  "sha512-RmdD9srT+q1xsiBHG0Zln/4gnBkGbKMSr9GCNpkbQj6uP0voj2nVvUqgqcf96+hiO38GTxtj/ETxYkeH6WoXzA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ecg-internal/favourites-ui/MAL-2026-18208.json"