MAL-2026-19054

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/strutil-core/MAL-2026-19054.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-19054
Published
2026-11-01T20:00:00Z
Modified
2026-11-10T00:00:06Z
Summary
Malicious code in strutil-core (RubyGems)
Details

strutil-core 1.0.1, presented as "Core string utilities for Ruby", runs its payload at install time from its native-extension step. The step downloads the Bun JavaScript runtime from Bun's GitHub releases into a hidden temporary directory (/tmp/.b_/) and runs ext/strutil-core/index.js from the installed gem. Observed in a sandboxed gem install strutil-core -v 1.0.1: the script read 51 credential stores belonging to other tools (cloud: AWS, Azure, Google Cloud, Vault; forges: GitHub CLI, GitLab CLI, git credentials, SSH keys; package registries: npm, PyPI, RubyGems, NuGet, Composer, Yarn; Docker and Kubernetes; Claude Code and Codex logins; database client files; cryptocurrency wallets; Terraform, Databricks, Hugging Face, Vercel and Kaggle tokens). It then used them against AWS STS, Secrets Manager and Systems Manager Parameter Store in 18 regions and ECR in 11, Azure Resource Manager and Microsoft Graph, Google Cloud's metadata service and Resource Manager, and the GitHub, GitLab and GitHub Container Registry APIs, and connected to paleasbest.top. It installed persistence as a systemd user service (~/.config/systemd/user/pkg-runtime.service) with ~/.local/share/runtimes/sync.py and a copy of the JavaScript at /.config/index.js, and rewrote the Cursor editor's MCP configuration (/.cursor/mcp.json). paleasbest.top is the server of the pystr-codec PyPI worm (MAL-2026-18432, Miasma family); this appears to be the same worm repackaged as a gem.

Database specific
{
    "iocs": {
        "domains": [
            "paleasbest.top"
        ],
        "files": [
            {
                "note": "systemd user service installed for persistence",
                "paths": [
                    "~/.config/systemd/user/pkg-runtime.service"
                ],
                "source": "DROPPED"
            },
            {
                "note": "dropped by the install-time payload",
                "paths": [
                    "~/.local/share/runtimes/sync.py",
                    "~/.config/index.js"
                ],
                "source": "DROPPED"
            },
            {
                "note": "Cursor MCP configuration rewritten",
                "paths": [
                    "~/.cursor/mcp.json"
                ],
                "source": "DROPPED"
            },
            {
                "note": "payload run with a downloaded Bun runtime",
                "paths": [
                    "ext/strutil-core/index.js"
                ],
                "source": "PACKAGE_ARCHIVE"
            }
        ]
    }
}
References
Credits

Affected packages

RubyGems / strutil-core

Package

Name
strutil-core
Purl
pkg:gem/strutil-core

Affected ranges

Affected versions

1.*
1.0.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/strutil-core/MAL-2026-19054.json"