Built-in Action Templates

Unified Security Stack ships with 73 pre-built action templates that can serve as components within SOAR workflows. Every template is a reusable command aimed at a particular platform and carries out a defined response action.

Action templates use dynamic variables (e.g., $(adversary.ip)) which are automatically substituted with values from the triggering alert when execution occurs.

Block IP / Firewall Rules

Deny attacker IP addresses or administer 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

End 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

Deactivate compromised or unauthorized user accounts to stop additional 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 a compromised user session to log out.

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

Revoke 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

Sever a compromised host's connection to the network to limit 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 every network adapter. The agent will lose its connection to Unified Security Stack. Use this action only as a final measure for verified critical threats. Restoring connectivity will require physical or out-of-band access.

Delete File

Delete 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

Halt malicious or compromised services.

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

Uninstall Application

Uninstall 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 a critically compromised system to shut down.

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

A forced shutdown immediately cuts power to the system. Any unsaved data will be lost. Use it only for confirmed critical threats where the risk of continued operation outweighs the cost of downtime.

Disable RDP

Turn off 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

Turn Windows Defender settings back on or restore those that have been altered.

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