Hello,
I started to test tenable.io integration (great work BTW) and found a little issue.
Vulnerabilities with state FIXED are missing in logs-tenable_io.vulnerability indexes, I can only find OPEN and REOPENED events.
In tenable API doc it's written that if you don't specify a state in body, it will return OPEN, REOPENED, FIXED states : Refine Vulnerability Export Requests
I did a test and API behavior looks different :
--------- TEST 1 : no state filter (exactly what do tenable.io integration) ----------
JSON body :
{
"num_assets": 50,
"filters": {
"last_found": 1653655049,
}
}
Results :
count state
----- ----
317 OPEN
167 REOPENED
--------- TEST 2 : state filter ----------
JSON body :
{
"num_assets": 50,
"filters": {
"state": [
"open",
"reopened",
"fixed"
],
"last_found": 1653655049,
}
}
Results :
count state
----- ----
317 OPEN
167 REOPENED
63 FIXED
Looks like if you don't specify state=open,reopened,fixed in json body, you will never get fixed vulnerabilities.
- Someone has the same issue ?
- If yes, how to request a modification in integrations/httpjson.yml.hbs at main · elastic/integrations · GitHub
to add (not sure of syntax)
- set:
target: body.filters.state
value: '[open,reopened,fixed]'
CC: @jamie.hynds
Thanks