Technical Tip: Automation stitch configuration for compromised host quarantine and debugging of execution
| Description | This article describes the configuration and debug analysis of the FortiGate Automation Stitch designed to respond to high severity compromised host events. The stitch automatically quarantines affected endpoints at the access layer and sends notification emails. |
| Scope | FortiGate. |
| Solution | When FortiGate detects a host classified as compromised high severity by FortiGate itself, either FortiGuard or FortiAnalyzer with an IOC license can identify the compromised endpoint MAC address, can apply MAC-based quarantine on managed FortiSwitches and FortiAPs, and can send an email notification to administrators with the appropriate automation stitch configuration. config system automation-trigger edit "Compromised Host - High" set description "Default automation trigger configuration for when a high severity compromised host is detected." next end
Automation action: config system automation-action
Automation destination:
config system automation-destination edit "QuadDestination"
Automation Stitch: config system automation-stitch edit "Compromise Host -HIGH" set trigger "Compromised Host - High" config actions edit 2 set action "Quarantine on FortiSwitch + FortiAP" set required enable next edit 4 set action "Access Layer Quarantine" set required enable next end set destination "QuadDestination" next end
After setting up the correct configuration, follow the steps below to confirm that the automation stitch is working as intended.
diagnose debug reset
diagnose debug disable
In the debug output for a successful execution of the automation stitch, the following results are expected: __action_ioc_quarantine_hdl(): ioc quarantine action is called { "name": "Quarantine on FortiSwitch + FortiAP", "status": "success" } { "name": "Access Layer Quarantine", "status": "success" } |
