detecting-insider-data-exfiltration-via-dlp

Detects insider data exfiltration by analyzing DLP events and file activity logs with pandas.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill detecting-insider-data-exfiltration-via-dlp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: detecting-insider-data-exfiltration-via-dlp
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/security-operations/detecting-insider-data-exfiltration-via-dlp
Command: npx skills add https://github.com/xalgord/xalgorix --skill detecting-insider-data-exfiltration-via-dlp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas.

What problem does it solve?

Insider data exfiltration often hides inside normal user activity, and simple threshold rules miss slow leaks or generate false positives. This Skill provides a structured pandas-based workflow to baseline user upload behavior and flag anomalous exfiltration patterns across endpoint, cloud, and email DLP logs.

Core Features & Use Cases

  • Behavioral Baselining: Computes per-user average daily upload volumes and flags activity exceeding 3x the baseline.
  • Off-Hours Detection: Identifies file access and transfers occurring outside normal working hours (before 6 AM or after 10 PM).
  • Detection Gap Guidance: Documents blind spots such as DNS tunneling, personal cloud storage, encrypted archives, and baseline poisoning, with validation and false-positive tuning advice.
  • Use Case: A SOC analyst investigating a departing employee loads file activity logs into a CSV, runs the baseline and off-hours queries, and surfaces bulk downloads that occurred days before the resignation notice.

Quick Start

Analyze the attached file_activity.csv to find users whose upload volume today exceeds three times their daily baseline and list any off-hours file access.

Frequently Asked Questions about detecting-insider-data-exfiltration-via-dlp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect insider data exfiltration with pandas?

Load file activity logs into a pandas DataFrame, compute each user's average daily upload volume as a baseline, then flag users whose current-day transfers exceed three times that baseline. Combine this with off-hours filtering on timestamp hours for stronger signals.

What log data is needed for DLP exfiltration detection?

You need a CSV with at least timestamp, user, and bytes_transferred columns, typically exported from endpoint agents, cloud storage access logs, or email DLP events. Timestamps must be parseable dates with correct timezones for off-hours analysis.

Why does volume-based exfiltration detection miss slow leaks?

A fixed 3x daily threshold only catches same-day spikes, so an insider drip-feeding a few MB per day stays invisible. Add cumulative 30-day rolling sums compared against peer-group baselines and rare-destination detection to catch low-and-slow exfiltration.

What channels does DLP log analysis not cover?

Volume baselines over endpoint, cloud, and email logs miss DNS tunneling, DoH/DoT, personal webmail or cloud accounts, Slack/Discord uploads, and pastebin or git pushes. Any channel without a DLP sensor is a blind spot that must be enumerated explicitly.

How do I reduce false positives in off-hours detection rules?

Allowlist known roles and destinations such as backup jobs, developers pushing build artifacts, and shift workers who legitimately operate at night. Verify timestamps are timezone-correct so the off-hours window is not shifted, and validate the rule in a lab with a known test transfer.