← Back to SOC feed Coverage →

app-armor-stopped

kql MEDIUM Azure-Sentinel
DeviceProcessEvents
huntingmicrosoftofficial
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Azure-Sentinel →
Retrieved: 2026-05-05T23:00:00Z · Confidence: medium

Hunt Hypothesis

The app-armor-stopped rule detects potential adversary tampering with application isolation mechanisms, indicating possible evasion of security controls. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify and mitigate Sysrv botnet activity that could lead to resource theft and cryptocurrency mining.

KQL Query

DeviceProcessEvents
| where InitiatingProcessCommandLine  has "/bin/bash /tmp/" and ProcessCommandLine has "service apparmor stop"

Analytic Rule Definition

id: a188fa21-dd3a-4cf9-910b-1384711f7dce
name: app-armor-stopped
description: |
  This query was originally published in the threat analytics report, Sysrv botnet evolution.
  Sysrv is a Go-based botnet that targets both Windows and Linux servers, and steals resources to mine cryptocurrency.
  The following query finds instances of the attacker attempting to stop the AppArmor network security service on devices running Linux.
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - DeviceProcessEvents
query: |
  DeviceProcessEvents
  | where InitiatingProcessCommandLine  has "/bin/bash /tmp/" and ProcessCommandLine has "service apparmor stop"

Required Data Sources

Sentinel TableNotes
DeviceProcessEventsEnsure this data connector is enabled

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/Microsoft 365 Defender/Campaigns/Sysrv-botnet/app-armor-stopped.yaml