Attack Paths¶
Attack Paths turns each provider into a graph of its resources, identities, permissions and network exposure, adds the scan's failing findings and DRACO's detection and response activity to it, and runs queries that find the paths an attacker could take: from the Internet to a sensitive resource, from a low-privileged identity to an administrator, from an alerting host to the secrets it can read.
Open it from POSTURE & ASSETS > Attack Paths.
Supported providers¶
DRACO builds graphs for nine provider types (the open-source Prowler project covers AWS only):
| Provider | Graph root | What is in the graph | Permissions the provider needs | Queries |
|---|---|---|---|---|
| AWS | AWSAccount |
IAM, EC2, ELB, S3, Lambda, RDS, EKS and more | SecurityAudit + ViewOnlyAccess (the provider's scan permissions) | 102 |
| Cloudflare | CloudflareAccount |
account, members, roles, zones, DNS records | account, zone and DNS read | 20 |
| Kubernetes | KubernetesCluster |
namespaces, nodes, pods, services, ingresses, secrets (metadata only), RBAC | a read-only ClusterRole that includes secrets and RBAC (the built-in view role is not enough) |
26 |
| GitHub | GitHubOrganization |
members, repositories, collaborators, branch rules, tokens, teams, Actions, apps | read:org, repo (read), read:user; an owner's token for 2FA, tokens and apps |
23 |
| Azure | AzureSubscription |
RBAC, VMs, networking, storage, Key Vault, App Service, AKS, managed identities | Reader + Microsoft.Authorization/*/read |
33 |
| Google Cloud | GCPProject |
IAM bindings and roles, Compute, Storage, GKE, Cloud SQL, Cloud Run, service accounts | Viewer + iam.roles.get and resourcemanager.projects.getIamPolicy (the Security Reviewer role has both) |
32 |
| Fly.io | FlyioOrganization |
members, tokens, apps, Machines, volumes, certificates, IP addresses | read-only organization token; an admin token for members and tokens | 27 |
| Okta | OktaOrganization |
users, groups, apps, admin roles, factors, API tokens (metadata) | the service app with okta.*.read scopes and a read-only admin role |
24 |
| Microsoft 365 | EntraTenant |
Entra users, groups, applications, service principals, roles, consents | Directory.Read.All, Application.Read.All, RoleManagement.Read.Directory, Policy.Read.All |
25 |
Every provider also gets 24 kinds of shared Detection & Response queries. The full list of queries with their descriptions is in the query catalog.
How graphs are built¶
After each completed scan of a supported provider, DRACO reads the provider again with the scan's credentials (using the open-source Cartography project for most providers, its own reader for Fly.io and Okta), marks what the Internet can reach, links the scan's findings to the resources and swaps the new graph in. The previous graph stays usable while a new one is built.
A graph build stops when it exceeds its bounds (200,000 nodes or 30 minutes by default) and is marked failed with a one-line reason, such as "Google Cloud rejected the provider's credentials" or the missing permission. A permission missing for one part (for example GitHub tokens without an owner's token) skips that part only.
Identities across providers: when the organization has an Okta or Microsoft 365 provider, DRACO links the same person across providers (by e-mail or login) and the apps that federate into AWS, Azure, Google Cloud or GitHub. Identity queries can then follow an Okta user to the AWS role they can reach. Links exist only between providers of the same organization and match by identifier, not by proof.
Running a query¶
- Select a scan with a graph (the Graph column shows which ones have one; a failed build shows its error).
- Choose a query: queries are grouped (Detection & Response queries first) and each has a description. Outcomes are public exposure, privilege escalation, code execution and resource inventory.
- Fill the parameters when the query has some (required fields are marked with an asterisk), for example the tag that marks sensitive S3 buckets, or a minimum risk score.
- Click Execute Query. An empty result means the pattern is not in the environment, or the provider's credentials could not read what the query needs.
Reading the graph¶
- Resource nodes are the provider's resources and identities; Internet marks public exposure; finding nodes are failing findings coloured by severity.
- Detection & Response nodes (incidents, alerts, hosts, identities, threat indicators and attacker IPs) have their own icons and open a panel with links into DRACO.
- Resources with a risk score are bordered by risk band: low under 100, medium, high from 300, critical from 700.
- Hover a node to highlight its paths, click a finding to focus its path, click a resource to show or hide its findings. Fullscreen and a minimap help with large graphs.
- Ask AI Assistant sends the shown result (or the selected path) to DRACO AI Assistant with the skill "Explain this attack path".
Custom openCypher queries¶
Select Custom openCypher query to write your own read-only query against the selected scan's graph. Queries that write (CREATE, MERGE, SET, DELETE, REMOVE, DROP, LOAD CSV...) are refused, a query is at most 10,000 characters, and results are scoped to the selected provider and scan automatically.
MATCH (i:EC2Instance)-[:HAS_FINDING]->(f:DracoFinding)
WHERE i.exposed_internet = true AND f.status = 'FAIL'
AND f.severity IN ['critical', 'high']
RETURN i.instanceid AS instance, f.check_id AS check, f.severity AS severity
LIMIT 50
MATCH (u:OktaUser)-[:SAME_PERSON]->(a:AWSUser)
WHERE u.no_mfa = true
RETURN u.email AS okta_user, a.name AS aws_user
LIMIT 25
Finding nodes, shown as Finding in the graph, carry the finding label DracoFinding: use it in custom queries (status, severity, check_id and provider_uid are its main properties).
Useful properties set by DRACO: exposed_internet on reachable resources, privileged on identities and role assignments, risk_score and criticality on resources with detection and response activity.
Detection & Response on the graph¶
With Detection & Response enabled, every graph also carries what is happening, not only what is misconfigured:
- open incidents and recent alerts on the resources they affect, hosts and identities seen in events, threat indicators sighted on resources, and attacker IP addresses that targeted them;
- risk scores and asset criticality on resources.
The detection and response layer refreshes every hour (and after each graph build). Shared Detection & Response queries find, for example, an exposed resource with an open incident and a failing finding, an attacker IP on an exposed host that holds an identity, or a privileged identity with an alert that can reach sensitive stores.
Open in Attack Paths on an incident, a host, an identity or an indicator opens the graph of its provider with the matching query already run.
Identity paths (BloodHound)¶
The Identity paths tab lists what your BloodHound connections found in Active Directory and Entra ID: each Path to Tier Zero finding (a user, computer or group with an attack path to a Tier Zero object, with the path length, the first hops, the Tier Zero target, a severity and Open in BloodHound) and the Tier Zero members. Filter by severity, kind, domain or status; open a row for the whole finding and the matching DRACO asset. The paths come from BloodHound, not from the provider graphs above; reading needs Read in Attack Paths.
Summary and reports¶
- The Overview card Exposed with findings counts resources the Internet reaches that carry a failing finding.
- A scheduled report of kind Attack Paths (see Reports) sends a PDF of the queries that returned paths and the most exposed resources.
- DRACO AI Assistant can list the queries of a scan and run them for you (read only).