Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -166,14 +166,16 @@ The `matched_rules` column shows which detection rules matched. The `set_roles`
|
|
| 166 |
|
| 167 |
## Sanitization
|
| 168 |
|
| 169 |
-
All customer-identifying information removed through a
|
| 170 |
|
| 171 |
-
1. **Structured field sanitization + Aho-Corasick sweep** (
|
| 172 |
-
2. **Format-specific message parsing**
|
| 173 |
-
3. **
|
| 174 |
-
4. **
|
| 175 |
|
| 176 |
-
|
|
|
|
|
|
|
| 177 |
|
| 178 |
## Graph Data
|
| 179 |
|
|
|
|
| 166 |
|
| 167 |
## Sanitization
|
| 168 |
|
| 169 |
+
All customer-identifying information has been removed through a comprehensive, iterative four-layer sanitization pipeline. Quality was prioritized over processing speed. The pipeline is [open source](https://github.com/witfoo/dataset-from-precinct6) under the Apache 2.0 license.
|
| 170 |
|
| 171 |
+
1. **Structured field sanitization + Aho-Corasick multi-pattern sweep** — Known fields are replaced with deterministic tokens (IPs to [RFC 5737](https://datatracker.ietf.org/doc/html/rfc5737) ranges, hostnames to `HOST-NNNN`, etc.). Every record is then swept using an [Aho-Corasick automaton](https://en.wikipedia.org/wiki/Aho%E2%80%93Corasick_algorithm) built from all 302,000+ registry entries to catch PII in unexpected contexts. Product identifiers are explicitly protected from the sweep.
|
| 172 |
+
2. **Format-specific log message parsing** — Eight specialized parsers handle Cisco ASA syslog, Windows Security Event XML, WinLogBeat JSON, AWS CloudTrail, Palo Alto Networks, VMware vCenter, DNS logs, and a generic fallback — sanitizing PII within structured fields like XML elements, nested JSON, and CSV columns.
|
| 173 |
+
3. **Machine learning residual detection** — [Microsoft Presidio](https://microsoft.github.io/presidio/) (spaCy NLP) and [BERT NER](https://huggingface.co/dslim/bert-base-NER) scan sanitized records for residual PII that pattern-based approaches miss. New discoveries trigger full re-sanitization.
|
| 174 |
+
4. **Large language model contextual review** — [Claude](https://www.anthropic.com/claude) reviews stratified samples for subtle PII: embedded org names, internal hostnames revealing organizational structure, employee names in file paths, AD group names, and geographic identifiers. Findings trigger re-sanitization.
|
| 175 |
|
| 176 |
+
**Iterative convergence:** The four layers run in cycles. PII discovered by ML/AI in one cycle is caught automatically by Layer 1 in all subsequent cycles across the complete dataset. Cycles repeat until near-zero new discoveries.
|
| 177 |
+
|
| 178 |
+
**Final PII registry:** ~302,000 unique mappings across 14 categories (IPs, hostnames, usernames, orgs, credentials, SIDs, emails, ARNs, etc.). All replacements are consistent — the same original value always maps to the same token, preserving graph topology.
|
| 179 |
|
| 180 |
## Graph Data
|
| 181 |
|