Built-in Action Templates

UTMStack ships with 73 pre-built action templates that can be used as building blocks in SOAR workflows. Each template is a reusable command that targets a specific platform and performs a specific response action.

Action templates use dynamic variables (e.g., $(adversary.ip)) that are automatically replaced with values from the triggering alert at execution time.

Block IP / Firewall Rules

Block attacker IP addresses or manage firewall rules to contain threats.

ActionPlatformCommand
Block Adversary IPWindowsnetsh advfirewall firewall add rule name="Block-Brute-Force-$(adversary.ip)" dir=in action=block remoteip="$(adversary.ip)"
Block Adversary IPLinux (Debian/Ubuntu)iptables -A INPUT -s $(adversary.ip) -j DROP
Block Adversary IPLinux (RHEL/CentOS)firewall-cmd --zone=public --add-rich-rule='rule family="ipv4" source address="$(adversary.ip)" drop' --permanent && firewall-cmd --reload
Block Adversary IPLinux (OpenSUSE)firewall-cmd --zone=public --add-rich-rule='rule family="ipv4" source address="$(adversary.ip)" drop' --permanent && firewall-cmd --reload
Block Attacker IP via UFWLinux (Debian/Ubuntu)ufw deny from $(adversary.ip) to any
Block Inbound Network AccessWindowsnetsh advfirewall firewall add rule name="Block-Inbound-$(adversary.ip)" dir=in action=block remoteip="$(adversary.ip)"
Block Inbound Network AccessLinux (Debian)iptables -A INPUT -s $(adversary.ip) -j DROP
Block Inbound Network AccessLinux (RHEL)firewall-cmd --zone=public --add-rich-rule='...' --permanent && firewall-cmd --reload
Block Inbound Network AccessLinux (OpenSUSE)firewall-cmd --zone=public --add-rich-rule='...' --permanent && firewall-cmd --reload
Block Inbound Network AccessmacOSecho "block in from $(adversary.ip) to any" | pfctl -f -
Block Outbound Network AccessWindowsnetsh advfirewall firewall add rule name="Block-Outbound-$(adversary.ip)" dir=out action=block remoteip="$(adversary.ip)"
Block Outbound Network AccessLinuxiptables -A OUTPUT -d $(adversary.ip) -j DROP
Block Outbound Network AccessmacOSecho "block out from any to $(adversary.ip)" | pfctl -f -
Enable Firewall RulesWindowsnetsh advfirewall firewall set rule name=all new enable=yes
Enable FirewallWindowsnetsh advfirewall set allprofiles state on

Kill Process

Terminate malicious or suspicious processes on endpoints.

ActionPlatformCommand
Kill ProcessWindowstaskkill /F /IM (Split-Path -Path "$(adversary.process)" -Leaf)
Kill ProcessLinuxpkill -9 $(basename "$(adversary.process)")
Kill ProcessmacOSpkill -9 $(basename "$(adversary.process)")
Kill Process by PIDWindowstaskkill /F /PID $(log.winlogEventDataProcessId)
Kill Process by NameWindowstaskkill /F /IM $(log.winlogEventDataProcessName)

Disable User Account

Disable compromised or unauthorized user accounts to prevent further access.

ActionPlatformCommand
Disable adversary.userWindowsnet user $(adversary.user) /active:no
Disable adversary.userLinuxusermod -s /sbin/nologin $(adversary.user)
Disable adversary.usermacOSchsh -s /usr/bin/false $(adversary.user)
Disable target.userWindowsnet user $(target.user) /active:no
Disable target.userLinuxusermod -s /sbin/nologin $(target.user)
Disable target.usermacOSchsh -s /usr/bin/false $(target.user)
Disable Compromised User (expire)Linuxusermod --expiredate 1 $(target.user)

Kill Session / Logout User

Force logout a compromised user session.

ActionPlatformCommand
Kill Session and Logout UserWindowslogoff $(target.user)
Kill Session and Logout UserLinuxpkill -KILL -u $(target.user)
Kill Session and Logout UsermacOSpkill -KILL -u $(target.user)

Remove Permissions

Strip elevated permissions from compromised accounts.

ActionPlatformCommand
Remove All PermissionsWindowsGet-LocalGroup | Where-Object { $_.Name -ne "Users" } | ForEach-Object { Remove-LocalGroupMember ... }
Remove All PermissionsLinuxfor grp in $(id -nG $(adversary.user) ...); do gpasswd -d $(adversary.user) "$grp"; done
Remove All PermissionsmacOSfor grp in ...; do dseditgroup -o edit -d $(adversary.user) ...; done

Isolate Host

Disconnect a compromised host from the network to contain lateral movement.

ActionPlatformCommand
Isolate HostWindowsGet-NetAdapter | Disable-NetAdapter -Confirm:$false
Isolate HostLinuxfor interface in $(ip link show | ...); do ip link set "$interface" down; done
Isolate HostmacOSfor interface in $(networksetup -listallnetworkservices ...); do networksetup -setnetworkserviceenabled "$interface" off; done

Host isolation disables all network adapters. The agent will lose connectivity to UTMStack. Use this action only as a last resort for confirmed critical threats. Physical or out-of-band access will be needed to restore connectivity.

Delete File

Remove malicious files from endpoints.

ActionPlatformCommand
Delete FileWindowsRemove-Item -LiteralPath "$(adversary.path)" -Force -Recurse
Delete FileLinuxrm -f $(adversary.path)
Delete FilemacOSrm -f $(adversary.path)

Stop Service

Stop malicious or compromised services.

ActionPlatformCommand
Stop ServiceWindowsStop-Service -Name "$(adversary.windowsServiceDisplayName)" -Force
Stop ServiceLinuxsystemctl stop "$(adversary.service)"
Stop ServicemacOSlaunchctl stop "$(adversary.service)"

Uninstall Application

Remove unauthorized or compromised applications.

ActionPlatformCommand
Uninstall ApplicationWindowsForEach-Object { Start-Process ... -ArgumentList "/S" ... }
Uninstall ApplicationLinux (Debian)apt-get remove -y "$(target.applicationname)"
Uninstall ApplicationLinux (RHEL)yum remove -y "$(target.applicationname)"
Uninstall ApplicationLinux (OpenSUSE)zypper remove -y "$(target.applicationname)"
Uninstall ApplicationmacOSbrew uninstall --force "$(target.applicationname)"

Shutdown Host

Force shutdown of a critically compromised system.

ActionPlatformCommand
Shutdown OS (Forced)Windowsshutdown /s /f /t 0
Shutdown OS (Forced)Linuxshutdown -h now
Shutdown OS (Forced)macOSshutdown -h now

Forced shutdown will immediately power off the system. All unsaved data will be lost. Use only for confirmed critical threats where the risk of continued operation outweighs the cost of downtime.

Disable RDP

Disable Remote Desktop Protocol access on Windows systems.

ActionPlatformCommand
Disable RDP and Remove FW RuleWindowsSet-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name 'fDenyTSConnections' -Value 1; Disable-NetFirewallRule -DisplayGroup "Remote Desktop"

Windows Defender Management

Re-enable or restore Windows Defender settings that were tampered with.

ActionPlatformDescription
Enable Windows DefenderWindowsEnables real-time protection via MpCmdRun.exe -Enable
Enable Real-time MonitoringWindowsSet-MpPreference -DisableRealtimeMonitoring $false
Restore Behavior MonitoringWindowsRe-enables behavior monitoring
Restore PUA ProtectionWindowsRe-enables Potentially Unwanted Application protection
Restore MAPS ReportingWindowsRe-enables Microsoft Active Protection Service reporting
Restore Cloud ProtectionWindowsRe-enables cloud-based protection
Auto Re-enable All ProtectionsWindowsDetects which protections were disabled and re-enables them
Remove Process ExclusionWindowsRemoves process exclusions added to Defender
Remove Folder ExclusionWindowsRemoves folder exclusions added to Defender
Remove All ExclusionsWindowsRemoves both process and folder exclusions added via PowerShell