agentleFS
kaandgnshkaandgnsh/Claude-Blue/skills/data-security/data-discovery/SKILL.md

data-discovery

Skill0 starsChanged 11 days agoMITView on GitHub

Discover where sensitive data lives — structured (databases, warehouses) and unstructured (file shares, SharePoint/Drive, buckets, endpoints, logs, code repos) — using scanners (Macie, Purview, Google DLP/Sensitive Data Protection, open-source detectors), and build a sensitive-data inventory with owners. Use when preparing classification or DLP projects, building privacy records of processing, or scoping breach impact.

The file

Files
SKILL.md

Sensitive Data Discovery

Tools by location

LocationTool
AWS S3Amazon Macie (managed identifiers + custom), automated sensitive data discovery
Azure / M365 / on-prem filesMicrosoft Purview Data Map / Information Protection scanner, Content explorer
GCPSensitive Data Protection (Cloud DLP) discovery for BigQuery, Cloud SQL, Cloud Storage
DatabasesColumn-name and content sampling: information_schema.columns + regex on samples; commercial DSPM
Code/logsSecret scanners (secret-scanning), log PII scanning in the pipeline
EndpointsEndpoint DLP discovery, Purview endpoint content scanning

Database quick pass (PostgreSQL):

SELECT table_schema, table_name, column_name, data_type
FROM information_schema.columns
WHERE column_name ~* '(ssn|social|passport|iban|card|cc_num|dob|birth|email|phone|address|tax|salary|diagnosis)'
ORDER BY 1, 2;

Then sample values (with approval, read-only, small LIMIT) to confirm.

Method

  1. Prioritize by risk: internet-facing stores, shared drives with broad access, analytics copies, backups, dev/test environments with production data.
  2. Scan with sampling; record detector, confidence and counts — not raw values.
  3. Validate false positives (test data, synthetic records).
  4. Assign owner and classification for each store; record legal basis/retention where personal data.
  5. Remediate: delete unnecessary copies, mask/tokenize in non-prod, restrict access, encrypt.

Inventory record

Store | Location | Data types | Est. records | Classification | Owner | Access breadth | Encryption | Retention | Action

Safety

Discovery scanners read sensitive content: use least-privilege service identities, keep results metadata-only, protect findings (they are a map of sensitive data).

Related skills

data-classification, data-retention-review, dpia, secret-scanning

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.