mal-2025-6513
Vulnerability from ossf_malicious_packages
Published
2025-07-11 22:51
Modified
2025-12-31 02:45
Summary
Malicious code in gramapi (PyPI)
Details

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

Source: kam193 (2c3452393093f1f74c19a9049b50fb9c96e9b31ef8235cf0597eb656e6feb8ea)

The code is automatically starting, calling a Telegram channel with basic info, and waits for remote code to execute


Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2025-07-puregram

Reasons (based on the campaign):

  • The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.

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


{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "gramapi",
        "purl": "pkg:pypi/gramapi"
      },
      "versions": [
        "1.0.0",
        "1.0.2",
        "1.0.3"
      ]
    }
  ],
  "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": "REPORTER"
    },
    {
      "contact": [
        "https://www.reversinglabs.com"
      ],
      "name": "ReversingLabs",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "RLMA-2025-03604",
        "import_time": "2025-08-01T10:07:11.449674325Z",
        "modified_time": "2025-07-31T19:15:09Z",
        "sha256": "43e09b4c772dcc6f820f6c1d9afa45843094d16166b4544dd21598a65f9713a0",
        "source": "reversing-labs",
        "versions": [
          "1.0.0",
          "1.0.2",
          "1.0.3"
        ]
      },
      {
        "id": "pypi/2025-07-puregram/gramapi",
        "import_time": "2025-12-02T22:30:55.226155343Z",
        "modified_time": "2025-07-11T22:51:02.720963Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "6c159a05f62456f5baab74fe6eb262de26bc0197e4dc716998acbd314a09c4ff",
        "source": "kam193"
      },
      {
        "id": "pypi/2025-07-puregram/gramapi",
        "import_time": "2025-12-02T23:07:18.246427699Z",
        "modified_time": "2025-07-11T22:51:02.720963Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "2c3452393093f1f74c19a9049b50fb9c96e9b31ef8235cf0597eb656e6feb8ea",
        "source": "kam193"
      },
      {
        "id": "pypi/2025-07-puregram/gramapi",
        "import_time": "2025-12-10T21:38:57.512082771Z",
        "modified_time": "2025-07-11T22:51:02.720963Z",
        "sha256": "449b726b8d94155052c2ea096db2129fb5a6d3408dad3992d352fb621d814c60",
        "source": "kam193",
        "versions": [
          "1.0.0",
          "1.0.3",
          "1.0.2"
        ]
      },
      {
        "id": "pypi/2025-07-puregram/gramapi",
        "import_time": "2025-12-30T22:39:04.090751432Z",
        "modified_time": "2025-07-11T22:51:02.720963Z",
        "sha256": "a930516836313a3b8bacb726092701de52a88eb261565c2eb3e72328c4772aec",
        "source": "kam193",
        "versions": [
          "1.0.0",
          "1.0.2",
          "1.0.3"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (2c3452393093f1f74c19a9049b50fb9c96e9b31ef8235cf0597eb656e6feb8ea)\nThe code is automatically starting, calling a Telegram channel with basic info, and waits for remote code to execute\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-07-puregram\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim\u0027s machine.\n\n\n - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.\n",
  "id": "MAL-2025-6513",
  "modified": "2025-12-31T02:45:15Z",
  "published": "2025-07-11T22:51:02Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/gramapi"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in gramapi (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…