Skip to content
Threat Feed
high threat exploited updated

Cisco IOS XE Log Clearing and Loopback Removal Sequence

This brief details suspicious command sequences on Cisco IOS-XE devices, involving 'show logging', 'clear logging', and 'exit', potentially accompanied by 'no interface Loopback' commands, indicating defense evasion and potential network disruption by threat actors.

CVE search metadata

CVE search record: CVE-2023-20198. Severity: critical. CVSS: 10.0. EPSS: 94.01%. KEV: yes. Product: Cisco IOS XE. Brief: Cisco IOS XE Log Clearing and Loopback Removal Sequence. Brief link: https://feed.craftedsignal.io/briefs/2026-06-cisco-ios-xe-log-clearing/

Triage facts

Revision 1
Applicability
Cisco IOS XE
Evidence
Confirmed activeHigh confidence
Severity
High
Sources
2 public sources
Freshness
Revision 1Jun 14, 19:35 UTC
Detection
3 rules
Vulnerabilities
1 CVE

What's new

  • 1. exploited:true; KEV CVE-2023-20198 Nov 19, 18:12 via cisa-kev

Overview

This threat brief focuses on detecting post-exploitation activity on Cisco IOS XE network devices, specifically the execution of a sequence of commands designed for defense evasion and potential network disruption. The observed patterns involve an attacker surveying device logs, clearing them to obscure their tracks, and potentially removing network interfaces like loopbacks. While the specific initial access vector is not detailed by these detection patterns, the activity is consistent with advanced persistent threat (APT) groups, such as those implicated in the CISA advisory AA25-239A, which links PRC state-sponsored actors to exploitation of network devices. These sequences are critical for defenders to identify as they indicate an attacker's attempt to maintain persistence or conduct further actions without detection, making incident response significantly more challenging.

Attack Chain

  1. Initial Access: (Implicit) A threat actor gains unauthorized administrative access to a Cisco IOS XE network device, potentially through compromised credentials, exploitation of a known vulnerability (e.g., CVE-2023-20198), or other initial access methods.
  2. Device Reconnaissance: The attacker executes show logging commands to survey the device's current log configurations, review recent activity, and understand what information is being recorded.
  3. Defense Evasion - Log Clearing: The attacker then executes clear logging to erase critical security and operational logs from the device, thereby destroying forensic evidence of their presence and activities.
  4. Defense Evasion - Network Obscuration/Disruption (Optional): In some observed sequences, the attacker might execute no interface Loopback <interface_number> to remove a loopback interface. This action can serve to disrupt network services, remove an interface used for monitoring, or further obscure their activities.
  5. Session Termination: The attacker concludes their interaction with the device by executing the exit command, terminating the administrative session.
  6. Impact Prolongation: Having cleared logs and potentially manipulated interfaces, the attacker proceeds with further malicious actions, such as establishing persistence, lateral movement, or data exfiltration, with reduced risk of immediate detection.

Impact

The successful execution of these command sequences on Cisco IOS XE devices has severe consequences. The primary impact is a significant loss of forensic visibility, making it extremely difficult for security teams to understand the scope, timeline, and methods of the compromise. This lack of audit trails severely hampers incident response efforts, allowing attackers to remain undetected for longer periods and exfiltrate sensitive data or establish robust persistence. Furthermore, the removal of loopback interfaces can cause network instability, disrupt routing, and impact critical services, leading to operational downtime and economic losses. Such activities are often characteristic of state-sponsored actors targeting critical infrastructure or high-value organizations for espionage or disruptive purposes, as highlighted in CISA's advisories regarding PRC state-sponsored threats to network devices.

Recommendation

  • Enable Cisco IOS-XE syslog with remote logging to a secure, external log management solution to ensure logs are retained even if local logs are cleared.
  • Ensure AAA command accounting is enabled on all Cisco IOS XE devices to log every command executed by administrative users.
  • Deploy the Sigma rules in this brief to your SIEM and tune for your environment to detect suspicious command executions.
  • Implement correlation rules in your SIEM to identify the execution of show logging, clear logging, exit, and no interface Loopback commands within a short timeframe (e.g., 2 minutes) originating from the same device and user.
  • Regularly review logs for clear logging and no interface Loopback events, investigating any occurrences outside of scheduled maintenance or authorized configuration changes.

Detection coverage 3

Cisco IOS XE - Suspicious Log Clearing Command

high

Detects the execution of 'clear logging' command on Cisco IOS XE devices, which is a common defense evasion technique used by attackers to remove forensic evidence. This rule should be correlated with other suspicious activities or user contexts for high-fidelity alerts.

sigma tactics: defense_evasion techniques: T1070, T1070.001 sources: application, cisco_ios

Cisco IOS XE - Loopback Interface Removal Command

high

Detects the execution of 'no interface Loopback' command on Cisco IOS XE devices, which can be an attempt by attackers to disrupt network services, impair defenses, or obscure C2 infrastructure.

sigma tactics: defense_evasion, impact techniques: T1529, T1562 sources: application, cisco_ios

Cisco IOS XE - Suspicious Command Sequence Indicators

medium

Detects the presence of key commands typically found in an attacker's defense evasion sequence on Cisco IOS XE devices: 'show logging', 'clear logging', and 'exit'. While a single event detection, it indicates the presence of these suspicious keywords.

sigma tactics: defense_evasion techniques: T1070, T1070.001 sources: application, cisco_ios

Detection queries are available on the platform. Get full rules →