Check if file hashes are dangerous using the Team CYMRU Malware Hash Registry.
npm install cymru-mhr
const mhr = require("cymru-mhr")
const { lastSeen, detectionRate } = await mhr("7697561ccbbdd1661c25c86762117613")
console.log(`Last seen on ${new Date(lastSeen * 1000).toString()}`)
console.log(`Detected by ${detectionRate} antivirus engines`)
Check a file hash. Returns a promise that resolves with { lastSeen: number, detectionRate: number }
.
Check multiple file hashes. Returns a promise that resolves with an array of { lastSeen: number, detectionRate: number }
.
Type: string
The MD5 or SHA1 hash to check.
Type: string[]
An array of MD5 or SHA1 hashes to check.