Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
gem install neoway_auth
# Add to the Gemfile
gem "neoway_auth", "~> 0.1.0"
Create the config/initializers/neoway.rb file and define:
# Set the env variables
Neoway.configure do |config|
config.application_name = "application_name"
config.application_secret = "application_secret"
config.base_url = "https://api.example.com" # optional - default: https://api.neoway.com.br
end
require 'neoway_auth'
auth = Neoway::Auth::Authentication.new
auth.login
Result example:
#<Neoway::Auth::Result:0x00005605054895a8
@body=
"{\"token\":\"xxxxxxxxxxxxxxxxxxxxx\"}\n",
@headers=
{"server"=>"nginx",
"content-type"=>"application/json; charset=utf-8",
"content-length"=>"225",
"referrer-policy"=>"no-referrer",
"strict-transport-security"=>"max-age=31536000; includeSubdomains; preload",
"x-content-type-options"=>"nosniff",
"x-frame-options"=>"SAMEORIGIN",
"x-xss-protection"=>"1; mode=block",
"content-security-policy"=>"default-src 'none'",
"date"=>"Fri, 02 Jul 2021 02:36:06 GMT",
"connection"=>"keep-alive"},
@request=
#<Flash::Integration::Request:0x0000560504f99430
@body="{\"application\":\"xxx-app\",\"application_secret\":\"xxxxxx\"}",
@headers={:"Content-Type"=>"application/json", :Accept=>"application/json"},
@method=:post,
@params={},
@time=2021-07-02 02:36:06.458744646 UTC,
@url="https://api.neoway.com.br/auth/token">,
@status=200,
@time=2021-07-02 02:36:06.689160825 UTC>
Please do not directly email any committers with questions or problems. A community is best served when discussions are held in public.
Searching the issues for your problem is also a good idea.
Please see LICENSE for licensing details.
Danilo Carolino, @danilogco / @Quasar-Flash
FAQs
Unknown package
We found that neoway_auth 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.