
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.
@flarelabs-net/wrangler-build-time-fs-assets-polyfilling
Advanced tools
The package in a nutshell generates files at built time that define what static assets a Cloudflare worker has access to alongside fs polyfills that make sure to such files to provide support for some `fs` functions.
The package in a nutshell generates files at built time that define what static assets
a Cloudflare worker has access to alongside fs polyfills that make sure to such files
to provide support for some fs
functions.
A more proper documentation will be added later here if beneficial 🙂
Install the package as a dev dependency:
npm i -D @flarelabs-net/wrangler-build-time-fs-assets-polyfilling
The package can be run via npx
and similar tools:
npx wrangler-build-time-fs-assets-polyfilling --assets ./public
The command currently accepts two types of options:
--assets
|-a
--assets-output-dir
|-o
Besides the above you need to update your wrangler config file to:
include an assets
binding, its binding name needs to be
ASSETS
and it's directory needs to be either:
include alias
es set to the following:
node:fs
: ./.wrangler/fs-assets-polyfilling/polyfills/node/fs.ts
fs
: ./.wrangler/fs-assets-polyfilling/polyfills/node/fs.ts
node:fs/promises
: ./.wrangler/fs-assets-polyfilling/polyfills/node/fs/promises.ts
fs/promises
: ./.wrangler/fs-assets-polyfilling/polyfills/node/fs/promises.ts
optionally a build
command that runs the wrangler-build-time-fs-assets-polyfilling
command (for convenience)
FAQs
The package in a nutshell generates files at built time that define what static assets a Cloudflare worker has access to alongside fs polyfills that make sure to such files to provide support for some `fs` functions.
We found that @flarelabs-net/wrangler-build-time-fs-assets-polyfilling demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers 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.