[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M751YKM3J91XYMACSVSB2MXC":3,"skill-same:01M751YKM3J91XYMACSVSB2MXC":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":38,"commitSha":39,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M751YKM3J91XYMACSVSB2MXC","investigating-insider-threat-indicators",null,"Investigates insider threat indicators including data exfiltration attempts, unauthorized access patterns, policy violations, and pre-departure behaviors using SIEM analytics, DLP alerts, and HR data correlation. Use when SOC teams receive insider threat referrals from HR, detect anomalous data movement by employees, or need to build investigation timelines for potential insider threats.","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Finvestigating-insider-threat-indicators\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Finvestigating-insider-threat-indicators\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: investigating-insider-threat-indicators\ndescription: >\n  Investigates insider threat indicators including data exfiltration attempts, unauthorized access\n  patterns, policy violations, and pre-departure behaviors using SIEM analytics, DLP alerts, and\n  HR data correlation. Use when SOC teams receive insider threat referrals from HR, detect anomalous\n  data movement by employees, or need to build investigation timelines for potential insider threats.\ndomain: cybersecurity\nsubdomain: soc-operations\ntags: [soc, insider-threat, data-exfiltration, dlp, ueba, investigation, hr-correlation]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\n---\n# Investigating Insider Threat Indicators\n\n## When to Use\n\nUse this skill when:\n- HR refers a departing employee for monitoring during their notice period\n- DLP alerts indicate bulk data downloads or transfers to personal storage\n- UEBA detects anomalous access patterns deviating significantly from peer baselines\n- Management reports concerns about an employee accessing sensitive data outside their role\n\n**Do not use** without proper legal authorization — insider threat investigations must be coordinated with HR, Legal, and Privacy teams before monitoring begins.\n\n## Prerequisites\n\n- Legal authorization and HR referral documenting investigation justification\n- SIEM with DLP, endpoint, email, proxy, and authentication log sources\n- Data Loss Prevention (DLP) system (Microsoft Purview, Symantec, Forcepoint) with policy alerts\n- Endpoint monitoring capability (EDR with USB\u002Fremovable media logging)\n- HR data feed providing employment status, notice dates, and access entitlements\n- Chain of custody procedures for evidence preservation\n\n## Workflow\n\n### Step 1: Establish Investigation Scope and Legal Authorization\n\nBefore any monitoring, ensure proper authorization:\n\n```\nINSIDER THREAT INVESTIGATION AUTHORIZATION\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nCase ID:           IT-2024-0089\nSubject:           [Employee Name] — [Department]\nAuthorized By:     [CISO \u002F General Counsel]\nReferral Source:   HR — Employee submitted resignation, 2-week notice\nJustification:     Employee has access to trade secrets and customer PII\nScope:             Email, file access, USB, cloud storage, printing\nDuration:          2024-03-15 to 2024-03-29 (notice period)\nPrivacy Review:    Completed — compliant with acceptable use policy\n```\n\n### Step 2: Build Activity Timeline from SIEM\n\nQuery comprehensive activity for the subject:\n\n```spl\nindex=* (user=\"jsmith\" OR src_user=\"jsmith\" OR sender=\"jsmith@company.com\"\n         OR SubjectUserName=\"jsmith\")\nearliest=\"2024-03-01\" latest=now\n| eval event_category = case(\n    sourcetype LIKE \"%dlp%\", \"DLP\",\n    sourcetype LIKE \"%proxy%\", \"Web Access\",\n    sourcetype LIKE \"%email%\", \"Email\",\n    sourcetype LIKE \"%WinEventLog%\", \"Endpoint\",\n    sourcetype LIKE \"%o365%\", \"Cloud\",\n    sourcetype LIKE \"%vpn%\", \"VPN\",\n    sourcetype LIKE \"%badge%\", \"Physical Access\",\n    1=1, sourcetype\n  )\n| stats count by event_category, sourcetype, _time\n| timechart span=1d count by event_category\n```\n\n### Step 3: Detect Data Exfiltration Indicators\n\n**Bulk File Downloads (SharePoint\u002FOneDrive):**\n\n```spl\nindex=o365 sourcetype=\"o365:management:activity\" Operation IN (\"FileDownloaded\", \"FileSynced\")\nUserId=\"jsmith@company.com\" earliest=-30d\n| stats count AS downloads, sum(eval(if(isnotnull(FileSize), FileSize, 0))) AS total_bytes,\n        dc(SourceFileName) AS unique_files\n  by UserId, SiteUrl, _time\n| bin _time span=1d\n| eval total_gb = round(total_bytes \u002F 1073741824, 2)\n| where downloads > 50 OR total_gb > 1\n| sort - total_gb\n```\n\n**USB\u002FRemovable Media Usage:**\n\n```spl\nindex=sysmon EventCode=1 Computer=\"WORKSTATION-JSMITH\"\n(CommandLine=\"*removable*\" OR CommandLine=\"*usb*\"\n OR Image=\"*\\\\xcopy*\" OR Image=\"*\\\\robocopy*\")\n| table _time, Computer, User, Image, CommandLine\n| append [\n    search index=endpoint sourcetype=\"endpoint:device_connect\"\n    user=\"jsmith\" device_type=\"removable\"\n    | table _time, user, device_name, device_serial, action\n  ]\n| sort _time\n```\n\n**Email-Based Exfiltration:**\n\n```spl\nindex=email sourcetype=\"o365:messageTrace\"\nSenderAddress=\"jsmith@company.com\"\n| eval is_external = if(match(RecipientAddress, \"@company\\.com$\"), 0, 1)\n| eval has_attachment = if(isnotnull(AttachmentName), 1, 0)\n| stats count AS total_emails,\n        sum(is_external) AS external_emails,\n        sum(has_attachment) AS with_attachments,\n        sum(eval(if(is_external=1 AND has_attachment=1, 1, 0))) AS external_with_attach,\n        sum(Size) AS total_size_bytes\n  by SenderAddress\n| eval external_attach_pct = round(external_with_attach \u002F total_emails * 100, 1)\n| eval total_size_mb = round(total_size_bytes \u002F 1048576, 1)\n```\n\n**Cloud Storage Upload Detection:**\n\n```spl\nindex=proxy user=\"jsmith\"\n(dest IN (\"*dropbox.com\", \"*drive.google.com\", \"*onedrive.live.com\",\n          \"*box.com\", \"*wetransfer.com\", \"*mega.nz\")\n OR category=\"cloud-storage\")\nhttp_method=POST\n| stats count AS uploads, sum(bytes_out) AS total_uploaded\n  by user, dest, category\n| eval uploaded_mb = round(total_uploaded \u002F 1048576, 1)\n| sort - uploaded_mb\n```\n\n### Step 4: Analyze Access Pattern Anomalies\n\n**Accessing Sensitive Systems Outside Normal Scope:**\n\n```spl\nindex=auth user=\"jsmith\" action=success earliest=-30d\n| stats dc(app) AS unique_apps, values(app) AS apps_accessed by user\n| join user type=left [\n    | inputlookup role_app_mapping.csv\n    | search role=\"Financial Analyst\"\n    | stats values(authorized_app) AS authorized_apps by role\n    | eval user=\"jsmith\"\n  ]\n| eval unauthorized = mvfilter(NOT match(apps_accessed, mvjoin(authorized_apps, \"|\")))\n| where isnotnull(unauthorized)\n| table user, unauthorized, authorized_apps\n```\n\n**After-Hours and Weekend Activity:**\n\n```spl\nindex=* user=\"jsmith\" earliest=-30d\n| eval hour = tonumber(strftime(_time, \"%H\"))\n| eval is_offhours = if(hour \u003C 7 OR hour > 19, 1, 0)\n| eval day = strftime(_time, \"%A\")\n| eval is_weekend = if(day IN (\"Saturday\", \"Sunday\"), 1, 0)\n| stats count AS total, sum(is_offhours) AS offhours, sum(is_weekend) AS weekend by user\n| eval offhours_pct = round(offhours \u002F total * 100, 1)\n| eval weekend_pct = round(weekend \u002F total * 100, 1)\n```\n\n### Step 5: Correlate with HR and Physical Security Data\n\n**Compare activity to resignation timeline:**\n\n```spl\n| makeresults\n| eval user=\"jsmith\",\n       resignation_date=\"2024-03-15\",\n       last_day=\"2024-03-29\",\n       access_revocation=\"2024-03-29 17:00\"\n| join user [\n    search index=* user=\"jsmith\" earliest=-90d\n    | bin _time span=1d\n    | stats count AS daily_events, dc(sourcetype) AS data_sources by user, _time\n  ]\n| eval phase = case(\n    _time \u003C relative_time(now(), \"-30d\"), \"Normal (Pre-Resignation)\",\n    _time >= strptime(resignation_date, \"%Y-%m-%d\") AND _time \u003C= strptime(last_day, \"%Y-%m-%d\"),\n      \"Notice Period\",\n    1=1, \"Transition\"\n  )\n| chart avg(daily_events) AS avg_events by phase\n```\n\n**Badge\u002FPhysical Access Correlation:**\n\n```spl\nindex=badge_access employee_id=\"jsmith\" earliest=-30d\n| stats count AS badge_events, values(door_name) AS doors_accessed,\n        earliest(_time) AS first_badge, latest(_time) AS last_badge by employee_id\n| eval areas = mvcount(doors_accessed)\n```\n\n### Step 6: Preserve Evidence and Document Findings\n\nMaintain chain of custody for all collected evidence:\n\n```python\nimport hashlib\nimport json\nfrom datetime import datetime\n\nevidence_log = {\n    \"case_id\": \"IT-2024-0089\",\n    \"investigator\": \"soc_analyst_tier2\",\n    \"collection_time\": datetime.utcnow().isoformat(),\n    \"items\": [\n        {\n            \"item_id\": \"EV-001\",\n            \"description\": \"Splunk export — all user activity 2024-03-01 to 2024-03-15\",\n            \"file\": \"jsmith_activity_export.csv\",\n            \"sha256\": hashlib.sha256(open(\"jsmith_activity_export.csv\", \"rb\").read()).hexdigest(),\n            \"collected_by\": \"analyst_doe\",\n            \"collection_method\": \"Splunk search export\"\n        },\n        {\n            \"item_id\": \"EV-002\",\n            \"description\": \"DLP alert details — 47 policy violations\",\n            \"file\": \"dlp_alerts_jsmith.json\",\n            \"sha256\": hashlib.sha256(open(\"dlp_alerts_jsmith.json\", \"rb\").read()).hexdigest(),\n            \"collected_by\": \"analyst_doe\",\n            \"collection_method\": \"Microsoft Purview export\"\n        }\n    ]\n}\n\nwith open(f\"evidence_log_{evidence_log['case_id']}.json\", \"w\") as f:\n    json.dump(evidence_log, f, indent=2)\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|-----------|\n| **Insider Threat** | Risk posed by individuals with legitimate access who misuse it for unauthorized purposes |\n| **Data Exfiltration** | Unauthorized transfer of data outside the organization via email, USB, cloud, or other channels |\n| **DLP** | Data Loss Prevention — technology monitoring and blocking unauthorized data transfers based on content policies |\n| **Notice Period Monitoring** | Enhanced surveillance of departing employees during their resignation-to-departure window |\n| **Chain of Custody** | Documented evidence handling procedures ensuring forensic integrity for potential legal proceedings |\n| **Need-to-Know Violation** | Accessing information or systems beyond what is required for an employee's role or current tasks |\n\n## Tools & Systems\n\n- **Microsoft Purview (formerly DLP)**: Data classification and loss prevention platform monitoring endpoints, email, and cloud storage\n- **Splunk UBA**: User behavior analytics detecting insider threat patterns through ML-based anomaly detection\n- **Forcepoint Insider Threat**: Dedicated insider threat detection platform with behavioral indicators and risk scoring\n- **DTEX InTERCEPT**: Endpoint-based insider threat detection focusing on user activity metadata collection\n- **Code42 Incydr**: Data risk detection platform specializing in file exfiltration monitoring across endpoints and cloud\n\n## Common Scenarios\n\n- **Departing Employee**: Bulk download of customer lists and product roadmaps during two-week notice period\n- **Disgruntled Employee**: After negative performance review, employee accesses executive salary data outside their role\n- **Contractor Overreach**: External consultant accessing systems beyond contracted scope, downloading source code\n- **Account Misuse**: Employee sharing credentials with unauthorized third party for competitive intelligence\n- **Sabotage Indicator**: IT admin creating backdoor accounts and modifying system configurations before departure\n\n## Output Format\n\n```\nINSIDER THREAT INVESTIGATION REPORT — IT-2024-0089\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nSubject:      jsmith (Financial Analyst, Finance Dept)\nPeriod:       2024-03-01 to 2024-03-15\nStatus:       Employee resigned 2024-03-15, last day 2024-03-29\n\nKey Findings:\n  [HIGH]  3,847 files downloaded from SharePoint (12.4 GB) — 10x peer average\n  [HIGH]  USB device connected 14 times during notice period (0 times prior month)\n  [HIGH]  187 emails with attachments sent to personal Gmail\n  [MEDIUM] After-hours activity increased 340% during notice period\n  [MEDIUM] Accessed HR salary database 3 times (not authorized for role)\n\nTimeline:\n  Mar 01-14:  Normal activity baseline (avg 150 events\u002Fday)\n  Mar 15:     Resignation submitted (activity spike to 890 events)\n  Mar 16-17:  Weekend access — 2,100 SharePoint downloads\n  Mar 18:     USB device first connected, DLP alert triggered\n\nEvidence Collected:   4 items (SHA-256 verified, chain of custody documented)\nRecommendation:       Immediate access revocation recommended\n                      Evidence package prepared for Legal review\n```\n","# Investigating Insider Threat Indicators\n\n## When to Use\n\nUse this skill when:\n- HR refers a departing employee for monitoring during their notice period\n- DLP alerts indicate bulk data downloads or transfers to personal storage\n- UEBA detects anomalous access patterns deviating significantly from peer baselines\n- Management reports concerns about an employee accessing sensitive data outside their role\n\n**Do not use** without proper legal authorization — insider threat investigations must be coordinated with HR, Legal, and Privacy teams before monitoring begins.\n\n## Prerequisites\n\n- Legal authorization and HR referral documenting investigation justification\n- SIEM with DLP, endpoint, email, proxy, and authentication log sources\n- Data Loss Prevention (DLP) system (Microsoft Purview, Symantec, Forcepoint) with policy alerts\n- Endpoint monitoring capability (EDR with USB\u002Fremovable media logging)\n- HR data feed providing employment status, notice dates, and access entitlements\n- Chain of custody procedures for evidence preservation\n\n## Workflow\n\n### Step 1: Establish Investigation Scope and Legal Authorization\n\nBefore any monitoring, ensure proper authorization:\n\n```\nINSIDER THREAT INVESTIGATION AUTHORIZATION\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nCase ID:           IT-2024-0089\nSubject:           [Employee Name] — [Department]\nAuthorized By:     [CISO \u002F General Counsel]\nReferral Source:   HR — Employee submitted resignation, 2-week notice\nJustification:     Employee has access to trade secrets and customer PII\nScope:             Email, file access, USB, cloud storage, printing\nDuration:          2024-03-15 to 2024-03-29 (notice period)\nPrivacy Review:    Completed — compliant with acceptable use policy\n```\n\n### Step 2: Build Activity Timeline from SIEM\n\nQuery comprehensive activity for the subject:\n\n```spl\nindex=* (user=\"jsmith\" OR src_user=\"jsmith\" OR sender=\"jsmith@company.com\"\n         OR SubjectUserName=\"jsmith\")\nearliest=\"2024-03-01\" latest=now\n| eval event_category = case(\n    sourcetype LIKE \"%dlp%\", \"DLP\",\n    sourcetype LIKE \"%proxy%\", \"Web Access\",\n    sourcetype LIKE \"%email%\", \"Email\",\n    sourcetype LIKE \"%WinEventLog%\", \"Endpoint\",\n    sourcetype LIKE \"%o365%\", \"Cloud\",\n    sourcetype LIKE \"%vpn%\", \"VPN\",\n    sourcetype LIKE \"%badge%\", \"Physical Access\",\n    1=1, sourcetype\n  )\n| stats count by event_category, sourcetype, _time\n| timechart span=1d count by event_category\n```\n\n### Step 3: Detect Data Exfiltration Indicators\n\n**Bulk File Downloads (SharePoint\u002FOneDrive):**\n\n```spl\nindex=o365 sourcetype=\"o365:management:activity\" Operation IN (\"FileDownloaded\", \"FileSynced\")\nUserId=\"jsmith@company.com\" earliest=-30d\n| stats count AS downloads, sum(eval(if(isnotnull(FileSize), FileSize, 0))) AS total_bytes,\n        dc(SourceFileName) AS unique_files\n  by UserId, SiteUrl, _time\n| bin _time span=1d\n| eval total_gb = round(total_bytes \u002F 1073741824, 2)\n| where downloads > 50 OR total_gb > 1\n| sort - total_gb\n```\n\n**USB\u002FRemovable Media Usage:**\n\n```spl\nindex=sysmon EventCode=1 Computer=\"WORKSTATION-JSMITH\"\n(CommandLine=\"*removable*\" OR CommandLine=\"*usb*\"\n OR Image=\"*\\\\xcopy*\" OR Image=\"*\\\\robocopy*\")\n| table _time, Computer, User, Image, CommandLine\n| append [\n    search index=endpoint sourcetype=\"endpoint:device_connect\"\n    user=\"jsmith\" device_type=\"removable\"\n    | table _time, user, device_name, device_serial, action\n  ]\n| sort _time\n```\n\n**Email-Based Exfiltration:**\n\n```spl\nindex=email sourcetype=\"o365:messageTrace\"\nSenderAddress=\"jsmith@company.com\"\n| eval is_external = if(match(RecipientAddress, \"@company\\.com$\"), 0, 1)\n| eval has_attachment = if(isnotnull(AttachmentName), 1, 0)\n| stats count AS total_emails,\n        sum(is_external) AS external_emails,\n        sum(has_attachment) AS with_attachments,\n        sum(eval(if(is_external=1 AND has_attachment=1, 1, 0))) AS external_with_attach,\n        sum(Size) AS total_size_bytes\n  by SenderAddress\n| eval external_attach_pct = round(external_with_attach \u002F total_emails * 100, 1)\n| eval total_size_mb = round(total_size_bytes \u002F 1048576, 1)\n```\n\n**Cloud Storage Upload Detection:**\n\n```spl\nindex=proxy user=\"jsmith\"\n(dest IN (\"*dropbox.com\", \"*drive.google.com\", \"*onedrive.live.com\",\n          \"*box.com\", \"*wetransfer.com\", \"*mega.nz\")\n OR category=\"cloud-storage\")\nhttp_method=POST\n| stats count AS uploads, sum(bytes_out) AS total_uploaded\n  by user, dest, category\n| eval uploaded_mb = round(total_uploaded \u002F 1048576, 1)\n| sort - uploaded_mb\n```\n\n### Step 4: Analyze Access Pattern Anomalies\n\n**Accessing Sensitive Systems Outside Normal Scope:**\n\n```spl\nindex=auth user=\"jsmith\" action=success earliest=-30d\n| stats dc(app) AS unique_apps, values(app) AS apps_accessed by user\n| join user type=left [\n    | inputlookup role_app_mapping.csv\n    | search role=\"Financial Analyst\"\n    | stats values(authorized_app) AS authorized_apps by role\n    | eval user=\"jsmith\"\n  ]\n| eval unauthorized = mvfilter(NOT match(apps_accessed, mvjoin(authorized_apps, \"|\")))\n| where isnotnull(unauthorized)\n| table user, unauthorized, authorized_apps\n```\n\n**After-Hours and Weekend Activity:**\n\n```spl\nindex=* user=\"jsmith\" earliest=-30d\n| eval hour = tonumber(strftime(_time, \"%H\"))\n| eval is_offhours = if(hour \u003C 7 OR hour > 19, 1, 0)\n| eval day = strftime(_time, \"%A\")\n| eval is_weekend = if(day IN (\"Saturday\", \"Sunday\"), 1, 0)\n| stats count AS total, sum(is_offhours) AS offhours, sum(is_weekend) AS weekend by user\n| eval offhours_pct = round(offhours \u002F total * 100, 1)\n| eval weekend_pct = round(weekend \u002F total * 100, 1)\n```\n\n### Step 5: Correlate with HR and Physical Security Data\n\n**Compare activity to resignation timeline:**\n\n```spl\n| makeresults\n| eval user=\"jsmith\",\n       resignation_date=\"2024-03-15\",\n       last_day=\"2024-03-29\",\n       access_revocation=\"2024-03-29 17:00\"\n| join user [\n    search index=* user=\"jsmith\" earliest=-90d\n    | bin _time span=1d\n    | stats count AS daily_events, dc(sourcetype) AS data_sources by user, _time\n  ]\n| eval phase = case(\n    _time \u003C relative_time(now(), \"-30d\"), \"Normal (Pre-Resignation)\",\n    _time >= strptime(resignation_date, \"%Y-%m-%d\") AND _time \u003C= strptime(last_day, \"%Y-%m-%d\"),\n      \"Notice Period\",\n    1=1, \"Transition\"\n  )\n| chart avg(daily_events) AS avg_events by phase\n```\n\n**Badge\u002FPhysical Access Correlation:**\n\n```spl\nindex=badge_access employee_id=\"jsmith\" earliest=-30d\n| stats count AS badge_events, values(door_name) AS doors_accessed,\n        earliest(_time) AS first_badge, latest(_time) AS last_badge by employee_id\n| eval areas = mvcount(doors_accessed)\n```\n\n### Step 6: Preserve Evidence and Document Findings\n\nMaintain chain of custody for all collected evidence:\n\n```python\nimport hashlib\nimport json\nfrom datetime import datetime\n\nevidence_log = {\n    \"case_id\": \"IT-2024-0089\",\n    \"investigator\": \"soc_analyst_tier2\",\n    \"collection_time\": datetime.utcnow().isoformat(),\n    \"items\": [\n        {\n            \"item_id\": \"EV-001\",\n            \"description\": \"Splunk export — all user activity 2024-03-01 to 2024-03-15\",\n            \"file\": \"jsmith_activity_export.csv\",\n            \"sha256\": hashlib.sha256(open(\"jsmith_activity_export.csv\", \"rb\").read()).hexdigest(),\n            \"collected_by\": \"analyst_doe\",\n            \"collection_method\": \"Splunk search export\"\n        },\n        {\n            \"item_id\": \"EV-002\",\n            \"description\": \"DLP alert details — 47 policy violations\",\n            \"file\": \"dlp_alerts_jsmith.json\",\n            \"sha256\": hashlib.sha256(open(\"dlp_alerts_jsmith.json\", \"rb\").read()).hexdigest(),\n            \"collected_by\": \"analyst_doe\",\n            \"collection_method\": \"Microsoft Purview export\"\n        }\n    ]\n}\n\nwith open(f\"evidence_log_{evidence_log['case_id']}.json\", \"w\") as f:\n    json.dump(evidence_log, f, indent=2)\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|-----------|\n| **Insider Threat** | Risk posed by individuals with legitimate access who misuse it for unauthorized purposes |\n| **Data Exfiltration** | Unauthorized transfer of data outside the organization via email, USB, cloud, or other channels |\n| **DLP** | Data Loss Prevention — technology monitoring and blocking unauthorized data transfers based on content policies |\n| **Notice Period Monitoring** | Enhanced surveillance of departing employees during their resignation-to-departure window |\n| **Chain of Custody** | Documented evidence handling procedures ensuring forensic integrity for potential legal proceedings |\n| **Need-to-Know Violation** | Accessing information or systems beyond what is required for an employee's role or current tasks |\n\n## Tools & Systems\n\n- **Microsoft Purview (formerly DLP)**: Data classification and loss prevention platform monitoring endpoints, email, and cloud storage\n- **Splunk UBA**: User behavior analytics detecting insider threat patterns through ML-based anomaly detection\n- **Forcepoint Insider Threat**: Dedicated insider threat detection platform with behavioral indicators and risk scoring\n- **DTEX InTERCEPT**: Endpoint-based insider threat detection focusing on user activity metadata collection\n- **Code42 Incydr**: Data risk detection platform specializing in file exfiltration monitoring across endpoints and cloud\n\n## Common Scenarios\n\n- **Departing Employee**: Bulk download of customer lists and product roadmaps during two-week notice period\n- **Disgruntled Employee**: After negative performance review, employee accesses executive salary data outside their role\n- **Contractor Overreach**: External consultant accessing systems beyond contracted scope, downloading source code\n- **Account Misuse**: Employee sharing credentials with unauthorized third party for competitive intelligence\n- **Sabotage Indicator**: IT admin creating backdoor accounts and modifying system configurations before departure\n\n## Output Format\n\n```\nINSIDER THREAT INVESTIGATION REPORT — IT-2024-0089\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nSubject:      jsmith (Financial Analyst, Finance Dept)\nPeriod:       2024-03-01 to 2024-03-15\nStatus:       Employee resigned 2024-03-15, last day 2024-03-29\n\nKey Findings:\n  [HIGH]  3,847 files downloaded from SharePoint (12.4 GB) — 10x peer average\n  [HIGH]  USB device connected 14 times during notice period (0 times prior month)\n  [HIGH]  187 emails with attachments sent to personal Gmail\n  [MEDIUM] After-hours activity increased 340% during notice period\n  [MEDIUM] Accessed HR salary database 3 times (not authorized for role)\n\nTimeline:\n  Mar 01-14:  Normal activity baseline (avg 150 events\u002Fday)\n  Mar 15:     Resignation submitted (activity spike to 890 events)\n  Mar 16-17:  Weekend access — 2,100 SharePoint downloads\n  Mar 18:     USB device first connected, DLP alert triggered\n\nEvidence Collected:   4 items (SHA-256 verified, chain of custody documented)\nRecommendation:       Immediate access revocation recommended\n                      Evidence package prepared for Legal review\n```\n",{"name":5,"tags":25,"author":33,"domain":34,"license":15,"version":35,"subdomain":36,"description":37},[26,27,28,29,30,31,32],"soc","insider-threat","data-exfiltration","dlp","ueba","investigation","hr-correlation","mahipal","cybersecurity","1.0","soc-operations","Investigates insider threat indicators including data exfiltration attempts, unauthorized access patterns, policy violations, and pre-departure behaviors using SIEM analytics, DLP alerts, and HR data correlation. Use when SOC teams receive insider threat referrals from HR, detect anomalous data movement by employees, or need to build investigation timelines for potential insider threats.\n","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill investigating-insider-threat-indicators",{"tool":50,"command":51},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill investigating-insider-threat-indicators",{"tool":53,"command":54},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill investigating-insider-threat-indicators","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Finvestigating-insider-threat-indicators\u002FSKILL.md",true,[58,62,68],{"path":59,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fapi-reference.md","REFERENCE","参考文档",2475,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Finvestigating-insider-threat-indicators\u002Freferences\u002Fapi-reference.md",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Fagent.py","SCRIPT","脚本",8953,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Finvestigating-insider-threat-indicators\u002Fscripts\u002Fagent.py",[75,83,90,97,104,111],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":20},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":20},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":20},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":20},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":20},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":20},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]