Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
node-provenance-hash
Advanced tools
A cli tool to use when you need to create a provenance HASH for an HFT project.Can also be used to prove that folder contents have not been changed since creation of the hash
Create a provenance hash for folder contents.
This package is made (but not limited) for NFT projects that have a need to prove that a folder did not have its contents changed. To do this, we do the following:
This gives us a string. In case the order of files has changed or contents of any file has changed, the string we get would change also indicating that the contents of the folder has changed, hence the PROVE in provenance hash. We are proving the contents and ordering is same.
##Usage
hash.ts
import { makeHash } from "node-provenance-hash";
//The following function will sort the files in ascending order using number derived from filename i.e 1.jpg (if it doesn't contain Infinity and NaN)
const numericalCompare = (a: string, b: string): number => {
const fileNameToNumber = (file: string): number => Number(file.split(".")[0]);
return fileNameToNumber(a) - fileNameToNumber(b);
};
makeHash(
__dirname + "/sources/images",
__dirname + "/sources/json",
numericalCompare
).then((data) => console.log(data));
then
ts-node hash.ts
FAQs
A cli tool to use when you need to create a provenance HASH for an HFT project.Can also be used to prove that folder contents have not been changed since creation of the hash
The npm package node-provenance-hash receives a total of 0 weekly downloads. As such, node-provenance-hash popularity was classified as not popular.
We found that node-provenance-hash 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.