Cisco ASA - Create or remove access rules on an interface for IP Addresses
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊
↑ Back to Content Index
This playbook allows blocking/unblocking of IPs in Cisco ASA, using Access Control Entries which will be created in an access control list.
Logic App Connectors
This playbook uses 4 Logic App connectors / built-in actions:
Action parameters (URLs, paths, function IDs)
| Action |
Method |
Endpoint |
Other |
| Entities_-_Get_IPs |
post |
/entities/ip |
— |
| Add_comment_to_incident_(V3) |
post |
/Incidents/Comment |
— |
| Update_incident |
put |
/Incidents |
— |
| Action |
Method |
Endpoint |
Other |
| Fetch_ACEs_on_an_interface |
get |
/api/objects/extendedacls/@{encodeURIComponent(variables('ACL Name'))}/aces |
— |
| Add_a_new_ACE_on_an_interface |
post |
/api/objects/extendedacls/@{encodeURIComponent(variables('ACL Name'))}/aces |
— |
| Delete_an_ACE |
delete |
/api/objects/extendedacls/@{encodeURIComponent(variables('ACL Name'))}/aces/@{encodeURIComponent(items('For_each_over_ipAddresses')['extendedAceItemObjectId'])} |
— |
Additional Documentation
📄 Source: CiscoASA-CreateACEInACL/readme.md
Summary
This playbook allows blocking/unblocking of IPs in Cisco ASA, using Access Control Entries which will be created in an access control list.
When a new Sentinel incident is created, this playbook gets triggered and performs below actions
- For the IPs we check if they are already directly blocked by an access control entry in the access control list
- An adaptive card is sent to a Teams channel with information about the incident and giving the option to ignore an IP, or depdening on it's current status block it by adding an access control entry or unblock it by removing an access control entry

- Comment is added to Microsoft Sentinel incident.

ACE is added to an ACL in Cisco ASA:

Playbook overview:

Prerequisites
- This playbook template is based on Microsoft Sentinel Incident Trigger which is currently in Private Preview (Automation Rules). You can change the trigger to the Sentinel Alert trigger in cases you are not part of the Private Preview.
- Cisco ASA custom connector needs to be deployed prior to the deployment of this playbook, in the same resource group and region. Relevant instructions can be found in the connector doc page.
- Cisco ASA needs to have an extended Access Control List configured. Create a new ACL or retrieve the name of an existing ACL. To use Cisco ASDM to configure Extended ACLs, see Configure Extended ACLs
Deployment instructions
- Deploy the playbook by clicking on "Depoly to Azure" button. This will take you to deplyoing an ARM Template wizard.
- Fill in the required paramteres:
- Playbook Name: Enter the playbook name here (ex:CiscoASA-CreateACEInACL)
- Cisco ASA Connector name : Enter the name of the Cisco ASA custom connector (default value:CiscoASAConnector)
- Interface ID : The name of the interface you want to create the access rules on.
Post-Deployment instructions
a. Authorize connections
Once deployment is complete, you will need to authorize each connection.
- Click the Microsoft Sentinel connection resource
- Click edit API connection
- Click Authorize
- Sign in
- Click Save
- Repeat steps for other connections such as Teams and Cisco ASA (For authorizing the Cisco ASA API connection, the username and password needs to be provided)
b. Select Teams channel
The Teams channel to which the adaptive card will be posted will need to be configured.
- Click the Azure Logic app resource
- Edit the Logic App
- Find the 'PostToTeams' action
- Select a Team and Channel
- Save the Logic App
c. Configurations in Sentinel
- In Microsoft Sentinel analytical rules should be configured to trigger an incident with IP Entity.
- Configure the automation rules to trigger this playbook
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊
↑ Back to Playbooks · Back to CiscoASA