Groundskeeper
Research

Reusable PII and secrets detector ecosystems

Status: architecture and sourcing review only; no runtime integration is approved or implemented by this report.

Evidence cut-off: 4 October 2026 (Australia/Sydney)

Scope: reusable libraries, models, engines, and rule ecosystems that could support Groundskeeper's planned text PII and credential detectors.

Executive recommendation

Groundskeeper should not adopt one upstream product as its detector engine. Use a layered stack and keep Groundskeeper's category, evidence, coverage, maturity, and exact-span contracts authoritative:

  1. Embed narrow, mature Go libraries for objective parsing. Use nyaruka/phonenumbers/v2 for phone candidate parsing and numbering-plan validation. Continue to own the small amount of source-backed Australian identifier, email, and payment-card candidate generation needed to preserve exact spans and Groundskeeper's validation semantics.
  2. Use Presidio as the local model/rule orchestration adapter, not as policy or ground truth. Run a digest-pinned, network-denied Presidio Analyzer service behind Groundskeeper's proposed supervised local gRPC detector boundary. It is the most mature reusable composition layer for spaCy, Transformers, GLiNER, and custom recognizers. Initially use it only for entities that need language context: person names, organisations, locations, free-text addresses, and international-document candidates.
  3. Evaluate two self-hosted NER models in shadow mode. Start with the Apache-2.0 gretel-gliner-bi-base-v1.0 and urchade/gliner_multi_pii-v1, not a cloud inference endpoint. Pin model blobs and tokenizer/config files by digest. Treat every score as model-specific and uncalibrated until measured on Groundskeeper corpora. NVIDIA's stronger-governed model is a later legal review candidate, not the default.
  4. Source credential breadth from Gitleaks, but do not expose its CLI result unchanged. Pin the MIT-licensed default rules at a reviewed Gitleaks release and either call its Go detection packages in a separately versioned adapter or run a warm local service around them. Convert and verify exact spans, strip matched values from all diagnostics, disable recursive decoding initially, and retain Groundskeeper's per-provider detector identities and provenance. Gitleaks has declared itself feature-complete and future releases security-fix-only, so add a second update feed from vendor specifications and differential tests rather than assuming its rules remain comprehensive.
  5. Keep cloud DLP optional and explicitly remote. Google Sensitive Data Protection gives valuable breadth and direct code-point ranges, but its built-in detector implementations are not an open ruleset and inspection sends content to a Google API. It is suitable only for operators who approve that destination and region; it is not an offline default or a source that Groundskeeper can redistribute.
  6. Use specialist parsers as corroborators. libpostal can parse a string already believed to be an address, but it does not find arbitrary-text spans; pair it with an NER candidate and, for Australia, separately licensed G-NAF or PAF reference validation. Email parsers and card validators similarly validate candidates; they do not replace safe candidate extraction.

Do not embed TruffleHog in Groundskeeper's distributed service without legal approval (AGPL-3.0), and never enable live credential verification. Do not ship Semgrep's maintained rule corpus (licence restricts competing products), infer GitHub's private built-in secret patterns from its public support table, or use Sigma/YARA malware rules as generic PII detectors.

Architectural boundary

┌──────────────────────────────────────────────────────────────────────┐
│ Groundskeeper canonical detector contract                           │
│ code-point spans · categories · evidence · coverage · maturity gate │
└───────────────┬──────────────────┬───────────────────┬───────────────┘
                │                  │                   │
                ▼                  ▼                   ▼
┌──────────────────────┐ ┌──────────────────────┐ ┌────────────────────┐
│ Built-in Go          │ │ Supervised local     │ │ Approved remote    │
│ AU validators        │ │ gRPC adapter         │ │ gRPC/API adapter   │
│ email/card candidate │ │ Presidio + NER       │ │ Google SDP, only   │
│ libphonenumber       │ │ optional libpostal   │ │ by destination     │
│ Gitleaks adapter     │ │                      │ │ policy              │
└──────────────────────┘ └──────────────────────┘ └────────────────────┘
                │                  │                   │
                └──────────────────┴───────────────────┘
                                   ▼
              digest-pinned artefact + source/rule/model provenance

This preserves ADR 0003's code-point offsets, ADR 0005's execution tiers, ADR 0010's evidence classes, and ADR 0012's bounded configuration. Upstream labels and scores are observations; they do not select policy actions or automatically become Groundskeeper probable or validated states.

Ecosystem decision matrix

The quality column distinguishes evidence from popularity. Upstream benchmark numbers are not accepted as Groundskeeper gate evidence until the exact pinned artefact is replayed on representative, adversarial, benign, Unicode, and Australian slices.

ComponentCoverage and quality evidenceExtension and updatesLocal integration / performanceLicence, privacy, and provenanceDecision
Presidio AnalyzerBroad rule/checksum recognizers plus pluggable NER; predefined AU ABN, ACN, TFN, and Medicare are documented. Mature project (11k+ GitHub stars, 1,600+ commits) but upstream explicitly says detection is not guaranteed. No single published score establishes quality across its mixed recognizers.Python recognizer API; regex/deny-list YAML registry; remote recognizers; spaCy, Stanza, Transformers, GLiNER, and batch NLP. Releases via PyPI/GitHub; recognizer YAML is not a signed independent rule feed.Self-hosted Python/Docker; warm process supports batch. Best as network-denied local gRPC sidecar. HTTP exists upstream but Groundskeeper should translate through its own adapter. Python/ML startup and memory rule out per-request subprocesses. WASM is unsuitable for this dependency stack.MIT code. Every NLP model has a separate licence. Local operation can avoid payload egress; prevent runtime model downloads and remote recognizers. Pin code, YAML, NLP pipeline, and every model blob separately.Wrap as the common contextual/NER orchestration service. Do not import its anonymizer, confidence thresholds, taxonomy, AU validation claims, or request-supplied ad-hoc rules.
Google Sensitive Data Protection (Cloud DLP)200+ built-in infoTypes including email, phone, cards, credentials, Australian TFN, Medicare, passport, and driver licence. Google warns built-ins are imperfect and advises tuning. Strong breadth; detector logic and test evidence are service-internal.Built-ins change periodically and are discovered with infoTypes.list; custom dictionaries, RE2 regex, context rules, and hotword/exclusion rules. There is no open Google-compatible built-in rules package to vendor.Go client is only a cloud API client, not a local engine. API returns byte and Unicode code-point half-open ranges, easing conversion. Network latency, quotas, input/output limits, and availability make it unsuitable as required inline coverage without explicit failure policy.Client/protos and docs are open, not the detector implementation. Google says requests can inspect content without persisting it outside local storage; the content is nevertheless transmitted to and processed by the Google API. Region and cross-border approval remain mandatory.Optional remote adapter, shadow first. Use for breadth benchmarking and approved tenants, never as the offline baseline or a redistributable rule source.
spaCyProduction-stable NLP framework with NER/training and 70+ language tokenization support. Generic pipelines detect PERSON/ORG/GPE, not PII identifiers comprehensively. Quality is model- and domain-specific.Train/package pipelines; releases through PyPI/GitHub. Presidio has a native NLP adapter.Local Python CPU/GPU, batch-friendly. Warm gRPC subprocess; no reason for a direct Go bridge.MIT framework; pipeline packages and transformer weights must be reviewed separately. No leakage after artefacts are pre-fetched and network denied.Use through Presidio, mainly for linguistic context or a tenant-trained model; never describe the framework licence as the model licence.
GLiNER framework + open PII modelsOpen-label, span-level NER. NVIDIA GLiNER-PII reports strict F1 0.70 on Argilla and 0.64 on AI4Privacy; Gretel reports F1 0.95 on its synthetic held-out dataset. These are not directly comparable. The urchade model author calls its purely synthetic training data low quality. Models cover names, addresses, email, phone, cards, IDs, and PHI but labels are prompts, not stable taxonomy.Label prompts add entities without retraining; fine-tuning supported. Artefacts update on Hugging Face, so pin revisions and hashes rather than model names.Local PyTorch/ONNX on CPU or GPU; returns {text,label,start,end,score}. NVIDIA's model is 570M parameters and benchmarked on A100, so use batch/shadow paths before latency-sensitive inline use. Presidio already documents a GLiNER adapter. WASM is not practical for the Python/PyTorch path; an independently validated ONNX runtime could follow.GLiNER code and the cited Urchade/Gretel model cards are Apache-2.0; older GLiNER weights include CC-BY-NC variants. NVIDIA weights use the NVIDIA Open Model License, requiring legal review. Training datasets and base-model chain must also be recorded. Downloading from/inferencing on Hugging Face is network egress unless done at controlled build time.Evaluate and wrap Gretel base + urchade multilingual in local shadow mode. NVIDIA only after model-licence review. Never promote raw confidence to validated.
libphonenumber / nyaruka/phonenumbers/v2Reference Java/C++/JS library parses, formats, validates, and finds international phone numbers; upstream generally releases fortnightly. The Go port tracks Java logic and metadata and states daily production use. Validation means numbering-plan plausibility, not assignment or personhood.Numbering metadata is the update channel. Go port records the upstream release used and documents divergences; metadata regeneration is mechanical but Java logic reconciliation requires maintainer work.Pure in-process Go and offline; PhoneNumberMatcher provides candidate locations. Low-latency and no subprocess. Convert Go byte/string indices if exposed by a matching API and test Unicode prefixes.Google library Apache-2.0; Go port MIT. Metadata is bundled. No payload egress. Pin Go module version and recorded upstream metadata version in evidence.Embed the Go port. Groundskeeper owns candidate boundaries, regional default policy, category/state, and AU-context thresholds.
Go net/mail + IDNA handlingStandard-library RFC 5322/6532 parser with documented syntax divergences. It parses a supplied mailbox/header; it is not an arbitrary-text finder and performs no DNS/MX/SMTP validation.Go release cadence; IDN domain processing can use golang.org/x/net/idna with a pinned Unicode profile.In-process, deterministic, offline, fast. It does not return source spans, so use it only on an already extracted candidate.BSD-3-Clause Go standard library. No egress. SMTP or MX probing would leak values and must remain prohibited.Reuse as candidate corroboration if it measurably improves the current email detector. Keep Groundskeeper's conservative finder and exact span.
libpostalInternational address parser/normalizer trained on more than one billion addresses from OSM/OpenAddresses; upstream reports high full-parse accuracy on held-out generated data. It parses an address-like input but does not locate addresses in arbitrary prose or prove deliverability. Australian performance must be measured.Models are downloaded separately and refreshed from open geographic sources; address-format templates and OSM feed future training. Model provenance is therefore as important as code version.C library with Go bindings, local/offline after model installation; sizeable model and memory footprint (community servers commonly budget multiple GB). CGo complicates the host, so prefer a warm isolated adapter. Component output does not preserve original arbitrary-text spans.MIT software; model/training inputs include OSM/OpenAddresses and need a redistribution/attribution inventory. No egress after artefacts are installed. G-NAF and Australia Post PAF have separate terms and are not supplied by libpostal.Wrap later as an address candidate parser, after NER span generation. Pair AU candidates with separately governed G-NAF/PAF validation; do not call parse success validated.
Payment-card validatorsLuhn is stable; issuer type and length ranges change. Apache Commons Validator is mature but Java and covers a limited default set. Braintree card-validator + credit-card-type is maintained by a payment provider, supports partial/full numbers and many brands, but is JS and designed for form inputs. Neither locates prose spans or proves issuance.Braintree npm/GitHub releases carry brand patterns; Commons releases carry source-coded ranges. There is no public authoritative complete IIN registry suitable for redistribution.Calling Node/Java for Luhn is disproportionate. A small Go Luhn implementation is already shared by Groundskeeper; brand metadata can be separately generated from reviewed sources if product requirements need it.Braintree MIT; Commons Apache-2.0. Avoid any live gateway/card-check API: it leaks PANs and may create PCI/security obligations.Build the thin finder around the existing validator; reuse upstream test/range evidence only after source review. Do not adopt the stale low-use Go card packages found in this survey.
GitleaksFast regex/entropy scanner for git, files, and stdin; mature (29k+ stars). Reports rule, entropy, start/end line and column. Composite proximity rules exist but are marked experimental. It does no live verification.TOML rules support keywords, secret capture groups, entropy, paths, tags, and allowlists; default rules ship in the binary. Project now declares feature-complete/security-fixes-only, creating future coverage risk.Go binary and importable packages; offline stdin scan. In-process adapter is fastest but couples to non-contract packages; a warm wrapper gives stronger lifecycle isolation. CLI JSON includes secret/match by default, so an adapter must never pass through output. Recursive decoding changes spans to encoded-source bounds and is initially out of scope.MIT. No network needed. Pin source release, default-config digest, selected rule IDs, and generated conformance corpus. Verify whether columns are byte/rune based before conversion; recompute source slice equality.Primary reusable secret rule source and engine, behind a Groundskeeper adapter. Keep provider detectors independently identifiable and rollbackable. Supplement updates from vendor docs.
TruffleHog v3More than 800 credential types and broad source connectors. Static classification is broad; active verification can reduce false positives but actually uses the credential. JSON commonly carries raw secret and source line rather than a canonical exact text span. Public Go APIs explicitly have no stability guarantee.Built-in Go detectors update rapidly; custom regex detector is alpha. Signed binary checksums are a useful supply-chain pattern.Go CLI/library, local static scanning with --no-verification; default update checks require --no-update. Verification and many source connectors need network. Mapping raw results back to exact duplicate occurrences is unsafe without adapter changes.AGPL-3.0 since v3; embedding/redistribution requires legal analysis and corresponding-source compliance. Verification sends credentials to issuer APIs and is rejected by Groundskeeper TM-11. Raw/extra metadata can disclose secrets and identity.Avoid in distributed runtime. Optional offline differential benchmark under legal approval, --no-verification --no-update, synthetic credentials only. Never use verification.
Yelp detect-secretsMature Python pre-commit/baseline workflow with regex, entropy, keyword plugins and analyst audit labels. Smaller provider set than Gitleaks; upstream documents that multiline secrets are not detected. Findings are baseline/file/line oriented.Python plugin/filter API and baseline-pinned settings. Optional verification can make network calls; --no-verify is required. Updates through PyPI/GitHub.Local Python library/CLI; optimized for repository diffs and human audit rather than low-latency arbitrary segments. No benefit over Gitleaks as the primary runtime engine.Apache-2.0. Baselines contain hashed secrets, file paths, and line metadata; still treat them as sensitive. Network verification disabled.Use only as a comparative corpus/baseline workflow reference, not a second runtime engine.
GitHub secret scanning patternsPublic support table is an excellent provider/token inventory and records push-protection, validity, metadata, and Base64 capabilities. Built-in regex definitions and AI model are not distributed. Custom patterns use a Hyperscan subset of PCRE and have dry-run tooling.GitHub updates the hosted patterns with partners; operators author custom patterns in GitHub UI/API. The support table is an update signal, not an executable rule feed.Hosted GitHub capability, not an offline library. Validity checks may contact issuers and partner scanning may report leaked credentials to providers.GitHub service terms apply; public docs are CC-BY but do not license undisclosed detection logic. Pattern names/capabilities can be cited; definitions cannot be reconstructed and represented as GitHub-compatible.Use as coverage inventory and external defence-in-depth, not as a Groundskeeper component. Export Groundskeeper-owned patterns to GitHub custom syntax only as a separate, tested delivery artefact if later requested.
Semgrep CE + RegistryExcellent AST/taint-aware source-code analysis, not an arbitrary-text PII engine. CE gives single-file semantic analysis; Pro adds deeper analysis and proprietary secrets. Findings have source-code locations.YAML rule ecosystem and registry. Rules have individual provenance but Semgrep-maintained community rules use a special licence.Local CLI can run offline once engine and local rules are installed; Python/OCaml/Rust stack is heavy for inline text and language parsing adds no value to chat payloads.CE engine LGPL-2.1. Semgrep-maintained rules are under the Semgrep Rules License: internal business use only and no use by vendors in competing products/SaaS. Pro rules/features are proprietary.Do not integrate for PII/secrets runtime or redistribute its maintained rules. Keep it as an independent source-code security control operators may run.
YARA-X and YARA rulesBattle-tested binary/file/memory signature engine; VirusTotal reports billions of files and tens of thousands of rules. Matches expose byte offset and length. Strong for malicious documents, embedded key containers, and future file/binary inspection—not semantic PII.Expressive compiled rules; ecosystem repositories update independently and have mixed licences/provenance.Rust core with C, Python, Go, and JavaScript/WASM surfaces; Go bindings are suitable for a dedicated file scanner but require explicit byte-to-code-point mapping for text. Timeout and profiling support.YARA-X BSD-3-Clause. Popular yara-rules/rules is GPL-2.0; other feeds vary. Rules may carry attribution and redistribution duties. Entirely local unless the operator adds external modules.Defer to file/binary malware capability. Do not express ordinary PII regexes in YARA. WASM is plausible only for a bounded future byte-scanning plugin with a reviewed rule pack.
SigmaPortable structured security-log detection specification; rules target logsource fields and suspicious behaviour. It does not return redaction spans and is unrelated to finding PII substrings.SigmaHQ Git rule feed with IDs, authors, references, dates, status, false positives, and ATT&CK tags; converts to SIEM queries.Offline rule conversion/evaluation is possible, but requires a log schema/SIEM backend and produces event matches, not exact text locations.Specification is public domain. SigmaHQ rules are DRL-1.1, requiring author attribution both when redistributing rules and in messages showing matches.Do not use for PII/secrets. Revisit only for a future security-event policy product, preserving rule author on every finding.
Go-native ferret-scanPromising Apache-2.0 offline Go library with 19 validator families, 40+ secret patterns, cards, email, international phone, US addresses/IDs, file extraction, coverage disclosure, and hidden matches by default. It is new (created October 2025, under 100 stars at review) and its broad confidence claims lack an independent corpus comparable to Groundskeeper's gates.Public validator interface, config/profiles, regular releases, and source. Rules currently update with releases.In-process ScanText/pre-warmed redact.Engine, no runtime dependencies, deterministic and concurrent. Public examples emphasize line findings; exact offset semantics and Unicode behavior require contract tests before use.Apache-2.0, local/no network, payload-free audit APIs. Third-party licences are enumerated upstream. Pin v2 and inspect all rule-source citations.Benchmark and mine reusable Go patterns, especially as a possible future adapter. Do not make it a production dependency until span/provenance tests and maturity gates pass.
Other Go PII packages / old Presidio GoThe old microsoft/presidio Go module is the abandoned v1 architecture; current Presidio is Python. Surveyed newer Go packages (for example Alcatraz) advertise broad recognizers but are experimental/pre-1.0 with small adoption. Stale Go card packages have old IIN tables.Mostly repository-release updates without mature rule governance.In-process is attractive but does not compensate for unproven corpora or unstable APIs.Usually permissive, but model and copied-rule provenance is often incomplete.Avoid as foundations. Re-evaluate only when a project has stable APIs, source-level provenance, Unicode span tests, and independent quality evidence.

Output and span interoperability

Every adapter must return a span into the exact supplied Groundskeeper segment. It must not redact an upstream quote, normalized value, or model token sequence.

UpstreamNative locationRequired adapter behavior
GroundskeeperZero-based half-open Unicode code pointsCanonical result. Slice exact original text, never a normalized copy.
Presidio / spaCy / GLiNER PythonPython string character indices, generally half-open; model token alignment can differ by adapterAssert text[start:end] equals the reported entity text where supplied; convert Python indices explicitly; reject malformed boundaries and return partial/failed coverage. Test astral emoji, combining marks, CJK, and normalization variants.
Google SDPBoth UTF-8 byte range and Unicode code-point half-open range for textPrefer codepointRange; cross-check byte range against the same UTF-8 payload. Disable returned quote in production.
libphonenumber GoParsed number and matcher positions; Go APIs may expose byte-oriented string indicesTreat candidate parser output as evidence on Groundskeeper's own candidate span, or convert via a tested byte→rune map.
libpostal / net/mail / card validatorsParsed components or boolean/type result, no arbitrary-input source spanRun only on a candidate whose canonical span Groundskeeper already owns. Parser success may add evidence but cannot expand the span without an independent mapping.
GitleaksStart/end line and column plus Match and Secret; decoded findings can point to encoded source while carrying decoded matchDisable decoding first. Map line/column to bytes then code points only after confirming column semantics for the pinned version. Verify extracted source equals intended capture; never emit Secret or Match in diagnostics.
TruffleHogSource-dependent metadata, often line plus raw secret; detector API scans byte chunksNot sufficient for deterministic duplicate-value mapping without lower-level offsets. This is a blocking issue for inline redaction even apart from licence.
detect-secretsFilename, line, plugin, hashed secret in baselineSuitable for repository alerting, not direct span-bearing redaction.
SemgrepFile start/end line, column, byte offsets depending outputSource-code coordinates only; no inline adapter planned.
YARA-XByte offset and byte lengthConvert against exact UTF-8 bytes; reject matches splitting a code point. Binary findings need a separate non-text location contract.
SigmaWhole structured event/query matchCannot satisfy a text-redaction span contract.

Adapter conformance must cover overlapping results, repeated identical values, multi-line findings, empty/end-of-string matches, invalid UTF-8 at extraction boundaries, cancellation, timeout, output limits, and a false-negative coverage state. An upstream process failure is never translated to “no findings.”

Detector-family sourcing decisions

These choices deliberately avoid replacing detector-family work already in progress. They define future ownership and evidence sources only.

Planned familyReuse/build/wrap decisionRationale and guardrails
EmailKeep the Go finder; optionally reuse net/mail on extracted candidates. Compare against Presidio/Google/ferret-scan in evaluation.The current conservative detector has exact spans and intentionally excludes package/version and retina-image collisions. A mailbox parser cannot locate prose. Add EAI/IDNA only with explicit normalization and original-span tests; never use SMTP/MX lookup.
Payment card PANBuild the candidate finder around the existing shared Luhn validator; source brand tests/ranges from reviewed Braintree or Commons releases.Calling a second runtime for Luhn adds no value. Exclude Healthcare Identifier prefixes 800360–800362, known test ranges according to policy, and surrounding longer digits. validated means checksum/shape only, never issued or active. No gateway call.
Phone (AU + international)Embed nyaruka/phonenumbers/v2.It supplies the maintained international metadata Groundskeeper should not recreate. Region is deployment/profile context; “possible” and “valid for numbering plan” must remain distinct evidence. Do not emit bare short numbers without context, and do not infer a person or live subscriber.
ABNKeep the source-backed built-in; use Presidio only for differential tests.Groundskeeper already implements authoritative mod-89 plus ADR 0010 context gating. Presidio's similar recognizer does not improve provenance or canonical semantics. ABNs remain public organisational IDs and record-only by current policy.
BSB + accountBuild context/correlation; optionally reuse a separately licensed BSB directory.No generic parser solves the data-licence issue. BSB alone identifies a branch, not a person; account shape is weak. Do not redistribute a commercial directory or claim reference validation without a licensed, versioned source.
TFNBuild a context-bound detector from authoritative public shape/label evidence; do not copy Presidio's checksum implementation.Groundskeeper's roadmap records the ATO algorithm as controlled and caps the result below validated. An upstream “checksum” claim cannot override that source decision. Google can be an opt-in remote comparison, not source authority.
MedicareBuild only after the primary-source/licence decision; compare Presidio and Google in shadow.Both upstreams claim AU Medicare detection, but Groundskeeper requires a pinned licensed primary algorithm source and mandatory context gate. Keep deferred if that evidence is unavailable.
NDIS / worker screeningBuild tenant/jurisdiction context-bound labels only; no generic value regex.There is no national Worker Screening ID grammar. Do not confuse the published eight-digit Application ID or NT application reference with a clearance identifier. NER may propose a labelled span but cannot validate it.
Names, organisations, locationsWrap Presidio with spaCy and one evaluated GLiNER model.These need linguistic context and are poor regex targets. Start candidate, shadow/record only, with entity-specific calibration and demographic error slices. Do not infer protected attributes or Indigeneity.
Postal addressesGLiNER/Presidio candidate → optional libpostal parse → optional governed reference lookup.Parsing components, identifying a span, and validating an address are separate operations. For Australia, G-NAF/PAF licensing and attribution are explicit gates. Postcodes alone are not addresses. Preserve the model's original candidate span even if normalization changes components.
International passports, national IDs, tax and health IDsUse Presidio and Google as inventories/benchmarks; implement authoritative high-demand checks as individual built-ins, and use GLiNER only for labelled candidates.Country document formats change and many are not public. Each shipping detector needs country, issuer/source, grammar version, checksum/reference behavior, negative cases, and licence. Never expose one generic GOVERNMENT_ID as validated. Google remains remote-only.
Provider credentials and private keysWrap/pin Gitleaks rules; retain Groundskeeper detector identities.Gitleaks gives broad MIT rules and efficient matching without network verification. Existing GitHub/AWS/Stripe/Slack/private-key built-ins can become conformance anchors. A rule match is probable at most unless an offline cryptographic checksum published by the issuer validates format.
Generic passwords/high-entropy stringsDefer enforcement; evaluate Gitleaks/detect-secrets/ferret-scan in observe-only corpora.Entropy and assignment keywords generate substantial false positives in prose and generated content. Never send candidates to a verifier. Require domain-specific calibration and suppressions that preserve visible findings.
Source-code structural secretsKeep outside inline PII scope.Gitleaks handles lexical secrets. Semgrep is valuable when AST/dataflow context is required, but should be an operator's separately licensed code-scanning control rather than a Groundskeeper runtime dependency.
Malicious files/documentsFuture YARA-X plugin, separate from PII.YARA-X is appropriate for byte/file signatures and can use Go or WASM boundaries, but binary locations and malware rule provenance need their own contract. Sigma belongs to future security-log event matching, not content redaction.

Rule and model supply-chain requirements

Every imported rule/model release should compile into a manifest that records:

  • upstream project, repository URL, immutable commit/tag and artefact SHA-256;
  • code licence, rule licence, model licence, base-model chain, dataset licences, required notices, and legal approval ID;
  • original upstream rule/model/entity ID and Groundskeeper mapping;
  • author/source/reference fields and whether attribution must appear on findings;
  • semantic version plus a digest of selected rules, allowlists, model labels, tokenizer, and runtime configuration;
  • update channel, last review time, deprecation/revocation status, and owner;
  • network/filesystem/GPU permissions and whether runtime downloads, telemetry, update checks, remote recognizers, or credential verification are disabled;
  • native offset unit, conversion version, maximum request/result sizes, timeout, deterministic/batch claims, and overlap behavior; and
  • corpus/gate evidence binding, known gaps, and rollback predecessor.

Updates are pull-and-review, never mutable “latest” downloads at process startup. Build infrastructure may fetch artefacts through an allowlisted, recorded path; production detector sandboxes have network denied unless an approved remote adapter declares its destination. OCI packaging should include SBOM, provenance, model/rule notices, and signatures as already proposed in the plugin design.

Phased adoption

Phase A — no new runtime boundary

  1. Add libphonenumber Go to an isolated benchmark spike and prove code-point span conversion, Australian/mobile/short-code hard negatives, metadata version evidence, latency, and allocation bounds.
  2. Pin one Gitleaks release and rules digest in a research/evaluation tool. Run it only on synthetic credentials; compare with current private-key and four provider detectors. Verify exact source span semantics before deciding in-process versus local adapter ownership.
  3. Add Presidio, Gretel GLiNER base, urchade multilingual PII, Google SDP, ferret-scan, and detect-secrets to the offline benchmark harness only. No production traffic, no enforcement, no credential verification.

Phase B — supervised local contextual detector

  1. Freeze the Groundskeeper external detector protocol and implement one network-denied Presidio gRPC adapter with batch support, cancellation, health/readiness, memory/CPU/output limits, and code-point conformance.
  2. Ship only person/organisation/location/address candidates in shadow mode. Pin all artefacts locally; remove remote recognizers and runtime downloads.
  3. Select at most one model per entity/language after Australian and tenant corpora establish precision/recall, calibration, demographic slices, and latency. Keep model findings at candidate unless separate evidence raises them.

Phase C — credential breadth and governed updates

  1. Promote reviewed Gitleaks-derived provider rules behind independent Groundskeeper detector IDs, with per-provider rollback and vendor-source references.
  2. Create a scheduled rules-inventory diff against Gitleaks releases, GitHub's public supported-pattern table, and vendor format documentation. A changed upstream rule opens review; it does not auto-activate.
  3. Keep generic entropy/password detection observe-only until G2-quality benign and adversarial evidence exists.

Phase D — opt-in remote and heavy parsers

  1. Offer Google SDP only as an explicitly configured remote adapter with tenant, region, destination, retention, quota, and failure-posture approval. Measure it against the same canonical corpus; do not call hosted likelihood a Groundskeeper validation state.
  2. Add libpostal only if address demand justifies its model footprint and an Australian corpus demonstrates value beyond GLiNER. Resolve model-data and G-NAF/PAF attribution/redistribution first.
  3. Consider YARA-X under a new file/binary detector contract. Keep Semgrep and Sigma external to the content gateway.

Components to avoid or constrain

  • TruffleHog runtime: AGPL distribution risk, unstable library API, raw secret output, and verification behavior that conflicts with the prohibition on using discovered credentials.
  • Cloud inference/model endpoints by default: payload and potentially sensitive context leave the Groundskeeper trust boundary; availability and data-residency become detector coverage dependencies.
  • NVIDIA GLiNER-PII before legal review: the framework is Apache-2.0 but the model card identifies the NVIDIA Open Model License. Do not collapse those licences in an SBOM.
  • Old GLiNER weights: several pre-v2 model cards are CC-BY-NC. Model names, base models, and revisions must be exact.
  • Semgrep-maintained rules in a product: the Semgrep Rules License permits internal business use but bars vendors from using them in competing products or SaaS offerings.
  • GitHub pattern reconstruction: the public catalogue documents supported types and capabilities, not the executable built-in regexes or AI model.
  • Unreviewed YARA/Sigma feeds: engine licence does not license rules. Sigma DRL attribution must be present in match messages; popular YARA feeds may be GPL-2.0.
  • Live email, card, identifier, or credential validation: DNS/SMTP, payment gateway, registry, issuer, and credential-verification calls disclose the candidate and can have legal or security effects. These require a separately approved authoritative-reference design; credential use remains rejected.
  • Unbounded ad-hoc regex/model labels from requests: this bypasses ADR 0012's immutable, reviewed detector profile and makes performance and semantics attacker-controlled.

Sources

Sources were selected from upstream documentation, repositories, API references, model cards, and Groundskeeper's existing research. Popularity counts are only a maintenance signal and were observed on the evidence cut-off date.

Groundskeeper contracts and prior research

PII orchestration, NLP, and models

Google Sensitive Data Protection

Specialist parsers and validators

Credential scanners and hosted catalogues

Code, binary, and event rule ecosystems

Go-native survey candidate

On this page