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.
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-dataRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install security-generate-security-sample-data in Claude Code
git clone --depth 1 https://github.com/elastic/agent-skills /tmp/agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-skills/skills/security/generate-security-sample-data ~/.gemini/antigravity-cli/skills/security-generate-security-sample-dataAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install security-generate-security-sample-data in Antigravity CLI
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
