Skip to content

Instantly share code, notes, and snippets.

@cmcdevitt
Created April 14, 2023 14:55
Show Gist options
  • Select an option

  • Save cmcdevitt/c93eb8818922be140898512f3e73307b to your computer and use it in GitHub Desktop.

Select an option

Save cmcdevitt/c93eb8818922be140898512f3e73307b to your computer and use it in GitHub Desktop.
Configure Host Import Map in coming Vulnerability Response Data
/*
You want to use the 'Host' name in the cmdb_ci 'Name' field for a future SN Discovery match via IRE
Done for each scaner source(Qualys, Tenable, etc)
This ONLY applies to the 'Target Name' Field
Typicaly need to transform FQDN/DNS into just it's Host component
Host Import Map [sn_sec_cmn_src_cmdb_map
Use Script = true
*/
//Expecting an FQDN
answer = value;//Default
var short_name = value.split('.');
if(short_name.length > 0){
answer = short_name[0];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment