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.
cucumber-eavesdropper-plugin
Advanced tools
A cucumber listener that eavesdrops on the event stack
Provides an easy way to listen to the cucumber-js message pump. The eavesdropper manipulates a Cucumber listener to output all events and information to the console.
As always, you'll need to install cucumber-eavesdropper as a dependency
npm install cucumber-eavesdropper-plugin --save
Then in a step definition (e.g. step_definitions/worldDefinition.js) register the plugin as a listener
var eavesdropper = require('cucumber-eavesdropper-plugin')
function worldDefinition() {
this.registerListener(eavesdropper)
}
Example usage can be found here
The eavesdropper simply logs the captured event name to console. Output looks like this:
Running "cucumberjs:files" (cucumberjs) task
Event: BeforeFeatures
Driving the web on session: 73f6d374d88b44d985b7494511347f6b
Feature: Search
Event: BeforeFeature
Event: Background
Scenario: Perform a search
Event: BeforeScenario
Event: BeforeStep
> POST: /session/:sessionID/url
Given I am on the homepage
Event: StepResult
Event: AfterStep
Event: BeforeStep
> POST: /session/:sessionID/element
> POST: /session/:sessionID/element/:wdc:1386009290174/value
> POST: /session/:sessionID/element
> POST: /session/:sessionID/element/:wdc:1386009290175/click
When I perform a search
Event: StepResult
Event: AfterStep
Event: BeforeStep
> POST: /session/:sessionID/element
Then I see the search results page
Event: StepResult
Event: AfterStep
Event: AfterScenario
Event: AfterFeature
1 scenario (1 passed)
3 steps (3 passed)
Event: AfterFeatures
> DELETE: /session/:sessionID
Ending your web drivage..
FAQs
A cucumber listener that eavesdrops on the event stack
We found that cucumber-eavesdropper-plugin 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
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.