T1542.004 Splunk · SPL

Detect ROMMONkit in Splunk

Adversaries may abuse the ROM Monitor (ROMMON) by loading unauthorized firmware with adversary code to provide persistent access and manipulate Cisco network device behavior in a way that is extremely difficult to detect. ROMMON is a Cisco network device firmware that functions as a boot loader, boot image, or boot helper to initialize hardware and software when the platform is powered on or reset. An adversary may upgrade the ROMMON image locally or remotely via TFTP with adversary code and restart the device to overwrite the existing ROMMON image. This provides persistence that survives IOS upgrades and standard remediation, and has been observed in the wild via the SYNful Knock implant campaign targeting Cisco ISR routers. Because ROMMON executes before the operating system loads, malicious code embedded at this layer can intercept and modify IOS behavior, inject backdoors, and evade integrity checks.

MITRE ATT&CK

Tactic
Defense Evasion Persistence
Technique
T1542 Pre-OS Boot
Sub-technique
T1542.004 ROMMONkit
Canonical reference
https://attack.mitre.org/techniques/T1542/004/

SPL Detection Query

Splunk (SPL)
spl
| union
  [ search index=network sourcetype=cisco:ios earliest=-24h
    ("ROMMON" OR "rommon" OR "rom monitor" OR "bootldr" OR "BOOT variable" OR "confreg" OR "config-register" OR "0x2142")
    OR ("tftp" OR "TFTP" OR "copy tftp" OR "archive download-sw" OR "upgrade rom-monitor")
    OR ("SYS-5-RELOAD" OR "Reload requested" AND ("boot system" OR "BOOT path-list")) ],
  [ search index=network sourcetype=syslog earliest=-24h
    (host="*router*" OR host="*switch*" OR host="*cisco*" OR host="*rtr*" OR host="*sw*")
    ("ROMMON" OR "rommon" OR "tftp" OR "TFTP" OR "upgrade rom-monitor" OR "SYS-5-RELOAD" OR "confreg") ]
| eval DeviceHost=coalesce(host, dvc)
| eval IsRommonChange=if(match(lower(_raw), "rommon|rom monitor|bootldr|boot variable|confreg|config-register|0x2142"), 1, 0)
| eval IsTFTPTransfer=if(match(lower(_raw), "tftp|copy tftp|archive download-sw|upgrade rom-monitor"), 1, 0)
| eval IsReload=if(match(_raw, "SYS-5-RELOAD|Reload requested|SYS-6-BOOTTIME"), 1, 0)
| eval IsBootVarChange=if(match(lower(_raw), "boot system|boot path-list|startup-config"), 1, 0)
| eval SuspicionScore=IsRommonChange + IsTFTPTransfer + IsReload + IsBootVarChange
| where SuspicionScore > 0
| table _time, DeviceHost, sourcetype, _raw, IsRommonChange, IsTFTPTransfer, IsReload, IsBootVarChange, SuspicionScore
| sort - _time
critical severity medium confidence

Detects ROMMONkit activity on Cisco network devices by searching Cisco IOS syslog and generic syslog sourcetypes for ROMMON manipulation indicators. Uses both cisco:ios sourcetype (via Splunk Add-on for Cisco IOS) and generic syslog for coverage of devices not using the Cisco-specific add-on. Assigns a suspicion score across four indicator categories: ROMMON variable changes, TFTP image transfers, system reload events, and boot variable configuration changes. A score of 2 or higher (e.g., TFTP transfer + reload) indicates a high-confidence incident requiring immediate response. Requires Cisco syslog forwarding to Splunk via UDP/TCP syslog input.

Data Sources

Network Device: Network Device ConfigurationCisco IOS SyslogNetwork Syslog

Required Sourcetypes

cisco:iossyslog

False Positives & Tuning

  • Legitimate ROMMON upgrades performed by network engineering teams during planned maintenance windows — correlate against change management tickets
  • Authorized IOS image upgrades via TFTP during software lifecycle management cycles that log BOOT variable changes
  • Network device password recovery procedures using confreg 0x2142 performed by authorized administrators
  • Automated configuration management platforms (Cisco DNA Center, RANCID, Oxidized) that perform TFTP-based image pushes as part of normal operations
Download portable Sigma rule (.yml)

Other platforms for T1542.004


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Verify Current ROMMON Version and Boot Variables

    Expected signal: Cisco IOS syslog: `%SYS-6-PRIVCMD` (if privilege accounting enabled) for each privileged exec command. TACACS+ accounting records for the enable session and each show command. AAA accounting logs showing the source IP and username. No TFTP or reload events generated.

  2. Test 2TFTP Image Transfer to Network Device (Lab Only)

    Expected signal: Cisco IOS syslog: `%TFTP-6-TRANSFER: Received 1234 bytes` or `%COPY-5-UPROMPRMT: 1234 bytes copied in 2.345 secs`. CommonSecurityLog/Syslog in SIEM will show the TFTP transfer message with source IP 192.168.100.99. TACACS+ accounting logs the `copy tftp` command with source IP. NetFlow captures UDP/69 session from 192.168.100.99 to device management IP.

  3. Test 3Configuration Register Modification (Lab Only)

    Expected signal: Cisco IOS syslog: `%SYS-5-CONFIG_I: Configured from console by <user> on <terminal>` after the config change. `show bootvar` output includes `Configuration register is 0x2142`. TACACS+ accounting logs the `config-register 0x2142` command. Syslog forwarded to SIEM contains the CONFIG_I message with the configuration terminal session details.

  4. Test 4ROMMON Environment Variable Inspection via ROMMON Prompt (Lab Only)

    Expected signal: Cisco IOS syslog before reload: `%SYS-5-RELOAD: Reload requested by <user> on vty0. Reload Reason: Reload command.` After reload: `%SYS-6-BOOTTIME: Time taken to reboot after reload = <seconds> seconds`. TACACS+ logs the `reload` command. Syslog gap during ROMMON phase (ROMMON does not forward syslog). After IOS boots: logging resumes with startup sequence messages.

Unlock Pro Content

Get the full detection package for T1542.004 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections