The invention discloses a
power grid database security protection method and device, equipment and a medium, and relates to the technical field of
data security access, the method comprises the following steps: identifying a plurality of groups of historical access logs of a
power grid database to obtain a plurality of historical access behaviors, and analyzing and extracting to obtain corresponding access behavior characteristics; performing density-based clustering analysis on all the access behavior characteristics to obtain a plurality of behavior
modes; predicting a risk coefficient of each behavior pattern based on a long short-
term memory network model, and classifying the plurality of behavior patterns into a plurality of risk levels; matching a first behavior mode corresponding to the plurality of behavior
modes according to the current access behavior, determining a protection strategy according to a first
risk level determined by the first behavior mode in combination with the behavior intention of the current access behavior, and performing security protection; wherein the behavior intention is obtained based on analysis of the current access behavior. According to the method, the access behavior can be accurately identified, so that the
power grid database is reasonably and safely protected.