Data Dlp Monitor 标志

Data Dlp Monitor

组织
Navinspire-ia
data-dlp-monitor

对数据进行分类,并监控数据泄露和外传。使用经过验证的检测器识别个人、财务和机密数据(IBAN mod 97、法国 NIR 校验位、SIREN/SIRET、银行卡 Luhn 校验、电子邮件、法国电话号码、AWS 密钥、JWT、私钥、RGPD 第 9 条相关词汇);提出 Public/Internal/Confidential/Restricted 分级;审查 Microsoft Purview DLP 策略和标签、Google Cloud DLP infoTypes、AWS Macie、Nightfall 和 gitleaks 的结果;检测数据外传信号(按用户统计的流量基线、非工作时间、新目标、先压缩再上传、DNS 隧道、个人云盘、LLM 提示词),并提供符合 RGPD、CNIL、NIS2 和 DORA 要求的响应手册。用户要求“扫描这个文件夹中的个人数据”“对这些文件分类”“检查我们的 DLP 策略”“在这些传输日志中查找数据外传”“这个代码库里是否有机密信息”,或分享了可能包含敏感数据的导出文件时,请使用此技能。法语表达包括“classifier les donnees”“detecter une fuite de donnees”“verifier les politiques DLP”。

Add to TypingMind

概览

发布者Navinspire-ia
代码仓库navin
技能名称data-dlp-monitor
星标数
37
复刻数
5
附带文件
10
许可协议AGPL-3.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 10 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Navinspire-ia 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Data Dlp Monitor AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Navinspire-ia/navin/tree/main/navin/skills/data-dlp-monitor
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Navinspire-ia/navin.git /tmp/navin
mkdir -p .claude/skills
cp -r /tmp/navin/navin/skills/data-dlp-monitor .claude/skills/data-dlp-monitor
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Data Dlp Monitor,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Data Dlp Monitor。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Data Dlp Monitor 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Data Classification and DLP Monitor

Overview

Find where sensitive data lives, say how sensitive it is, verify that the controls on each egress channel match that sensitivity, and detect the behaviours that precede a leak. The default posture is read-only and evidence-based: scan copies, read policies and logs, compute baselines, and report counts and redacted samples. Nothing is blocked, quarantined, labeled, deleted or rotated, and no DLP policy is created or changed, without the user's approval of the exact action; raw sensitive values never appear in the deliverable.

When it applies

  • A folder, bucket, share, database export or repository must be inventoried for personal data (RGPD art. 4), special categories (art. 9), banking and card data, or secrets before a migration, an audit or a records-of-processing update (art. 30).
  • A DLP program must be reviewed: Purview labels and policies, Cloud DLP jobs, Macie findings, CASB upload rules, gitleaks in CI.
  • Transfer logs (proxy, CASB, mail trace, EDR file events, CloudTrail) must be analysed for exfiltration by an insider, a compromised account or malware.
  • An incident needs the data qualified: which types, how many subjects, which tier, so the DPO can decide on CNIL notification (art. 33, 72 hours) and NIS2 or DORA reporting.
  • A team wants to know what may be pasted into a public LLM, committed to GitHub or sent to a personal address, and what control enforces it.

Out of scope: legal advice on the lawful basis of a processing (the DPO decides; the skill supplies the facts) and endpoint forensics beyond the file events.

Engines and sources

EngineInterfaceUse
Bundled detectorsscripts/classify_scan.py (regex plus checksum validators, stdlib)first pass on any text-like copy: CSV, JSON, logs, SQL dumps, Markdown, code, .env
Bundled egress analysisscripts/egress_baseline.py on a CSV timestamp,user,destination,bytes,channel[,filename]z-score per user, new destination, off-hours, personal cloud, archive, DNS volume, bursts
Microsoft PurviewSecurity & Compliance PowerShell Get-Label, Get-LabelPolicy, Get-DlpCompliancePolicy, Get-DlpComplianceRule, Get-DlpDetailReport; Advanced Hunting CloudAppEvents (DlpRuleMatch) and DeviceEvents (Dlp* actions)labels, SITs, policy modes, Endpoint DLP restrictions, match volumes
Google Cloud Sensitive Data ProtectionPOST https://dlp.googleapis.com/v2/projects/{project}/locations/{location}/content:inspect with inspectConfig.infoTypes (FRANCE_NIR, IBAN_CODE, CREDIT_CARD_NUMBER, EMAIL_ADDRESS, AWS_CREDENTIALS, JSON_WEB_TOKEN), dlpJobs, jobTriggers, discovery profiles; gcloud dlpinspection of GCS and BigQuery, sampling, de-identification
AWS Macieaws macie2 list-findings, get-findings, describe-buckets, list-classification-jobs; managed identifiers FRANCE_NATIONAL_IDENTIFICATION_NUMBER, CREDIT_CARD_NUMBER, AWS_CREDENTIALS, PRIVATE_KEYS3 discovery and bucket exposure
NightfallPOST https://api.nightfall.ai/v3/scan with detectionRules, Authorization: Bearer $NIGHTFALL_API_KEYSaaS DLP (Slack, Drive, GitHub, Jira) and ad-hoc scans
gitleaksgitleaks detect --source . --redact --report-format json --report-path gitleaks.json, gitleaks protect --stagedsecrets across git history and in pre-commit
Telemetry for exfiltrationDefender for Cloud Apps CloudAppEvents (FileUploaded), Exchange MessageTrace and Unified Audit Log (New-InboxRule), Zscaler/Netskope proxy logs, Sysmon 11/22, CloudTrail GetObject, DNS resolver logs, GitHub audit log git.pushinputs to the egress CSV

Navin integration:

  • aws macie2, gcloud dlp, az and kubectl commands run through the infra tool at level observe; creating a Macie job, a Cloud DLP job trigger or a bucket policy is prepare then execute after approval.
  • Purview and Exchange cmdlets run in the user's own PowerShell session; the skill supplies the exact command and reads the pasted output.
  • Slack, GitHub, Jira, Notion and Gmail are reached with the connectors tool (for example GitHub security_and_analysis.secret_scanning_push_protection.status, Slack delivery of the report).
  • API keys (NIGHTFALL_API_KEY, GOOGLE_APPLICATION_CREDENTIALS, AWS_PROFILE) come from environment variables and are never printed.
  • Missing CLIs (gitleaks, aws, gcloud, jq) are installed with the toolbelt skill.
  • Large exports (a 2 GB proxy log, a SQL dump) are searched with the grep tool (pattern="FR76|AKIA|BEGIN .*PRIVATE KEY") and sampled before any read_file; the scanner's --max-size-kb skips files above the limit so the agent decides how to sample them.

Workflow

  1. Define the scope and the copies. List the locations (paths, buckets, repositories, mailboxes, log sources), the period and the legal context (which processing, which DPO, which contract). Work on read-only copies or exports; never scan production databases directly without the owner's agreement, and never move Restricted data out of the customer's environment.
  2. Scan for data types. Run python3 scripts/classify_scan.py examples/sample_data --redact --output /tmp/classification.md on the copies (--json for machine output, --include to pick globs). The script reports counts per type and file, the legal basis of each type, a proposed tier and one masked sample per type when --redact is passed; without --redact no value at all is printed. Exit 1 means Confidential or Restricted data is present.
  3. Confirm the tier with the owner. Apply the tier matrix below; a bulk dataset (more than 50 distinct NIR, IBAN or PAN, or more than 1 000 data subjects) is Restricted regardless of individual types. Record the data owner, retention and the processing in the records (art. 30) for each Restricted or Confidential location.
  4. Map channels and controls. For each location, list the channels through which the data can leave (references/channels-controls.md) and check the control that exists on each: Purview policy mode and Endpoint DLP restrictions, CASB upload rules, USB device control, auto-forward settings, push protection, LLM domain blocks. Read the policies with the cmdlets and queries in references/purview-gcp-dlp.md. A control in TestWithNotifications mode or a policy without the relevant SIT is "not enforced".
  5. Compare detectors. Where a vendor engine is in place, run the same sample through it (Cloud DLP content:inspect, Macie job on a sample prefix, Purview SIT test in the compliance portal) and compare with references/detectors.md; list the types the vendor misses (SIRET, SIREN, special-category vocabulary) and the custom SIT or infoType that closes the gap.
  6. Build the egress baseline. Export transfers for the period to a CSV with timestamp,user,destination,bytes,channel[,filename] (channel values: email, saas_upload, usb, cloud_storage, llm_prompt, git_push, print, dns, other) and run python3 scripts/egress_baseline.py examples/transfers.csv --output /tmp/egress.md (--json, --z-threshold 3.0, --min-history 5, --work-hours 7-20, --personal-domains for customer-specific additions). Correlate the top anomalies by hand with HR events (leavers, movers) and the change calendar (migrations, backups).
  7. Qualify each anomaly: sanctioned job, policy violation without malice, insider exfiltration, compromised account or malware. For the last three, follow the response playbook in references/channels-controls.md: preserve evidence, qualify the data with the scanner, propose containment actions for approval, and give the DPO the facts for the art. 33 decision.
  8. Write the deliverable; hand detection gaps (new destination alerting, DNS volume rule, inbox-rule alert) to the siem-edr-connector skill as proposed rules, and the secrets found in repositories to rotation by their owners.

Tier matrix:

TierContentHandling
Publicpublished material, no personal datano restriction
Internalbusiness data without personal data, public-register identifiers (SIREN, SIRET), internal documentationinside the organisation; no personal cloud
Confidentialdirectly identifying personal data (name with e-mail, phone, address, date of birth), IBAN, contracts, source codeneed-to-know, encryption in transit, label applied, DLP policy in audit or block
Restrictedsecrets and keys, payment card PAN, NIR, health, union, religion, sexual orientation, biometric data (art. 9), criminal data (art. 10), bulk personal datasetsnamed access, encryption at rest and in transit, DLP block on every channel, logging of access, no copy outside the controlled environment

Rules

  • Checksum validation is mandatory before counting a numeric identifier: a 14-digit SIRET passes the payment-card regex and often Luhn; the scanner resolves this by matching SIRET first and never reusing a span. Apply the same order when writing custom SITs or infoTypes (hotword rules, exclusion rules).
  • Count distinct values and data subjects, not matches; the notification decision depends on subjects.
  • Test values from documentation (4111 1111 1111 1111, AKIAIOSFODNN7EXAMPLE, FR76 3000 6000 0112 3456 7890 189) are reported in code repositories because they show a pattern, and marked as known samples in the table.
  • A secret found anywhere in git history is compromised even when a later commit removed it: the fix is rotation, then history rewrite only if the repository is private and every fork is controlled.
  • Special-category vocabulary alone (a health policy document) is not art. 9 data; the same words next to an identifier in a record are. Report the context, not the word count.
  • Purview TestWithNotifications and Cloud DLP inspect without a job trigger do not prevent anything; the deliverable says "detects" or "blocks", never "protects".
  • Encryption by a label breaks downstream inspection by CASBs and mail gateways; when a label encrypts, verify that the egress inspection is done before encryption (Exchange transport) or by Purview itself.
  • An egress baseline needs at least 5 days of history per user; the first days of a new user are learning days, not anomalies. A z-score computed on a user with a constant daily volume is infinite on the first change: the script reports it as z=inf with the ratio, read the volume column.
  • Off-hours are evaluated in UTC by the script; convert the --work-hours window from the users' local timezone (France: 06-19 UTC in winter, 05-18 UTC in summer for a 07:00 to 20:00 day).
  • Personal data in the transfer logs themselves (user names, destinations) is a processing: keep the CSV in the customer's environment and delete it at the end of the engagement per the agreed retention.
  • Notification deadlines: RGPD art. 33 within 72 hours of awareness to the CNIL (teleservice on cnil.fr), art. 34 to the persons when the risk is high; NIS2 art. 23 early warning in 24 hours, incident notification in 72 hours, final report in one month; DORA art. 19 initial notification within 4 hours of classification as major and 24 hours of awareness. The report gives the timestamps that start these clocks.

Deliverable

A Markdown report with these sections:

  1. Scope: locations, copies used, period, owners and DPO, tools queried, locations not assessed.
  2. Classification table:
LocationProposed tierData types (type x distinct count)Data subjects (estimate)Legal basis / regulationOwnerExisting labelAction proposed
  1. Channel control matrix:
ChannelTier requiredControl in placeMode (block / audit / none)Evidence (policy name, cmdlet output)Gap
  1. Exfiltration anomalies:
ScoreUserDayDestinationChannelVolumeSignalsQualification (sanctioned / violation / insider / compromise)Evidence (CSV lines, log ids)Next step
  1. Secrets found: rule id, file, commit, author, age, rotation owner, push-protection status.
  2. Notification assessment: facts for the DPO (types, subjects, encryption state, destination, awareness timestamp) and the applicable deadlines.
  3. Proposed changes awaiting approval: policy payloads, blocks, rotations, each with owner and rollback.

When the user wants an HTML report, hand the same sections to the studio-html-report skill. Samples in the report are redacted (FR76****89), never full values.

Resources

  • scripts/classify_scan.py - scan a file or folder with the validated detectors, propose a tier per file, --redact masked samples, --json, exit 1 on Confidential or Restricted. Run at step 2 and during incident qualification.
  • scripts/egress_baseline.py - transfers CSV to scored anomalies with reasons (volume z-score per user, new destination, off-hours, personal cloud or LLM destination, archive or encrypted container, USB size, DNS volume, bursts); Markdown or --json, exit 1 when anomalies exist. Run at step 6.
  • examples/sample_data/ - four files for the scanner: examples/sample_data/clients_export.csv (IBAN, NIR including a Corsican 2B number, e-mails, phones, art. 9 mentions), examples/sample_data/fournisseurs.md (SIREN and SIRET), examples/sample_data/deploy_notes.txt (AWS key pair, JWT, GitHub token, test card, private key) and examples/sample_data/release_notes.md (public, no detection).
  • examples/transfers.csv - 140 transfers for three users over two weeks with a planted off-hours upload of archives to Google Drive and Mega, a DNS tunneling day, a large LLM prompt and a chunked WeTransfer burst.
  • references/detectors.md - regex and validation for every type, checksum code, mapping to Purview SITs, Cloud DLP infoTypes, Macie identifiers and gitleaks rules, false-positive tuning. Open at steps 2 and 5.
  • references/channels-controls.md - channel by channel telemetry, preventive and detective controls, behavioural signals with thresholds, response playbook with notification duties. Open at steps 4 and 7.
  • references/purview-gcp-dlp.md - Purview cmdlets and KQL, Endpoint DLP actions and policy design, Cloud DLP content:inspect body with custom infoTypes and hotwords, Macie CLI, Nightfall scan API, gitleaks commands and report fields. Open at steps 4 and 5.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Data Dlp Monitor AI 技能有什么作用?

对数据进行分类,并监控数据泄露和外传。使用经过验证的检测器识别个人、财务和机密数据(IBAN mod 97、法国 NIR 校验位、SIREN/SIRET、银行卡 Luhn 校验、电子邮件、法国电话号码、AWS 密钥、JWT、私钥、RGPD 第 9 条相关词汇);提出 Public/Internal/Confidential/Restricted 分级;审查 Microsoft Purview DLP 策略和标签、Google Cloud DLP infoTypes、AWS Macie、Nightfall 和 gitleaks 的结果;检测数据外传信号(按用户统计的流量基线、非工作时间、新目标、先压缩再上传、DNS 隧道、个人云盘、LLM 提示词),并提供符合 RGPD、CNIL、NIS2 和 DORA 要求的响应手册。用户要求“扫描这个文件夹中的个人数据”“对这些文件分类”“检查我们的 DLP 策略”“在这些传输日志中查找数据外传”“这个代码库里是否有机密信息”,或分享了可能包含敏感数据的导出文件时,请使用此技能。法语表达包括“classifier les donnees”“detecter une fuite de donnees”“verifier les politiques DLP”。

为什么在 TypingMind 中使用 Data Dlp Monitor?

因为您只需安装一次,就能搭配任何模型使用。Data Dlp Monitor 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Data Dlp Monitor?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Navinspire-ia/navin/tree/main/navin/skills/data-dlp-monitor。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Data Dlp Monitor?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Data Dlp Monitor 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Data Dlp Monitor 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Data Dlp Monitor AI 技能免费吗?

是的。Navinspire-ia 已在 GitHub 上根据 AGPL-3.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇