{"id":"MAL-2026-6111","summary":"Malicious code in @rafaelsene01/agent-flow (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3855afe87d31e428546f226e1da9236cd0e4dc45a477afb9f6ba1c707a4b05ec)\nThe package's main and bin entry, dist/agent-flow.js, is shipped as a heavily obfuscated bundle produced by javascript-obfuscator (declared as a devDependency in package.json). After deobfuscation, the runtime behavior matches the advertised purpose: a local Express server bound to 127.0.0.1:5522 that talks to api.github.com using the user-provided GH_TOKEN/GITHUB_TOKEN environment variable (or the local `gh auth token` output), manages git worktrees, and spawns the local `claude` CLI. No remote code fetch, no eval of remote content, no read of installer secret paths (~/.aws, ~/.ssh, ~/.netrc, ~/.npmrc), and no exfiltration destination beyond api.github.com. The postinstall hook only runs `npm install --prefix web` when `web/package.json` exists, which it does not in the published tarball. Obfuscating an MIT-licensed distributed bundle is a code-review-hostility concern rather than a supply-chain attack, but it materially raises the cost of independent verification and warrants human review.\n\n## Source: ghsa-malware (a5df09db75f73bdebd523abf5b350fca006eafabadfeef16baccd7043191dc61)\nAny 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.\n","aliases":["GHSA-rhv6-f4px-2cf4"],"modified":"2026-07-09T23:02:04.810711870Z","published":"2026-06-18T05:19:16Z","database_specific":{"malicious-packages-origins":[{"id":"GHSA-rhv6-f4px-2cf4","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"import_time":"2026-06-18T05:54:18.9766443Z","sha256":"a5df09db75f73bdebd523abf5b350fca006eafabadfeef16baccd7043191dc61","source":"ghsa-malware","modified_time":"2026-06-18T05:19:17Z"},{"id":"IN-MAL-2026-008432","versions":["1.2.1"],"import_time":"2026-07-08T20:32:27.70494272Z","sha256":"062aeffd53decb4f08563240e1f906404ef79037fb7192c8dd72705291a2f47c","source":"amazon-inspector","modified_time":"2026-07-08T20:09:28Z"},{"id":"IN-MAL-2026-008508","versions":["1.9.0"],"import_time":"2026-07-08T20:32:37.978606084Z","source":"amazon-inspector","modified_time":"2026-07-08T20:21:11Z","sha256":"14c6edb75432ba69d61f1461299a9e81ffecd24449463fd59d47278ed45b30a0"},{"id":"IN-MAL-2026-008506","versions":["1.0.4"],"import_time":"2026-07-08T20:32:37.732947664Z","sha256":"224b329c9b1516b6bcd547439b6883258076fee922da3f58ba0819cb4a96fbe5","source":"amazon-inspector","modified_time":"2026-07-08T20:20:52Z"},{"id":"IN-MAL-2026-008507","versions":["1.4.0"],"import_time":"2026-07-08T20:32:37.843380215Z","sha256":"8fd5af7e5d44541ee33dd93b0a7a2fa9bb8e62dfa8ef0a7b5681383853ee1835","source":"amazon-inspector","modified_time":"2026-07-08T20:21:01Z"},{"id":"IN-MAL-2026-008505","versions":["1.3.0"],"import_time":"2026-07-08T20:32:37.638452582Z","sha256":"982aec4658813846714e7cea6fd3262a93fa1b4bf99c4bd09c90770efe5765f5","source":"amazon-inspector","modified_time":"2026-07-08T20:20:43Z"},{"id":"IN-MAL-2026-008471","versions":["1.0.3"],"import_time":"2026-07-08T20:32:33.108606933Z","source":"amazon-inspector","modified_time":"2026-07-08T20:15:32Z","sha256":"b189530bf5841a2de2c5930de44ce725556052f73428e1993b22acc559ab05ef"},{"id":"IN-MAL-2026-008571","versions":["1.7.0"],"import_time":"2026-07-08T20:32:45.795893188Z","sha256":"c998c739f8fe5e7f9a59a51d67d533db61844456d62c7a8098eb79f74c8f86aa","source":"amazon-inspector","modified_time":"2026-07-08T20:30:26Z"},{"id":"IN-MAL-2026-008862","versions":["1.2.3"],"import_time":"2026-07-08T22:51:29.276885025Z","sha256":"30c1bb3d3f56b7f8d851c21c619cafff326dfc386977816b8577934a7cf8ea82","source":"amazon-inspector","modified_time":"2026-07-08T22:44:09Z"},{"id":"IN-MAL-2026-008863","versions":["1.5.0"],"import_time":"2026-07-08T22:51:29.376763485Z","sha256":"57fb242bc900da853727f1a8bbd5318d617fc87b14bec46ed3c21b0c174d1f17","source":"amazon-inspector","modified_time":"2026-07-08T22:44:17Z"},{"id":"IN-MAL-2026-008861","versions":["1.2.2"],"import_time":"2026-07-08T22:51:29.128717686Z","sha256":"f5d3453f40d642994d96667c8d6e1189bf5f1f6f565378ac27136e55efd63654","source":"amazon-inspector","modified_time":"2026-07-08T22:44:01Z"},{"id":"IN-MAL-2026-008969","versions":["1.5.1"],"import_time":"2026-07-08T23:27:56.524347567Z","source":"amazon-inspector","modified_time":"2026-07-08T22:59:48Z","sha256":"367e6d2431e90a22429adff161d2544e5534b0c492bf1530c65f2bf11c13b277"},{"id":"IN-MAL-2026-008967","versions":["1.0.2"],"import_time":"2026-07-08T23:27:56.269220474Z","sha256":"3855afe87d31e428546f226e1da9236cd0e4dc45a477afb9f6ba1c707a4b05ec","source":"amazon-inspector","modified_time":"2026-07-08T22:59:33Z"},{"id":"IN-MAL-2026-009420","versions":["1.0.5"],"import_time":"2026-07-09T22:02:29.562418765Z","sha256":"32f09d13d7e3b1139787a4fd60755359b80f359c91e6e9435b08c4da9a7e77df","source":"amazon-inspector","modified_time":"2026-07-09T21:53:23Z"},{"id":"IN-MAL-2026-009417","versions":["1.1.0"],"import_time":"2026-07-09T22:02:29.28425987Z","modified_time":"2026-07-09T21:52:56Z","sha256":"557216e188e0e74877e9b5322c1837c208b0e1c73bc8f0c038943d04efe3707c","source":"amazon-inspector"},{"id":"IN-MAL-2026-009507","versions":["1.8.0"],"import_time":"2026-07-09T22:56:29.318771114Z","source":"amazon-inspector","modified_time":"2026-07-09T22:05:30Z","sha256":"27bd478b9818997c7e6a336fd86d7bc3e21f5c341b6726f5b79a045b07c9a748"},{"id":"IN-MAL-2026-009505","versions":["1.6.0"],"import_time":"2026-07-09T22:56:29.147003657Z","sha256":"2fd6f156ec82c795da25331e5922573154b7e16c4154c6e14c8f072c947e77e5","source":"amazon-inspector","modified_time":"2026-07-09T22:05:13Z"},{"id":"IN-MAL-2026-009501","versions":["1.2.0"],"import_time":"2026-07-09T22:56:28.768393024Z","sha256":"bba1c430b05b2aafb918d6216ea6aa3009d38eebe269c154e8f9a00236c02742","source":"amazon-inspector","modified_time":"2026-07-09T22:04:36Z"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-rhv6-f4px-2cf4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.2.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.9.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.4.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.3.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.7.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.2.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.5.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.2.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.5.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.8.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.6.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rafaelsene01/agent-flow/v/1.2.0"}],"affected":[{"package":{"name":"@rafaelsene01/agent-flow","ecosystem":"npm","purl":"pkg:npm/%40rafaelsene01/agent-flow"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.2.1","1.9.0","1.0.4","1.4.0","1.3.0","1.0.3","1.7.0","1.2.3","1.5.0","1.2.2","1.5.1","1.0.2","1.0.5","1.1.0","1.8.0","1.6.0","1.2.0"],"database_specific":{"indicators":{"evidence_files":[{"tlsh":"1025ea926a8070a4235b5b7bbb1fb0e5f01a0c1fb89c085fe5547c6c15a526ffba6d30","path":"dist/agent-flow.js","sha256":"4a75a6c90f806a18793519cf5d7c3aea54a37152f7b0e78b0828fc86c8073cee"},{"tlsh":"d2311db0cd684eb30ac842a96c748153902fc4075d0abc4833da935c8f5d63f62baa7e","sha256":"76263b99d13b1c14fe2c7b0073a0b761be4a8c236b87d61fc023317ba422815c","path":"package.json"}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","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"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"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.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"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.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@rafaelsene01/agent-flow/MAL-2026-6111.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}