The invention belongs to the field of industrial control protocols, and discloses an industrial control protocol
semantic feature library construction method and device based on
program behavior analysis, and a medium, and the method comprises the steps: S1, constructing typical industrial control field tags, and forming a unified field semantic tag set; s2, executing
context data acquisition; s3, performing
symbolic execution analysis in a protocol
message processing process, and extracting a symbolic expression related to protocol field
processing; s4, dividing protocol field boundaries, classifying symbol expressions according to fields, and taking the symbol expressions as an
original data set; s5, field
program behavior feature extraction; s6, field
semantic feature screening: screening out screening features which can distinguish field
semantics most from the original features; and S7, constructing a
semantic feature library, counting the screening features of each field in the
original data set, selecting the screening features appearing at a frequency greater than a preset frequency, combining the screening features to form composite features capable of describing field
semantics, and constructing the composite features for all fields to form a complete industrial control protocol semantic feature
library.