Skip to main content

cgh-pii

PII and secret detection for cgh. Once installed, every indexed file is scanned inline for personal data and credentials, and the results land in the finding store:

pip install cgh-pii
cgh index
cgh findings --key pii.       # emails, phones, IBANs, cards per file
cgh findings --severity block # private keys, cloud credentials

Detected keys and their severities:

Key What Severity
pii.email email addresses warn
pii.phone international-format phone numbers warn
pii.iban IBANs, mod-97 validated warn
pii.card payment card numbers, Luhn validated warn
secret.aws_key AWS access key ids block
secret.private_key PEM private key blocks block
secret.assignment password = "..." style hardcoded credentials warn

Two deliberate properties:

  • Finding values never contain the matched data. A finding stores the match count and the first line number, not the email or the IBAN itself: findings feed the full-text index and must not spread what they detect.
  • Validation over recall. Cards must pass Luhn, IBANs must pass mod 97, so a random digit run does not flag a file.

The optional NER tier (person names, locations) installs with pip install "cgh-pii[ner]" and activates with ner = true under [plugin.pii]; it runs deferred, off the indexing hot path.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cgh_pii-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cgh_pii-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file cgh_pii-0.1.0.tar.gz.

File metadata

  • Download URL: cgh_pii-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for cgh_pii-0.1.0.tar.gz
Algorithm Hash digest
SHA256 50e82a8067ac29e75bc1bb2cc9d8a82994ff4366d56902d93ec9cdd010b0da13
MD5 f6b88e607bbe6c479d5056c09354bb87
BLAKE2b-256 70c99b745424fb0023a9a75355459643ab9a67ea9b4bdf944e55567d710b48b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for cgh_pii-0.1.0.tar.gz:

Publisher: release.yml on altikva/cgh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cgh_pii-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cgh_pii-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for cgh_pii-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b62ebee2a7687d67cc4b5ce2bc76a6afcbc9f8343bd39527e029bd74dd00e22e
MD5 b96062be9a1bb9c56c1afde61f55120e
BLAKE2b-256 632cdaaaf208d15100881bab9e613ed8f58ae3abfdd6b734d75565bd3a50eed6

See more details on using hashes here.

Provenance

The following attestation bundles were made for cgh_pii-0.1.0-py3-none-any.whl:

Publisher: release.yml on altikva/cgh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page