Created
April 14, 2023 14:55
-
-
Save cmcdevitt/c93eb8818922be140898512f3e73307b to your computer and use it in GitHub Desktop.
Configure Host Import Map in coming Vulnerability Response Data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 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