Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
machine-digest
Advanced tools
make digest and uuid of the running machine
Get UUID of the running machine, and make sha256 digest of the combined hardware and OS info with custom secret. Supports Linux, MacOS and Windows.
npm i --save machine-digest
const md = require('machine-digest')
const uuid = md.uuid() // sha256 hex digest of combined info
const UUID = md.UUID() // sha256 hex digest of only hardware UUID
const rawUUID = md.rawUUID() // raw hardware UUID
// get summary, default make hex digest
md.get()
{ digest: 'a5d53e51a35755257c3c5fb38f77ec9bd401ab9241803216875de36648c2',
machine:
{ OS_TYPE: 'Darwin',
OS_PLATFORM: 'darwin',
OS_ARCH: 'x64',
OS_CPU: 'Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz.Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz.Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz.Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz',
id: '576D4728-C140-523C-B801-EFE5EIUHF7F9' } }
// get different digests
md.digest('hex')
'542a579ca9357e9797d2e11316689bfbdb52ba51013729b8db56c169a74cc83b'
md.digest('ascii')
'T*W\u001c)5~\u0017\u0017Ra\u0013\u0016h\u001b{[R:Q\u00017)8[VAi\'LH;'
// add or overwrite machine attribute
const attrs = {hostname: os.hostname()}
md.put(attrs)
// change encryption secret
md.secret = "your secret"
FAQs
make digest and uuid of the running machine
The npm package machine-digest receives a total of 30 weekly downloads. As such, machine-digest popularity was classified as not popular.
We found that machine-digest 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.