Email DNS checks (SPF, DMARC, DKIM, null MX) of verified domains
curl --request GET \
--url https://app.trustivan.com/api/v1/certificates/email-dns \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/certificates/email-dns"
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/certificates/email-dns', 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/certificates/email-dns"
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))
}{
"enabled": true,
"common_selectors": [
"<string>"
],
"domains": [
{
"domain": "<string>",
"last_checked_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"report": {
"domain": "<string>",
"mx": [
"<string>"
],
"null_mx": true,
"spf": [
"<string>"
],
"spf_lookups": 123,
"dmarc": [
"<string>"
],
"dmarc_policy": "<string>",
"dkim": [
{
"selector": "<string>",
"listed": true,
"found": true,
"revoked": true
}
],
"problems": [
"email-spf-missing"
]
},
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Email DNS checks (SPF, DMARC, DKIM, null MX)
The domains whose mail records are read (the registrable domain of
each DAST target host whose ownership is verified), when each was last
read, why the last read failed if it did, and what the records said at
the last read that completed. Each domain is read once a day; findings
hang on an email_domain asset. common_selectors are the DKIM
selectors probed when the organization lists none (a miss is never a
finding). Requires assets:read.
GET
/
certificates
/
email-dns
Email DNS checks (SPF, DMARC, DKIM, null MX) of verified domains
curl --request GET \
--url https://app.trustivan.com/api/v1/certificates/email-dns \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/certificates/email-dns"
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/certificates/email-dns', 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/certificates/email-dns"
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))
}{
"enabled": true,
"common_selectors": [
"<string>"
],
"domains": [
{
"domain": "<string>",
"last_checked_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"report": {
"domain": "<string>",
"mx": [
"<string>"
],
"null_mx": true,
"spf": [
"<string>"
],
"spf_lookups": 123,
"dmarc": [
"<string>"
],
"dmarc_policy": "<string>",
"dkim": [
{
"selector": "<string>",
"listed": true,
"found": true,
"revoked": true
}
],
"problems": [
"email-spf-missing"
]
},
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}