net_sri
Subresource Integrity from LOCAL octets only — this tool never fetches. Give bytes_b64 or text (the exact file you reviewed) and get the ready-to-paste integrity attribute (sha256/sha384/sha512, strongest-first, W3C grammar), the crossorigin note, and full / tags when a url is given. Give integrity_attr to audit it: TAB/newline token separators are flagged as the CVE-2026-120423 class (a space-only verifier skips every token and accepts tampered bodies unconditionally), sha1/md5 and bad base64 refused by name, wrong-length digests caught, duplicates flagged (W3C = strongest supported wins, not all checked). URLs audited for moving parts: @latest and unversioned CDN paths flagged as planned outages, @5/@5.3 ranges as warn. With octets + attribute it VERIFIES the match locally — honest scope note included: SRI proves bytes are expected, never that they are safe. Free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "net_sri"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | style-audited only — NEVER fetched | |
| text | No | UTF-8 text source (declared) | |
| bytes_b64 | No | strict base64 of the exact file bytes | |
| algorithms | No | subset of sha256/sha384/sha512; default sha384 | |
| integrity_attr | No | attribute to audit or verify against octets |