
Powerquery
Write, debug and run SentinelOne PowerQuery hunts, investigations and detection rules
Powerquery is an open-source agent skill for security. It is available on Claude Code.
- Scripts
- Python
- Platforms
- Claude Code
- GitHub stars
- 105
- Last commit
- License
- AGPL-3.0
- Listing updated
Similar skills
About Powerquery
This skill teaches an agent to author, explain, optimise and run SentinelOne PowerQuery, the pipeline query language used on the Singularity Data Lake. It covers Deep Visibility and Event Search hunts, investigation queries, scheduled detection rule bodies and dashboard panels, and it converts Sigma rules into PowerQuery form.
The skill is built around a long list of verified grammar rules and banned function names, so the agent avoids syntax that the engine rejects or silently answers with zero rows. It points queries at the Long Running Query API through an s1-secops-mcp runner, including time slicing and merging for long windows, and it describes the constraints that apply to scheduled rule bodies and alert row limits.
Running queries needs a SentinelOne console URL and API token supplied through that MCP server, and the skill includes reference files on fields, functions, lookups, joins and detection rule APIs. The SKILL.md is also designed to hand off baselining work to a companion mgmt-console-api skill.
When your agent uses it
Use any time the user wants to author, debug, optimize, explain, or run a SentinelOne PowerQuery (PQ): Deep Visibility / Event Search queries, XDR/EDR threat hunting, investigations, STAR / Custom Detection rule bodies (including converted Sigma rules), PowerQuery Alerts, or Singularity Data Lake dashboard panels. Trigger on PowerQuery, PQ, pq, query, Event Search, Deep Visibility, S1QL, SDL, STAR rule, Custom Detection rule, PowerQuery Alert; on queries using fields like `event.type`, `src.process.*`, `tgt.file.*`, `indicator.*`, `agent.uuid`; on pipes like `| group`, `| filter`, `| let`, `| join`, `| parse`, `| columns`, `| compare`, `| top`, `| union`, `| lookup`, `| savelookup`, `| dataset`. Also trigger when asked to hunt a TTP, IOC, behaviour, or alert pattern on a SentinelOne tenant, even casually ("find powershell reaching out to the internet", "write a detection for lsass access"). Explicitly NOT Microsoft Power Query / M / Excel and NOT Splunk SPL; this is SentinelOne's pipeline query language.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs Python scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: AGPL-3.0(see the files on GitHub)
From a static check of its 21 files (430 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the s1-secops-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add Sentinel-One/ai-siem
/plugin install s1-secops-skills@sentineloneOr copy only this skill to ~/.claude/skills/powerquery:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Sentinel-One/ai-siem.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/powerquery &&
cp -R "$tmp/plugins/s1-secops-skills/skills/powerquery" ~/.claude/skills/powerquery &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/powerquery inside it instead.
Copy the skill folder to ~/.agents/skills/powerquery to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Sentinel-One/ai-siem.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/powerquery &&
cp -R "$tmp/plugins/s1-secops-skills/skills/powerquery" ~/.agents/skills/powerquery &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/powerquery inside it instead.
Copy the skill folder to ~/.cursor/skills/powerquery to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Sentinel-One/ai-siem.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/powerquery &&
cp -R "$tmp/plugins/s1-secops-skills/skills/powerquery" ~/.cursor/skills/powerquery &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/powerquery inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/Sentinel-One/ai-siem.git --path plugins/s1-secops-skills/skills/powerqueryOr copy the folder to ~/.gemini/skills/powerquery yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/powerquery:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Sentinel-One/ai-siem.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/powerquery &&
cp -R "$tmp/plugins/s1-secops-skills/skills/powerquery" ~/.copilot/skills/powerquery &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/powerquery inside it instead.
Get the folder:
git clone --depth 1 https://github.com/Sentinel-One/ai-siem.gitThen copy ai-siem/plugins/s1-secops-skills/skills/powerquery into your agent's skills folder as powerquery. Agents that support SKILL.md read one folder per skill.
What it does
- Query grammar and operators
- Explains PowerQuery pipeline structure, initial filters, text operators and the commands used to filter, group, join and sort events.
- Banned function reference
- Lists function names and forms that do not exist in PowerQuery, with the working replacement for each.
- Long Running Query execution
- Runs queries through the LRQ API with time slicing, merge rules for long windows and optional file output.
- Detection rule authoring
- Guides writing scheduled, single-event and correlation detection rules, including entity mapping and rule limits.
- Ready-made hunt examples
- Provides investigation queries for PowerShell outbound traffic, lateral movement, credential access and similar patterns.
- Sigma and KQL conversion
- Describes how to port Sigma rules and KQL or SPL hunts into PowerQuery and what to verify in converter output.
Good for
- Hunt for PowerShell that reaches out to external IP addresses on an endpoint
- Write a detection rule for suspicious LSASS access
- Convert a Sigma rule into a SentinelOne PowerQuery scheduled rule
- Debug a PowerQuery that returns zero rows or a syntax error
- Build a per-user login baseline over a 30-day window
Powerquery FAQ
Does Powerquery work with Microsoft Power Query or Splunk SPL?
No. The skill states it is explicitly not for Microsoft Power Query, M or Excel, and not for Splunk SPL. It covers SentinelOne's pipeline query language only.
What does the agent need to run queries against a tenant?
Queries are run through the s1-secops-mcp MCP tools, which reach the tenant's console URL and read credentials from environment variables or the OS keychain. The skill notes that Python runners are host-only.
When does the skill trigger?
It is described as triggering on PowerQuery, PQ, Event Search, Deep Visibility, S1QL, SDL, STAR rules, PowerQuery Alerts and similar terms, and on requests to hunt a TTP, IOC or behaviour on a SentinelOne tenant.
What license is the source repository under?
The repository is licensed under AGPL-3.0.
How do I install Powerquery in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/powerquery to use it in all your projects, or to .claude/skills/powerquery in one project. Or install the s1-secops-skills plugin, which includes it: /plugin marketplace add Sentinel-One/ai-siem, then /plugin install s1-secops-skills@sentinelone.
Does Powerquery run scripts?
Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Powerquery?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Powerquery?
The closest alternatives to Powerquery are Sdl API, Mgmt console API, Soc investigator, Sdl dashboard and Detection as code.
Where this comes from
- Description: from the skill's own SKILL.md.
More from Sentinel-One/ai-siem

Lets an agent query and act on a SentinelOne Management Console via its API
- Open source
- 105 GitHub stars
- Security

Lets an agent query the SentinelOne data lake and manage its config files over the SDL API
- Open source
- 105 GitHub stars
- Security

Lets an AI agent design, author and deploy SentinelOne SDL dashboards and panels
- Open source
- 105 GitHub stars
- Analytics and data

Authors, debugs and validates SentinelOne SDL log parsers for raw log text
- Open source
- 105 GitHub stars
- Files and documents

Deploys packaged SentinelOne data lake solutions into a site from one prompt
- Open source
- 105 GitHub stars
- Security

Runs SentinelOne DFIR investigations and MITRE ATT&CK sweeps over alerts and raw logs
- Open source
- 105 GitHub stars
- Security



