The application relates to the technical field of intrusion detection, in particular to a network malicious traffic detection method and
system based on AI, which comprises the following steps: collecting a bit
stream, analyzing a frame structure to generate a head
feature set, searching a feature sequence to construct a port and a flag bit
semantic vector group, calculating a dot product to establish a multi-dimensional joint
logic state sequence, combining an
orthogonal basis matrix projection to calculate a residual error to obtain a deviation metric, screening abnormal data packets and triggering a firewall blocking operation.In the application, the protocol head features are extracted, the semantic matrix is used to construct the
semantic vector group of the port and the control flag bit, the implicit
logical relationship between the protocol fields is deeply mined, the multi-dimensional joint
logic state sequence is established based on the dot product operation of the feature sequence, the joint
logic state sequence is mapped to a normal traffic subspace for projection analysis, unknown attacks and hidden threats using logical loopholes are effectively identified, and the accurate blocking and defense of malicious traffic are realized.