mal-2024-12224
Vulnerability from ossf_malicious_packages
Published
2024-08-27 21:24
Modified
2025-12-31 02:45
Summary
Malicious code in c2 (PyPI)
Details

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

Source: kam193 (5bf8fb109bddeaac7b9818f893783456619c44562c50fe26abea906cbc1ef06a)

Packages exfiltrate the diff of the current repository. The code in "main.py" suggests it's not a real attempt to provide AI-generated commit message, but a security research attempting to leverage typosquatting.


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: 2024-08-old-bitcommit

Reasons (based on the campaign):

  • exfiltration-generic

  • typosquatting




{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "c2"
      },
      "versions": [
        "0.1.7",
        "0.1.6",
        "0.1.5",
        "0.1.4",
        "0.1.3",
        "0.1.2",
        "0.1.1",
        "0.1.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"
    }
  ],
  "database_specific": {
    "iocs": {
      "domains": [
        "yl4zicglte.execute-api.us-east-1.amazonaws.com"
      ],
      "urls": [
        "https://yl4zicglte.execute-api.us-east-1.amazonaws.com/predict/commit"
      ]
    },
    "malicious-packages-origins": [
      {
        "id": "pypi/2024-08-old-bitcommit/c2",
        "import_time": "2025-12-02T22:30:55.920289759Z",
        "modified_time": "2024-08-27T21:24:04Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "c5172fa5a2e28273fabcb00384b87cf5666ef094da8a64bdd3bb2fb395880610",
        "source": "kam193"
      },
      {
        "id": "pypi/2024-08-old-bitcommit/c2",
        "import_time": "2025-12-02T23:07:19.11252883Z",
        "modified_time": "2024-08-27T21:24:04Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "5bf8fb109bddeaac7b9818f893783456619c44562c50fe26abea906cbc1ef06a",
        "source": "kam193"
      },
      {
        "id": "pypi/2024-08-old-bitcommit/c2",
        "import_time": "2025-12-10T21:38:58.244127387Z",
        "modified_time": "2024-08-27T21:24:04Z",
        "sha256": "a9649b65c6fb4d8d4307f88c94c7b95bab52c714469499c9e70e1d6b9823c9a3",
        "source": "kam193",
        "versions": [
          "0.1.7",
          "0.1.6",
          "0.1.5",
          "0.1.4",
          "0.1.3",
          "0.1.2",
          "0.1.1",
          "0.1.0"
        ]
      },
      {
        "id": "pypi/2024-08-old-bitcommit/c2",
        "import_time": "2025-12-30T22:39:04.26995278Z",
        "modified_time": "2024-08-27T21:24:04Z",
        "sha256": "4211f79ab5597683cc30dd95ef9b14974e75b25b2ef57fb8b0712fa21ce74a0b",
        "source": "kam193",
        "versions": [
          "0.1.0",
          "0.1.1",
          "0.1.2",
          "0.1.3",
          "0.1.4",
          "0.1.5",
          "0.1.6",
          "0.1.7"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (5bf8fb109bddeaac7b9818f893783456619c44562c50fe26abea906cbc1ef06a)\nPackages exfiltrate the diff of the current repository. The code in \"main.py\" suggests it\u0027s not a real attempt to provide AI-generated commit message, but a security research attempting to leverage typosquatting.\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: 2024-08-old-bitcommit\n\n\nReasons (based on the campaign):\n\n\n - exfiltration-generic\n\n\n - typosquatting\n",
  "id": "MAL-2024-12224",
  "modified": "2025-12-31T02:45:15Z",
  "published": "2024-08-27T21:24:04Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/c2"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in c2 (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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…