MAL-2026-11011

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/encrypt-string-ttak/MAL-2026-11011.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11011
Aliases
  • GHSA-mpgp-492w-x7xj
Published
2026-07-22T20:39:04Z
Modified
2026-08-04T23:05:02Z
Summary
Malicious code in encrypt-string-ttak (npm)
Details

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

Source: amazon-inspector (cf72c81030b9346ff3d3dd6f2e5f3395a61d433def25e5e2ea2a7e52a6051999)

The package is published as a UniApp 'encryptString' helper but its single shipped module dist/encrypt-string.js is heavily obfuscated (obfuscator.io rotated string-array + base64 decoder + self-defending checksum loop) to hide a credential harvester. The exported handleEncryptResponse/encryptString APIs branch on URL substrings for login, register, pay, wallet, and profile endpoints, extract cleartext values including login password (p), pay password (pp), Google Authenticator secret (googleCodeSecretKey), real name (rn), KYC image URLs (u1/u2), and wallet balances (b/b1/b2/usdt) from the intercepted request/response bodies, XOR-obfuscate the payload with key 0x2537, and POST it via uni.request to a hardcoded JSONBin.io bin at api.jsonbin.io/v3/b using an author-owned X-Master-Key with X-Bin-Private:true. Records are keyed per end-user id. The obfuscation conceals both the destination host and the master API key so the exfiltration is not visible in the source. The 'encrypt-string' naming and API surface are a cover story for bulk capture of authentication factors and KYC identity data belonging to the end users of any UniApp application that integrates this module.

Source: ghsa-malware (bb8d4c8e562697925ed58fe79611f3adaeb70f5143c2b78ac1dce0c5e501c441)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "GHSA-mpgp-492w-x7xj",
            "import_time": "2026-07-22T23:02:09.280989424Z",
            "modified_time": "2026-07-22T20:39:05Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "bb8d4c8e562697925ed58fe79611f3adaeb70f5143c2b78ac1dce0c5e501c441",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-011008",
            "import_time": "2026-08-04T21:33:13.36621258Z",
            "modified_time": "2026-08-04T21:19:01Z",
            "sha256": "cf72c81030b9346ff3d3dd6f2e5f3395a61d433def25e5e2ea2a7e52a6051999",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-011085",
            "import_time": "2026-08-04T21:33:16.316646036Z",
            "modified_time": "2026-08-04T21:30:23Z",
            "sha256": "d0e76e07b9481e48aed15c8c742efdd04842416151389e53a82d2f7d925f0607",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-011172",
            "import_time": "2026-08-04T22:30:03.204033666Z",
            "modified_time": "2026-08-04T21:42:55Z",
            "sha256": "14d7f5ee3a1a66813ae093b96a6713382f629b5b63351c67a3f3187e5c1dafc5",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / encrypt-string-ttak

Package

Name
encrypt-string-ttak
View open source insights on deps.dev
Purl
pkg:npm/encrypt-string-ttak

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0
1.0.1
1.0.2

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"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "dist/encrypt-string.js",
            "sha256": "34d2de06ae441acdbec877044e4ed8a3c9f46e1825f6c89fb53d93e880c6b6c8",
            "tlsh": "027285453fc078481bab87e5b32bb0d2f19a04be29984a4ed411fd6136e463afbf1531"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/encrypt-string-ttak/MAL-2026-11011.json"