Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@cisco/bot-middleware
Advanced tools
Middleware to intercept messages, e.g., gather and send analytics
Middleware to intercept messages. For example, gather and send analytics.
Install with npm.
npm i @gve/bot-middleware
// Create a Webex bot with Botkit.
const { Botkit } = require("botkit");
const { WebexAdapter } = require("botbuilder-adapter-webex");
const adapter = new WebexAdapter({
access_token: "<BOT_ACCESS_TOKEN>",
public_address: "<BOT_URL>",
secret: "<BOT_SECRET>",
});
const controller = new Botkit({
adapter,
webhook_uri: "/api/messages",
});
// Use the product analytics middleware. 👇
const { Analytics } = require("@gve/bot-middleware");
const analyticsMiddleware = new Analytics("<ANALYTICS_API_KEY>");
controller.middleware.receive.use(analyticsMiddleware.trackUserMessage);
controller.middleware.send.use(analyticsMiddleware.trackBotMessage);
Now basic properties from all messages are automatically ✨ sent to analytics, including:
FAQs
Middleware to intercept messages, e.g., gather and send analytics
The npm package @cisco/bot-middleware receives a total of 0 weekly downloads. As such, @cisco/bot-middleware popularity was classified as not popular.
We found that @cisco/bot-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.