elastic avatar

Security Generate Security Sample Data

If you're working with Elastic Security and need realistic test data to validate your dashboards, alerts, or Attack Discovery features, this generates ECS-compliant security events and multi-step attack scenarios. It's from the official Elastic agent-skills repo and includes a demo walkthrough script that spins up sample data and opens Kibana for you. Useful for testing detection rules without waiting for real incidents or manually crafting synthetic events. The generated data populates all the right places in Elastic Security, so you can see how your setup handles actual attack patterns. Saves you from the tedious work of creating believable security event data by hand.

skills.sh installs
4.1K
GitHub stars
604
last updated
Aug 21, 2026

Install

$ npx -y skills add elastic/agent-skills --skill security-generate-security-sample-data --agent claude-code

Installs into .claude/skills of the current project.

Files

Generate Security Sample Data

Generate ECS-compliant security events, multi-step attack scenarios, and synthetic alert documents that populate Elastic Security dashboards, the Alerts tab, and Attack Discovery.

Quick start

For a zero-friction experience that generates everything and opens Kibana:

node skills/security/generate-security-sample-data/scripts/demo-walkthrough.js

Workflow

- [ ] Step 1: Set environment variables
- [ ] Step 2: Generate sample data
- [ ] Step 3: Explore in Kibana
- [ ] Step 4: Clean up when done

Step 1: Set environment variables

export ELASTICSEARCH_URL="https://your-project.es.region.aws.elastic.cloud"
export ELASTICSEARCH_USERNAME="admin"
export ELASTICSEARCH_PASSWORD="your-password"
export KIBANA_URL="https://your-project.kb.region.aws.elastic.cloud"

Step 2: Generate sample data

Generate everything at once
node skills/security/generate-security-sample-data/scripts/sample-data.js \
  system endpoint okta aws windows --scenarios --alerts
Generate only events

Sponsors

Details

Repository
github.com/elastic/agent-skills
Categories
Testing & QA, Security, AI & Agent Building
First seen
May 16, 2026

More from elastic/agent-skills

All 57
1yaklang avatarauthbypass-authentication-flawsyaklang/hack-skillsAuthentication bypass testing playbook. Use when assessing login flows, password reset logic, account recovery, MFA bypass, token predictability, brute-force re4Kskills.sh installs
2yaklang avatarapi-auth-and-jwt-abuseyaklang/hack-skillsAPI authentication and JWT abuse playbook. Use when testing bearer tokens, API keys, claim trust, header spoofing, rate limits, and API auth boundary weaknesses4Kskills.sh installs
3sanity-io avatarcontent-experimentation-best-practicessanity-io/agent-toolkitContent experimentation and A/B testing guidance covering experiment design, hypotheses, metrics, sample size, statistical foundations, CMS-managed variants, an4Kskills.sh installs
4yaklang avatarapi-authorization-and-bolayaklang/hack-skillsAPI authorization and BOLA testing playbook. Use when APIs expose object identifiers, nested resources, hidden writable fields, or weak function-level authoriza3.9Kskills.sh installs
5yaklang avatarcors-cross-origin-misconfigurationyaklang/hack-skillsCORS misconfiguration testing playbook. Use when analyzing cross-origin trust, credentialed browser reads, origin reflection, preflight policy bugs, and browser3.9Kskills.sh installs
6dotnet avatartemplate-validationdotnet/skillsValidates custom dotnet new templates for correctness before publishing. Catches missing fields, parameter bugs, shortName conflicts, constraint issues, and com3.9Kskills.sh installs