Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Finds favorites icons for web pages on the world wide internets by checking the HTML head or the standard favicon location. Then, do with them what you will.
Called "iconoclasm" because there was already a gem on gemcutter called "iconoclast". Boo! Hiss!
To get the favicon for a page, do:
favicon = Iconoclasm.extract('www.website.com')
This will go and do a bunch of GETs (two or three, actually) on the url given. If you've already got the content and want to skip one of the GETs, you can pass the content in as the second argument.
content = get_some_content('www.website.com')
favicon = Iconoclasm.extract('www.website.com', content)
Iconoclasm.extract
returns an Iconoclasm::Favicon
instance, from which you can get the URL, content type, size, or access the binary image data. By calling valid?
, you can check if the favicon is valid based on whatever my standards were when I wrote this (basically, whether or not it's actually an image).
You can save the image to a tempfile using favicon.save
, or more usefully, to a file at favicon.save('path/to/file')
. Fun times had by all.
Copyright (c) 2009 Sander Hartlage. See LICENSE for details.
FAQs
Unknown package
We found that iconoclasm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.