
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
frequency-counter
Advanced tools
Count the number of occurrences of a repeating event per unit of time
Count the number of occurrences of a repeating event per unit of time.
npm install frequency-counter --save
Example HTTP server responding with the number of requests per minute (rpm):
const http = require('http')
const Freq = require('frequency-counter')
// if no arguments are given a window of one minute is used
const counter = new Freq()
const server = http.createServer(function (req, res) {
// increment the count
counter.inc()
// return current frequency to client
res.end('rpm: ' + counter.freq() + '\n')
})
server.listen(3000)
counter = new Freq([windowSize])Initialize the frequency counter. Optionally set a custom window size in
seconds over which the frequency should be calcuated (default: 60).
counter.inc([amount])Track an occurrence by incrementing a counter. Optionally provide the
amount to increment by (default: 1).
number = counter.freq()Calculate and return the current frequency.
MIT
FAQs
Count the number of occurrences of a repeating event per unit of time
The npm package frequency-counter receives a total of 135 weekly downloads. As such, frequency-counter popularity was classified as not popular.
We found that frequency-counter 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
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.