
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.
A simple cli command to know WTF is the correct path to be required when we have a complex project.
npm install -g urequ
urequ requirer required
For example, imagine that inside
/Users/sullof/Projects/qabra/web/src/server/controller/jokes.es6
we want to require the library
/Users/sullof/Projects/qabra/common/lib/remote/funny.js
and we are in a terminal window at
/Users/sullof/Projects/qabra/web
Using the shell autocomplete we can easily execute
urequ src/server/controller/jokes.es6 ../common/lib/remote/funny.js
which will return
const funny = require('../../../../../common/lib/remote/funny')
If the requiring file is not a javascript file the result is a bit different. For example:
urequ src/server/controller/jokes.es6 src/server/data.json
will return
const dataJson = require('../data.json')
If you like, you can inject the line at the top of the requirer, specifying the name of the constant. For example:
urequ src/server/controller/jokes.es6 src/server/data.json Data
will inject at the top of jokes.es6
the line
const Data = require('../data.json')
If there is a statement 'use strict'
the like is inserted after it.
And, of course, after inserting it, you can move it where you like : )
Version 1.0.0 — 02/25/2016
(c) Francesco Sullo sullof@gmail.com
FAQs
Command line tool for finding correct require paths
The npm package urequ receives a total of 0 weekly downloads. As such, urequ popularity was classified as not popular.
We found that urequ 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
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.