Skip to content

Detecting Persistent Threats on DrayTek Devices

Octavio GianatiempoGastón Aznarez

Reverse engineers DrayTek router firmware to uncover dynamic module persistence mechanisms and presents an open-source memory integrity detection tool.

Summary

Targeting Edge Security Appliances

Threat actors increasingly compromise network perimeter devices such as VPN concentrators, routers, and firewalls. Many edge devices run proprietary, closed-source firmware that lacks visibility and integrity verification mechanisms.

Reverse Engineering DrayTek Firmware

Analyzing proprietary firmware across hundreds of thousands of Internet-exposed DrayTek routers revealed that the underlying RTOS kernel supports dynamic module loading. Uploaded code modules persist across reboots and firmware upgrades.

Developing Malicious Modules for Persistence

Researchers demonstrated how chaining newly discovered vulnerabilities with custom kernel modules establishes stealthy, durable persistence within edge routing infrastructure.

Memory Integrity Verification and Tooling

To counter persistent edge compromises, researchers built and released an open-source inspection module that validates loaded RTOS memory modules, restoring visibility for defenders.

Related talks