mirror of
https://github.com/beenuar/AiSOC.git
synced 2026-12-03 19:32:34 +08:00
The third and last matcher-operator gap, and the one that paid. Sigma writes `userIdentity.type` to mean the `type` key inside the `userIdentity` object. The matcher read the whole string as a single field name — which nothing emits — so **59 rules were refused**. Resolving the path ships **53** of them: the imported corpus moves **1,777 → 1,830**. **A literal key wins at every depth.** Several connectors emit flattened keys that genuinely contain a dot (`aws.region`), and those rules shipped against a plain lookup, so traversal happens only when the literal key is absent — never instead of it. That ordering is the whole safety argument for touching the one lookup every rule goes through, and it is **verified rather than asserted**: comparing the compiled corpus before and after, **0 rules left** and **0 previously-shipping rules changed compiled form**. A path that runs into a non-object, or a key that is not there, yields "this event does not carry that field" rather than raising. **Three gaps, three very different yields** — 7 of 71 for case-sensitive `|re`, 0 of 17 for `|cidr`, 53 of 59 here. That spread is now recorded in `docs/contributing/detection-translation-drive.md` as the reason a contributor should measure after recompiling instead of quoting the refusal table: the family size is a ceiling, and only sometimes close to the prize. **Tests were written first**, over both the engine matcher and its replay twin: traversal at depth, the flattened-key case *with a same-shaped nested object sitting beside it*, absence at every level, a non-object mid-path, and composition with the `contains` and CIDR operators rather than equality alone. Verified: fusion 1,309 passed; API 5,683 passed; `validate_detections` 7,408 rules pass with **3,026 executable**. Every count surface moved together and was re-derived by running fusion's own loaders — catalogue pins, truth table, project stats, corpus stats, the sandbox wheel figure, llms.txt, the packaged mirror, the curated manifest and the marketplace index. The technical guide recounts to 3,026 at v1.9.