F5 BIG-IP iControl REST Vulnerability CVE-2022-1388

Original Source: [splunk source]
Name:F5 BIG-IP iControl REST Vulnerability CVE-2022-1388
id:bb1c2c30-107a-4e56-a4b9-1f7022867bfe
version:3
date:2024-09-30
author:Michael Haag, Splunk
status:production
type:TTP
Description:The following analytic detects attempts to exploit the F5 BIG-IP iControl REST API vulnerability (CVE-2022-1388) for unauthenticated remote code execution. It identifies suspicious URI paths and POST HTTP methods, along with specific request headers containing potential commands in the `utilcmdargs` field and a random base64 encoded value in the `X-F5-Auth-Token` field. This activity is significant as it targets a critical vulnerability that can allow attackers to execute arbitrary commands on the affected system. If confirmed malicious, this could lead to full system compromise and unauthorized access to sensitive data.
Data_source:
  • -Palo Alto Network Threat
search:| tstats count from datamodel=Web where Web.url="*/mgmt/tm/util/bash*" Web.http_method="POST" by Web.http_user_agent Web.http_method, Web.url,Web.url_length Web.src, Web.dest
| `drop_dm_object_name("Web")`
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `f5_big_ip_icontrol_rest_vulnerability_cve_2022_1388_filter`


how_to_implement:To successfully implement this search, you need to be ingesting web or proxy logs, or ensure it is being filled by a proxy like device, into the Web Datamodel. For additional filtering, allow list private IP space or restrict by known good.
known_false_positives:False positives may be present if the activity is blocked or was not successful. Filter known vulnerablity scanners. Filter as needed.
References:
  -https://github.com/dk4trin/templates-nuclei/blob/main/CVE-2022-1388.yaml
  -https://www.randori.com/blog/vulnerability-analysis-cve-2022-1388/
  -https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1388
  -https://twitter.com/da_667/status/1523770267327250438?s=20&t=-JnB_aNWuJFsmcOmxGUWLQ
  -https://github.com/horizon3ai/CVE-2022-1388/blob/main/CVE-2022-1388.py
drilldown_searches:
name:'View the detection results for - "$dest$"'
search:'%original_detection_search% | search dest = "$dest$"'
earliest_offset:'$info_min_time$'
latest_offset:'$info_max_time$'
name:'View risk events for the last 7 days for - "$dest$"'
search:'| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$dest$") starthoursago=168 | stats count min(_time) as firstTime max(_time) as lastTime values(search_name) as "Search Name" values(risk_message) as "Risk Message" values(analyticstories) as "Analytic Stories" values(annotations._all) as "Annotations" values(annotations.mitre_attack.mitre_tactic) as "ATT&CK Tactics" by normalized_risk_object | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`'
earliest_offset:'$info_min_time$'
latest_offset:'$info_max_time$'
tags:
  analytic_story:
    - 'F5 BIG-IP Vulnerability CVE-2022-1388'
    - 'CISA AA24-241A'
  asset_type:Web Server
  confidence:70
  cve:
    - 'CVE-2022-1388'
  impact:100
  message:An attempt to exploit CVE-2022-1388 against an F5 appliance $dest$ has occurred.
  mitre_attack_id:
    - 'T1190'
    - 'T1133'
  observable:
    name:'dest'
    type:'Hostname'
    - role:
      - 'Victim'
  product:
    - 'Splunk Enterprise'
    - 'Splunk Enterprise Security'
    - 'Splunk Cloud'
  required_fields:
    - 'Web.http_method'
    - 'Web.url'
    - 'Web.url_length'
    - 'Web.src'
    - 'Web.dest'
    - 'Web.http_user_agent'
  risk_score:70
  security_domain:network

tests:
name:'True Positive Test'
 attack_data:
  data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1190/f5/f5.log
  source: pan:threat
  sourcetype: pan:threat
  update_timestamp: True
manual_test:None