{"id":"MAL-2026-13366","revision":"916635b9ddc54a259fcea13e680b0c2f","records":[{"revision":"916635b9ddc54a259fcea13e680b0c2f","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13366","aliases":[],"title":"Malicious code in @workoscalif/sudoku (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d6502011179b6d16c43f982d5d7bfb08feec7470444be52a5a3547cfafe0e217)\npackage.json declares a postinstall script that spawns vendor/gridgen-linux-x64 during `npm install`. The README describes this file as a ~34 kB static ELF built from a ~150-line C sudoku generator (native/gridgen.c), but the shipped artifact is a ~33.6 MB Go runtime executable (strings include `runtime.`, `reflect.`, `GODEBUG`, `chacha8`, `godebugs.Info`) — roughly 1000x the advertised size and a different language/toolchain than the shipped source. The binary contains `/proc/self/cgroup` and `/proc/self/mountinfo` strings, which are container/CI environment fingerprints unrelated to generating sudoku puzzles. The postinstall short-circuits unless `process.platform === 'linux' && process.arch === 'x64'` and honors `SUDOKU_SKIP_POSTINSTALL=1`, so developer laptops (macOS/Windows) and reviewers using `--ignore-scripts` do not execute the binary. The npm scope `@workoscalif` visually resembles the WorkOS authentication vendor while the package is an unrelated personal project (author `anas cherni`, homepage github.com/anascherni/sudoku), increasing the likelihood a developer installs it believing it is vendor-endorsed. The combination of a documentation/contents mismatch, a large opaque binary from an unrelated toolchain, Linux-x64/CI gating, container fingerprinting strings, and a scope resembling a known vendor is the opaque-native-binary dropper shape rather than the advertised C sudoku helper.\n","state":0,"publishedAt":"2026-08-05T18:08:10+00:00","modifiedAt":"2026-08-14T15:30:49.7959585+00:00","affected":[{"ecosystem":"npm","name":"@workoscalif/sudoku","ranges":[],"versions":["1.4.0","1.3.0","1.5.1","1.5.2","1.5.0","1.2.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@workoscalif/sudoku/v/1.4.0","https://www.npmjs.com/package/@workoscalif/sudoku/v/1.3.0","https://www.npmjs.com/package/@workoscalif/sudoku/v/1.5.1","https://www.npmjs.com/package/@workoscalif/sudoku/v/1.5.2","https://www.npmjs.com/package/@workoscalif/sudoku/v/1.5.0","https://www.npmjs.com/package/@workoscalif/sudoku/v/1.2.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13366","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13366","identifiers":["MAL-2026-13366"]},"retained":false,"historicalAffected":[]}],"coverage":[]}