Skip to content
Skillpedia
Agents35k · #5674

detecting-insider-threat-with-ueba

Has your agent analyze user and system behavior to identify insider threats. It creates a normal activity profile and alerts on dangerous deviations.

What it does

This tool helps identify suspicious user behavior in computer systems. It learns how people normally use systems and alerts when something unusual happens, which could indicate an insider threat.

When to use it

  • ✓When investigating strange activities in security systems.
  • ✓When creating new ways to detect insider threats.
  • ✓When security analysts need a guide to investigate unusual behaviors.

Example of what to ask your AI

“Detect unusual user behaviors that might indicate insider threats.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-insider-threat-with-ueba/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-insider-threat-with-ueba/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool analyzes user activity logs (like logins and file access) to understand normal behavior. It then compares current activities against this pattern and calculates a risk score to identify suspicious deviations.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill detecting-insider-threat-with-ueba

Or download just the file:

curl -L https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/main/skills/detecting-insider-threat-with-ueba/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Detecting Insider Threat with UEBA

Overview

User and Entity Behavior Analytics (UEBA) moves beyond static rule-based detection to model normal behavior for users, hosts, and applications, then flag statistically significant deviations that may indicate insider threats. Using Elasticsearch as the analytics backend, this skill covers building behavioral baselines from authentication logs, file access events, and network activity, computing risk scores using statistical deviation and peer group comparison, and correlating multiple low-confidence indicators into high-confidence insider threat alerts.

When to Use

  • When investigating security incidents that require detecting insider threat with ueba
  • When building detection rules or threat hunting queries for this domain
  • When SOC analysts need structured procedures for this analysis type
  • When validating security monitoring coverage for related attack techniques

Prerequisites

  • Elasticsearch 8.x or OpenSearch 2.x cluster with security audit data
  • Log sources: Active Directory authentication, VPN, DLP, file server access, email
  • Python 3.9+ with elasticsearch client library
  • Baseline period of 30+ days of normal user activity data
  • Defined peer groups based on department, role, or job function

Steps

Step 1: Ingest and Normalize Activity Logs

Configure log pipelines to ingest authentication, file access, email, and network logs into Elasticsearch with a unified user identity field.

Step 2: Build Behavioral Baselines

Calculate per-user baselines for login times, data volume, application usage, and access patterns over a rolling 30-day window using Elasticsearch aggregations.

Step 3: Calculate Anomaly Scores

Compare current activity against baselines using z-score deviation and peer group comparison to generate per-user risk scores.

Step 4: Correlate and Alert

Combine multiple anomalous indicators (unusual hours + large downloads + new system access) into composite risk scores that trigger SOC investigation workflows.

Expected Output

JSON report containing per-user risk scores, anomalous activity details, peer group deviations, and recommended investigation actions.

FAQ

What is 'UEBA'?

UEBA stands for 'User and Entity Behavior Analytics'. It's an advanced security approach that observes how users and systems normally behave to detect abnormal activities.

What kind of data is needed?

Activity data such as authentication (logins), file access, emails, and network traffic is required, along with information about users and their groups.

How long does it take to learn normal behavior?

Typically, at least 30 days of normal activity data are needed to create a reliable comparison baseline.

Details

Original description by the author

Implement User and Entity Behavior Analytics (UEBA) using Elasticsearch/OpenSearch to build behavioral baselines, calculate anomaly scores, perform peer group analysis, and alert on insider threat indicators such as data exfiltration, privilege abuse, and unauthorized access. Use when building or tuning a UEBA pipeline rather than a one-off manual hunt.

repo: mukul975/Anthropic-Cybersecurity-Skills

Popularity

GitHub stars
35k
Ranking position
#5674
License
Apache-2.0
Updated
8/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills