
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@trustroot/guard
Advanced tools
A security framework designed to hash directories and files, ensuring data integrity and detecting unauthorized changes.
TrustRoot Guard is a security framework designed to hash directories and files, ensuring data integrity and detecting unauthorized changes.
TrustRoot Guard is a security and verification toolkit designed to protect users and developers in the TrustRoot ecosystem. It provides tools and browser integrations for verifying file and directory integrity, monitoring registry attestations, and ensuring tamper-proof execution of Web3 automations. TrustRoot Guard is composed of a CLI, browser extension, service worker, and utility modules, all working together to deliver verifiable trust for Web3 interactions.
.troot.json manifests, normalizes and hashes HTML for reproducible integrity, and bundles web projects for TrustRoot integrity protection..troot.json manifests, blocks or allows external resources based on a cryptographically managed whitelist, and caches/validates file hashes for secure resource loading.index.html and provides real-time UI feedback for trust status.git clone https://github.com/trustRootOrg/guard.git
cd guard
npm install
Use the CLI to hash a directory or file, or to bundle a directory for deployment:
npx @trustroot/guard hash <directory-or-file>
npx @trustroot/guard bundle <directory>
<directory or file path>: Path to the directory or file you want to hash.--refreshHash: Recalculates hash values for the specified directory or file (default: false).--skipGenerateHash: Skips writing the .troot.json file (default: false).npx @trustroot/guard hash ./my-directory
npx @trustroot/guard hash ./my-file.txt
npx @trustroot/guard bundle ./my-directory
.troot.json:
npx @trustroot/guard hash ./my-directory --refreshHash
.troot.json:
npx @trustroot/guard hash ./my-directory --skipGenerateHash
The Chrome extension provides real-time verification of the root hash and trust status for your web project. To install it in developer mode:
npm run build
chrome://extensions/.cli/extension directory inside your project.To build the project, run:
npm run build
Run tests using Mocha:
npm test
Contributions are welcome! Please follow these steps:
git checkout -b feature/your-feature-name
git commit -m "Add your descriptive commit message here"
git push origin feature/your-feature-name
This project is licensed under the MIT License.
If you encounter any issues or have questions, feel free to open an issue on the GitHub repository.
Special thanks to all contributors and the open-source community for their support and inspiration.
FAQs
A security framework designed to hash directories and files, ensuring data integrity and detecting unauthorized changes.
We found that @trustroot/guard 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.