Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊
This playbook is triggered automatically when a DNS entity (domain name) is detected in a Microsoft Sentinel incident, based on an automation rule. Upon triggering, it extracts the domain name from the entity and queries the Censys API (v3) to retrieve detailed web property information including geolocation (continent, country, city, coordinates), autonomous system details (ASN, BGP prefix), WHOIS data (network, organization, contacts), services, and DNS information. The playbook constructs the
| Attribute | Value |
|---|---|
| Type | Playbook |
| Solution | Censys |
| Source | View on GitHub |
This playbook uses 5 Logic App connectors / built-in actions:
| Connector / Action | Type | Connections | Actions |
|---|---|---|---|
azureloganalyticsdatacollector |
Managed | 1 | 1 |
azuresentinel |
Managed | 1 | 1 |
keyvault |
Managed | 1 | 1 |
http |
Built-in | 0 | 1 |
workflow |
Built-in | 0 | 1 |
azureloganalyticsdatacollector (Managed)| Action | Method | Endpoint | Other |
|---|---|---|---|
| Ingest_Censys_WebProperty_Data | post | /api/logs |
— |
azuresentinel (Managed)| Action | Method | Endpoint | Other |
|---|---|---|---|
| Get_incident | post | /Incidents |
— |
keyvault (Managed)| Action | Method | Endpoint | Other |
|---|---|---|---|
| Get_Censys_API_Token | get | /secrets/@{encodeURIComponent('Censys-Access-Token')}/value |
— |
http (Built-in)| Action | Method | Endpoint | Other |
|---|---|---|---|
| HTTP_Call_to_Fetch_WebProperty_Data | POST | @{variables('base_url')}/@{variables('api_version')}/global/asset/webproperty |
— |
workflow (Built-in)| Action | Method | Endpoint | Other |
|---|---|---|---|
| CensysIncidentEnrichment | — | — | workflowId=[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/',resourceGroup().name,'/providers/Microsoft.Logic/workflows/',trim(parameters('IncidentEnrichmentPlaybookName')))]triggerName= When_an_HTTP_request_is_received |
This playbook is triggered automatically when a DNS entity (domain name) is detected in a Microsoft Sentinel incident, based on an automation rule. Upon triggering, it extracts the domain name from the entity and queries the Censys API (v3) to retrieve detailed web property information including geolocation (continent, country, city, coordinates), autonomous system details (ASN, BGP prefix), WHOIS data (network, organization, contacts), services, and DNS information. The playbook constructs the web property endpoint URL using the domain name with port 443 (e.g., domain:443). The playbook retrieves the Censys API token securely from Azure Key Vault, performs the API call with retry logic (up to 3 attempts) and comprehensive error handling for HTTP status codes (200, 401, 403, 404, 422). Upon successful data retrieval, the web property data is ingested into Azure Log Analytics (Censyswebproperty_CL table) for historical analysis and reporting. The playbook then retrieves the associated incident and invokes the CensysIncidentEnrichment sub-playbook to add the enrichment data as a comment to the incident. If no incident is associated, the playbook terminates successfully after data ingestion.
Once deployment is complete, authorize each connection.
Grant the playbook's managed identity 'Key Vault Secrets User' role on the Azure Key Vault.
Create an automation rule in Microsoft Sentinel to trigger this playbook for DNS entities.
Ensure the CensysIncidentEnrichment (or CensysAddIncidentComment) playbook is deployed and accessible.
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊