Automation
Introduction
Automation here refers to automation through the entire ION Platform Pipeline which allows us to reduce manual intervention for handling Security Incidents.
Automation Pipeline View
Automation Points
| Automation Component/Point | Format | Description | Remarks |
|---|---|---|---|
| Automation Rules | - ARM Template - Sentinel UI | - Sentinel provides capability to define Automation rules which can be triggered for - Incident Creation - Incident Update - Alert Creation - Automation rules can perform following actions: - Suppress noisy incidents (see this article on handling false positives instead) - Triage new incidents by changing their status from New to Active and assigning an owner. - Tag incidents to classify them. - Escalate an incident by assigning a new owner. - Close resolved incidents, specifying a reason and adding comments. - Analyze the incident’s contents (alerts, entities, and other properties) and take further action by calling a playbook. - (Preview) Handle or respond to an alert without an associated incident. | Automation rules |
| Playbooks | - Logic Apps - (ARM Template) | - Playbooks are logic apps executed by the Automation Rules - We can define custom logic for our Logic Apps - Playbooks perform these tasks: - Filtering - Validation - Pushing Security Incidents to Event hubs | Playbooks - Note that we treat pipeline as a Funnel, where filtering is done at multiple levels thereby reducing Incidents that needs to be manually triaged. |
| Incident Context Enricher | - Microservice (C#) | - Incident Context Enricher will perform these automation actions: - Filtering - Throttling | - Filtering here will have configuration that can be enhanced and applied. There will be NO UI for defining the filter rules |
| Enrichment Manager | - Microservice (C#) | - Enrichment Manager will automate the enrichment of entities present in the Incident - Device - IP - URL - File | |
| Incident Automation Manager | - Microservice (C#) | - Automates the execution of Triaging Runbooks and auto-closes the incident if the conditions satisfy | https://docs.open.ch/docs/display/SOC/<<+Security+Incident++(Triage)+>>+Runbook+Template |
| Harold | - Microservice (C#) | - Enriches the incident with TP/FP Probability | |
| Ontinue Investigator | - Microservice (C#) | - Automates the execution of Investigation Runbooks/process and generates the graph view for the Incident | https://docs.open.ch/docs/display/SOC/<<+Investigation+(Analysis%2C+Response%2C+Close)+>>+Runbook+Template |
| SOC Automation | - ?? | - Runs parallel automation for incidents in its own subscriptions. There are certain ground rules to be followed here: - This automation shouldn’t result in the change of state for ION Platform |
Triage Run-book Automation (Incident Automation Manager)
The goal here is to follow specific steps to determine if the Incident is TP/BP/FP. The run-book should provide an outcome (TP, FP, BP, UNKNOWN)
Requirements
- Assign Detection Use-cases with a triage run-book
- Versioning of the run-books
- The Run-book execution must be fully automated
- The outcome of the Run-book must indicate whether the Security Incident can be auto-closed
- The Run-book definition must allow
- Specification of conditional flows within the run-book (multiple steps with conditions)
- Log Sources
- Log Analytics Workspaces (KQL Queries)
- MDE (API calls)
- Azure AD (API Calls)
Ownership
| Run-book Area | Owner | Remarks |
|---|---|---|
| Specification, Definition | SOC Team | - Do we have separate automation team? |
| Execution | ION Platform |
Framework
A Run-book should be divided into 3 parts owned and executed by different teams
| Run-book part | Ownership | Implementation | Remarks |
|---|---|---|---|
| Metadata | Detection Engineering team | See the run-book metadata example. | Based on the existing Security Incident (Triage) Runbook Template. |
| Workflow Definition | SOC Team | We need workflow orchestration solutions to support conditional flows: 1. Azure Logic Apps 2. Azure Durable Function Orchestration | - Azure Logic App is Low Code / No Code solution - Azure Durable Function Orchestration is a full code solution where the orchestration is written in programming languages like C#, Python etc. |
| Workflow Data Source Connections | ION Platform team | Azure Logic Apps - ION Platform team can implement Azure functions for each data source - The Logic App will implement the workflow (conditional flow) and call the azure functions through HTTPS URL when required for querying Azure Durable Function Orchestration - ION Platform team can implement Azure functions(Activity Functions) for each data source - The Durable Workflow Orchestration will implement the workflow (conditional flow) and call the azure functions(Activity Functions) when required for querying | - The data source connections must be separate for the following reasons: - Credential management for different environments - Scaling and Fault tolerance handling - Logging and monitoring |
Run-book metadata example
---
usecase_id: AO-ACC-AD-01
usecase_name: Account Tampering - Suspicious Failed Logon To Disabled Account
version: 0.2.1
description: This checks for attempted logons to disabled accounts.
overview: >-
This checks for attempted logons to disabled accounts. The rule checks for a
small number of attempts because these are less likely to result from
automation.
mitre_techniques:
- T1078
mitre_tactics:
- InitialAccess
- Persistence
- PrivilegeEscalation
- DefenseEvasion
severity: Low
auto_close: true
auto_close_comments: ""
workflow: "{{Logic App / Durable Orchestration} URL}"
T1078 refers to the MITRE ATT&CK technique
Valid Accounts.
Investigation Run-book Automation (Ontinue Investigator)
The goal here is to provide more context, situation enrichment so that Cyber Defender can Investigate the Incident more efficiently
Requirements
- Assign Detection Use-cases with an investigation run-book
- Versioning of the run-books
- The Run-book execution must be fully automated
- The Run-book definition must allow
- Specification of conditional flows within the run-book (multiple steps with conditions)
- Log Sources
- Log Analytics Workspaces (KQL Queries)
- Sentinel (API calls)
- MDE (API calls)
- Azure AD (API Calls)
Framework
The framework will be the same as Triage Run-books
Run-book Executions
The run-book executions will be the same as Triage Run-books
ION V2 Automation Architecture Overview
This document presents the ION V2 Automation Architecture
ION V2 Automation Runbook Execution
This document presents the ION V2 Automation Runbook Execution Architecture