The invention relates to the field of security detection, discloses an intelligent detection method and device for a return
programming attack, belongs to the field of
system underlying security detection, and aims to detect binary
executable files of a program and process
commercial software without a
source code of a detected
software program. According to the main scheme, the method comprises the steps that
instrumentation is conducted on a tested program, the execution process of the tested program is output in the form of
assembly codes through the disassembling technology, and then a program execution
stream is obtained; performing real-time monitoring by utilizing the execution streams, and screening out suspicious program execution streams; according to the method, a suspicious program execution flow is subjected to secondary screening, an
artificial intelligence model is utilized to accurately judge a suspicious ROP
attack, whether ROP defense is started or not is determined according to a judgment result, and a time-limited alarm and active
crash strategy is adopted for a program judged to be the ROP
attack, so that the detected program is prevented from suffering from greater loss.