mal-2026-19934
Vulnerability from ossf_malicious_packages
Published
2026-11-14 15:28
Modified
2026-11-14 20:37
Summary
Malicious code in ps-bool (PyPI)
Details

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

Source: amazon-inspector (5dcafa44d321e5c6169bbdd949fa1d421e5039bc53d017c00d3e5411f33db5ec)

The sole module shipped in both the sdist and the wheel, main.py, consists entirely of exec(zlib.decompress(base64.b85decode('...'))) at the top level. The package exposes this module as py_modules=['main'] and wires it as the psbool console_script, so the opaque, compressed-and-encoded blob is decoded and executed unconditionally the first time the module is imported or the CLI is invoked. There is no source, documentation, or API surface — the entire implementation is a single encoded payload, deliberately concealing its behavior from anyone inspecting the package before it runs. A boolean-logic utility has no legitimate reason to ship its implementation as an opaque exec-of-decoded-bytes blob; this is the canonical obfuscated-payload import-time execution shape and causes an arbitrary author-controlled program to run on the installer's machine.

Source: kam193 (119ef283a7038fe02a4d309ce942bcce3a37a70ef5468749ae4f4e378d971e9d)

During import, obfuscated code exfiltrates photos and documents to a Telegram bot. It targets Android devices.


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

Campaign: 2026-11-ps-bool

Reasons (based on the campaign):

  • files-exfiltration

  • obfuscation

  • uses-telegram-bot

  • target:android

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "artifacts": [
                "ps_bool-0.2.3.tar.gz",
                "ps_bool-0.2.3-py3-none-any.whl"
              ],
              "path": "main.py",
              "sha256": "d0c74461b872ef05be3ac279dc73f6d0b24696faf94972b7f78dadabb0fea61c",
              "tlsh": "3cb17d21192f34af3356473359a3715defb6b2fc94593e56493a81f09503ea3b8cd488"
            }
          ],
          "package_integrity": [
            {
              "filename": "ps_bool-0.2.3-py3-none-any.whl",
              "hashes": {
                "blake2b_256": "f8dfa2f37ad1ec18cff1e38e0ebe0369f9611ab1adff39f503599b0c41b396a4",
                "md5": "fc279e488eb84ed87c8cae33ed63260c",
                "sha256": "351a1b04a3c78f158a42d387e63f108f90166aa90ad972ed6ebd65b24ed5f0f9"
              }
            },
            {
              "filename": "ps_bool-0.2.3.tar.gz",
              "hashes": {
                "blake2b_256": "6f991c96eb67a9a0d765d8385f0c47e1d8d32f171e2b0e443b5a192ca3d9b150",
                "md5": "c07caeb6774e2efddec0f01cda474b88",
                "sha256": "94b72094dc67ebd8038d1211b0496372eb75e3c837ce7064f63807c9820ccc96"
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "PyPI",
        "name": "ps-bool"
      },
      "versions": [
        "0.2.0",
        "0.2.1",
        "0.2.3",
        "0.2.4",
        "0.2.5"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    },
    {
      "contact": [
        "https://github.com/kam193",
        "https://bad-packages.kam193.eu/"
      ],
      "name": "Kamil Ma\u0144kowski (kam193)",
      "type": "REPORTER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "pypi/2026-11-ps-bool/ps-bool",
        "import_time": "2026-11-14T16:11:34.121253507Z",
        "modified_time": "2026-11-14T15:29:58.76019Z",
        "sha256": "119ef283a7038fe02a4d309ce942bcce3a37a70ef5468749ae4f4e378d971e9d",
        "source": "kam193",
        "versions": [
          "0.2.0",
          "0.2.1",
          "0.2.3",
          "0.2.4",
          "0.2.5"
        ]
      },
      {
        "id": "IN-MAL-2026-022778",
        "import_time": "2026-11-14T20:36:15.130186269Z",
        "modified_time": "2026-11-14T20:22:51Z",
        "sha256": "b4774cf69e0f73b066e442a0241b13c300135e4a7bc471f7a8768c77fdd09b6c",
        "source": "amazon-inspector",
        "versions": [
          "0.2.3"
        ]
      },
      {
        "id": "IN-MAL-2026-022776",
        "import_time": "2026-11-14T20:36:15.061253234Z",
        "modified_time": "2026-11-14T20:22:39Z",
        "sha256": "d1639c1857cd8a9cfebe4dc7c7802b75487101b9387625e3141abe2f25e7535c",
        "source": "amazon-inspector",
        "versions": [
          "0.2.4"
        ]
      },
      {
        "id": "IN-MAL-2026-022777",
        "import_time": "2026-11-14T20:36:15.10082354Z",
        "modified_time": "2026-11-14T20:22:46Z",
        "sha256": "5dcafa44d321e5c6169bbdd949fa1d421e5039bc53d017c00d3e5411f33db5ec",
        "source": "amazon-inspector",
        "versions": [
          "0.2.5"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5dcafa44d321e5c6169bbdd949fa1d421e5039bc53d017c00d3e5411f33db5ec)\nThe sole module shipped in both the sdist and the wheel, main.py, consists entirely of `exec(zlib.decompress(base64.b85decode(\u0027...\u0027)))` at the top level. The package exposes this module as `py_modules=[\u0027main\u0027]` and wires it as the `psbool` console_script, so the opaque, compressed-and-encoded blob is decoded and executed unconditionally the first time the module is imported or the CLI is invoked. There is no source, documentation, or API surface \u2014 the entire implementation is a single encoded payload, deliberately concealing its behavior from anyone inspecting the package before it runs. A boolean-logic utility has no legitimate reason to ship its implementation as an opaque exec-of-decoded-bytes blob; this is the canonical obfuscated-payload import-time execution shape and causes an arbitrary author-controlled program to run on the installer\u0027s machine.\n\n## Source: kam193 (119ef283a7038fe02a4d309ce942bcce3a37a70ef5468749ae4f4e378d971e9d)\nDuring import, obfuscated code exfiltrates photos and documents to a Telegram bot. It targets Android devices.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-11-ps-bool\n\n\nReasons (based on the campaign):\n\n\n - files-exfiltration\n\n\n - obfuscation\n\n\n - uses-telegram-bot\n\n\n - target:android\n",
  "id": "MAL-2026-19934",
  "modified": "2026-11-14T20:37:55.579659132Z",
  "published": "2026-11-14T15:28:36Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/ps-bool"
    },
    {
      "type": "PACKAGE",
      "url": "https://pypi.org/project/ps-bool/0.2.3/"
    },
    {
      "type": "PACKAGE",
      "url": "https://pypi.org/project/ps-bool/0.2.4/"
    },
    {
      "type": "PACKAGE",
      "url": "https://pypi.org/project/ps-bool/0.2.5/"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in ps-bool (PyPI)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

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…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…