
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
Actively track user engagement and know when they move away from your page.
npm install --save actively
import Actively from 'actively';
const active = new Actively({
timeIntervalEllapsedCallbacks: [],
absoluteTimeEllapsedCallbacks: [],
browserTabInactiveCallbacks: [],
browserTabActiveCallbacks: [],
idleTimeoutMs: 3000,
checkCallbacksIntervalMs: 250
})
window.addEventListener('mousemove', active.startTimer)
window.addEventListener('beforeunload', active.stopTimer)
import Actively from 'actively';
const active = new Actively({
timeIntervalEllapsedCallbacks: [],
absoluteTimeEllapsedCallbacks: [],
browserTabInactiveCallbacks: [],
browserTabActiveCallbacks: [],
idleTimeoutMs: 3000,
checkCallbacksIntervalMs: 250
})
window.addEventListener('mousemove', active.startTimer)
window.addEventListener('beforeunload', active.stopTimer)
const cb = {
multiplier: time => time + (60 * 5 * 1000), // Every 5 minutes
timeInMilliseconds: 0,
callback: () => {
console.log("Doing Something every 5 minutes")
}
}
active.addTimeIntervalEllapsedCallback(cb)
const callback = () => console.log('Browser going inactive');
active.addBrowserTabInactiveCallback(callback)
var ActiveTimeIntervals = active.times; // array of time periods with user activity
Shows is user is active on current webpage and the timer is running.
Array of timeDurations when the user was active.
Each time duration is
Object({
start: Date,
stop: Date
})
True when the user is inactive on current webpage and the timer is stopped.
Time elapsed(in miliseconds) since the user was last active.
The idle time for a user after which timer stops and user is marked as inactive.
Demo coming soon!
MIT © Gaurav Koley, 2020
FAQs
Track user's active time on browser
The npm package actively receives a total of 4 weekly downloads. As such, actively popularity was classified as not popular.
We found that actively 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.