This invention discloses a security
verification method, apparatus, and electronic device. The method includes: responding to a user-initiated
verification request by randomly generating an action sequence containing multiple action descriptions; extracting
target action samples that match the action descriptions from a pre-built action sample
library, and constructing an action sample set based on the extracted
target action samples; displaying the
target action samples from the action sample set to the user, and obtaining the action trajectory generated by the user performing the
verification action under the guidance of the target action samples; detecting the action trajectory based on the action sequence, and confirming that the user has passed the security verification when the action trajectory matches the action descriptions in the action sequence. In this way, by guiding the user to perform the verification action through action samples, there is no need to touch the screen, which avoids verification failure due to accidental touches and improves the accuracy and convenience of verification.