Sfoglia il codice sorgente

docs: scope the LZ4 hit correction so it does not weaken the credential audit refs SV-52

fszontagh 5 giorni fa
parent
commit
649d2bd47e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      CLAUDE.md

+ 1 - 0
CLAUDE.md

@@ -757,6 +757,7 @@ Publishing uploads to the live apt repo - only with explicit confirmation. The d
   - **`cp -a` PRESERVES THE SOURCE MTIME**, so reading a backup directory's timestamp to date the operation that followed it returned a date a DAY BEFORE the backup was taken.
   - **`journalctl` RENDERS LOCAL TIME WHILE `date -u` DOES NOT.** On a CET box that is one hour, which was enough to make a snapshot appear to follow a repair it actually preceded - and the whole durability question turned on which side of it the repair fell.
   - **A LITERAL SEARCH OVER A COMPRESSED FILE IS BLIND IN BOTH DIRECTIONS, NOT MERELY ASYMMETRIC - WHICH CORRECTS THIS FILE'S OWN EARLIER RULE.** The existing entry says a hit in an LZ4 snapshot is real evidence and a miss is not. The miss half is right. **The hit half is wrong whenever anything else in the data can carry the same string**: stored FUNCTION SOURCES are ordinary resident documents and mention collection names constantly (`portal-sos-notice`'s source contains `kb_settings` four times), so "the name is in the file" was being read as "the collection is in the file" on the unstated assumption that only a collection's own header carries its name. The disproof is internal and decisive: **`ntapi_departments` appears five times in `aliz-gateway`'s stored source, that row is resident and is in the snapshot, and the snapshot shows ZERO literal hits for it.**
+    **This does NOT weaken `scripts/audit-backup-credentials.sh`, and the distinction is the whole point.** That script's `EXPOSED` verdict is a claim about the STRING being present in the file - a key-shaped token in plaintext is an exposure whichever document happens to carry it - so a hit supports exactly what it is used for. My error was inferring from "the name is in the file" to "the COLLECTION is in the file", which is a claim about what OWNS the string. A hit is evidence for the string; it is evidence about the owner only when nothing else in the data could carry it.
   - **AND THE CONTROL WAS ITSELF CONFOUNDED, which is worse than the `strings` case because nothing screamed.** `kb_manual` and `portal_config` came back non-zero and read as healthy controls proving the instrument worked. They were hits of the same ambiguous kind - possibly header, possibly function source - so they confirmed the search was RUNNING while saying nothing about what it measured. **A control has to be confounded-free in the same way the measurement needs to be, or it only proves the tool executed.**
   **The generalisable pair, from the consumer: a positive result needs its ALTERNATIVE CAUSES listed before it counts as evidence** - which is this file's "what else would produce this exact result?" applied to a hit rather than to a pass - **and a control that shares the measurement's confound cannot rescue it.**