The invention discloses a
password misuse detection method and device supporting automatic rule derivation and cross-
library analysis, a medium and a product, and relates to the field of
information security, and the method comprises the steps: obtaining a use rule of a basic
password library, and carrying out the formalized expression of the use rule, and obtaining a
password rule constraint
library; function constraints are mapped to a function name matching detection method; a detection method for mapping parameter constraints and
member variable constraints to
data flow analysis; obtaining a complete to-be-detected item
source code and a go.mod file; the intermediate representation is converted into an intermediate representation in a static
single assignment form; judging whether the position of the calling function is in a
blacklist or not, and if yes, giving an alarm; aiming at the parameter constraint, obtaining a first
slicing criterion and a corresponding runtime value; acquiring a second
slicing criterion and a corresponding runtime value according to the
member variable constraint; predicate judgment is carried out, and if judgment conditions are not met, an alarm is given; and obtaining a
data flow analysis result and carrying out constraint derivation. According to the invention, high-precision
cryptography misuse detection can be realized.