Skip to main content

Malicious code in nft-metadata-resolver (RubyGems)

0
High
Published: 10/11/2026 (10/11/2026, 13:48:27 UTC)
Source: GCVE Database
Product: nft-metadata-resolver

Description

The RubyGem package nft-metadata-resolver version 0.9.1 contains a malicious native-extension script that executes a hidden payload during installation. This payload establishes a reverse shell connection to a hardcoded IP address, allowing remote code execution on the host. The malicious code includes sandbox evasion techniques to avoid detection in analysis environments. The package's metadata is inconsistent, misleading users about its true purpose.

Affected software

RubyGemsghsa
nft-metadata-resolver
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:44:49 UTC

Technical Analysis

The nft-metadata-resolver RubyGem version 0.9.1 includes a native-extension script (ext/nft_metadata_resolver/extconf.rb) that is automatically executed by RubyGems during installation. This script contains a base64-encoded Ruby payload that is decoded and executed via eval inside a detached child process. The payload opens a TCP connection to 45.138.12.177:8089 and bridges a /bin/sh shell to this socket, effectively providing the remote endpoint with an interactive shell on the victim host. The execution is conditioned on sandbox evasion checks that detect CI environments, ephemeral hostnames, analyst-like usernames, and short uptimes, firing only on developer-like home directories. The package metadata is inconsistent, advertising itself as nft-metadata-resolver but referencing bitcoin-rpc-lite in the README and makefile target, with no genuine native C/C++ code present. The extconf.rb script's sole purpose is to decode and execute the embedded malicious payload.

Potential Impact

Successful installation of this malicious gem results in remote code execution on the installer's system, providing the attacker with an interactive shell. This can lead to full system compromise, data theft, or further malicious activity. The sandbox evasion techniques reduce the likelihood of detection during automated analysis or in ephemeral environments, increasing the risk of targeted compromise.

Mitigation Recommendations

No official patch or remediation is currently documented for this malicious package. Users should avoid installing nft-metadata-resolver version 0.9.1 and remove it if already installed. Verify the authenticity of RubyGems packages before installation, and consider using trusted sources or package signing verification. Monitor for any unexpected network connections to the IP 45.138.12.177 and investigate any suspicious activity related to this gem. Patch status is not yet confirmed — check the vendor advisory or RubyGems security announcements 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-17792
Osv Schema Version
1.7.4
Ecosystems
["RubyGems"]

Threat ID: 6acc00a32cdf04f656fecb39

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

Last enriched: 10/11/2026, 21:44:49 UTC

Last updated: 10/11/2026, 21:44:49 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