-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
weight: 14 | ||
title: "Attack Surface" | ||
--- | ||
|
||
# Attack Surface | ||
|
||
## Stats | ||
|
||
```sh | ||
curl --location 'https://api.us.cobalt.io/attack_surface/stats' \ | ||
-H "Accept: application/vnd.cobalt.v2+json" \ | ||
-H "Authorization: Bearer YOUR-PERSONAL-API-TOKEN" \ | ||
-H "X-Org-Token: YOUR-V2-ORGANIZATION-TOKEN" | ||
--data '{}' | ||
``` | ||
|
||
> The above command returns JSON structured like this: | ||
```json | ||
{ | ||
"resource": { | ||
"domains": "3", | ||
"seen_hosts": "200", | ||
"new_seen_hosts": "10" | ||
} | ||
} | ||
``` | ||
|
||
This endpoint retrieves stats from Attack Surface for the organization | ||
|
||
### HTTP Request | ||
|
||
`GET https://api.us.cobalt.io/attack_surface/stats` | ||
|
||
### Response Fields | ||
|
||
| Field | Description | | ||
|-----------------|-------------------------------------------------------------------------------------| | ||
| `domains` | Total amount of domains | | ||
| `seen_hosts` | Amount of hosts with at least one IP found within the last 7 days | | ||
| `new_seen_hosts` | Amount of hosts we found an IP for the first time within the last 7 days | | ||
|