Claude 24f816b6a3
Consolidate 22 sibling repos into layered organism structure
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):

- brain/        LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
                dispatch, A51 channels, and the OSINT cluster
- knowledge/    LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
                MITRE ATT&CK data
- reference/    defensive threat-reference (C3, shhbruh doc) + AdaYaml parser

License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.

Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.

https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
2026-06-10 06:53:01 +00:00

48 lines
2.1 KiB
Markdown

# API Reference: Implementing Cloud DLP for Data Protection
## Libraries
### google-cloud-dlp (Google Cloud DLP)
- **Install**: `pip install google-cloud-dlp`
- **Docs**: https://cloud.google.com/dlp/docs/reference/libraries
- `DlpServiceClient()` -- Create DLP client
- `inspect_content(parent, inspect_config, item)` -- Scan content for sensitive data
- `deidentify_content(parent, deidentify_config, item)` -- Mask/redact sensitive data
- `create_inspect_template()` -- Reusable inspection configuration
- `create_dlp_job()` -- Scan Cloud Storage, BigQuery, Datastore
### boto3 -- Amazon Macie
- **Install**: `pip install boto3`
- **Docs**: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/macie2.html
- `enable_macie()` -- Enable Macie service
- `create_classification_job()` -- Scan S3 buckets for sensitive data
- `list_findings()` / `get_findings()` -- Retrieve discovery results
- `create_custom_data_identifier()` -- Define custom PII patterns
## GCP DLP Info Types
| Category | Info Types |
|----------|-----------|
| PII | PERSON_NAME, EMAIL_ADDRESS, PHONE_NUMBER, DATE_OF_BIRTH |
| Financial | CREDIT_CARD_NUMBER, IBAN_CODE, SWIFT_CODE |
| US-specific | US_SOCIAL_SECURITY_NUMBER, US_DRIVERS_LICENSE_NUMBER |
| Health | US_HEALTHCARE_NPI, MEDICAL_RECORD_NUMBER |
## De-identification Methods
- `CharacterMaskConfig` -- Replace characters with mask symbol
- `CryptoReplaceFfxFpeConfig` -- Format-preserving encryption
- `RedactConfig` -- Remove sensitive content entirely
- `ReplaceWithInfoTypeConfig` -- Replace with info type name
## Macie Finding Types
- `SensitiveData:S3Object/Personal` -- PII found
- `SensitiveData:S3Object/Financial` -- Financial data found
- `SensitiveData:S3Object/Credentials` -- Credentials detected
- `Policy:IAMUser/S3BucketPublic` -- Public bucket with sensitive data
## External References
- GCP DLP API: https://cloud.google.com/dlp/docs
- GCP Info Types: https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
- Macie User Guide: https://docs.aws.amazon.com/macie/latest/user/what-is-macie.html
- Azure Purview DLP: https://learn.microsoft.com/en-us/purview/dlp-learn-about-dlp