AWS Systems Manager - Get Missing Patches for EC2 Instances
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · 📊
↑ Back to Content Index
When an incident is created in Microsoft Sentinel, this playbook gets triggered and perform the following actions: 1. Get the Hostnames and Private IP addresses from incident entities. 2. Get the Instance IDs from AWS EC2 using the Hostnames and Private IP Addresses. 3. Get the missing patches for the Instance IDs. 4. Add the missing patches to the incident comment.
Additional Documentation
📄 Source: AWSSystemsManagerPlaybooks/AWS-SSM-GetInstancePatches/readme.md
AWS-SSM-GetInstancePatches
Summary
When a new sentinel incident is created, this playbook gets triggered and performs the following actions:
- Get the Hostnames and Private IP addresses from incident entities.
- Get the Instance IDs of Managed EC2 instances using the Hostnames and Private IP Addresses.
- Get the missing patches for the Instance IDs.
- Add the missing patches to the incident comment.


Prerequisites
- Prior to the deployment of this playbook, AWS Systems Manager API Function App Connector needs to be deployed under the same subscription.
- Refer to AWS Systems Manager API Function App Connector documentation to obtain AWS Access Key ID, Secret Access Key and Region.
Deployment instructions
- To deploy the Playbook, click the Deploy to Azure button. This will launch the ARM Template deployment wizard.
- Fill in the required parameters:
- Playbook Name
- Functions App Name

Post-Deployment instructions
a. Authorize connections
Once deployment is complete, authorize each connection.
- Click the Microsoft Sentinel connection resource
- Click edit API connection
- Click Authorize
- Sign in
- Click Save
- Repeat steps for other connections
- In Microsoft sentinel, analytical rules should be configured to trigger an incident that contains IP Addresses or Hostnames. In the Entity mapping section of the analytics rule creation workflow, IP Address should be mapped to Address identifier of the IP entity type and Hostname should be mapped to Hostname identifier of the Host entity type. Check the documentation to learn more about mapping entities.
- Configure the automation rules to trigger the playbook. Check the documentation to learn more about automation rules.
c. Assign Playbook Microsoft Sentinel Responder Role
- Select the Playbook (Logic App) resource
- Click on Identity Blade
- Choose System assigned tab
- Click on Azure role assignments
- Click on Add role assignments
- Select Scope - Resource group
- Select Subscription - where Playbook has been created
- Select Resource group - where Playbook has been created
- Select Role - Microsoft Sentinel Responder
- Click Save
d. Function App Settings Update Instructions
Refer to AWS Systems Manager API Function App Connector documentation for Function App Application Settings (Access Key ID, Secret Access Key and Region) update instruction.
e. Additional instruction while playbook configuration:
When configuring the playbook, ensure that pagination is disabled for GetInventory, as pagination is already handled by the connector.

References
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · 📊
↑ Back to Playbooks · Back to AWS Systems Manager