F5 BIG-IP iControl REST Webserver POST to /mgmt/tm/util/bash Command Execution

Alerts on webserver POST requests to the BIG-IP iControl REST bash execution endpoint (/mgmt/tm/util/bash).

FreeReviewedSigma · Medium · v2
Category
webserver
Author
Nasreddine Bencherchali (Nextron Systems), Thurein Oo (SigmaHQ), DRL 1.1
Published
2023-11-08
Updated
2026-07-31
title: F5 BIG-IP iControl REST Webserver POST to /mgmt/tm/util/bash Command Execution
id: 4756f986-d1ae-496a-a817-a2d195d3b559
related:
  - id: b59c98c6-95e8-4d65-93ee-f594dfb96b17
    type: similar
  - id: 85254a62-22be-4239-b79c-2ec17e566c37
    type: derived
status: test
description: This rule identifies HTTP POST requests to the F5 BIG-IP iControl REST API endpoint /mgmt/tm/util/bash. That endpoint is designed to execute shell commands on the BIG-IP, so abuse can lead to remote command execution. The detection relies on webserver telemetry capturing the HTTP method (POST) and the requested URI path ending with /mgmt/tm/util/bash.
references:
  - https://f5-sdk.readthedocs.io/en/latest/apidoc/f5.bigip.tm.util.html#module-f5.bigip.tm.util.bash
  - https://community.f5.com/t5/technical-forum/icontrolrest-11-5-execute-bash-command/td-p/203029
  - https://community.f5.com/t5/technical-forum/running-bash-commands-via-rest-api/td-p/272516
  - https://github.com/SigmaHQ/sigma/blob/master/rules/web/webserver_generic/web_f5_tm_utility_bash_api_request.yml
author: Nasreddine Bencherchali (Nextron Systems), Thurein Oo, Huntrule Team
date: 2023-11-08
tags:
  - attack.execution
  - attack.t1190
  - attack.initial-access
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-query|endswith: /mgmt/tm/util/bash
  condition: selection
falsepositives:
  - Legitimate usage of the BIG IP REST API to execute command for administration purposes
level: medium
license: DRL-1.1