AnsweredAssumed Answered

Groovy Scriptlet for Dynamic Asset Tagging

Question asked by Linus Maruk on May 10, 2016
Latest reply on May 11, 2016 by Jeff Leggett

Hi,

I'm trying to create dynamic tagging on Sev 5 assets based on confirmed vulnerabilities. I've the script below which returns me both potential and confirmed Sev 5. How do I modify it to return only confirmed vulnerabilities?

 

if(asset.getAssetType()!=Asset.AssetType.HOST) return false;

return asset.hasVulnsWithSeverity(5)

 

Thanks,

Sunil

Outcomes