prowler-attack-paths-query
БесплатноБез исполняемых скриптовНе проверенCreates Prowler Attack Paths openCypher queries using the Cartography schema as the source of truth for node labels, properties, and relationships. Covers…
от prowler-cloud★ 15 363 звезды на GitHubОб этом скилле
Overview
Attack Paths queries are read-only openCypher queries over a Cartography-ingested cloud graph that detect privilege escalation chains, network exposure, and other graph-shaped security risks. Queries are written in openCypher Version 9 so they run on both Neo4j and Amazon Neptune sinks.
This skill is the concise, action-oriented reference for building queries. For the complete human-readable reference (graph model, list-typed and JSON-encoded properties, compatibility, and worked examples), see docs/developer-guide/attack-paths-queries.mdx.
Two query audiences
| Predefined queries | Custom queries | |
|---|---|---|
| Where they live | api/src/backend/api/attack_paths/queries/aws.py (only provider registered today) |
User-supplied via the custom query API endpoint (max 10,000 chars, blocked-pattern check in validate_custom_query) |
| Provider isolation | AWSAccount {id: $provider_uid} anchor + path connectivity |
Automatic _Provider_{uuid} label injection by cypher_sanitizer.py |
| What to write | Chain every MATCH from the aws variable |
Plain Cypher, no isolation boilerplate |
| Internal labels | Never use | Never use (system-injected) |
Predefined queries: every node must be reachable from the AWSAccount root via graph traversal. That is the isolation boundary.
Custom queries: write natural Cypher. The runner injects a _Provider_{uuid} label into every node pattern, and a post-query filter handles edge cases.
Input sources
Two sources for new queries:
pathfinding.cloud ID (e.g.
ECS-001,GLUE-001), the Datadog research catalogue. The aggregatedpaths.jsonis too large for WebFetch:# Fetch a single path by ID curl -s https://raw.githubusercontent.com/DataDog/pathfinding.cloud/main/docs/paths.json \ | jq '.[] | select(.id == "ecs-002")' # List all path IDs and names curl -s https://raw.githubusercontent.com/DataDog/pathfinding.cloud/main/docs/paths.json \ | jq -r '.[] | "\(.id): \(.name)"' # Filter by service prefix curl -s https://raw.githubusercontent.com/DataDog/pathfinding.cloud/main/docs/paths.json \ | jq -r '.[] | select(.id | startswith("ecs")) | "\(.id): \(.name)"'If
jqis unavailable, usepython3 -c "import json,sys; ...".Natural language description from the requester.
Query structure
Provider scoping parameter
| Parameter | Property | Used on | Purpose |
|---|---|---|---|
$provider_uid |
id |
AWSAccount |
Scopes the query to a specific account |
The runner binds $provider_uid automatically. Every other node is isolated by path connectivity from the AWSAccount anchor.
Imports
from api.attack_paths.queries.types import (
AttackPathsQueryAttribution,
AttackPathsQueryDefinition,
AttackPathsQueryOutcome,
AttackPathsQueryParameterDefinition,
)
from tasks.jobs.attack_paths.config import PROWLER_FINDING_LABEL
Always use PROWLER_FINDING_LABEL via f-string interpolation, never hardcode "ProwlerFinding".
Definition fields
- id: kebab-case
{provider}-{description}, e.g.aws-ec2-privesc-passrole-iam. - name: short, human-friendly label. Sourced queries append the reference ID:
"EC2 Instance Launch with Privileged Role (EC2-001)". - short_description: one sentence, no technical permissions.
- description: full technical explanation, plain text.
- provider:
aws.registry.pyonly registersAWS_QUERIES, and only AWS has Cartography ingestion today (tasks/jobs/attack_paths/scan.py). - outcome: required in practice (
test_every_query_has_an_outcome). One ofAttackPathsQueryOutcome.CODE_EXECUTION,PRIVILEGE_ESCALATION,PUBLIC_EXPOSURE,RESOURCE_INVENTORY(partial/latent). The UI renders it as the terminal node. - cypher: f-string Cypher body. Literal
{/}are escaped as{{/}}. - parameters:
parameters=[]if none. - attribution: optional
AttackPathsQueryAttribution(text, link)for sourced queries.linkuses the lowercase ID.
Append the constant to the {PROVIDER}_QUERIES list at the bottom of the provider file.
Predefined query template
The canonical shape combines a principal walk, an optional target walk, deduplicated nodes, and a typed finding overlay:
AWS_{QUERY_NAME} = AttackPathsQueryDefinition(
id="aws-{kebab-case-name}",
name="{Label} ({REFERENCE_ID})",
short_descrip
Установить prowler-attack-paths-query в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadEditWriteGlobGrepBashWebFetchTaskFAQ
Что делает скилл prowler-attack-paths-query?
Creates Prowler Attack Paths openCypher queries using the Cartography schema as the source of truth for node labels, properties, and relationships. Covers Prowler-specific additions (Internet node, ProwlerFinding, internal isolation labels), $provider_uid scoping, and list-property item nodes with typed `HAS_*` edges that run efficiently on both Neo4j and Amazon Neptune sinks. Trigger: When creating or updating Attack Paths queries.
Как установить скилл prowler-attack-paths-query?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prowler-attack-paths-query запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic