Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

security-generate-security-sample-data

Skill by elastic

Generates sample security events, attack scenarios and synthetic alerts for Elastic Security. Built for demos, populating dashboards, testing detection rules and setting up proof of concept environments.

  • Score 84
  • 615 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install security-generate-security-sample-data

Built from the published package, never by AI.

git clone --depth 1 https://github.com/elastic/agent-skills /tmp/agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills/skills/security/generate-security-sample-data ~/.claude/skills/security-generate-security-sample-data

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install security-generate-security-sample-data in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Security Generate Security Sample Data is an agent skill from Elastic that creates sample security events, multi-step attack scenarios and synthetic alerts for Elastic Security. The generated data covers five packages (system, endpoint, windows, aws and okta) and four scenarios, including Windows credential theft, AWS privilege escalation, Okta identity takeover and a full ransomware kill chain.

Events are ECS-compliant and use RFC 5737 and RFC 2606 safe addresses. Synthetic alerts are indexed into the default security alerts index with MITRE ATT&CK mappings, severity levels and risk scores. Every document carries a sample-data tag so the cleanup command can remove it later. The skill is aimed at people who need data for demos, dashboards, detection rule testing or proof of concept setups in Elastic Security.

Written from the project's SKILL.md and checked against it.

What it can do

  • sample-data.jsGenerates sample events for the system, endpoint, windows, aws and okta packages, with a configurable count per package.
  • sample-data.js --scenariosRuns four attack simulation scenarios, including a full ransomware kill chain.
  • sample-data.js --alertsIndexes synthetic alert documents with MITRE ATT&CK mappings, severity and risk scores.
  • sample-data.js --continuousStreams live events at a set interval until stopped with Ctrl+C.
  • sample-data.js --cleanupRemoves all tagged sample data and alerts from the project.
  • demo-walkthrough.jsGenerates everything in one step and opens Kibana for a zero-friction demo.

What you need

  • Node.js 22 or later
  • Elasticsearch URL with an API key or username and password
  • Kibana URL, with credentials for Kibana features
  • An LLM connector in Kibana for Attack Discovery
  • An Elastic Security project

Try asking

  • Set up a demo environment so I can show Attack Discovery to my VP.
  • Generate only the ransomware attack chain with alerts to test our detection rules.
  • Remove all sample security data from my Elastic project.

Good to know

  • Do not run against production clusters unless you intend to mix synthetic data with real alerts.
  • Continuous mode indexes events until manually stopped with Ctrl+C.
  • Attack Discovery needs an LLM connector that is set up separately in Kibana.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/security/generate-security-sample-data/SKILL.md, skills/security/generate-security-sample-data/scripts/demo-walkthrough.js, skills/security/generate-security-sample-data/scripts/es-client.js, skills/security/generate-security-sample-data/scripts/kibana-client.js. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • references/sample-data-reference.md4 KB
  • scripts/demo-walkthrough.js5 KB
  • scripts/es-client.js2 KB
  • scripts/kibana-client.js7 KB
Show all 6 files
  • scripts/sample-data.js90 KB

Alternatives to security-generate-security-sample-data

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

security-generate-security-sample-data: common questions

Can I run this against a production Elastic cluster?

The source advises against it unless you want synthetic data to appear alongside real alerts in dashboards and Attack Discovery. Verify the environment variables point to the intended cluster before running cleanup.

How is the sample data removed?

Every generated document is tagged, and the cleanup command only deletes documents with that marker. If marker fields are not indexed, cleanup scans tags for sample documents from the last 14 days.

Do detection rules need to be installed for the synthetic alerts?

No. The source says synthetic alerts are indexed directly into the alerts index and do not require detection rules to be installed or enabled.

How do I install security-generate-security-sample-data?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is security-generate-security-sample-data free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is security-generate-security-sample-data safe to use?

It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to security-generate-security-sample-data?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

security-generate-security-sample-data Install

Add to stack

Loading.