mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-06-11 21:54:56 +03:00
27c6414ca5
Complete skill folder anatomy across all cybersecurity skills: - scripts/agent.py: 80-150 line Python agents using real libraries (impacket, boto3, azure-mgmt-*, kubernetes, pefile, yara, scapy, shodan, stix2, etc.) - references/api-reference.md: real API documentation with method signatures - LICENSE: MIT license for all skill folders
2.1 KiB
2.1 KiB
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 clientinspect_content(parent, inspect_config, item)-- Scan content for sensitive datadeidentify_content(parent, deidentify_config, item)-- Mask/redact sensitive datacreate_inspect_template()-- Reusable inspection configurationcreate_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 servicecreate_classification_job()-- Scan S3 buckets for sensitive datalist_findings()/get_findings()-- Retrieve discovery resultscreate_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 symbolCryptoReplaceFfxFpeConfig-- Format-preserving encryptionRedactConfig-- Remove sensitive content entirelyReplaceWithInfoTypeConfig-- Replace with info type name
Macie Finding Types
SensitiveData:S3Object/Personal-- PII foundSensitiveData:S3Object/Financial-- Financial data foundSensitiveData:S3Object/Credentials-- Credentials detectedPolicy: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