Elasticsearch Audit
aspectrr/deer
Enable, configure, and query Elasticsearch security audit logs.
Generate sample security events, attack scenarios, and synthetic alerts for Elastic Security.
$ npx skills add elastic/agent-skills --skill security-generate-security-sample-data -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install elastic/agent-skills security-generate-security-sample-data --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/elastic/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/security/generate-security-sample-data .claude/skills/security-generate-security-sample-data && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "security-generate-security-sample-data" agent skill from https://github.com/elastic/agent-skills/tree/main/skills/security/generate-security-sample-data into .claude/skills/security-generate-security-sample-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-generate-security-sample-data", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/elastic/agent-skills/tree/main/skills/security/generate-security-sample-dataType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add elastic/agent-skills --skill security-generate-security-sample-data -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install elastic/agent-skills security-generate-security-sample-data --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/elastic/agent-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/security/generate-security-sample-data .agents/skills/security-generate-security-sample-data && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "security-generate-security-sample-data" agent skill from https://github.com/elastic/agent-skills/tree/main/skills/security/generate-security-sample-data into .agents/skills/security-generate-security-sample-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-generate-security-sample-data", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add elastic/agent-skills --skill security-generate-security-sample-data -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install elastic/agent-skills security-generate-security-sample-data --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/elastic/agent-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/security/generate-security-sample-data .cursor/skills/security-generate-security-sample-data && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "security-generate-security-sample-data" agent skill from https://github.com/elastic/agent-skills/tree/main/skills/security/generate-security-sample-data into .cursor/skills/security-generate-security-sample-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-generate-security-sample-data", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/elastic/agent-skills.git --path skills/security/generate-security-sample-data--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add elastic/agent-skills --skill security-generate-security-sample-data -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install elastic/agent-skills security-generate-security-sample-data --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/elastic/agent-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/security/generate-security-sample-data .gemini/skills/security-generate-security-sample-data && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "security-generate-security-sample-data" agent skill from https://github.com/elastic/agent-skills/tree/main/skills/security/generate-security-sample-data into .gemini/skills/security-generate-security-sample-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-generate-security-sample-data", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install elastic/agent-skills security-generate-security-sample-dataInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add elastic/agent-skills --skill security-generate-security-sample-data -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/elastic/agent-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/security/generate-security-sample-data .github/skills/security-generate-security-sample-data && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "security-generate-security-sample-data" agent skill from https://github.com/elastic/agent-skills/tree/main/skills/security/generate-security-sample-data into .github/skills/security-generate-security-sample-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-generate-security-sample-data", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add elastic/agent-skills --skill security-generate-security-sample-data -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install elastic/agent-skills security-generate-security-sample-data --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/elastic/agent-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/security/generate-security-sample-data .opencode/skills/security-generate-security-sample-data && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "security-generate-security-sample-data" agent skill from https://github.com/elastic/agent-skills/tree/main/skills/security/generate-security-sample-data into .opencode/skills/security-generate-security-sample-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-generate-security-sample-data", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
security-generate-security-sample-dataGenerate sample security events, attack scenarios, and synthetic alerts for Elastic Security.
Security Generate Security Sample Data is an agent skill from elastic/agent-skills, published by the product's own GitHub organization. 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.
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/sample-data-reference.md`, `scripts/demo-walkthrough.js` and `scripts/es-client.js`). Compatibility notes: Requires Node.js 22+, network access to Kibana and Elasticsearch. Environment variables: KIBANAURL plus KIBANAAPIKEY or KIBANAUSERNAME/KIBANAPASSWORD…
It sits in Security. It works with Elasticsearch. The repository describes itself as: Official Elastic Skills. The licence is Apache-2.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit baa5111. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 4 files in scripts/ (JavaScript), which the agent can run.
Shell commands in SKILL.md call:
nodeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
ELASTICSEARCH_PASSWORDELASTICSEARCH_API_KEYKIBANA_PASSWORDFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
From compatibility in the SKILL.md frontmatter.
Security Generate Security Sample Data loads about 2k tokens when it runs, and up to ~2.9k if it reads all its reference files. Until then it costs about 55 tokens; SKILL.md has 639 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from elastic/agent-skills at commit baa5111, republished under its Apache-2.0 licence (© elastic). 639 words, ~1,984 tokens.
.claude/skills/security-generate-security-sample-data/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.Generate ECS-compliant security events, multi-step attack scenarios, and synthetic alert documents that populate Elastic Security dashboards, the Alerts tab, and Attack Discovery.
For a zero-friction experience that generates everything and opens Kibana:
node skills/security/generate-security-sample-data/scripts/demo-walkthrough.js- [ ] Step 1: Set environment variables
- [ ] Step 2: Generate sample data
- [ ] Step 3: Explore in Kibana
- [ ] Step 4: Clean up when doneexport 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"node skills/security/generate-security-sample-data/scripts/sample-data.js \
system endpoint okta aws windows --scenarios --alertsnode skills/security/generate-security-sample-data/scripts/sample-data.js \
system endpoint --count 100node skills/security/generate-security-sample-data/scripts/sample-data.js --scenariosnode skills/security/generate-security-sample-data/scripts/sample-data.js --alertsAfter generating data, direct the user to these pages:
node skills/security/generate-security-sample-data/scripts/sample-data.js --cleanupSample 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.
Stream events to simulate a live environment:
node skills/security/generate-security-sample-data/scripts/sample-data.js \
--continuous --interval 15Every 5th batch includes an attack scenario; every 10th batch adds synthetic alerts. Press Ctrl+C to stop.
| 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 |
Zero-friction runner that generates everything and opens Kibana.
| Flag | Description |
|---|---|
--cleanup | Remove all sample data, alerts, case |
--continuous | Generate then stream live events |
--count N | Events per package (default: 50) |
--interval N | Seconds between batches (default: 30) |
"Set up a demo environment so I can show Attack Discovery to my VP."
node skills/security/generate-security-sample-data/scripts/demo-walkthrough.js"Generate only the ransomware attack chain to test our detection rules."
node skills/security/generate-security-sample-data/scripts/sample-data.js \
--scenario ransomwareChain --alerts"Keep generating events so the dashboards stay active during the demo."
node skills/security/generate-security-sample-data/scripts/demo-walkthrough.js --continuous"Remove all sample data from my project."
node skills/security/generate-security-sample-data/scripts/sample-data.js --cleanuptags: ["elastic-security-sample-data"] for safe cleanup. The cleanup command
only deletes documents with this marker._source.tags for matching sample
documents from the last 14 days..alerts-security.alerts-default — they do not require detection rules to
be installed or enabled.case-management skill for creating investigation cases from alerts.generate, --cleanup, --continuous) prompt for confirmation. Pass --yes or -y to skip
when called by an agent.--cleanup runs deleteByQuery across all sample data indices — verify environment variables point to the intended
cluster before running.--continuous mode indexes events indefinitely until manually stopped with Ctrl+C.| Variable | Required | Description |
|---|---|---|
ELASTICSEARCH_URL | Yes | Elasticsearch URL |
ELASTICSEARCH_API_KEY | Yes* | Elasticsearch API key |
ELASTICSEARCH_USERNAME | Yes* | Elasticsearch username (alternative) |
ELASTICSEARCH_PASSWORD | Yes* | Elasticsearch password (alternative) |
KIBANA_URL | No | Kibana URL (for case creation and links) |
KIBANA_USERNAME | No | Kibana username (if using Kibana features) |
KIBANA_PASSWORD | No | Kibana password (if using Kibana features) |
*Either API key or username/password is required for Elasticsearch.
© elastic, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (scripts, references) in skills/security/generate-security-sample-data of elastic/agent-skills.
Open the folder on GitHubat commit baa5111
Security Generate Security Sample Data next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Security Generate Security Sample Data this skillelastic/agent-skills | 592 | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Elasticsearch Auditaspectrr/deer | 405 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Performing Alert Triage With Elastic Siemmukul975/Anthropic-Cybersecurity-Skills | 34k | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Building Threat Feed Aggregation With Mispmukul975/Anthropic-Cybersecurity-Skills | 34k | — | ~3.2k | Automated safety check: Pass | Apache-2.0 | |
| Detecting Insider Threat With Uebamukul975/Anthropic-Cybersecurity-Skills | 34k | — | ~738 | Automated safety check: Pass | Apache-2.0 | |
| Ecs Rfc Guideelastic/ecs | 1.1k | — | ~1.2k | Automated safety check: Pass | Apache-2.0 |
aspectrr/deer
Enable, configure, and query Elasticsearch security audit logs.
mukul975/Anthropic-Cybersecurity-Skills
Perform systematic alert triage in Elastic Security SIEM—classifying, prioritizing, and investigating alerts using Kibana, ES|QL queries, and ECS-normalized data—to drive SOC analyst workflows.
mukul975/Anthropic-Cybersecurity-Skills
Deploy MISP via Docker and configure feeds from sources like abuse.ch, AlienVault OTX, and CIRCL to aggregate, correlate, and distribute threat intelligence, including automated feed synchronization…
mukul975/Anthropic-Cybersecurity-Skills
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…
elastic/ecs
Guides contributors through the Elastic Common Schema (ECS) RFC (Proposal) process: template sections, target maturity (alpha/beta), rfcs/text artifacts, and optional OTel mapping.
alibaba/UnifiedModel
Investigates a service incident to its root cause by querying a UModel object graph alongside metrics, logs, topology and recent deployments.
elastic/agent-skills
Triage Elastic Security alerts — gather context, classify threats, create cases, and acknowledge.
elastic/agent-skills
Create, search, update, and manage SOC cases via the Kibana Cases API.
elastic/agent-skills
Create, tune, and manage Elastic Security detection rules (SIEM and Endpoint).
elastic/agent-skills
Create and manage Kibana Dashboards and Lens visualizations.
elastic/agent-skills
Onboard an Elastic Cloud organization: configure the elastic CLI's Cloud context and API key, establish a default region, then invite users, assign predefined or custom Serverless project roles, and…
elastic/agent-skills
Create and manage Elastic ML anomaly detection jobs via the API.
Works with
Categories
Generate sample security events, attack scenarios, and synthetic alerts for Elastic Security. Security Generate Security Sample Data is an agent skill from elastic/agent-skills, published by the product's own GitHub organization. Generate sample security events, attack scenarios, and synthetic alerts for Elastic Security.
Security Generate Security Sample Data fits situations like: populating dashboards; testing detection rules; setting up a POC.
Run `npx skills add elastic/agent-skills --skill security-generate-security-sample-data -a claude-code`. Or copy the skill folder (skills/security/generate-security-sample-data in elastic/agent-skills) into .claude/skills/security-generate-security-sample-data in your project. Claude Code loads it when a task matches its description.
Run `npx skills add elastic/agent-skills --skill security-generate-security-sample-data -a codex`. Or copy the skill folder (skills/security/generate-security-sample-data in elastic/agent-skills) into .agents/skills/security-generate-security-sample-data in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add elastic/agent-skills --skill security-generate-security-sample-data -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/security-generate-security-sample-data, .gemini/skills/security-generate-security-sample-data, .github/skills/security-generate-security-sample-data and .opencode/skills/security-generate-security-sample-data in your project.
Going by SKILL.md and its folder, Security Generate Security Sample Data needs JavaScript for the scripts in its folder, the command-line tools its instructions call (node) and credentials named ELASTICSEARCH_PASSWORD, ELASTICSEARCH_API_KEY and KIBANA_PASSWORD. Our summary lists: Node.js; A credential in KIBANA_API_KEY; A credential in ELASTICSEARCH_API_KEY. Compatibility (from SKILL.md): 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. .
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Security Generate Security Sample Data is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 924 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Security Generate Security Sample Data: Elasticsearch Audit (aspectrr/deer, 405 stars), Performing Alert Triage With Elastic Siem (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Building Threat Feed Aggregation With Misp (mukul975/Anthropic-Cybersecurity-Skills, 34k stars) and Detecting Insider Threat With Ueba (mukul975/Anthropic-Cybersecurity-Skills, 34k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
elastic (a GitHub organization, an official publisher) maintains it in elastic/agent-skills, which has 592 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on October 2, 2026.
Source: elastic/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.