EditShow Commands
Almost all information gathering on IOS works by issuing
show commands. Here is a list of commands that help determining the supposed state of the router.
Warning: The output of show commands does not always reflect the true state of the router and even if it does, it only reflects what the queried data structures contain! This will not be enough to determine if a router was compromised.Editshow version
Before doing anything else, check what version you are running. The version will not only tell you how likely the exploitation is (obviously, the older the more likely), but also what features the attacker might have used (e.g.
TCL).
Editshow clock detail
Check if the system time is correct, important for logging.
Editshow running-config
Inspect the running configuration. This is extremely important, as it tells you everything about what the router is supposed to do right now. It will also contain all the authentication mechanisms configured, so an added local user can be spotted.
Editshow startup-config
Inspect the startup configuration. This configuration is loaded from flash storage immediately after the router booted. This configuration might contain instructions to boot a remotely located IOS image, indicating a backdoored router.
Editshow reload
Gives an indication on when the device last restarted. Frequent restarts are almost always an indication of active interference with the device's operation. An investigation of the restart causes should follow.
Editshow ip route
Displays the currently active IP routes of the device. This list may in some cases not be complete or accurate. Additional entries, both static or dynamic routes, may be made by an attacker. Very old but still common in interior routing environments are
Route Injection attacks using interior routing protocols.
Editshow ip arp
The ARP table must be inspected for illegal entries. ARP spoofing is one of the most common local link attack methods still in use. ARP spoofing can circumvent ACLs on the router and may have been used from a locally connected (Layer 2) computer system to carry out a more advanced attack.
Editshow users
Displays the currently logged in users on the device. Additional users (other than the own connection) are a must inspect item.
Editshow logging
Displays the logging settings and the contents of the log buffers. Your first and foremost source of information on the router's recent history. Also shows where logs can be found. According to a research paper if logging is entirely turned off, it is suspicious, as it's neither the default nor ever recommended.
Editshow ip interface
Editshow interfaces
Editshow tcp brief all
Editshow ip sockets
Editshow ip nat translations verbose
Editshow ip cache flow
Editshow ip cef
Editshow snmp user