security-generate-security-sample-data
Generate sample security events, attack scenarios, and synthetic alerts for Elastic Security.
Skill by elasticOfficial
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/elastic-security-generate-security-sample-data
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, data, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/security-generate-security-sample-data
What's inside
- Skill name
security-generate-security-sample-data- Description
- Generate sample security events, attack scenarios, and synthetic alerts for Elastic Security. Use when demoing, populating dashboards, testing detection rules, or setting up a POC.
- License
- Apache-2.0
- Compatibility
- Requires Node.js 22+, network access to Kibana and Elasticsearch. Environment variables: KIBANA_URL plus KIBANA_API_KEY or KIBANA_USERNAME/KIBANA_PASSWORD; ELASTICSEARCH_URL or ELASTICSEARCH_CLOUD_ID plus ELASTICSEARCH_API_KEY or ELASTICSEARCH_USERNAME/ELASTICSEARCH_PASSWORD.
- Metadata
- author: elastic · version: 0.1.0
- Instructions
- 197 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- name: "security-generate-security-sample-data" does not match folder "generate-security-sample-data"
Files (6)
- SKILL.md
- sample-data-reference.md · references/
- demo-walkthrough.js · scripts/
- es-client.js · scripts/
- kibana-client.js · scripts/
- sample-data.js · scripts/
SKILL.md (first lines)
# 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: ```bash node skills/security/generate-security-sample-data/scripts/demo-walkthrough.js ``` ## Workflow ```text - [ ] 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 ```bash 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 ```bash node skills/security/generate-security-sample-data/scripts/sample-data.js \ system endpoint okta aws windows --scenarios --alerts ``` #### Generate only events ```bash node skills/security/generate-security-sample-data/scripts/sample-data.js \ system endpoint --count 100 ``` #### Generate only attack scenarios ```bash node skills/security/generate-security-sample-data/scripts/sample-data.js --scenarios ``` #### Generate only synthetic alerts ```bash node skills/security/generate-security-sample-data/scripts/sample-data.js --alerts ``` ### Step 3: Explore in Kibana After generating data, direct the user to these pages: - **Security > Alerts** — synthetic alerts with MITRE ATT&CK mappings - **Security > Attack Discovery** — requires an LLM connector to analyze alerts - **Security > Hosts** — host activity from sample events - **Security > Overview** — summary of all security data - **Discover** — raw events across all data streams ### Step 4: Clean up when done ```bash node skills/security/generate-security-sample-data/scripts/sample-data.js --cleanup ``` ## What gets generated Sample data spans 5 packages (system, endpoint, windows, aws, okta) and 4 focused attack scenarios covering the most common demo themes: Windows credential theft, AWS cloud privilege escalation, Okta identity takeover, and a full ransomware kill chain. Synthetic alert documents are indexed into `.alerts-security.alerts-default` with MITRE ATT&CK mappings, severity levels, and risk scores. All events use RFC 5737 / RFC 2606 safe addresses. For full tables of packages, scenarios, and alerts see [references/sample-data-reference.md](references/sample-data-reference.md). ## Continuous mode Stream events to simulate a live environment: ```bash node skills/security/generate-security-sample-data/scripts/sample-data.js \ --continuous --interval 15 ``` Every 5th batch includes an attack scenario; every 10th batch adds synthetic alerts. Press Ctrl+C to stop. ## Tool reference ### sample-data.js | Flag | Description | | ----------------- | ------------------------------------------------ | | `--count`, `-n` | Events per package (default: 50) | | `--scenarios` | Run all attack simulation scenarios | | `--scenario NAME` | Run a specific scenario | | `--alerts` | Generate synthetic alert documents | | `--cleanup` | Remove all sample data and alerts | | `--continuous` | Stream live events (Ctrl+C to stop) | | `--interval N` | Seconds between continuous batches (default: 30) | | `--json`, `-j` | Output results as JSON | | `--yes`, `-y` | Skip confirmation prompts | ### demo-walkthrough.js Zero-friction runner that generates everything and opens Kibana. | Flag | Description | | -------------- | ------------------------------------- | | `--cleanup` | Remove all sample data, alerts, case |
From elastic/agent-skills, Apache-2.0.
More from elastic/agent-skills
- 0.762score
elasticsearch-anomaly-detection
elasticOfficial
Create and manage Elastic ML anomaly detection jobs via the API.
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-anomaly-detection-explainer
elasticOfficial
Explain Elasticsearch ML anomaly detection scores, model behavior, and result interpretation.
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-esql
elasticOfficial
Execute ES|QL (Elasticsearch Query Language) queries, use when the user wants to query Elasticsearch data, analyze logs, aggregate metrics, explore data, or…
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-index-design
elasticOfficial
Design and review Elasticsearch index mappings for stated access patterns: correct field types, text+keyword multi-fields, doc_values tuning…
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-ingest
elasticOfficial
Load CSV and JSON files into Elasticsearch indices using the bulk API and explicit mappings when field types matter.
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-onboarding
elasticOfficial
Help developers new to Elasticsearch get from zero to a working search experience.
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-query-optimization
elasticOfficial
Diagnose slow Elasticsearch Query DSL searches and propose measured fixes.
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-reindex
elasticOfficial
Guide Elasticsearch reindex for performance: local and remote, slicing, throttling, task API.
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-search-relevance
elasticOfficial
Improve Elasticsearch search relevance for content and catalog indices: pin or promote results with query rules (correct rule type, criteria, and rule-query…
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
kibana-agent-builder
elasticOfficial
Create and manage Kibana Agent Builder agents and custom tools.
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
kibana-alerting-rules
elasticOfficial
Create and manage Kibana alerting rules.
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
kibana-anomaly-detection
elasticOfficial
Elastic ML anomaly detection — investigation/RCA, score explanation, job lifecycle troubleshooting, and job operations.
SkillBFreshness: B★ 600Claude Code +9
Signals
- Stars
- 600
- Forks
- 55
- Open issues
- 4
- Last commit (this folder)
- Apr 24, 2026 (6 months ago)
- Last release
- Sep 4, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 0.1.0
- License
- Apache-2.0
- Repository
- github.com/elastic/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from elastic
- 0.762score
elasticsearch-anomaly-detection
elasticOfficial
Create and manage Elastic ML anomaly detection jobs via the API.
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-anomaly-detection-explainer
elasticOfficial
Explain Elasticsearch ML anomaly detection scores, model behavior, and result interpretation.
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-esql
elasticOfficial
Execute ES|QL (Elasticsearch Query Language) queries, use when the user wants to query Elasticsearch data, analyze logs, aggregate metrics, explore data, or…
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-index-design
elasticOfficial
Design and review Elasticsearch index mappings for stated access patterns: correct field types, text+keyword multi-fields, doc_values tuning…
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-ingest
elasticOfficial
Load CSV and JSON files into Elasticsearch indices using the bulk API and explicit mappings when field types matter.
SkillBFreshness: B★ 600Claude Code +9 - 0.762score
elasticsearch-onboarding
elasticOfficial
Help developers new to Elasticsearch get from zero to a working search experience.
SkillBFreshness: B★ 600Claude Code +9
Cite this page
security-generate-security-sample-data skill. Agent Mart. https://agentmart.dev/skills/elastic-security-generate-security-sample-data (last updated 2026-10-24)