curl --request GET \
--url https://app.trustivan.com/api/v1/attack-paths \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/attack-paths"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/attack-paths', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/attack-paths"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"paths": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"score": 50,
"exploitability": 0.5,
"exposure": 0.5,
"blast_radius": 0.5,
"title": "Internet → shop/api (CVE-2021-44228) → shop/api (service account, prod) → cluster-admin on prod",
"target_kind": "credential",
"hops": 123,
"findings": 123,
"alternatives": 123,
"asset_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"first_seen_at": "2023-11-07T05:31:56Z",
"last_seen_at": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"limit": 123,
"offset": 123,
"graph": {
"built_at": "2023-11-07T05:31:56Z",
"stale": true,
"duration_ms": 123,
"nodes": 123,
"edges": 123,
"paths": 123,
"truncated": true,
"clusters": 123,
"cloud_accounts": 123,
"exposed_workloads": 123,
"matched_images": 123,
"model": "<string>",
"error": "<string>"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}List attack paths, highest score first
Every path from the internet to a sensitive target in the tenant’s security graph: a public load balancer, Ingress or URL in front of a workload that runs an exploitable image (or a runtime detection), then the service account, cloud identity or credential it holds, ending at cluster-admin, a cloud administrator, the nodes under a container, a credential, or a public data store reached directly.
score = round(100 × exploitability × exposure × blast radius), each
0 to 1 and explained per hop on the path’s detail. One path is kept per
entry and target (the best route); alternatives counts the others.
graph reports the last build and the inputs a graph is drawn from, so
an empty list can say whether nothing is exposed or nothing is
connected yet. The list is a page (limit, offset) of total.
Requires findings:read.
curl --request GET \
--url https://app.trustivan.com/api/v1/attack-paths \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/attack-paths"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/attack-paths', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/attack-paths"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"paths": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"score": 50,
"exploitability": 0.5,
"exposure": 0.5,
"blast_radius": 0.5,
"title": "Internet → shop/api (CVE-2021-44228) → shop/api (service account, prod) → cluster-admin on prod",
"target_kind": "credential",
"hops": 123,
"findings": 123,
"alternatives": 123,
"asset_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"first_seen_at": "2023-11-07T05:31:56Z",
"last_seen_at": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"limit": 123,
"offset": 123,
"graph": {
"built_at": "2023-11-07T05:31:56Z",
"stale": true,
"duration_ms": 123,
"nodes": 123,
"edges": 123,
"paths": 123,
"truncated": true,
"clusters": 123,
"cloud_accounts": 123,
"exposed_workloads": 123,
"matched_images": 123,
"model": "<string>",
"error": "<string>"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Query Parameters
Response
A page of paths and the graph's state.