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.
integrity-checker
Advanced tools
Easily verify the integrity of files within a project.
This library can be used in:
Use npm to install it:
cd into the root directory of your project, where the package.json file is located and do:
> npm install integrity-checker --save
import it into your project:
const integrity = require("integrity-checker");
function integrityCheck() {
if (integrity.checkDir("./", "Key", "IV")) {
// Integrity check passed - Files not modified
} else {
// Integrity check failed - Files possibly modified
}
}
Use npm to install it:
cd into the root directory of your project, where the package.json file is located and do:
> npm install integrity-checker --save
import it into your project:
import integrity from "integrity-checker";
function integrityCheck() {
if (integrity.checkDir("./", "Key", "IV")) {
// Integrity check passed - Files not modified
} else {
// Integrity check failed - Files possibly modified
}
}
For quick access to the hash values of a project/folder/file, you can use these commands:
> integrity check <file> <key> <iv>
Check the integrity of a file.
> integrity save <file> [key] [iv]
Save the file's hash for a integrity check.
> integrity hash <file>
Get the hash value of a file.
> integrity genkeys
Generate keys for hash encryption.
You can easily implement the module into your project, for checking the integrity of files when someone uses the application. We recommend that you include a integrity check on all files in at least 2+ files so that if someone changes one the other files will detect that.
FAQs
Easily verify the integrity of files within a project.
The npm package integrity-checker receives a total of 1 weekly downloads. As such, integrity-checker popularity was classified as not popular.
We found that integrity-checker 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.