Block IP & URL on ThreatX-WAF cloud
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊
↑ Back to Content Index
This Playbook Provides the automation on blocking the suspicious/malicious IP and URL on ThreatX cloud waf
Logic App Connectors
This playbook uses 3 Logic App connectors / built-in actions:
Action parameters (URLs, paths, function IDs)
| Action |
Method |
Endpoint |
Other |
| Add_comment_to_incident_(V3) |
post |
/Incidents/Comment |
— |
| Add_comment_to_incident_(V3)_2 |
post |
/Incidents/Comment |
— |
| Add_comment_to_incident_(V3)_4 |
post |
/Incidents/Comment |
— |
| Add_comment_to_incident_(V3)_3 |
post |
/Incidents/Comment |
— |
| Action |
Method |
Endpoint |
Other |
| Get_secret |
get |
/secrets/@{encodeURIComponent(parameters('Threatx_Key_name'))}/value |
— |
| Action |
Method |
Endpoint |
Other |
| Get-Post_Blacklist_Blocklist_Whitelist_3 |
post |
/tx_api/v1/lists |
— |
| List_or_Create_Customer_Rule_2 |
post |
/tx_api/v1/rules |
— |
| Get-Post_Blacklist_Blocklist_Whitelist |
post |
/tx_api/v1/lists |
— |
| Get-Post_Blacklist_Blocklist_Whitelist_2 |
post |
/tx_api/v1/lists |
— |
| List_or_Create_Customer_Rule |
post |
/tx_api/v1/rules |
— |
| Login_Generate_Token |
post |
/tx_api/v1/login |
— |
Additional Documentation
📄 Source: ThreatXPlaybooks/ThreatX-BlockIP-URL/readme.md
ThreatX-BlockIP-URL Info Playbook
Summary
When a new Microsoft Sentinel incident is created, this playbook gets triggered and performs below actions
- Fetches the list of earlier blocked or allowed URLs and IPs .
- Fetches the new IP's and URL's from incidents and compare them with existing one and update the blacklist .
Prerequisites
- ThreatX-WAFCustomConnector needs to be deployed prior to the deployment of this playbook under the same subscription.
- API key. To get API Key, login into your ThreatX cloud instance dashboard and navigate to Settings --> API Key --> Add Api Key.
- [Important step]Store the API secret key in Key vault and provide the key name of the stored secret during deployment.
Deployment instructions
- Deploy the playbook by clicking on "Deploy to Azure" button. This will take you to deploying an ARM Template wizard.

- Fill in the required paramteres:
- Playbook Name: Enter the playbook name here (Ex: ThreatX-BlockIP-URL)
- Custom Connector Name: Enter the ThreatX custom connector name here (Ex: ThreatX-WAFCustomConnector)
- Keyvault name : Enter the key vault name where secret key is stored .
- Threatx Key name : Your Key name for the stored api secret .
Post-Deployment instructions
a. Authorize connections (Perform this action if needed)
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 ThreatX Api Connection (For authorizing the ThreatX API connection, API Key needs to be provided)
b. Configurations in Sentinel
- In Microsoft sentinel analytical rules should be configured to trigger an incident with risky URL or IP Address.
- Configure the automation rules to trigger this playbook , mapping of IP and URL entities is necessary
c. Assign Playbook Microsoft Sentinel Responder Role
- Select the Playbook (Logic App) resource
- Click on Identity Blade
- Choose Systen 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 (It takes 3-5 minutes to show the added role.)
d. Assign access policy on key vault for Playbook to fetch the secret key
- Select the Keyvault resource where you have stored the secret
- Click on Access policies Blade
- Click on Create
- Under Secret permissions columun , Select Get , List from "Secret Management Operations"
- Click next to go to Principal tab and choose your deployed playbook name
- Click Next leave application tab as it is .
- Click Review and create
- Click Create
References
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊
↑ Back to Playbooks · Back to ThreatXCloud