MAL-2026-21051

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/modern-csv/MAL-2026-21051.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-21051
Published
2026-12-03T17:34:40Z
Modified
2026-12-03T21:30:05Z
Summary
Malicious code in modern-csv (PyPI)
Details

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

Source: amazon-inspector (6f177d085d448117f0d1a85abad9363ff4426efe09ac44a80da66a98ab37beae)

modern-csv is advertised as a zero-dependency CSV auditing library, but the distribution contains an undocumented module, src/modern_csv/check.py, that is unrelated to that purpose. The module downloads the cloudflared binary from a mutable 'latest' release URL into ~/bin, marks it executable, and launches it as a detached process (start_new_session=True) with a hardcoded author-held tunnel token, establishing a persistent inbound channel from an operator-controlled control plane to the host. The same module fetches a shell script from https://raw.githubusercontent.com/najm-x/test1/refs/heads/main/print_hart_with_red_color.sh - a personal repository unrelated to the package's declared project, referenced at an unpinned mutable branch with no hash or signature verification - writes it under /tmp and executes it with bash, so whoever controls that path can run arbitrary shell commands on the host. Each stage of the download, execution and tunnel-startup flow posts status strings to https://us-east-1.aws.edge.axiom.co/v1/ingest/test-logs using an embedded third-party log-ingest token, giving the operator live monitoring of the activity. None of this behavior is documented in the README, and none of it is required by the package's CSV-linting API.

Source: kam193 (f33c6b913e14d8c9361576963dc9637e139de922a26da03eb615052fe06ef3b7)

Package silently executes remote script, which then reports home and establishes a Cloudflare tunnel allowing for backdoor access to the environment.


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

Campaign: 2026-12-modern-csv

Reasons (based on the campaign):

  • Downloads and executes a remote malicious script.

  • backdoor

Database specific
{
    "iocs":  {
        "urls":  [
            "https://raw.githubusercontent.com/najm-x/test1/refs/heads/main/print_hart_with_red_color.sh"
        ]
    },
    "malicious-packages-origins":  [
        {
            "id":  "pypi/2026-12-modern-csv/modern-csv",
            "import_time":  "2026-12-03T18:16:46.228086370Z",
            "modified_time":  "2026-12-03T17:34:40.172462Z",
            "sha256":  "f33c6b913e14d8c9361576963dc9637e139de922a26da03eb615052fe06ef3b7",
            "source":  "kam193",
            "versions":  [
                "0.1.0",
                "0.5.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-023231",
            "import_time":  "2026-12-03T21:13:17.818609422Z",
            "modified_time":  "2026-12-03T21:03:04Z",
            "sha256":  "592cd000c23100d095b1c45cf6a5a0d0fb014040311d88a13a283e6f9cdd5a9e",
            "source":  "amazon-inspector",
            "versions":  [
                "0.1.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-023232",
            "import_time":  "2026-12-03T21:13:17.920045394Z",
            "modified_time":  "2026-12-03T21:03:17Z",
            "sha256":  "6f177d085d448117f0d1a85abad9363ff4426efe09ac44a80da66a98ab37beae",
            "source":  "amazon-inspector",
            "versions":  [
                "0.5.0"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / modern-csv

Package

Name
modern-csv
View open source insights on deps.dev
Purl
pkg:pypi/modern-csv

Affected ranges

Affected versions

0.*
0.1.0
0.5.0

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
{
    "evidence_files":  [
        {
            "artifacts":  [
                "modern_csv-0.1.0.tar.gz",
                "modern_csv-0.1.0-py3-none-any.whl"
            ],
            "path":  "src/modern_csv/check.py",
            "sha256":  "8ae763e1d353f78e5dd325e3135205ada656d97ffec3f0781fbed09e7663dc60",
            "tlsh":  "8cc19580ed4e5722a2c3d1356491ada3f316541b6e029c387dcec9d82f1a27ac47c6dd"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "modern_csv-0.1.0-py3-none-any.whl",
            "hashes":  {
                "blake2b_256":  "6327bc6e8cefe19ddcfdaccf9d7315c6a4bde86fb05e1009a2b2a49151ccccf5",
                "md5":  "cc8e62893b4c56144637a560dd0196e5",
                "sha256":  "17272628d55b13c1ddfc28c00155178044002fdfecae9be0dfabf63dc6f8627b"
            }
        },
        {
            "filename":  "modern_csv-0.1.0.tar.gz",
            "hashes":  {
                "blake2b_256":  "f84448a71df533d97607f80dc066a055755c7b0345e2a2f7ffbc48302a0b3b78",
                "md5":  "88580e8e0ee3afc018c064247f1988e7",
                "sha256":  "6fb3600dc2955165d534fdc2962be803facb0845c3fddd8e776f2cb94c8c3c7e"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/modern-csv/MAL-2026-21051.json"