
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Faraday XML Middleware.
Add this line to your application's Gemfile:
gem 'faraday-xml'
And then execute:
bundle install
Or install it yourself as:
gem install faraday-xml
require 'faraday'
require 'faraday/xml'
conn = Faraday.new do |builder|
builder.headers.update(
"Accept" => "application/xml",
"Content-Type" => "application/xml;charset=UTF-8",
)
# or builder.use Faraday::XML::Request
builder.request :xml # encode Hash as XML
# or builder.use Faraday::XML::Response
builder.response :xml # decode response bodies from XML
end
There is also basic support for first class XML encoding/parsing
require 'faraday'
require 'faraday/xml'
hash = { 'user' => { 'name' => 'Erik Michaels-Ober', 'screen_name' => 'sferik' } }
xml = '<user><name>Erik Michaels-Ober</name><screen_name>sferik</screen_name></user>'
encoder = Faraday::XML::Encoder.build!(indent: 0)
encoder.encode(hash) == xml
parser = Faraday::XML::Parser.build!
parser.parse(xml) == hash
After checking out the repo, run bin/setup
to install dependencies.
Then, run bin/test
to run the tests.
To install this gem onto your local machine, run rake build
.
To release a new version, make a commit with a message such as "Bumped to 0.0.2" and then run rake release
.
See how it works here.
Bug reports and pull requests are welcome on GitHub.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that faraday-xml 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.