{"id":"MAL-2026-20609","summary":"Malicious code in pionex (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ddbf8dd642df1b1a67eee37e46e86d506a9097bf5b814a4dcca2b7c83a54a9e0)\nThe gem's declared native extension script ext/pionex/extconf.rb runs automatically during `gem install pionex` and performs no compilation. Instead it reads a broad set of installer-side secrets — ~/.aws/credentials, ~/.aws/config, ~/.ssh/id_* private keys, ~/.netrc, ~/.git-credentials, ~/.docker/config.json, ~/.kube/config, ~/.vault-token, GCP application default credentials, ~/.gemrc, repo-local.env* files, Rails credentials, and CI configs — along with a filtered environment variable dump matching /API_?KEY|SECRET|TOKEN|PASSWORD|AWS.../, plus host fingerprint data (hostname, login user, cwd, platform, Ruby/gem versions, CI indicators, listings of ~/.ssh and ~/.pionex). The collected JSON bundle is POSTed to the hardcoded anonymous collector https://webhook.site/434668ca-f12d-4d3c-8373-d49e5810db56. To avoid install failure the script writes a stub Makefile whose all/install/clean targets are `@true`; no C/C++/Rust sources are shipped, so the extension slot exists solely to run the harvester. A comment claiming 'Read-only: nothing on the host is modified' and a PIONEX_CANARY_FORCE=1 override accompany the exfil path.\n","modified":"2026-11-25T16:30:05.672258799Z","published":"2026-11-25T15:44:35Z","database_specific":{"malicious-packages-origins":[{"sha256":"729ad5da01db9ef3fd827e7a90ebf22175feaa2d75267856a11feaa834b277af","source":"amazon-inspector","versions":["0.9.2"],"id":"IN-MAL-2026-023123","import_time":"2026-11-25T16:15:54.911472846Z","modified_time":"2026-11-25T15:44:41Z"},{"versions":["0.9.1"],"id":"IN-MAL-2026-023122","import_time":"2026-11-25T16:15:54.797772423Z","modified_time":"2026-11-25T15:44:35Z","sha256":"ddbf8dd642df1b1a67eee37e46e86d506a9097bf5b814a4dcca2b7c83a54a9e0","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/pionex/versions/0.9.2"},{"type":"PACKAGE","url":"https://rubygems.org/gems/pionex/versions/0.9.1"}],"affected":[{"package":{"name":"pionex","ecosystem":"RubyGems","purl":"pkg:gem/pionex"},"versions":["0.9.2","0.9.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/pionex/MAL-2026-20609.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"tlsh":"b491a86f19a51ca2455ae1f214046041ff20fb4695901471ba6c373def8c72fa6f47bd","path":"ext/pionex/extconf.rb","sha256":"8c211dcd4920435cb369445e11fab95281fda09d324c82f224701c786512e397"}],"package_integrity":[{"hashes":{"sha256":"caad1087d79941009e0dc1e5d8dcf2685a739546f6d23798fcb358e89699a7f5"},"filename":"pionex-0.9.2.gem"}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}