MAL-2025-6897

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/swiv/MAL-2025-6897.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2025-6897
Published
2025-08-18T03:20:56Z
Modified
2025-12-31T02:54:59.119128Z
Summary
Malicious code in swiv (PyPI)
Details

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

Source: kam193 (945d4a5f54e77ae66588b5b64aa30eb2627903bffcb72a3031b9c4b6b2122b43)

Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.


Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.

Campaign: GENERIC-standard-pypi-install-pentest

Reasons (based on the campaign):

  • The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.

  • The package overrides the install command in setup.py to execute malicious code during installation.

Source: ossf-package-analysis (fad45d4a336f26f8dbc2d1815665ebb29cbe469468e4beaa55319945a9d8a755)

The OpenSSF Package Analysis project identified 'swiv' @ 4.0.0 (pypi) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.
Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "0.4"
            ],
            "modified_time": "2025-08-18T03:20:56Z",
            "sha256": "1a2fe48d275159bf6ebc366c414d768a03713ed4185ea7084f0f0e5f6fadcfa4",
            "source": "ossf-package-analysis",
            "import_time": "2025-08-18T03:34:43.3484817Z"
        },
        {
            "versions": [
                "4.0.0"
            ],
            "modified_time": "2025-08-18T04:00:55Z",
            "sha256": "fad45d4a336f26f8dbc2d1815665ebb29cbe469468e4beaa55319945a9d8a755",
            "source": "ossf-package-analysis",
            "import_time": "2025-08-18T04:20:06.143077257Z"
        },
        {
            "versions": [
                "4.0.0",
                "0.4",
                "0.3",
                "0.0.1"
            ],
            "modified_time": "2025-08-18T16:47:17.18428Z",
            "sha256": "ea8e3cad2100ef83e25d127552fdce0c90cc6581d0be3dc259cb2eccc1e5bd65",
            "id": "pypi/GENERIC-standard-pypi-install-pentest/swiv",
            "source": "kam193",
            "import_time": "2025-12-02T22:30:56.426660867Z"
        },
        {
            "versions": [
                "4.0.0",
                "0.4",
                "0.3",
                "0.0.1"
            ],
            "modified_time": "2025-08-18T16:47:17.18428Z",
            "sha256": "945d4a5f54e77ae66588b5b64aa30eb2627903bffcb72a3031b9c4b6b2122b43",
            "id": "pypi/GENERIC-standard-pypi-install-pentest/swiv",
            "source": "kam193",
            "import_time": "2025-12-02T23:07:19.610980797Z"
        },
        {
            "versions": [
                "0.0.1",
                "0.3",
                "0.4",
                "4.0.0"
            ],
            "modified_time": "2025-08-18T16:47:17.18428Z",
            "sha256": "34e5aabc93ae05e19c82eabacfef167a7e24faed1a494c54ec4fc5dcb832cae9",
            "id": "pypi/GENERIC-standard-pypi-install-pentest/swiv",
            "source": "kam193",
            "import_time": "2025-12-30T22:39:04.352276265Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / swiv

Package

Affected ranges

Affected versions

0.*
0.0.1
0.3
0.4
4.*
4.0.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/swiv/MAL-2025-6897.json"