
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.
any-prebuilt
Advanced tools
Easy generator or integration of prebuilt packages for use with npm
or yarn
. It helps fetchs prebuilt binaries from github releases that will be bind as part of your package.
npm init
npm install any-prebuilt --save
postinstall.js
file with content:require('any-prebuilt').install(require('./package.json').prebuilt)
index.js
file with content:var anyPrebuilt = require('any-prebuilt')
anyPrebuilt.initialize(__dirname, require('./package.json').prebuilt)
module.exports.path = anyPrebuilt.path
package.json
add a prebuilt element (you can also add this to any other file that provides a jason object to both index and postinstall.js). "prebuilt": {
"arch": <string>, // Target architecture (supported: `ia32` / `x64`. Default value: machine's architecture)
"platform": <string>, //Target platform (supported: `win` / `osx` / `linux`. Default value: machine's platform)
"version": <string>, //Target version (format: `vX.Y.Z`. Default value: latest)
"targetDir": <string>, //Target directory (where to install the binaries. Default value: `./bin`)
"targetBin": <string>, //Target binary (the precompiled binary to be required in node. No default value)
"user": <string>, // user or Organization (format: string. Is `required`)
"repo": <string>, //Origin repo (format: string. Is `required`)
"token": <string> //Github token (format: string. `required` if private repo)
}
package .json
add the next script:"scripts": {
"postinstall": "node postinstall.js"
}
As seen before this can be configured using a json object but also can be configured or overrided using the next enviroment variables PREBUILT_ARCH
, PREBUILT_PLATFORM
, PREBUILT_VERSION
, PREBUILT_BINARY
, PREBUILT_TOKEN
, PREBUILT_REPO
, PREBUILT_USER
and PREBUILT_TARGET_DIR
environment variables.
Hours graphic by Freepik from Flaticon is licensed under CC BY 3.0. Made with Logo Maker
FAQs
wrapper for prebuilt packages
The npm package any-prebuilt receives a total of 4 weekly downloads. As such, any-prebuilt popularity was classified as not popular.
We found that any-prebuilt 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.