The invention discloses a CC
attack gateway layer detection method and
system based on an intelligent
sliding time window, and belongs to the technical field of
network security. The method comprises the following steps: analyzing the HTTP traffic of a gateway layer in real time, and extracting multi-dimensional features of the traffic and user behaviors; performing real-time aggregation and multi-
dimensional analysis on the features by using a
sliding time window mechanism; based on a risk
score accumulation mechanism, matching the aggregation result with a pre-configured rule base to obtain a preliminary detection result and a risk
score; when the initial detection is negative, further performing
verification detection by using a pre-trained
machine learning model; and finally, according to the risk
score and a
machine learning result, judging an
attack and executing a progressive disposal measure. Through streaming
processing, rule and model cooperation, intelligent degradation and other mechanisms, the problem that detection precision and
processing performance cannot be achieved at the same time in a gateway scene in the prior art is effectively solved, and high-precision CC
attack defense under the requirements of high
concurrency and
low delay is achieved.