mal-2025-989
Vulnerability from ossf_malicious_packages
Published
2024-08-23 22:55
Modified
2025-12-31 02:45
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.

{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "swapoc",
        "purl": "pkg:pypi/swapoc"
      },
      "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"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "https://github.com/kam193",
        "https://bad-packages.kam193.eu/"
      ],
      "name": "Kamil Ma\u0144kowski (kam193)"
    },
    {
      "contact": [
        "https://github.com/kam193",
        "https://bad-packages.kam193.eu/"
      ],
      "name": "Kamil Ma\u0144kowski (kam193)",
      "type": "ANALYST"
    },
    {
      "contact": [
        "https://www.reversinglabs.com"
      ],
      "name": "ReversingLabs",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "RLMA-2025-00530",
        "import_time": "2025-02-03T18:38:09.654266471Z",
        "modified_time": "2025-02-03T17:07:57Z",
        "sha256": "491882f5ec689643f516000ca78e0c2f1f19d444bd92ec1cfd9c43298c34a944",
        "source": "reversing-labs",
        "versions": [
          "0.0.1",
          "0.0.2",
          "0.0.3",
          "0.0.4",
          "0.0.5",
          "0.0.6"
        ]
      },
      {
        "id": "pypi/GENERIC-simple-tests/swapoc",
        "import_time": "2025-12-02T22:30:56.425722262Z",
        "modified_time": "2024-08-23T22:55:41Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "05bf0d435484ca71fcc73aae1b5036b3d76d50e496dba26335a9b9737e5b48b1",
        "source": "kam193"
      },
      {
        "id": "pypi/GENERIC-simple-tests/swapoc",
        "import_time": "2025-12-02T23:07:19.610053936Z",
        "modified_time": "2024-08-23T22:55:41Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "fc650deb79ebf195b7e2ca4aeef3e25c9a26632fbc108f4bfabe54199f0b3b49",
        "source": "kam193"
      },
      {
        "id": "pypi/GENERIC-simple-tests/swapoc",
        "import_time": "2025-12-10T21:38:58.714017363Z",
        "modified_time": "2024-08-23T22:55:41Z",
        "sha256": "77bd8dd8454c2b18cde0b9d384168e5398ed0ca2651bbc0f6f31f1fbd0e2a452",
        "source": "kam193",
        "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"
        ]
      },
      {
        "id": "pypi/GENERIC-simple-tests/swapoc",
        "import_time": "2025-12-30T22:39:04.351472436Z",
        "modified_time": "2024-08-23T22:55:41Z",
        "sha256": "6db35fa7696ff4da055d698afa9f4db8ab11464d468b9d010f904ffb66550f8c",
        "source": "kam193",
        "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"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (fc650deb79ebf195b7e2ca4aeef3e25c9a26632fbc108f4bfabe54199f0b3b49)\nPackages that might be part of testing for pentesting / malicious activity / joy, with suspicious activity that does not present any real harm.\n\n\n---\n\nCategory: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research \u0026 co, with clearly low-harm possibilities.\n\n\nCampaign: GENERIC-simple-tests\n\n\nReasons (based on the campaign):\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n",
  "id": "MAL-2025-989",
  "modified": "2025-12-31T02:45:16Z",
  "published": "2024-08-23T22:55:41Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/swapoc"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in swapoc (PyPI)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…