Risk
Attack Graph Paths
Detailed attack paths for the findings panel
GET
/
api
/
v1
/
attack-graph
/
paths
Attack Graph Paths
curl --request GET \
--url http://localhost:8000/api/v1/attack-graph/pathsimport requests
url = "http://localhost:8000/api/v1/attack-graph/paths"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8000/api/v1/attack-graph/paths', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/api/v1/attack-graph/paths",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8000/api/v1/attack-graph/paths"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8000/api/v1/attack-graph/paths")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/api/v1/attack-graph/paths")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"paths": [
{
"path_id": "<string>",
"rule_id": "<string>",
"severity": "<string>",
"owasp_tag": "<string>",
"title": "<string>",
"description": "<string>",
"agent_id": "<string>",
"path_nodes": [
"<string>"
],
"path_edges": [
"<string>"
],
"risk_score": 123,
"detected_at": "<string>"
}
]
}Returns detailed attack-path rows from the
attack_paths table, ordered by risk_score descending. Unlike /risk/attack-paths, this endpoint exposes the raw node/edge lists and the rule metadata used to render the findings panel.
Response
Array of path objects:
Show child attributes
Show child attributes
Unique path identifier
Rule identifier
Critical, High, Medium, or LowOWASP ASI tag
Rule title
Description / explanation
Primary agent involved
Node IDs along the path (agents,
tool:*, ingress:*)Topology edge IDs traversed by the path
Computed risk score
ISO-8601 timestamp, or
null⌘I
Attack Graph Paths
curl --request GET \
--url http://localhost:8000/api/v1/attack-graph/pathsimport requests
url = "http://localhost:8000/api/v1/attack-graph/paths"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8000/api/v1/attack-graph/paths', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/api/v1/attack-graph/paths",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8000/api/v1/attack-graph/paths"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8000/api/v1/attack-graph/paths")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/api/v1/attack-graph/paths")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"paths": [
{
"path_id": "<string>",
"rule_id": "<string>",
"severity": "<string>",
"owasp_tag": "<string>",
"title": "<string>",
"description": "<string>",
"agent_id": "<string>",
"path_nodes": [
"<string>"
],
"path_edges": [
"<string>"
],
"risk_score": 123,
"detected_at": "<string>"
}
]
}
