mev-sandwich-detect (RubyGems) · Malicious Code
Affects mev-sandwich-detectSource GCVE Database
Malicious package : remove mev-sandwich-detect and rotate any secrets on hosts that installed it.
Data as of 11 Oct 2026, 21:45 UTC
Malicious package
Published to RubyGems · OSV MAL-2026-17790
What to do
Remove mev-sandwich-detect from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemsmev-sandwich-detect | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The RubyGem 'mev-sandwich-detect' version 0.9.1 is a malicious package that executes code at install time. It contains a stub gemspec with a native extension that does not build any addon but instead decodes and executes a hidden Ruby payload. This payload establishes a reverse shell to a hardcoded IP address, providing an interactive shell to an attacker. The payload includes anti-analysis checks to avoid execution in sandboxed or analyst environments and delays execution to evade detection. The package masquerades as a legitimate gem with misleading metadata.