An automated front-end website user
network behavior security detection
system includes: a website automated testing module, a front-end code analysis module, a
dynamic instrumentation analysis module, and a user behavior analysis module. The website automated testing module interacts with the website code analysis module based on the results obtained from the analysis by the front-end code analysis module and the
dynamic instrumentation analysis module. It executes page operations according to the instructions of the website code analysis module and continuously collects newly loaded code, outputting it to the website code analysis module. The front-end code analysis module performs
static analysis on the collected front-end code, identifying key elements and network operation-related elements to obtain
JavaScript functions related to network operations. The
dynamic instrumentation analysis module modifies the browser-loaded front-end code according to the
JavaScript functions, inserting
logging code into the
JavaScript functions and replacing the original front-end webpage code with the instrumented JavaScript code. The website automated testing module simulates user interaction with the website, collecting log information from the instrumented code output, and combining this with the key
network behavior-related elements obtained from the front-end code analysis to obtain all potential user network behaviors. This invention achieves comprehensive and real-time monitoring of user behavior through
automation technology, and automatically detects and responds to potential security threats.