packetchaos / navi

A Command-line tool which leverages the Tenable.io API to reduce the time it takes to get information that is common during remediation or a troubleshooting event
GNU General Public License v3.0
72 stars 26 forks source link

navi export assets and include last credentialed scan? #42

Open armada-lmt opened 6 months ago

armada-lmt commented 6 months ago

Is it possible to get "last credentialed scan" from navi export assets? I see last licensed scan... but not all licensed scans are credentialed.

packetchaos commented 5 months ago

Yes it is possible. It requires querying the vulns table and joining it with the assets table on the asset_uuid. If you send me what data you want I can provide an example query. There are a few methods. One would be checking for a plugin which confirms a credential was used and the second is looking in the 19506 output for "credentialed=yes".

There may be other methods.