One attack path, every hop explained
curl --request GET \
--url https://app.trustivan.com/api/v1/attack-paths/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/attack-paths/{id}"
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/{id}', 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/{id}"
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))
}{
"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",
"steps": [
{
"edge": "exposes",
"to": {
"key": "<string>",
"kind": "internet",
"label": "<string>",
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"factors": [
{
"name": "exposure",
"value": 0.5,
"why": "<string>"
}
],
"finding_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"weaknesses": [
{
"kind": "vulnerability",
"title": "<string>",
"exploitability": 123,
"why": "<string>",
"finding_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identifier": "<string>",
"severity": "<string>"
}
],
"weakness_count": 123
}
],
"entry_key": "<string>",
"target_key": "<string>",
"model": "attack-path-v1",
"finding_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}One attack path, every hop explained
The path’s steps in order. Each step names the edge it crossed, the node
it reached and the factors it contributed: exposure on the first hop
(why the entry is reachable from the internet), exploitability on the
foothold (its best weakness: CVSS, CISA KEV or EPSS, scaled down for a
development-only dependency or a package the entrypoint cannot load),
traversal on each lateral hop, and blast_radius on the target.
finding_ids are every finding the path depends on. Requires
findings:read.
GET
/
attack-paths
/
{id}
One attack path, every hop explained
curl --request GET \
--url https://app.trustivan.com/api/v1/attack-paths/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/attack-paths/{id}"
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/{id}', 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/{id}"
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))
}{
"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",
"steps": [
{
"edge": "exposes",
"to": {
"key": "<string>",
"kind": "internet",
"label": "<string>",
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"factors": [
{
"name": "exposure",
"value": 0.5,
"why": "<string>"
}
],
"finding_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"weaknesses": [
{
"kind": "vulnerability",
"title": "<string>",
"exploitability": 123,
"why": "<string>",
"finding_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identifier": "<string>",
"severity": "<string>"
}
],
"weakness_count": 123
}
],
"entry_key": "<string>",
"target_key": "<string>",
"model": "attack-path-v1",
"finding_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
The path.
A path with its explained steps; the summary's fields plus the ones below.