Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊
This playbook can be used by SOC Analysts to stop malicious or compromised EC2 instances in AWS. This playbook uses AWS Systems Manager API to stop the EC2 instances. The playbook can be triggered from an incident in Microsoft Sentinel. The playbook takes the Hostnames and Private IP addresses from the incident entities and stops the EC2 instances using the Instance IDs. The playbook also adds a comment to the incident with the list of instances that were stopped.
| Attribute | Value |
|---|---|
| Type | Playbook |
| Solution | AWS Systems Manager |
| Source | View on GitHub |
This playbook uses 2 Logic App connectors / built-in actions:
| Connector / Action | Type | Connections | Actions |
|---|---|---|---|
azuresentinel |
Managed | 1 | 3 |
function |
Built-in | 0 | 6 |
azuresentinel (Managed)| Action | Method | Endpoint | Other |
|---|---|---|---|
| Add_comment_to_incident_(V3) | post | /Incidents/Comment |
— |
| Entities_-_Get_Hosts | post | /entities/host |
— |
| Entities_-_Get_IPs | post | /entities/ip |
— |
function (Built-in)| Action | Method | Endpoint | Other |
|---|---|---|---|
| Create_Automation_Shutdown_Document | — | — | functionId=[concat(variables('AWSSSMFuntionsAppId'), '/functions/CreateDocument')] |
| DeleteDocument | — | — | functionId=[concat(variables('AWSSSMFuntionsAppId'), '/functions/DeleteDocument')] |
| GetAutomationExecution | — | — | functionId=[concat(variables('AWSSSMFuntionsAppId'), '/functions/GetAutomationExecution')] |
| StartAutomationExecution | — | — | functionId=[concat(variables('AWSSSMFuntionsAppId'), '/functions/StartAutomationExecution')] |
| GetAutomationExecution_again | — | — | functionId=[concat(variables('AWSSSMFuntionsAppId'), '/functions/GetAutomationExecution')] |
| GetInventory | — | — | functionId=[concat(variables('AWSSSMFuntionsAppId'), '/functions/GetInventory')] |
📄 Source: AWSSystemsManagerPlaybooks/AWS-SSM-StopManagedInstance/readme.md
This playbook can be used by SOC Analysts to stop malicious or compromised EC2 instances in AWS. This playbook uses AWS Systems Manager API to stop the EC2 instances. The playbook can be triggered from an incident in Microsoft Sentinel. The playbook takes the Hostnames and Private IP addresses from the incident entities and stops the EC2 instances using the Instance IDs. The playbook also adds a comment to the incident with the list of instances that were stopped.
Playbook performs the following actions:


Once deployment is complete, authorize each connection.
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.
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊