Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
comfy-bench
Advanced tools
Easy benchmarking
Features:
import * as bench from 'comfy-bench'
import fsprom from 'fs/promises'
bench.add('read /etc/hostname', () => {
return fsprom.readFile('/etc/hostname')
})
bench.run()
output:
╔════════════════════╤═════════╤═══════╤═════════╗
║ Operation │ ops/sec │ Range │ usec/op ║
╟────────────────────┼─────────┼───────┼─────────╢
║ read /etc/hostname │ 17,506 │ ±2% │ 57 ║
╚════════════════════╧═════════╧═══════╧═════════╝
import * as bench from 'comfy-bench'
bench.addSystemBenchmarks()
bench.run()
output:
Discarding best and worst samples, since we have 5 or more
╔════════════════════════════════════╤════════════╤═══════╤═════════╗
║ Operation │ ops/sec │ Range │ usec/op ║
╟────────────────────────────────────┼────────────┼───────┼─────────╢
║ function call │ 71,710,658 │ ±4% │ 0 ║
║ async function call │ 9,908,368 │ ±1% │ 0 ║
║ Date.now() │ 14,884,354 │ ±1% │ 0 ║
║ readdir /etc │ 4,053 │ ±1% │ 247 ║
║ read /etc/hostname │ 16,755 │ ±1% │ 60 ║
║ read 1 bytes from /etc/hostname │ 72,555 │ ±2% │ 14 ║
║ read 1024 bytes from /etc/hostname │ 73,665 │ ±1% │ 14 ║
║ read 16 bytes from /dev/urandom │ 65,780 │ ±2% │ 15 ║
║ read 8192 bytes from /dev/urandom │ 5,341 │ ±7% │ 187 ║
║ read 16 bytes from /dev/zero │ 75,093 │ ±1% │ 13 ║
║ read 8192 bytes from /dev/zero │ 70,731 │ ±1% │ 14 ║
╚════════════════════════════════════╧════════════╧═══════╧═════════╝
FAQs
Easy benchmarking
The npm package comfy-bench receives a total of 0 weekly downloads. As such, comfy-bench popularity was classified as not popular.
We found that comfy-bench demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.