
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.
Basis for an HTTP event-driven machine, typically useful for CI/CD triggers.
Basis for a reactive HTTP event-driven machine, typically useful for CI/CD triggers.
This allows for a quick implementation of logic in HTTP-based flows involving Web Hooks, REST APIs and scheduled monitoring.
npm install makine --save
const { extract on, reply, request, response, serve } = require('makine')();
serve()(
on('GET', '/ok')(
reply(response.empty())
),
on('GET', '/hello')(
reply(response.body({ message: "ciao" })
)
)
const app = ...
const { extract on, reply, request, response, serve } = require('makine')(app);
serve()(
on('GET', '/ok')(
reply(response.empty())
),
on('GET', '/hello')(
reply(response.body({ message: "ciao" })
)
)
serve(7777)(
...
)
Makine request handling with .on()
is actually an RxJS pipeline with helpers.
on('POST', '/test')(
reply(req => of(req).pipe(
extract.body('path'), // extract the path from the original request
map(path =>
({ uri: `http://localhost:3000/${path}` })), // prepare the new request
request.perform(), // perform the new request
extract.body('greeting'), // extracts the message from the response
map(greeting => ({ message: `${greeting} you!` })), // prepare our response body
request.onErrorMap(404, // in case the new request failed with 404
res => of({ message: `We had problem with ${res.uri}` })),
flatMap(response.body())), // prepare the response with the prepared body
FAQs
Basis for an HTTP event-driven machine, typically useful for CI/CD triggers.
The npm package makine receives a total of 6 weekly downloads. As such, makine popularity was classified as not popular.
We found that makine 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.