The invention provides an equipment protocol
vulnerability detection method and device, and the method comprises the steps: determining a to-be-detected protocol type of to-be-detected equipment, and obtaining a protocol message corresponding to the to-be-detected protocol type in a
system where the to-be-detected equipment is located; obtaining a relationship between fields in the protocol message; performing protocol state
machine learning on a
system where the to-be-detected equipment is located according to the protocol message, and obtaining a state
machine path of the
system where the to-be-detected equipment is located; determining a
test case generation method according to the state paths, and generating test cases corresponding to the state paths according to the
test case generation method in combination with the relationship between the fields; and inputting the
test case into the to-be-detected equipment, and obtaining a protocol
vulnerability detection result of the to-be-detected equipment according to the working state of the to-be-detected equipment. According to the method and the device, the test cases are generated in combination with the relationship among the fields in the protocol message and the state path, so that a large number of redundant test cases are prevented from being generated, the
code coverage rate is improved, and the
vulnerability detection efficiency is improved.