
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Racket -- Ruby Raw Packet library.
Comments, concerns, bugs, money, food, libations to:
Jon Hart jhart@spoofed.org
Installation is simple:
gem install --source http://spoofed.org/files/racket/ racket
If you desire the source:
svn co http://spoofed.org/racket/svn racket
Includes support for reading and writing most major layer 2, 3, 4 and 5 protocols.
Basic packet construction and writing is as simple (!) as walking the stack:
require 'rubygems' require 'racket'
include Racket unless (ARGV.size == 4) puts "Usage: #{$0} <dst_port> " exit end
n = Racket::Racket.new n.iface = "eth0"
n.l3 = IPv4.new n.l3.src_ip = ARGV[0] n.l3.dst_ip = ARGV[1] n.l3.protocol = 0x11
n.l4 = UDP.new
n.l4.src_port = 1024 + rand(65535-1024)
n.l4.dst_port = ARGV[2].to_i
n.l4.payload = Misc.randstring(ARGV[3].to_i)
n.l4.fix!(n.l3.src_ip, n.l3.dst_ip)
f = n.sendpacket
n.layers.compact.each do |l| puts l.pretty end puts "Sent #{f}"
Packet reading, done through something like Pcap, is pretty straight forward too:
require 'rubygems' require 'racket'
binary = "\x45\x10\x00\x3c\x2f\xdf\x40\x00\x40\x06\x89\x17\xc0\xa8\x00\x64\xc0\xa8\x00\x01\x99\xb7\x00\x35\x29\x39\x28\x66\x00\x00\x00\x00\xa0\x02\x16\xd0\xbc\x04\x00\x00\x02\x04\x05\xb4\x04\x02\x08\x0a\x00\x31\x07\xb9\x00\x00\x00\x00\x01\x03\x03\x07" i = Racket::IPv4.new(binary)
puts i.pretty
FAQs
Unknown package
We found that mt_racket demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.