Stacking-ensemble-based APT organization identification method and system, and storage medium
Abstract
An APT organization identification method, system and storage medium based on a stacking ensemble are provided, the method comprising: using a TF-IDF algorithm combined with an n-gram to extract and vectorize behavior features from malware samples to form a malicious behavior vector feature set; based on the malicious behavior vector feature set, calculating correlations between features and chi-square values between the features and categories, performing screening twice on the malicious behavior vector feature set to obtain an improved low-dimensional feature subset data; constructing a multi-model fusion stacking ensemble, learning an APT organization identification model, using the APT organization identification model to perform an identification on new ATP attacks. The feature selection of high-dimensional behavior vector features reduces the complexity of the data set; the imbalance of samples in the data set is also considered, and multi-model integrated training to improve the recognition accuracy is adopted; in addition, the APT organization identification model for malicious samples is obtained through machine learning training, which improves the automatic identification efficiency of new sample is improved.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
An APT organization identification method based on a stacking ensemble, comprising the following steps: using a TF-IDF algorithm combined with an n-gram to extract and vectorize behavior features from malware samples to form a malicious behavior vector feature set; based on the malicious behavior vector feature set and an APT organization tag, calculating correlations between features and chi-square values between the features and categories, performing screening twice on the malicious behavior vector feature set to obtain an improved low-dimensional feature subset data; and constructing a multi-model fusion stacking ensemble, learning an APT organization identification model, using the APT organization identification model to perform an organization identification on new APT attacks; wherein calculating of the chi-square values between the features and the categories comprises: for S m, categories in a feature subset S, calculating a chi-square value of each feature in each category,
- Claim 2Depends on #1
The APT organization identification method based on a stacking ensemble according to claim 1, wherein using the TF-IDF algorithm combined with the n-gram to extract and vectorize the behavior features from the malware samples to form a behavior data set comprises: for behavior text features of the malware samples, first generating n-gram texts, then counting a text frequency TF of each text separately, then attaching a weight parameter IDF to each text; TF i, j = n i, j ∑ k n k, j wherein TF i,j: a frequency of a text i in a sample j; n i,j: a number of times the text i appears in the sample j; Σ k n k,j: a total number of text appearing in the sample j; then calculating the weight parameters: IDF i, j = log ❘ "\[LeftBracketingBar]" D ❘ "\[RightBracketingBar]" ❘ "\[LeftBracketingBar]" j: i ∈ d j ❘ "\[RightBracketingBar]" + 1 wherein |D| represents a total number of samples, |j:i ∈ d j | represents a number of samples containing the text i, in order to prevent a denominator from bei
- Claim 3Depends on #1
The APT organization identification method based on a stacking ensemble according to claim 1, wherein feature data extracted by the n-gram combined with a TF-IDF method comprises more feature attributes, first, performing a first primary selection of the malicious behavior vector feature set, calculating correlations between features and features, and filtering out features with information redundancy between features.
- Claim 4Depends on #3
The APT organization identification method based on a stacking ensemble according to claim 3, wherein calculating the correlations between features and features comprises: inputting: a behavior vector dataset F, a number of features F n, and thresholds ε 1, ε 2; randomly selecting a feature X 1, calculating its information entropy H (X 1), if H(X 1) > ε 1 is satisfied, then adding it to a feature set to be selected S, otherwise, continue to select; for i=2, . . . , F n calculating an information entropy of the feature X i, if H(X i) > ε 1 is satisfied, then judging correlations between this feature and all other features X j in S: ρ X i, X j = cov ( X i, X j) σ X i σ X j = E ( ( X i - μ x i) ( X j - μ x j) σ X i σ x j wherein cov(X i, X j) is a covariance between X i and X j, σ x i is a variance of X i, σ x j is a variance of X j, μ x i is a mean of X i, μ x j is a mean of X j, and E is an average value; if | ρ X i,X j | < ε 2, then add the feature X to the feature set to be se
- Claim 5Depends on #4
The APT organization identification method based on a stacking ensemble according to claim 4, wherein in a process of calculating the correlations between features and features, each feature selected in the feature subset S has more information, and maintaining a low correlation between all features, values of ε 1 and ε 2 need to be adjusted according to experimental effects by adjusting parameters, and need to satisfy: ε 1 < 1 n ∑ X i ∈ D H ( X i), ε 2 > 1 n 2 ∑ X i, X j ∈ D ρ ( X i, X j) then, on the obtained feature subset S, further using a chi-square test to evaluate correlations between the features and category labels, and selecting top N features in each category with the chi-square values.
- Claim 6Depends on #1
The APT organization identification method based on a stacking ensemble according to claim 1, wherein constructing the multi-model fusion stacking ensemble, learning the APT organization identification model comprises: based on a new feature subset S ′ after a feature selection and a corresponding labeled APT organization data as an original data set, a stacking ensemble classification model first divides the original data set into several data sets, which are input to each basic learner of a first-layer prediction model, each base learner outputs its own prediction result; wherein the base learner selects a classification algorithm that has a good classification effect on unbalanced data, namely a support vector machine, a random forest, an Adaboost algorithm, then output data of a first layer is used as input data of a second layer, performing a training on a meta-learner of the second layer, and outputting a final prediction result by a model of the second layer, wherein an XGBoost
- Claim 7Depends on #6
The APT organization identification method based on a stacking ensemble according to claim 6, wherein a training method of the stacking ensemble learning comprises: for a data set D={(x n > y n), n=1, . . . , N}, wherein x n is a feature vector of a n-th sample, y n is a predicted value corresponding to the n-th sample, m is a number of features included, that is, each feature vector is (x 1, x 2, . . . , x m); randomly dividing data into K equal-sized subsets D 1, D 2, . . . , D k; wherein D ′ =D − D k, D ′ and D k are a training set and a test set in ak-fold cross-validation respectively, the training set D ′ obtains models M SVM, M RF, M Ada through three basic learners of the first layer; for each sample x n in the test set D k, a basic learning prediction for it is represented as T kn; after completing a cross-validation process, output data of the three basic learners constitute a new data sample D new ={(y n, T k1, . . . , T kn), n=1, . . . , N}; using the data set D new generat
- Claim 8Independent Claim
An APT organization identification system based on a stacking ensemble, comprising a feature extraction module, a feature screening module and an identification module; wherein the feature extraction module is configured to use a TF-IDF algorithm combined with an n-gram to extract and vectorize behavior features from malware samples to form a malicious behavior vector feature set; wherein the feature screening module is configured, based on the malicious behavior vector feature set, to; calculate correlations between features; calculate chi-square values between the features and categories by: for S m categories in a feature subset S, calculating a chi-square value of each feature in each category, and arranging the features in a descending order of the chi-square values; from feature sets of each category, selecting top N feature text and put them into a new feature subset S ′; keeping one of the repeated features in S ′, and deleting the rest; and outputting the new feature subset S
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATION This is the U.S. National Stage of International Patent Application No. PCT/CN2021/101276 filed on Jun. 21, 2021, which claims priority to Chinese Patent Application No. 202010586298.4 filed on Jun. 24, 2020. TECHNICAL FIELD The invention belongs to the technical field of network security, and in particular relates to an APT organization identification method, system and storage medium based on a stacking ensemble. TECHNICAL BACKGROUND Advanced Persistent Threat, APT, is an attack form that uses advanced attack methods to carry out long-term persistent network attacks on specific targets. Different from traditional network attacks, APT attacks have the characteristics of concealment, target, persistence and organization etc. The attack methods are varied. The attack effect is remarkable and difficult to prevent. Cyberattacks carried out by APT organizations usually have political or economic purposes, have a huge impact on countries and enterprises, and pose an increasingly serious threat to various high-level information security systems. Performing organization differentiation of malware samples that implement APT attacks is beneficial to trace real attacking organization entities and to better distinguish and identify specific sources of attack activities. In addition, APT organization identification of malware is a method to detect APT attacks. APT organization identification methods differ between academia and industry. In academia, the main method relies on similarity analysis of malicious code. For example, Qiao, Yanchen et al. proposed an automatic malware homology identification method based on API calls. The method obtains the API set of malicious samples through static analysis, and then uses the Jaccard similarity coefficient to calculate the homology degree of different malware based on the six calling behaviors defined by programming habits, and establishes a threshold through experience to compare with the homolo
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (14)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (9)
- Fu, Yu, et al.
- “
- Detecting APT attacks: a survey from the perspective of big data analysis.
- ”
- Journal on Communications 36.11 (2015): 1-14. English Abstract.
- “
- Effective Network Feature Screening Algorithm for APT Samples
- ”
- , Computer Engineering and Applications, 55 (3), Publication Date: Jan. 31, 2018 (Jan. 31, 2018) English Abstract.