Patent ID: 11880471
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 17:
18. A non-transitory computer-readable storage medium, storing a computer program that is executed by a processor, and upon execution by the processor, is configured to cause the processor to implement operations comprising:
Step 1, collecting data and collecting function code blocks in which password hard-coding false alarm data is located;
Step 2, extracting feature values in the function code blocks collected in Step 1 to obtain a feature set;
Step 3, constructing a Principal Component Analysis (PCA) model by utilizing the function code blocks collected in Step 1 as samples; and
Step 4, detecting whether a false alarm for password hard-coding exists based on the PCA model constructed in Step 3 and the feature set obtained in Step 2;
wherein Step 3 comprises:
Step 3.1. under a condition that the function code blocks collected in Step 1 are samples, a quantity of which is n, and n is an integer greater than 0; and each sample comprises m types of attributes, and m is an integer greater than 0, extracting a group of feature sets F from each sample to obtain F=(F1, F2 . . . Fm), wherein Fm represents an mth attribute of the sample;
Step 3.2, calculating a covariance matrix C;
Step 3.3, acquiring feature values of the covariance matrix C and corresponding feature vectors by adopting singular value decomposition; and
Step 3.4. arranging the feature vectors into a matrix U from top to bottom according to a size of the corresponding feature values by rows.