A dynamic scan's OWASP Top 10 coverage
curl --request GET \
--url https://app.trustivan.com/api/v1/scans/{id}/owasp-coverage \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/scans/{id}/owasp-coverage"
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/scans/{id}/owasp-coverage', 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/scans/{id}/owasp-coverage"
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))
}{
"coverage": {
"edition": "2021",
"recorded": true,
"complete": true,
"checks_run": [
"<string>"
],
"counts": {},
"unmapped": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"severity": "<string>",
"status": "<string>",
"rule_id": "<string>"
}
],
"classes": [
{
"code": "A03",
"name": "<string>",
"status": "found",
"checks_run": [
{
"id": "zap-40018",
"name": "<string>",
"group": "zap-passive"
}
],
"checks_not_run": [
{
"id": "zap-40018",
"name": "<string>",
"group": "zap-passive"
}
],
"findings": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"severity": "<string>",
"status": "<string>",
"rule_id": "<string>"
}
],
"note": "<string>"
}
]
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}A dynamic scan's OWASP Top 10 coverage
For each OWASP Top 10 (2021) class: the checks this scan ran against
it (checks_run), the checks that exist for it but this scan did not
run (checks_not_run, for example the active rules in a passive scan,
or the JWT checks without a bearer JWT), and the scan’s findings tagged
with it.
status is found (the class has findings), no_findings (checks
ran on a complete scan and found nothing, which is not a pass),
partial (checks ran but the scan was incomplete), not_tested
(nothing this scan ran targets the class) or unknown (the scan
predates check recording). unmapped lists findings whose rule names
no class.
Requires findings:read and the Exposure product. Only a dynamic scan
that succeeded has coverage; any other scan answers 409.
GET
/
scans
/
{id}
/
owasp-coverage
A dynamic scan's OWASP Top 10 coverage
curl --request GET \
--url https://app.trustivan.com/api/v1/scans/{id}/owasp-coverage \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/scans/{id}/owasp-coverage"
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/scans/{id}/owasp-coverage', 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/scans/{id}/owasp-coverage"
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))
}{
"coverage": {
"edition": "2021",
"recorded": true,
"complete": true,
"checks_run": [
"<string>"
],
"counts": {},
"unmapped": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"severity": "<string>",
"status": "<string>",
"rule_id": "<string>"
}
],
"classes": [
{
"code": "A03",
"name": "<string>",
"status": "found",
"checks_run": [
{
"id": "zap-40018",
"name": "<string>",
"group": "zap-passive"
}
],
"checks_not_run": [
{
"id": "zap-40018",
"name": "<string>",
"group": "zap-passive"
}
],
"findings": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"severity": "<string>",
"status": "<string>",
"rule_id": "<string>"
}
],
"note": "<string>"
}
]
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}