MAL-2025-989

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/swapoc/MAL-2025-989.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2025-989
Published
2024-08-23T22:55:41Z
Modified
2026-03-19T12:41:33.681962Z
Summary
Malicious code in swapoc (PyPI)
Details

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

Source: kam193 (fc650deb79ebf195b7e2ca4aeef3e25c9a26632fbc108f4bfabe54199f0b3b49)

Packages that might be part of testing for pentesting / malicious activity / joy, with suspicious activity that does not present any real harm.


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-simple-tests

Reasons (based on the campaign):

  • The package overrides the install command in setup.py to execute malicious code during installation.
Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "0.0.1",
                "0.0.2",
                "0.0.3",
                "0.0.4",
                "0.0.5",
                "0.0.6"
            ],
            "modified_time": "2025-02-03T17:07:57Z",
            "sha256": "491882f5ec689643f516000ca78e0c2f1f19d444bd92ec1cfd9c43298c34a944",
            "id": "RLMA-2025-00530",
            "source": "reversing-labs",
            "import_time": "2025-02-03T18:38:09.654266471Z"
        },
        {
            "source": "kam193",
            "modified_time": "2024-08-23T22:55:41Z",
            "sha256": "05bf0d435484ca71fcc73aae1b5036b3d76d50e496dba26335a9b9737e5b48b1",
            "id": "pypi/GENERIC-simple-tests/swapoc",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T22:30:56.425722262Z"
        },
        {
            "source": "kam193",
            "modified_time": "2024-08-23T22:55:41Z",
            "sha256": "fc650deb79ebf195b7e2ca4aeef3e25c9a26632fbc108f4bfabe54199f0b3b49",
            "id": "pypi/GENERIC-simple-tests/swapoc",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T23:07:19.610053936Z"
        },
        {
            "versions": [
                "0.0.1",
                "0.0.2",
                "0.0.3",
                "0.0.4",
                "0.0.5",
                "0.0.6",
                "0.0.7",
                "0.0.8",
                "0.0.9",
                "1.0.1",
                "1.0.0",
                "2.0.0"
            ],
            "modified_time": "2024-08-23T22:55:41Z",
            "sha256": "77bd8dd8454c2b18cde0b9d384168e5398ed0ca2651bbc0f6f31f1fbd0e2a452",
            "id": "pypi/GENERIC-simple-tests/swapoc",
            "source": "kam193",
            "import_time": "2025-12-10T21:38:58.714017363Z"
        },
        {
            "versions": [
                "0.0.1",
                "0.0.2",
                "0.0.3",
                "0.0.4",
                "0.0.5",
                "0.0.6",
                "0.0.7",
                "0.0.8",
                "0.0.9",
                "1.0.0",
                "1.0.1",
                "2.0.0"
            ],
            "modified_time": "2024-08-23T22:55:41Z",
            "sha256": "6db35fa7696ff4da055d698afa9f4db8ab11464d468b9d010f904ffb66550f8c",
            "id": "pypi/GENERIC-simple-tests/swapoc",
            "source": "kam193",
            "import_time": "2025-12-30T22:39:04.351472436Z"
        },
        {
            "modified_time": "2026-03-18T12:19:10Z",
            "sha256": "85ef7e91cbc108187e5d91141fc30f18ffefab27066f3e7ccabc5b50686c71ef",
            "id": "RLUA-2026-00792",
            "source": "reversing-labs",
            "import_time": "2026-03-19T12:20:31.057832967Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / swapoc

Package

Affected ranges

Affected versions

0.*
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.0.7
0.0.8
0.0.9
1.*
1.0.0
1.0.1
2.*
2.0.0

Database specific

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