Abhinav37
ServiceNow Employee
ServiceNow Employee

Session ID: Lab 1567

Presenter(s): Abhinav Ramaseshan, Eric B, Conor Champion

Location: Casanova 505 - Level 1

Date and Time: Wednesday 17th May 2:30-4:00 PM PDT

Abstract:

This lab will provide hands-on experience with defining custom configuration checks and policies in the Cloud Security Posture Management module, running these policies against AWS accounts to identify any misconfigurations, and managing findings in the Configuration Compliance module.

 

Hi All, This community post will be used to share key information for this lab and we can use it as a medium for effective interaction. 

 

Looking forward to meeting you all this Wednesday!

 

Cheers

Abhi

 

Comments
Faridaconteh
Tera Explorer

Hello Abhi,

Please would the session be recorded?

Abhinav37
ServiceNow Employee
ServiceNow Employee

Unfortunately, this is a hands-on lab and will not be recorded, however, we will try to post a video of the lab later on this page. Thank you.

Abhinav37
ServiceNow Employee
ServiceNow Employee

Screenshot 2023-05-17 at 2.03.44 pm.png 

 

Screenshot 2023-05-17 at 2.03.50 pm.png

Abhinav37
ServiceNow Employee
ServiceNow Employee

Cloud Security FAQ

 

Screenshot 2023-05-17 at 2.04.59 pm.png

 

Screenshot 2023-05-17 at 2.05.07 pm.png

 

Screenshot 2023-05-17 at 2.05.14 pm.png

Screenshot 2023-05-17 at 2.05.19 pm.png

  

Abhinav37
ServiceNow Employee
ServiceNow Employee

Lab Instance Registration URL

 

URL: .https://clabs.link/lab1567-973

Reservation Code:  M4KXT

Abhinav37
ServiceNow Employee
ServiceNow Employee

Pre-Processing Script: Section 3.1 Step 7

 

(function execute(inputs, outputs) {
var service = 'ec2';
var location = '';
var prefix = null;
var govCloud = false;
var endpoint = new sn_itom_cal.AwsUtils().getEndpoint(service, location, prefix, govCloud);
outputs.base_url = endpoint;
})(inputs, outputs);

Abhinav37
ServiceNow Employee
ServiceNow Employee

Pagination Script: Section 3.1, Step 9

 

(function paginate(variables, pageResponse) {
//Change the limit above to configure results per page.
if(variables.NextToken){
variables.getNextPage = true;
}else{
variables.getNextPage = false;
}
})(variables, pageResponse);

Abhinav37
ServiceNow Employee
ServiceNow Employee

Script Parser Step: Section 3.1, Step 13

 

(function parse(inputs, outputs) {
var xmlDoc = new XMLDocument2();
xmlDoc.parseXML(inputs.sourceItem);
outputs.targetObject.subnetId = xmlDoc.getNodeText('/item/subnetId');
outputs.targetObject.subnetArn = xmlDoc.getNodeText('/item/subnetArn');
outputs.targetObject.state = xmlDoc.getNodeText('/item/state');
outputs.targetObject.mapPublicIpOnLaunch = xmlDoc.getNodeText('/item/mapPublicIpOnLaunch');
outputs.targetObject.vpcId = xmlDoc.getNodeText('/item/vpcId');
})(inputs, outputs);

Abhinav37
ServiceNow Employee
ServiceNow Employee
Version history
Last update:
‎05-25-2023 12:48 AM
Updated by: