We decoded the M2 (Nova Message) protocol, the proprietary IPC system used by the 80 RouterOS processes to communicate with each other. It is a binary key-value format with an M2 magic number, 6 data types, and a SYS namespace for routing. The loader process acts as the central hub: it receives all messages and dispatches them to the destination. M2 is not just IPC: it is also the on-disk serialization format — the user database, backups, and configurations are all M2 messages. We wrote a Python parser and verified that M2 is active on RouterOS 7.24.5 via the /jsproxy handshake of WebFig.
In Episode 1, we opened a firmware and found 80 processes in /nova/bin/. The question naturally arises: how do they communicate with each other? They do not use TCP. They do not use Unix pipes. They do not use shared memory. They do not use D-Bus, they do not use gRPC, they do not use ZeroMQ.
They use a proprietary binary protocol called Nova Message, abbreviated as M2 from the magic number M2 (the two ASCII bytes 4d 32) that opens every message.
Reserved for members
This content is reserved for those in the dojo.
Entry is free: you subscribe to the newsletter with your email and then choose to join the dojo, without a password. How it works