ASM - Attack Surface Management
View Attack Surface Management KPIs and trend data.
Commands
asm kpis
Display ASM dashboard KPIs including threat severity breakdown and asset count.
API
Makes two API calls:
1. Threat severity aggregation:
| POST /tam/v1/threats/aggregate
|
| {
"group_by": [
{ "path": "severity", "alias": "severity" }
],
"select": [
{ "path": "id", "alias": "count" }
],
"filters": {
"license_module": ["asm"]
}
}
|
2. Asset count:
| GET /tam/v1/assets/?limit=1&license_module=asm
|
Response Example
The CLI renders a summary table:
| ASM KPIs
────────────────────
Critical: 5
High: 15
Medium: 40
Low: 60
Info: 30
────────────────────
Total Threats: 150
Total Assets: 42
|
asm years
List years that have ASM threat data.
API
| POST /tam/v1/threats/aggregate
|
| {
"group_by": [
{ "path": "first_seen_at.year", "alias": "year" }
],
"select": [
{ "path": "id", "alias": "count" }
],
"filters": {
"license_module": ["asm"]
}
}
|
Response
| {
"results": [
{ "year": 2024, "count": 85 },
{ "year": 2025, "count": 150 }
]
}
|
asm year-kpis
View monthly threat breakdown for a specific year.
| mysecutec asm year-kpis --year <year>
|
Flags
| Flag |
Type |
Required |
Description |
--year |
int |
Yes |
Year to query |
API
| POST /tam/v1/threats/aggregate
|
1
2
3
4
5
6
7
8
9
10
11
12
13 | {
"group_by": [
{ "path": "first_seen_at.year", "alias": "year" },
{ "path": "first_seen_at.month", "alias": "month" },
{ "path": "severity", "alias": "severity" }
],
"select": [
{ "path": "id", "alias": "count" }
],
"filters": {
"license_module": ["asm"]
}
}
|
Request Example
| mysecutec asm year-kpis --year 2025
|
Response
| {
"results": [
{ "year": 2025, "month": 1, "severity": "critical", "count": 2 },
{ "year": 2025, "month": 1, "severity": "high", "count": 5 },
{ "year": 2025, "month": 2, "severity": "critical", "count": 1 },
{ "year": 2025, "month": 2, "severity": "high", "count": 8 }
]
}
|
The CLI renders this as a monthly severity breakdown table.