Reverse analysis and fuzzy testing of a communication protocol for new power system terminals

Autor: HAN Jiajia, SUN Xin, LYU Bang, SUN Changhua, QIAN Jing
Jazyk: čínština
Rok vydání: 2023
Předmět:
Zdroj: Zhejiang dianli, Vol 42, Iss 11, Pp 57-62 (2023)
Druh dokumentu: article
ISSN: 1007-1881
DOI: 10.19585/j.zjdl.202311007
Popis: Most of the existing new power system terminals use private protocols of third-party vendors, which often proves to be challenging to analyze. The Modbus protocol commonly used in existing new power system terminals is analyzed in reverse. Based on the characteristics of protocol hierarchy, the valid fields of the unknown protocol are extracted from the header fields of network messages, and the protocol fields are divided into words based on the statistical N-gram algorithm, and a Modbus protocol state machine is constructed using protocol keywords. Further, by protocol source code compilation and instrumentation, the Modbus server-side program is fuzzy tested by generating random test cases, and the test crash results are analyzed. The experimental results show that the scheme is capable of fast reverse identification and fuzzy testing of private protocols from third-party vendors and holds substantial practical value.
Databáze: Directory of Open Access Journals