v0.0.188
Release notes
Leaked secret findings now show where the key sits: a redacted snippet of the code around it, with nearby passwords, tokens and quoted values starred out, so you can find it in your source without the report repeating anything sensitive. ax/markdown-response now catches a site that errors on a strict Accept: text/markdown request, and reports an unanswered probe as not checked instead of fixed. Every rule declares whether its findings are about a page or something shared, and the agent skills served over MCP cover report groups and rule-group filters.
Added
security/leaked-secretsfindings carrymeta.context: a redacted snippet of up to 120 characters either side of the match, so you can find the key in the source without refetching it. The key is masked as in the item id. Nearby quoted literals keep none of their characters, whatever their length. A stray apostrophe (as in a// don'tcomment) or a quote in a regex does not unmask a literal after it when that literal is an assigned value, an argument, a list item, a||or&&operand, or has no whitespace in it (echo 'a;b',-p'S3cr;t'). Unquoted values after=,:or=>are replaced by asterisks up to the next whitespace or quote, whatever their length, son=482andcvv=91show none of their characters, and when the key names a secret (password,DB_PASS,dbPassword,api_key,PASSWORD2,"password",passwordless,pin, but notpassword_hint,token_urlorspinner) up to the end of the line and onto every following line indented deeper than the key, sopassword: correct horse battery staple, a YAMLpassword: |or>block,PASSWORD=correct horse battery STRIPE=on the match's own line andDB_PASS=Tr0ub;4dor&xshow none of their words. Such a key is read from up to 1,024 characters before the snippet, so its value is starred even when the key itself is cut off, and the direct text of an XML element named by a label (<password>hunterabc</password>) is starred too. A run of 12 or more characters after a secret's label such aspassword,passcode,pin,API keyorX-Api-Keyis starred out, and so are auth-scheme tokens, long token-shaped runs, letter-and-digit runs and URL credentials. Known limits: after a stray quote, a literal that holds whitespace and code punctuation in a place that is not an operand (echo 'a b;c') can show, so can a word of under 12 letters only after a label with no=or:(password hunter), and so can text inside a CDATA section or a nested child element of a labelled XML element (<password><![CDATA[correct horse battery]]></password>). Code punctuation between two literals can be starred out with them. See security/leaked-secrets. (squirrelscan/repo#2215)
Fixed
ax/markdown-responsenow tells a server error apart from absent Markdown. The probe also requests the homepage with a strictAccept: text/markdown, the header a Markdown-only agent sends, because the lenient probe ends in*/*and a server can answer it with HTML while it errors on the strict one. A 5xx on the strict request, while the lenient request was answered, is reported as a newmarkdown-negotiation-errorfailure that counts against the score. When the strict request gets no answer (refused, throttled, timed out or out of probe budget), the check is skipped as not checked with the coded reasonstrict-probe-unanswered, so an earlier finding stays open instead of reading as fixed. A site that simply does not serve Markdown still gets the score-neutral recommendation, and an/index.mdthat never answered is reported as not checked, not absent. (squirrelscan/repo#1322)
Docs
- Plugin rules can declare
findingScope("page" or "resource") to say whether a finding is about one page or something shared across pages, and every built-in rule now declares it. Nothing in audit output, scores or the JSON report changes. (squirrelscan/repo#1885) - The agent skills served over MCP (the
io.modelcontextprotocol/skillsextension ofsquirrel mcpand the hosted server) now coverreport --group,group:<id>in rule filters, the 24 hour script cache and theISSUE_REPLACEDerror with duplicate issue handling, and carry the new skill versions: squirrelscan 2.2, audit-website 3.2 (squirrelscan/repo#4912).
Update to this version
squirrelscan will auto-update, or run this command to update now.