The invention discloses a stateful protocol
fuzz testing method and
system based on a
large model construction state
machine, and the method comprises the steps: firstly preprocessing a
protocol specification document, guiding an information
large model to analyze through cue words to obtain state
machine information, constructing an initial state
machine through the state machine
large model, and initializing a message dictionary; secondly,
protocol testing is carried out based on an initial state machine, a prompt word is input into a large testing model to understand a flow log, a message field supplement and improvement dictionary is obtained, message request fields and response codes in the message dictionary are combined, the initial state machine is improved, and a fine-grained state machine is obtained; and finally, on the basis of a fine-grained state machine, inputting cue words, analyzing a blind area covered by the current test by an analysis large model, and guiding a fuzzy tester to preferentially test an uncovered state which is most likely to trigger the deep
vulnerability, thereby completing the fuzzy test. According to the method, the fuzzy device directionally tests the potential test state area, and accurate and efficient fuzzy testing is carried out.