The invention provides an 
advanced persistent threat detection method based on aggressive behavior analysis. The 
advanced persistent threat detection method comprises the steps that 1, all 
system kernel program execution pipelines are taken over; 2, a network card is set to be in a 
confusion mode, 
network data packets are acquired, local port analysis behaviors are combined as characteristics, and a 
system gives an alarm if malicious operating instructions of 
network attack behaviors are contained; 3, all network channels are enumerated, and the 
system gives an alarm if the malicious operating instructions of the 
network attack behaviors are contained; 4, file operation is monitored, key information is judged, and the system gives an alarm if the requirements are not met; 5, captured 
software API information are submitted to an 
application layer from a kernel layer in a trans-boundary mode so as to be submitted to a behavior analysis engine, whether the behaviors are 
attack behaviors or not is judged, if so, an alarm is given, and if not, the step 2 repeated. The 
advanced persistent threat detection method can detect advanced persistent threats, is high in detection efficiency and more comprehensively analyzes the situations of the behaviors performing attacking at a 
system level.