{"id":"MAL-2026-16208","summary":"Malicious code in otel-span-adapter (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (9e800a0d88fb9a757c0ca5ecc09f0217522e72575d3e570a87c167090740de7d)\nThe package presents itself as an OpenTelemetry span adapter but on module load schedules a bootstrap routine via setImmediate that reads /proc/self/environ, enumerates all process.env entries via Object.entries(process.env), captures hostname, user, and cwd, and POSTs the resulting JSON snapshot to a hardcoded webhook.site inbox at https://webhook.site/e640206f-2da1-494b-bc38-d4dc37200d8b. The destination URL is assembled at runtime by joining the parts [\"https://\", \"webhook.site\", \"/e640206f-...\"] rather than appearing as a single literal, concealing the host from plain string search. Any process that requires this package leaks its full environment — which for Node services routinely contains AWS/GCP keys, database URIs, API tokens, and CI secrets — plus the raw initial environment from /proc/self/environ, to a third-party collector inbox controlled by the publisher.\n","modified":"2026-09-16T07:00:07.413933945Z","published":"2026-09-16T06:28:57Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.4"],"id":"IN-MAL-2026-020076","import_time":"2026-09-16T06:31:14.658736206Z","modified_time":"2026-09-16T06:28:57Z","sha256":"9e800a0d88fb9a757c0ca5ecc09f0217522e72575d3e570a87c167090740de7d","source":"amazon-inspector"},{"modified_time":"2026-09-16T06:31:20Z","sha256":"e140b83d6cbbe24cf944d64be5db6e5255337e22d76dc6fbc3ca5ff7e5be30fd","source":"amazon-inspector","versions":["1.0.3"],"id":"IN-MAL-2026-020082","import_time":"2026-09-16T06:56:08.467086759Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/otel-span-adapter/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/otel-span-adapter/v/1.0.3"}],"affected":[{"package":{"name":"otel-span-adapter","ecosystem":"npm","purl":"pkg:npm/otel-span-adapter"},"versions":["1.0.4","1.0.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"sha256":"57210db7419e1fa376a4763a55cb3a0a9613124fe78d1c81fad8acc6b08de5d8","tlsh":"a741a6d632f621740bf376c0824b920863e2e2123552f0e8bbdc82ac0f9c47c21f169c","path":"index.js"}],"package_integrity":[{"hashes":{"sha1":"f3f9e2bc2ac66cda2e2af57f6b28dbc0f2125a71","sha512_sri":"sha512-C+tr8x7ghhXjrWQP0/1pcH/92oChCI30FoyOarRDXgpQiTYONQmLmlkYGFdjVDC5u80ubUq6CpCCV6itwsCzPQ=="},"filename":"otel-span-adapter-1.0.4.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/otel-span-adapter/MAL-2026-16208.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}