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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cgh_pii-0.1.1.tar.gz.
File metadata
- Download URL: cgh_pii-0.1.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66ca6508b7bd12e46097793b4d5d5c99fc942db98a600b5f06cb35d82a777f74
|
|
| MD5 |
8c667ac68a1d5aa8bcde0b6ce51502f0
|
|
| BLAKE2b-256 |
836b3e3068ed74d14aeac3405f958edc6d925b55205b72b7ec29061392bd8b48
|
Provenance
The following attestation bundles were made for cgh_pii-0.1.1.tar.gz:
Publisher:
release.yml on altikva/cgh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cgh_pii-0.1.1.tar.gz -
Subject digest:
66ca6508b7bd12e46097793b4d5d5c99fc942db98a600b5f06cb35d82a777f74 - Sigstore transparency entry: 2328035019
- Sigstore integration time:
-
Permalink:
altikva/cgh@41ea3e6801171d9902521b836275dc8e97404b8c -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/altikva
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@41ea3e6801171d9902521b836275dc8e97404b8c -
Trigger Event:
push
-
Statement type:
File details
Details for the file cgh_pii-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cgh_pii-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d95966869b344275dbd481c86d0e183f11e87a81b9da5afa52c3c33097eee62f
|
|
| MD5 |
4000964e1176591f7a48f229f9a6c96f
|
|
| BLAKE2b-256 |
4e24a3e3b2db5f90ff8dbe0087cd28460006b9c30b1659a5ec4645936d164c4c
|
Provenance
The following attestation bundles were made for cgh_pii-0.1.1-py3-none-any.whl:
Publisher:
release.yml on altikva/cgh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cgh_pii-0.1.1-py3-none-any.whl -
Subject digest:
d95966869b344275dbd481c86d0e183f11e87a81b9da5afa52c3c33097eee62f - Sigstore transparency entry: 2328035053
- Sigstore integration time:
-
Permalink:
altikva/cgh@41ea3e6801171d9902521b836275dc8e97404b8c -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/altikva
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@41ea3e6801171d9902521b836275dc8e97404b8c -
Trigger Event:
push
-
Statement type: