Skip to main content

Malicious code in block-explorer-api (RubyGems)

0
High
Published: 10/11/2026 (10/11/2026, 13:46:34 UTC)
Source: GCVE Database
Product: block-explorer-api

Description

The Ruby gem 'block-explorer-api' version 0.9.1 contains malicious code in its native-extension build script. This code decodes and executes a base64-encoded Ruby payload that establishes a reverse shell connection to a hardcoded command-and-control server. The payload activates only under specific conditions to evade detection, including anti-analysis checks and delays. The gem's advertised library is inert and does not match the gem's name or README, indicating deception.

Affected software

RubyGemsghsa
block-explorer-api
Affected versions
=0.9.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/11/2026, 21:45:43 UTC

Technical Analysis

The 'block-explorer-api' Ruby gem version 0.9.1 includes a malicious native-extension build script (extconf.rb) that decodes a base64 Ruby payload and executes it via eval() in a detached child process. This payload opens a TCP connection to a hardcoded IP address (45.138.12.177) on port 8089, bridging it to a shell (/bin/sh) to provide a full interactive reverse shell on the host under the installing user. The execution is gated by multiple anti-analysis checks that skip CI environments, sandboxed hosts, generated usernames, common analysis paths, and hosts with low uptime. It also requires the presence of developer-related files such as ~/.ssh or ~/.gitconfig and triggers after a randomized delay of 20-40 minutes. The shipped library code is a minimal stub unrelated to the malicious functionality, and the gem's metadata is deceptive, with mismatched names and authorship.

Potential Impact

Successful installation of this gem version results in remote code execution on the host system under the installing user's privileges via a reverse shell to a remote attacker-controlled server. This can lead to full compromise of the affected system, data exfiltration, and further malicious activity. The anti-analysis and evasion techniques reduce the likelihood of early detection.

Mitigation Recommendations

No official patch or remediation is currently documented for this malicious package. Users should avoid installing 'block-explorer-api' version 0.9.1 from untrusted sources. Remove any installations of this gem immediately. Monitor for suspicious network connections to the IP 45.138.12.177 on port 8089. Since this is a malicious package, rely on trusted repositories and verify package authenticity before installation. Patch status is not yet confirmed — check vendor advisories or trusted security sources for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-17780
Osv Schema Version
1.7.4
Ecosystems
["RubyGems"]

Threat ID: 6acc00a32cdf04f656fecb44

Added to database: 10/11/2026, 21:33:23 UTC

Last enriched: 10/11/2026, 21:45:43 UTC

Last updated: 10/11/2026, 21:45:43 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses