Web service mimicry multi-dimensional fuzzy decision method and system
Through the multi-dimensional fuzzy decision method, large number decision mechanism and Levenshtein distance algorithm are used to solve the problems of heavy normalization workload and high delay requirements of web applications in mimicry defense technology, achieving efficient and low-intrusion security defense, and improving Reliability and security of the verdict.
Patent Information
- Application Number
- CN202411038785.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-31
AI Technical Summary
Existing web applications face problems such as heavy normalization workload, low efficiency, and high latency requirements when adapting to mimicry defense technology, and the single-dimensional ruling algorithm fails to meet the requirements of engineering practice in terms of decision accuracy and latency.
The multi-dimensional fuzzy decision method is used to extract the trusted historical characteristics of heterogeneous execution bodies in an offline trusted environment, and the large number decision mechanism and Levenshtein distance algorithm are used in the production environment to make decisions on the online response characteristics of heterogeneous execution bodies. Reduce normalization workload and improve decision efficiency.
While meeting strict latency requirements, it reduces the complexity and workload of adapting web applications to the mimicry DHR architecture, improves security and reliability of judgment, reduces the misjudgment rate, and has the characteristics of low-intrusion mimicry defense.
Smart Images

Figure CN118590478B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mimicry defense technology, and in particular to a web service mimicry multi-dimensional fuzzy judgment method and system. Background Art
[0002] With the development of information technologies such as artificial intelligence, big data, and 5G, the threats to network security are increasing. As the infrastructure of websites and online services, web services carry a large number of business scenarios and have been widely used in various fields such as government and enterprises. At the same time, web services are also facing more and more known or unknown threats such as viruses, Trojans, and pre-installed backdoors. As a new type of defense technology in the category of intrinsic security theory, mimicry defense technology uses the dynamic heterogeneous redundancy (DHR) architecture to solve the known threats caused by random failures in cyberspace and unknown threats caused by unknown vulnerabilities in software and hardware without relying on any prior attack knowledge.
[0003] Currently, web applications are becoming more and more powerful and their implementation is becoming more and more complex. Their responses contain a large amount of random or constantly changing data such as tokens, sessions, and timestamps. When adapting to mimic defense technology, web applications also need to be heterogeneous, and heterogeneity will also introduce differences in encoding formats. When mimic defense systems identify threats to heterogeneous web applications, they use strict single-dimensional decision algorithms. This requires web applications to ensure that all responses are strictly normalized when adapting to the mimic architecture. There are problems such as large adaptation workload and long time consumption, and the marginal rate of return on security gain is low. There are also implementations based on deep learning single-dimensional decision algorithms. Although they reduce part of the application adaptation workload, they have not yet achieved satisfactory results in terms of decision accuracy and algorithm latency, which meet the requirements of engineering practice. Summary of the invention
[0004] To this end, the present invention provides a web service mimetic multi-dimensional fuzzy decision method and system to solve the problems faced by existing web applications when adapting to the DHR architecture, such as large normalization workload, low efficiency and high latency requirements. By filtering abnormal web applications in inherent tolerable differences through multi-dimensional fuzzy decision, the workload of web applications adapting to the mimetic DHR architecture is reduced.
[0005] According to the design scheme provided by the present invention, on the one hand, a web service mimicry multi-dimensional fuzzy decision method is provided, comprising:
[0006] Extracting trusted historical features of each heterogeneous executor based on an offline trusted environment, and storing the trusted historical features of each heterogeneous executor using a trusted feature library, wherein the trusted historical features include response data of the heterogeneous executor to each service request and a variable threshold of the response data of the heterogeneous executor to the same service request, wherein the heterogeneous executor is a heterogeneous web application in a target network;
[0007] In the production environment, the online response features of multiple heterogeneous executors for the same service request are extracted, and the majority judgment mechanism is used to perform majority judgment on the online response features of the multiple heterogeneous executors. When the majority judgment fails, a trusted judgment is performed on the online response features of the heterogeneous executors that failed the majority judgment based on the trusted historical features, and the abnormal executors that failed the trusted judgment are filtered out. The online response features of the heterogeneous executors that passed the majority judgment and the trusted judgment are forwarded to the corresponding users of the service requests.
[0008] As the web service mimetic multi-dimensional fuzzy judgment method of the present invention, further, based on the offline trusted environment, the trusted historical features of each heterogeneous executable body are extracted, including:
[0009] In an offline trusted environment, all URL resources on each heterogeneous executable are traversed separately, and the response package of the heterogeneous executable is extracted and stored;
[0010] For the same URL resource, the difference algorithm is used to calculate the difference between the response packets of the two service requests of the heterogeneous execution body, and the variable threshold of the response packet of the heterogeneous execution body is set according to the difference;
[0011] The response package bodies and variable thresholds of each heterogeneous executable body are stored in the trusted feature library in the form of a list.
[0012] As the web service mimetic multi-dimensional fuzzy judgment method of the present invention, further, based on the offline trusted environment, the trusted historical features of each heterogeneous executable body are extracted, and it also includes:
[0013] Establish unique numbers for all dynamic heterogeneous executors, so as to forward service requests to each heterogeneous executor in a one-to-one manner in an offline trusted environment according to the numbers;
[0014] The hash value of the URL resource is used as the primary index, and the heterogeneous executable body number is used as the secondary index. The response package of each heterogeneous executable body is stored in the trusted feature library in the form of a list.
[0015] As the web service mimetic multi-dimensional fuzzy decision method of the present invention, further, a large number decision mechanism is used to perform a large number decision on the online response characteristics of the multiple heterogeneous executors, including:
[0016] A majority judgment is performed on online response feature data of multiple heterogeneous executors for the same URL resource, wherein the online response feature includes a response status code, a response data length, and a response data encoding format, wherein the number of the multiple heterogeneous executors is an odd number.
[0017] As the web service mimetic multi-dimensional fuzzy judgment method of the present invention, further, based on the credible historical features, a credible judgment is made on the online response features of the heterogeneous executors that have failed a large number of judgments, including:
[0018] The trusted historical features of the heterogeneous executors that have failed most of the judgments are obtained, and the difference between the online response features of the heterogeneous executors and the trusted historical feature response package is obtained using the Levenshtein distance algorithm. If the difference is greater than the variable threshold, the heterogeneous executor is determined to be an abnormal executor and an abnormal alarm message is triggered. Otherwise, the heterogeneous executor is determined to have passed the trusted judgment.
[0019] As the web service mimetic multi-dimensional fuzzy judgment method of the present invention, further, based on the credible historical features, the online response features of the heterogeneous executors with a large number of judgment failures are used for credible judgment, and further include:
[0020] For heterogeneous executors with a large number of judgment failures, first determine whether the trusted historical features of the heterogeneous executor are stored in the trusted feature library. If so, make a trusted judgment on its online response features based on the trusted historical features of the heterogeneous executor. If not, feedback is given that the trusted historical feature information is missing.
[0021] As the web service mimetic multi-dimensional fuzzy judgment method of the present invention, further, filtering out abnormal execution bodies that fail to pass the trusted judgment includes:
[0022] Clean or rotate abnormal execution bodies according to dynamic scheduling strategies.
[0023] On the other hand, the present invention also provides a web service mimicry multi-dimensional fuzzy decision system, comprising: a service request receiving module for receiving user requests and a web service mimicry proxy module for performing mimicry responses to user requests, wherein the working environment mode of the web service mimicry proxy module is a switchable mode, and the switchable mode is switched between an offline trusted environment mode and an online production environment mode according to the requirements of the mimicry defense task;
[0024] In the offline trusted environment mode, the trusted history features of each heterogeneous executor are extracted in the offline trusted environment, and the trusted history features of each heterogeneous executor are stored using a trusted feature library. The trusted history features include the response data of the heterogeneous executor to each service request and the variable threshold of the response data of the heterogeneous executor to the same service request. The heterogeneous executor is a heterogeneous web application in the target network.
[0025] In the online production environment mode, the online response features of multiple heterogeneous executors for the same service request are extracted in the production environment, and the majority judgment mechanism is used to perform a majority judgment on the online response features of the multiple heterogeneous executors. When the majority judgment fails, a trusted judgment is performed on the online response features of the heterogeneous executors that failed the majority judgment based on the trusted historical features, and the abnormal executors that failed the trusted judgment are cleaned or rotated, and the online response features of the heterogeneous executors that passed the majority judgment and trusted judgment are forwarded to the corresponding user of the service request.
[0026] Beneficial effects of the present invention:
[0027] The present invention integrates the characteristics of web applications and DHR architecture to realize mimetic multi-dimensional fuzzy judgment, sets the priority of large horizontal judgments in multi-dimensional fuzzy judgments to the highest level, so as to maximize the reliability of judgments. If the judgment is passed, the response is forwarded immediately to reduce the delay; the trusted vertical judgment is set to a low level to solve the problem that the horizontal judgment cannot be accurately identified when there are large tolerable differences such as encoding formats in the same resource responses between heterogeneous executors. At this time, using trusted historical features as the basis for judgment can reduce a part of the application normalization workload and reduce the false positive rate; in addition, the Levenshtein distance algorithm and variable threshold are introduced in the judgment, that is, the difference in time and space of the package is calculated using historical data, and the variable threshold is superimposed as the basis for judgment, so as to further shield the judgment failure problem caused by tolerable differences such as timestamps and viewing times, so as to maximize the security of web applications, effectively shield the tolerable differences, reduce the normalization workload in the implementation of the DHR architecture, and meet strict delay requirements, so as to realize low-intrusion mimetic defense, and reduce the complexity and workload of application adaptation to the DHR architecture while meeting certain security requirements, and has good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a schematic diagram of the web service mimicry multi-dimensional fuzzy decision process in the embodiment;
[0029] Figure 2 This is a schematic diagram of the offline trusted mode workflow in the embodiment;
[0030] Figure 3 This is a schematic diagram of the online production mode workflow in the embodiment;
[0031] Figure 4 Schematic diagram of the low-intrusion mimicry defense system architecture in the embodiment. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solutions and advantages of the present invention clearer and more understandable, the present invention is further described in detail below in conjunction with the accompanying drawings and technical solutions.
[0033] Although the intrinsic functions of the isomerized applications are the same, some credible differences will inevitably be introduced. Figure 1 As shown, a web service mimicry multi-dimensional fuzzy judgment method is provided, comprising:
[0034] S101. Based on an offline trusted environment, trusted historical features of each heterogeneous executor are extracted, and the trusted historical features of each heterogeneous executor are stored using a trusted feature library, wherein the trusted historical features include response data of the heterogeneous executor to each service request and a variable threshold of the response data of the heterogeneous executor to the same service request, and the heterogeneous executor is a heterogeneous web application in a target network.
[0035] Specifically, in an offline trusted environment, all URL resources on each heterogeneous executor can be traversed separately, and the response package of the heterogeneous executor can be extracted and stored; for the same URL resource, the difference algorithm is used to calculate the difference between the response packages of the two service requests of the heterogeneous executor, and the variable threshold of the response package of the heterogeneous executor is set according to the difference; the response package and variable threshold of each heterogeneous executor are stored in the trusted feature library in the form of a list.
[0036] Unique numbers can be established for all dynamic heterogeneous executors, so that service requests can be forwarded to each heterogeneous executor in a one-to-one manner in an offline trusted environment based on the numbers; the hash value of the URL resource is used as the primary index, and the heterogeneous executor number is used as the secondary index, and the response package of each heterogeneous executor is stored in the trusted feature library in a list form.
[0037] Among them, Figure 2 As shown in the figure, the steps for building a trusted feature library can be summarized as follows:
[0038] S11: Establish unique numbers E1, E2, E3…En for all heterogeneous execution bodies in the DHR architecture;
[0039] S12: forwarding the user request to each heterogeneous executor in a one-to-one manner;
[0040] S13: extract and store the data of each heterogeneous executable package in the DHR architecture respectively;
[0041] S14: Execute S12 again to traverse the URL resource, extract the response package data of the resource, and calculate the difference between the response package data extracted from two consecutive user requests for the same resource on the heterogeneous execution body based on the Levenshtein distance algorithm, and select the largest difference as the threshold a. x ;
[0042] S15: Use the hash value of the URL as the primary index key, with the execution body number E x Store all resource response data and variable threshold a for the secondary index key x .
[0043] S102. Extract online response features of multiple heterogeneous executors for the same service request in the production environment, and use the majority judgment mechanism to perform majority judgment on the online response features of the multiple heterogeneous executors. When the majority judgment fails, perform a trusted judgment on the online response features of the heterogeneous executors that failed the majority judgment based on the trusted historical features, filter out abnormal executors that fail the trusted judgment, and forward the online response features of the heterogeneous executors that pass the majority judgment and the trusted judgment to the user corresponding to the service request.
[0044] Specifically, a large number judgment mechanism is used to perform a large number judgment on the online response characteristics of the multiple heterogeneous executors, which can be designed to include:
[0045] A majority judgment is performed on online response feature data of multiple heterogeneous executors for the same URL resource, wherein the online response feature includes a response status code, a response data length, and a response data encoding format, wherein the number of the multiple heterogeneous executors is an odd number.
[0046] For heterogeneous executors that fail to make a large number of judgments, we can first determine whether the trusted historical features of the heterogeneous executor are stored in the trusted feature library. If so, a trusted judgment is made on its online response features based on the trusted historical features of the heterogeneous executor. If not, a prompt indicating that the trusted historical feature information is missing is fed back.
[0047] For heterogeneous executors that fail a large number of judgments, the Levenshtein distance algorithm can be used to obtain the difference between the online response characteristics of the heterogeneous executor and the trusted historical characteristic response package. If the difference is greater than the variable threshold, the heterogeneous executor is judged to be an abnormal executor and an abnormal alarm information is triggered. The abnormal executor can be cleaned or rotated according to the dynamic scheduling strategy. Otherwise, the heterogeneous executor is judged to have passed the trusted judgment.
[0048] Further, based on the above method, an embodiment of the present invention also provides a web service mimicry multi-dimensional fuzzy decision system, comprising: a service request receiving module for receiving user requests and a web service mimicry proxy module for performing mimicry responses to user requests, wherein the working environment mode of the web service mimicry proxy module is a switchable mode, and the switchable mode is switched between an offline trusted environment and an online production environment mode according to the requirements of the mimicry defense task;
[0049] In the offline trusted environment mode, the trusted history features of each heterogeneous executor are extracted in the offline trusted environment, and the trusted history features of each heterogeneous executor are stored using a trusted feature library. The trusted history features include the response data of the heterogeneous executor to each service request and the variable threshold of the response data of the heterogeneous executor to the same service request. The heterogeneous executor is a heterogeneous web application in the target network.
[0050] In the online production environment mode, the online response features of multiple heterogeneous executors for the same service request are extracted in the production environment, and the majority judgment mechanism is used to perform a majority judgment on the online response features of the multiple heterogeneous executors. When the majority judgment fails, a trusted judgment is performed on the online response features of the heterogeneous executors that failed the majority judgment based on the trusted historical features, and the abnormal executors that failed the trusted judgment are cleaned or rotated, and the online response features of the heterogeneous executors that passed the majority judgment and the trusted judgment are forwarded to the corresponding user of the service request.
[0051] Among them, the majority judgment is set as a horizontal judgment and is given priority, such as Figure 3 As shown, the response status code, length, and encoding format of the same URL resource response of multiple online heterogeneous execution bodies are judged by the majority. If passed, the response is directly forwarded to the user without further judgment. When the horizontal judgment fails, the online response characteristics are judged vertically.
[0052] The judgment mode is set to vertical judgment. The historical features of the resource are searched from the feature library. The difference between the historical package data and the current response package data is compared using the Levenshtein distance algorithm. If the difference is less than the corresponding threshold, the vertical judgment is considered successful and the response is forwarded to the user without further judgment. If the difference is greater than the threshold, the judgment fails.
[0053] Before making a vertical judgment, determine whether there is a trusted historical feature of the URL resource in the trusted feature library, that is, hash the request URL to generate a first-level index, and search whether the URL resource is in the feature library. If not, discard the package resource, and organize and package the resource missing information, then report it to the management backend through the API interface, and issue a feature missing alarm so that historical feature extraction and storage can be carried out again to realize the dynamic establishment function of the trusted feature of the resource. If it exists, use the features of the URL resource in the trusted historical feature library and the online response features for differential judgment.
[0054] Feedback on the missing of trusted historical features is mainly used to indicate that resource feature omissions may occur in the offline mode of the system, or new resource problems may be caused by attack operations. Discarding the package body is used to deal with security risks of new resources in the case of non-omission problems.
[0055] When executing feature missing feedback, the resource missing information is organized and packaged and then reported to the management backend through the API interface. When the backend receives a historical feature missing warning, it will remind the user whether to record the historical features. If necessary, the features are extracted and stored according to the above offline mode method to realize the dynamic establishment of resource trusted features.
[0056] Establishing horizontal and vertical judgment mechanisms, even if heterogeneous resources produce tolerable differences similar to encoding formats, it is still possible to use trusted historical features to superimpose variable thresholds to carry out vertical judgments, thereby reducing the normalization workload of applications after heterogeneity. Its implementation is mainly through the configuration mode switching module's working mode, first entering the offline mode, extracting the trusted historical features of all resources, and then switching to the production mode, extracting the online response features of the resources, and using the online response features and trusted historical features of the resources to make multi-dimensional judgments, and output the judgment results.
[0057] Through multi-dimensional fuzzy horizontal and vertical judgments, the normalization workload brought by the single-dimensional and overly strict judgment method in the existing technology can be avoided, and the goal of detecting suspected attack actions of the execution body can be achieved.
[0058] Furthermore, the low-intrusion mimicry defense system implemented based on the above method can be Figure 4 As shown, it includes a mode selection module, a request forwarding module, an index calculation module, a trusted historical feature extraction module, a trusted historical feature storage module, a multi-dimensional module judgment module, a feature missing feedback reporting module, a judgment failure reporting warning module, etc., among which:
[0059] The mode switching module sets the mimic agent to offline mode or production mode according to the user's configuration. The module is configured to offline mode by default.
[0060] The request forwarding module determines how the user's request is forwarded to the backend executor according to the mimic proxy mode. If the current mode is offline, the forwarding module is set to forward in a one-to-one manner. If the current mode is production, the forwarding module is set to forward in a one-to-three manner.
[0061] Index calculation module, in offline mode, hashes the request URL to generate the first-level index key, and uses the execution body number as the second-level index E x , a secondary index is calculated comprehensively.
[0062] The variable threshold extraction module, based on the response package data of the executable resource twice in offline mode, uses the difference algorithm Levenshtein to calculate the difference of the package data, selects the maximum value of each resource as the threshold, and organizes the above data into {"key":{"E x”:{“field”:”value”,...}} format.
[0063] The trusted historical feature storage module uses the value calculated by the aforementioned index calculation module as the index in offline mode, and the response data and variable threshold extracted by the aforementioned executable feature extraction module as the value to establish a trusted historical feature database.
[0064] The multi-dimensional fuzzy judgment module first makes a horizontal judgment, that is, judges the response characteristics between the executors. If the judgment is successful, the response is directly forwarded without further judgment. If the horizontal judgment fails, a vertical judgment is made. First, the hash value of the request URL is used as the key to index the historical data and variable threshold in the feature library. The difference judgment is made again using the historical package data and the current response data of the executor. When the difference between the two is greater than the variable threshold, it indicates that the judgment has failed and the response is discarded. Otherwise, if the judgment is successful, the response is forwarded.
[0065] The response forwarding module is responsible for forwarding the response after extracting and storing the response features and package data in offline mode. In production mode, after the multi-dimensional fuzzy decision module makes a successful decision, this module selects a successful response at random for forwarding.
[0066] The application field of the method provided by the present invention is obviously not limited to mimetic web applications, and the implementation form of the present invention is also not limited to the software level. The core idea of the present invention can also be implemented in combination with hardware devices. Although only one fuzzy decision algorithm is mentioned above, any modification of other fuzzy decision algorithms based on the core idea of the present invention falls within the protection scope of the present invention.
[0067] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
[0068] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0069] The units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation is not considered to be beyond the scope of the present invention.
[0070] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits, and accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of software function modules. The present invention is not limited to any specific form of combination of hardware and software.
[0071] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A web service mimicry multi-dimensional fuzzy decision method, characterized in that: Include: Extracting trusted historical features of each heterogeneous executor based on an offline trusted environment, and storing the trusted historical features of each heterogeneous executor using a trusted feature library, wherein the trusted historical features include response data of the heterogeneous executor to each service request and a variable threshold of the response data of the heterogeneous executor to the same service request, wherein the heterogeneous executor is a heterogeneous web application in a target network; Extract online response features of multiple heterogeneous executors for the same service request in the production environment, and use the majority judgment mechanism to make a majority judgment on the online response features of the multiple heterogeneous executors. When the majority judgment fails, make a trusted judgment on the online response features of the heterogeneous executors that failed the majority judgment based on the trusted historical features, filter out abnormal executors that failed the trusted judgment, and forward the online response features of the heterogeneous executors that passed the majority judgment and the trusted judgment to the corresponding user of the service request; The large number judgment mechanism is used to perform large number judgment on the online response characteristics of the multiple heterogeneous executors, including: Performing a majority judgment on online response characteristics of multiple heterogeneous executables for the same URL resource, wherein the online response characteristics include a response status code, a response data length, and a response data encoding format, wherein the number of the multiple heterogeneous executables is an odd number; Based on the trusted historical features, the online response features of heterogeneous executors with a large number of failed judgments are used to make trusted judgments, including: The trusted historical features of the heterogeneous executors that have failed most of the judgments are obtained, and the difference between the online response features of the heterogeneous executors and the trusted historical feature response package is obtained using the Levenshtein distance algorithm. If the difference is greater than the variable threshold, the heterogeneous executor is determined to be an abnormal executor and an abnormal alarm message is triggered. Otherwise, the heterogeneous executor is determined to have passed the trusted judgment.
2. The web service mimicry multi-dimensional fuzzy decision method according to claim 1, characterized in that: Based on the offline trusted environment, the trusted history features of each heterogeneous executable are extracted, including: In an offline trusted environment, all URL resources on each heterogeneous executable are traversed separately, and the response package of the heterogeneous executable is extracted and stored; For the same URL resource, the difference algorithm is used to calculate the difference between the response packets of the two service requests of the heterogeneous execution body, and the variable threshold of the response packet of the heterogeneous execution body is set according to the difference; The response package bodies and variable thresholds of each heterogeneous executable body are stored in the trusted feature library in the form of a list.
3. The web service mimicry multi-dimensional fuzzy decision method according to claim 1 or 2, characterized in that: Extracting trusted historical features of heterogeneous executables based on an offline trusted environment also includes: Establish unique numbers for all dynamic heterogeneous executors, so as to forward service requests to each heterogeneous executor in a one-to-one manner in an offline trusted environment according to the numbers; The hash value of the URL resource is used as the primary index, and the heterogeneous executable body number is used as the secondary index. The response package of each heterogeneous executable body is stored in the trusted feature library in the form of a list.
4. The web service mimicry multi-dimensional fuzzy decision method according to claim 1, characterized in that: Based on the trusted historical features, the online response features of heterogeneous executors with a large number of failed judgments are used to make trusted judgments, which also includes: For heterogeneous executors with a large number of judgment failures, first determine whether the trusted historical features of the heterogeneous executor are stored in the trusted feature library. If so, make a trusted judgment on its online response features based on the trusted historical features of the heterogeneous executor. If not, feedback is given that the trusted historical feature information is missing.
5. The web service mimicry multi-dimensional fuzzy decision method according to claim 1, characterized in that: Filter out abnormal execution bodies that fail to pass the trusted judgment, including: Clean or rotate abnormal execution bodies according to dynamic scheduling strategies.
6. A web service mimicry multi-dimensional fuzzy decision system, characterized in that: It comprises: a service request receiving module for receiving user requests and a web service mimic proxy module for performing mimic responses to user requests, wherein the working environment mode of the web service mimic proxy module is a switchable mode, and the switchable mode is switched between an offline trusted environment mode and an online production environment mode according to the requirements of the mimic defense task; In the offline trusted environment mode, the trusted history features of each heterogeneous executor are extracted in the offline trusted environment, and the trusted history features of each heterogeneous executor are stored using a trusted feature library. The trusted history features include the response data of the heterogeneous executor to each service request and the variable threshold of the response data of the heterogeneous executor to the same service request. The heterogeneous executor is a heterogeneous web application in the target network. In the online production environment mode, the online response features of multiple heterogeneous executors for the same service request are extracted in the production environment, and the majority judgment mechanism is used to perform a majority judgment on the online response features of the multiple heterogeneous executors. When the majority judgment fails, a trusted judgment is performed on the online response features of the heterogeneous executors that failed the majority judgment based on the trusted historical features, and the abnormal executors that failed the trusted judgment are cleaned or rotated, and the online response features of the heterogeneous executors that passed the majority judgment and the trusted judgment are forwarded to the corresponding user of the service request; The large number judgment mechanism is used to perform large number judgment on the online response characteristics of the multiple heterogeneous executors, including: Performing a majority judgment on online response characteristics of multiple heterogeneous executables for the same URL resource, wherein the online response characteristics include a response status code, a response data length, and a response data encoding format, wherein the number of the multiple heterogeneous executables is an odd number; Based on the trusted historical features, the online response features of heterogeneous executors with a large number of failed judgments are used to make trusted judgments, including: The trusted historical features of the heterogeneous executors that have failed most of the judgments are obtained, and the difference between the online response features of the heterogeneous executors and the trusted historical feature response package is obtained using the Levenshtein distance algorithm. If the difference is greater than the variable threshold, the heterogeneous executor is determined to be an abnormal executor and an abnormal alarm message is triggered. Otherwise, the heterogeneous executor is determined to have passed the trusted judgment.
7. An electronic device, characterized in that: include: at least one processor, and a memory coupled to the at least one processor; The memory stores a computer program, and the computer program can be executed by the at least one processor to implement the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 5 can be implemented.
Citation Information
Patent Citations
Cooperative spectrum sensing method based on likelihood ratio in cognitive radio
CN101521896A
A method and apparatus for efficient scheduling of microservice-based mimicry web execution entities
CN114936083A
