Feature code processing method, device, system, storage medium, and electronic device
By receiving and merging feature codes uploaded by multiple terminals, judging their compliance and adding them to the cloud feature library, it solves the problem of incompleteness and duplication in feature code management and improves the efficiency of feature code extraction and management.
Patent Information
- Application Number
- CN201910943719.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-09-30
AI Technical Summary
In the existing technology, feature code management has the problem of disk loss or damage, resulting in incomplete feature codes and high repetition rate, which cannot effectively solve the problems of information asymmetry and duplication of work.
By receiving feature codes uploaded by multiple terminals, it determines whether they comply with predetermined rules, merges them into a feature integrated code, and adds or merges it into the cloud feature library to ensure the integrity and uniqueness of the feature library.
It realizes the collection of complete and non-duplicated feature databases, improves the extraction efficiency and management efficiency of feature codes, and solves the problems of incomplete feature databases and repeated feature codes.
Smart Images

Figure CN112579828B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security, and in particular to a method and device for processing a feature code, a system, a storage medium, and an electronic device. Background Art
[0002] In related technologies, feature codes can be used to identify and recognize an object, such as a virus, software, etc. Establishing a complete feature library is a prerequisite for network security.
[0003] In the feature code management of related technologies, each feature extractor needs to save the feature codes extracted by themselves, which cannot be restored when the disk is lost or damaged. In addition, due to information asymmetry, each feature extractor may cause duplicate work, with a high feature code duplication rate and inability to obtain complete feature codes.
[0004] With respect to the above-mentioned problems existing in the related technologies, no effective solutions have been found so far. Summary of the invention
[0005] The embodiments of the present invention provide a method and device, a system, a storage medium, and an electronic device for processing a feature code.
[0006] According to an embodiment of the present invention, a method for processing a feature code is provided, comprising: receiving multiple feature codes uploaded by multiple terminals, wherein the multiple feature codes correspond to the same target sample; judging whether the multiple feature codes comply with a predetermined rule, wherein the predetermined rule is used to characterize attribute information of the feature code; and when the multiple feature codes all comply with the predetermined rule, merging the multiple feature codes into a feature integration code.
[0007] Optionally, determining whether the multiple feature codes comply with predetermined rules includes: for each feature code among the multiple feature codes, determining whether the code information of the feature code complies with predetermined conditions, wherein the predetermined conditions are used to characterize the format and amount of information of the feature code; when the code information of the feature code complies with the predetermined conditions, performing automated testing and verification on the feature code; when the automated test passes, determining that the feature code complies with the predetermined rules.
[0008] Optionally, determining whether the code information of the feature code meets predetermined conditions includes: extracting a feature value of the feature code, and identifying a sequence rule of the feature code; determining whether the amount of information of the feature value is greater than a preset value, and determining whether the sequence rule meets a predetermined format; when the amount of information of the feature value is greater than a preset value and the sequence rule meets a predetermined format, determining that the code information of the feature code meets the predetermined conditions; when the amount of information of the feature value is less than or equal to a preset value or the sequence rule does not meet a predetermined format, determining that the code information of the feature code meets the predetermined conditions.
[0009] Optionally, after merging the multiple feature codes into one feature integration code, the method further includes: determining whether the cloud feature library of the target sample has feature content of the feature integration code; when the cloud feature library of the target sample has feature content of the feature integration code, merging repeated feature content of the feature integration code and adding it to the cloud feature library; when the cloud feature library of the target sample does not have feature content of the feature integration code, adding the feature integration code to the cloud feature library.
[0010] Optionally, receiving a plurality of feature codes uploaded by a plurality of terminals comprises at least one of the following: receiving a plurality of static feature codes uploaded by a plurality of terminals; or receiving a plurality of dynamic feature codes uploaded by a plurality of terminals.
[0011] Optionally, merging the multiple feature codes into a feature integration code includes: for each feature code of the multiple feature codes, splitting it into multiple code blocks according to the minimum feature unit, wherein each code block corresponds to a sample feature of the target sample; after deduplicating the same code blocks between at least two of the feature codes, combining the code blocks according to the feature order to obtain a feature integration code.
[0012] According to another embodiment of the present invention, a feature code processing device is provided, including: a receiving module, used to receive multiple feature codes uploaded by multiple terminals, wherein the multiple feature codes correspond to the same target sample; a first judgment module, used to judge whether the multiple feature codes comply with a predetermined rule, wherein the predetermined rule is used to characterize the attribute information of the feature code; and a merging module, used to merge the multiple feature codes into a feature integration code when the multiple feature codes all comply with the predetermined rule.
[0013] Optionally, the judgment module includes: a judgment unit, used to judge whether the code information of each feature code among the multiple feature codes meets predetermined conditions, wherein the predetermined conditions are used to characterize the format and amount of information of the feature code; a verification unit, used to perform automated testing and verification on the feature code when the code information of the feature code meets the predetermined conditions; and a determination unit, used to determine that the feature code meets predetermined rules when the automated test passes.
[0014] Optionally, the judgment unit includes: a processing subunit, used to extract the characteristic value of the characteristic code, and to identify the sequence rule of the characteristic code; a judgment subunit, used to judge whether the amount of information of the characteristic value is greater than a preset value, and whether the sequence rule conforms to a predetermined format; a determination subunit, used to determine that the code information of the characteristic code conforms to a predetermined condition when the amount of information of the characteristic value is greater than a preset value and the sequence rule conforms to a predetermined format; and to determine that the code information of the characteristic code conforms to a predetermined condition when the amount of information of the characteristic value is less than or equal to a preset value or the sequence rule does not conform to a predetermined format.
[0015] Optionally, the device also includes: a second judgment module, used to judge whether the cloud feature library of the target sample has the feature content of the feature integration code after the merging module merges the multiple feature codes into a feature integration code; a storage module, used to merge the repeated feature content of the feature integration code and add it to the cloud feature library when the cloud feature library of the target sample has the feature content of the feature integration code; and to add the feature integration code to the cloud feature library when the cloud feature library of the target sample does not have the feature content of the feature integration code.
[0016] Optionally, the receiving module includes at least one of the following: a first receiving unit, used to receive multiple static feature codes uploaded by multiple terminals; a second receiving unit, used to receive multiple dynamic feature codes uploaded by multiple terminals.
[0017] Optionally, the merging module includes: a splitting unit, used to split each of the multiple feature codes into multiple code blocks according to the minimum feature unit, wherein each code block corresponds to a sample feature of the target sample; and a combining unit, used to deduplicate the same code blocks between at least two of the feature codes, and then combine the code blocks according to the feature order to obtain a feature integrated code.
[0018] According to another embodiment of the present invention, a feature code processing system is provided, including: multiple clients and a server, wherein the client is used to analyze a target sample according to a feature code rule, obtain a feature code of the target sample, and upload the feature code to the server; the server includes the device described in the above embodiment.
[0019] According to yet another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when running.
[0020] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0021] Through the present invention, multiple feature codes uploaded by multiple terminals are received, and then it is determined whether the multiple feature codes meet the predetermined rules. If the multiple feature codes all meet the predetermined rules, the multiple feature codes are merged into a feature integration code. By integrating the multiple feature codes uploaded by multiple terminals, a complete and non-repetitive feature library can be collected, which solves the technical problems of incomplete feature libraries of samples and easy duplication of features in related technologies, and improves the extraction efficiency and management efficiency of feature codes. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0023] Figure 1 It is a hardware structure block diagram of a feature code processing computer according to an embodiment of the present invention;
[0024] Figure 2 is a flow chart of a method for processing a feature code according to an embodiment of the present invention;
[0025] Figure 3 is a schematic diagram of a management feature code according to an embodiment of the present invention;
[0026] Figure 4 is a structural block diagram of a feature code processing device according to an embodiment of the present invention;
[0027] Figure 5 It is a structural block diagram of a feature code processing system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Example 1
[0031] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer or a similar computing device. Taking running on a computer as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a feature code processing computer according to an embodiment of the present invention. Figure 1 As shown, the computer 10 may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the computer may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0032] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a method for processing a feature code in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer 10 via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0033] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0034] In this embodiment, a method for processing a feature code is provided. Figure 2 is a flow chart of a method for processing a feature code according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0035] Step S202, receiving multiple feature codes uploaded by multiple terminals, wherein the multiple feature codes correspond to the same target sample;
[0036] The feature code of this embodiment is feature information for a sample such as a piece of code, a software, or a network virus. It is a static identifier or a dynamic identifier of the sample, which corresponds to the attributes and behaviors of the sample respectively. Different personnel or machines can analyze or run the sample separately on multiple terminals, and obtain a feature code respectively, and summarize them.
[0037] Step S204, determining whether the plurality of feature codes conform to a predetermined rule, wherein the predetermined rule is used to characterize attribute information of the feature code;
[0038] Step S206: When the multiple feature codes all meet the predetermined rule, the multiple feature codes are combined into one feature integration code.
[0039] Optionally, if only part of or none of the multiple feature codes meet the predetermined rule, only the feature code set meeting the predetermined rule may be merged, while the feature codes that do not meet the predetermined rule may be discarded or deleted.
[0040] In one example, the number or ratio of designated feature codes that meet the predetermined rule may be further counted, and when the number or ratio of designated feature codes is greater than a threshold, multiple designated feature codes are combined into one feature integration code.
[0041] Through the above steps, multiple feature codes uploaded by multiple terminals are received, and then it is determined whether the multiple feature codes meet the predetermined rules. If the multiple feature codes all meet the predetermined rules, the multiple feature codes are merged into a feature integration code. By integrating the multiple feature codes uploaded by multiple terminals, a complete and non-repetitive feature library can be collected, which solves the technical problems of incomplete feature libraries of samples and easy duplication of features in related technologies, and improves the extraction efficiency and management efficiency of feature codes.
[0042] The predetermined rules of this embodiment include multiple rules, including format, amount of information carried, size, type, etc. Determining whether multiple feature codes meet the predetermined rules includes:
[0043] S11, for each of the plurality of feature codes, determining whether code information of the feature code meets a predetermined condition, wherein the predetermined condition is used to characterize a format and information volume of the feature code;
[0044] In one implementation of the present embodiment, determining whether the code information of the feature code meets the predetermined conditions includes: extracting the feature value of the feature code, and identifying the sequence rule of the feature code; determining whether the amount of information of the feature value is greater than a preset value, and determining whether the sequence rule meets the predetermined format; when the amount of information of the feature value is greater than the preset value and the sequence rule meets the predetermined format, determining that the code information of the feature code meets the predetermined conditions; when the amount of information of the feature value is less than or equal to the preset value or the sequence rule does not meet the predetermined format, determining that the code information of the feature code meets the predetermined conditions.
[0045] The amount of information in this embodiment is the amount of information of the feature value mapping. Through the preset dictionary library, the mapping table can be parsed to obtain specific available information.
[0046] S12, when the code information of the feature code meets the predetermined condition, performing automated testing and verification on the feature code;
[0047] The automated testing in this embodiment can ensure that the large process is not affected and that the feature code is valid;
[0048] S13, when the automated test passes, determining that the feature code complies with a predetermined rule.
[0049] In this embodiment, the feature code of the sample can be stored in a cloud database to be issued and uniformly managed to multiple clients through the network. After being merged into a feature integration code, it can be further synchronized and saved to the cloud feature library of the sample in the cloud. After merging multiple feature codes into one feature integration code, it also includes:
[0050] S21, determining whether the cloud feature library of the target sample has feature content of the feature integration code;
[0051] S22, when the cloud feature library of the target sample contains feature content of the feature integration code, the repeated feature content of the feature integration code is merged and added to the cloud feature library; when the cloud feature library of the target sample does not contain feature content of the feature integration code, the feature integration code is added to the cloud feature library.
[0052] In an example, sample A has already stored feature 1 and feature 2 in the cloud feature library, and the currently merged feature integration code includes feature 1, feature 3, and feature 4. Feature 1 can be merged with the existing feature 1 in the cloud feature library, and only features 3 and 4 are added to the cloud feature library. The updated features include feature 1, feature 2, feature 3, and feature 4.
[0053] Figure 3 This is a schematic diagram of the management feature code of an embodiment of the present invention, which illustrates terminal A and terminal B connected to the server and database on the network side, wherein the feature code extractor obtains features of the software through his own experience or the terminal automatically collects software features, and submits the feature code to the distributed service on the network side. The service performs rule analysis to verify the feature code. When the verification passes, the feature code is verified through automated testing, and finally merged into a generated feature code and stored in the cloud database storage. Each feature code extractor can obtain the feature code rules from the cloud storage through the distributed service to the local terminal for analysis to obtain the feature code. The merged feature code can also be downloaded from the cloud database.
[0054] Optionally, multiple feature codes uploaded by multiple terminals are received, and each terminal uploads one feature code, which may be but is not limited to:
[0055] Receive multiple static signature codes uploaded by multiple terminals; static signature codes are used to describe the static characteristics of samples. For example, the header of a network virus includes code a1b2c, is started by process d, and is disguised by shell e, etc.
[0056] Receive multiple dynamic signatures uploaded by multiple terminals. Dynamic signatures are used to describe the dynamic characteristics of samples. For example, the execution order of the target software is main function-sub-function 1-sub-function 2-sub-function 3, and the startup order of the process is process 1-sub-process 1-sub-sub-process 1, etc.
[0057] In one implementation of the present embodiment, merging multiple feature codes into a feature integration code includes: for each feature code in the multiple feature codes, splitting it into multiple code blocks according to the minimum feature unit, wherein each code block corresponds to a sample feature of the target sample; after deduplicating the same code blocks between at least two feature codes, combining the code blocks according to the feature order to obtain a feature integration code.
[0058] In one example, the feature codes uploaded by terminal A and terminal B are feature code A and feature code B, respectively, wherein feature code A can be split into code block 1, code block 2, and code block 3, corresponding to feature 1, feature 2, and feature 3, respectively. On the other hand, feature code B can be split into code block 1, code block 3, code block 4, and code block 5, corresponding to feature 1, feature 3, feature 4, and feature 5, respectively. Through deduplication, code block 1 and code block 3 are feature information common to feature code A and feature code B. The feature integration code obtained after combination includes code block 1+code block 2+code block 3+code block 4+code block 5. The feature order of this embodiment can be the position information of the sample information corresponding to the code block in the sample.
[0059] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0060] Example 2
[0061] In this embodiment, a feature code processing device and system are also provided to implement the above-mentioned embodiments and preferred implementation modes, which have been described and will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0062] Figure 4 is a structural block diagram of a feature code processing device according to an embodiment of the present invention, such as Figure 4 As shown, the device includes: a receiving module 40, a first judging module 42, and a merging module 44, wherein:
[0063] A receiving module 40, configured to receive multiple feature codes uploaded by multiple terminals, wherein the multiple feature codes correspond to the same target sample;
[0064] A first judging module 42, configured to judge whether the plurality of feature codes conform to a predetermined rule, wherein the predetermined rule is used to characterize the attribute information of the feature code;
[0065] The merging module 44 is configured to merge the multiple feature codes into one feature integration code when the multiple feature codes all meet a predetermined rule.
[0066] Optionally, the judgment module includes: a judgment unit, used to judge whether the code information of each feature code among the multiple feature codes meets predetermined conditions, wherein the predetermined conditions are used to characterize the format and amount of information of the feature code; a verification unit, used to perform automated testing and verification on the feature code when the code information of the feature code meets the predetermined conditions; and a determination unit, used to determine that the feature code meets predetermined rules when the automated test passes.
[0067] Optionally, the judgment unit includes: a processing subunit, used to extract the characteristic value of the characteristic code, and to identify the sequence rule of the characteristic code; a judgment subunit, used to judge whether the amount of information of the characteristic value is greater than a preset value, and whether the sequence rule conforms to a predetermined format; a determination subunit, used to determine that the code information of the characteristic code conforms to a predetermined condition when the amount of information of the characteristic value is greater than a preset value and the sequence rule conforms to a predetermined format; and to determine that the code information of the characteristic code conforms to a predetermined condition when the amount of information of the characteristic value is less than or equal to a preset value or the sequence rule does not conform to a predetermined format.
[0068] Optionally, the device also includes: a second judgment module, used to judge whether the cloud feature library of the target sample has the feature content of the feature integration code after the merging module merges the multiple feature codes into a feature integration code; a storage module, used to merge the repeated feature content of the feature integration code and add it to the cloud feature library when the cloud feature library of the target sample has the feature content of the feature integration code; and to add the feature integration code to the cloud feature library when the cloud feature library of the target sample does not have the feature content of the feature integration code.
[0069] Optionally, the receiving module includes at least one of the following: a first receiving unit, used to receive multiple static feature codes uploaded by multiple terminals; a second receiving unit, used to receive multiple dynamic feature codes uploaded by multiple terminals.
[0070] Optionally, the merging module includes: a splitting unit, used to split each of the multiple feature codes into multiple code blocks according to the minimum feature unit, wherein each code block corresponds to a sample feature of the target sample; and a combining unit, used to deduplicate the same code blocks between at least two of the feature codes, and then combine the code blocks according to the feature order to obtain a feature integrated code.
[0071] Figure 5 is a structural block diagram of a feature code processing system according to an embodiment of the present invention, such as Figure 5 As shown, the system includes: multiple clients 50 and a server 52, wherein the client is used to analyze the target sample according to the feature code rule, obtain the feature code of the target sample, and upload the feature code to the server; the server includes the device described (such as Figure 4 shown).
[0072] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0073] Example 3
[0074] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0075] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0076] S1, receiving multiple feature codes uploaded by multiple terminals, wherein the multiple feature codes correspond to the same target sample;
[0077] S2, determining whether the plurality of feature codes conform to a predetermined rule, wherein the predetermined rule is used to characterize attribute information of the feature code;
[0078] S3: When the plurality of feature codes all meet a predetermined rule, the plurality of feature codes are combined into a feature integration code.
[0079] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0080] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0081] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0082] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0083] S1, receiving multiple feature codes uploaded by multiple terminals, wherein the multiple feature codes correspond to the same target sample;
[0084] S2, determining whether the plurality of feature codes conform to a predetermined rule, wherein the predetermined rule is used to characterize attribute information of the feature code;
[0085] S3: When the plurality of feature codes all meet a predetermined rule, the plurality of feature codes are combined into a feature integration code.
[0086] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0087] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0088] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0089] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0090] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0091] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0092] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0093] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for processing a feature code, characterized in that: include: Receiving multiple feature codes uploaded by multiple terminals, wherein the multiple feature codes correspond to the same target sample, and the multiple feature codes corresponding to the target sample are distributed in each of the terminals in a distributed manner; Determining whether the plurality of feature codes conform to a predetermined rule, wherein the predetermined rule is used to characterize attribute information of the feature codes; The feature codes that do not conform to the predetermined rules are discarded or deleted from the plurality of feature codes, and the remaining plurality of feature codes that conform to the predetermined rules are combined into one feature integration code; The determining whether the plurality of feature codes conform to a predetermined rule comprises: for each of the plurality of feature codes, determining whether the code information of the feature code conforms to a predetermined condition, wherein the predetermined condition is used to characterize the format and information volume of the feature code; The step of combining the remaining multiple feature codes that all meet the predetermined rules into a feature integration code includes: For each of the multiple feature codes, split it into multiple code blocks according to the minimum feature unit, wherein each code block corresponds to a sample feature of the target sample; After removing duplicate code blocks that are identical between at least two of the feature codes, the code blocks are combined in a feature order to obtain a feature integrated code.
2. The method according to claim 1, characterized in that Determining whether the plurality of feature codes conform to a predetermined rule includes: When the code information of the feature code meets the predetermined condition, performing automated testing and verification on the feature code; When the automated test passes, it is determined that the feature code complies with a predetermined rule.
3. The method according to claim 2, characterized in that Determining whether the code information of the feature code meets the predetermined condition includes: Extracting a characteristic value of the characteristic code and identifying a sequence rule of the characteristic code; Determining whether the information amount of the characteristic value is greater than a preset value, and determining whether the sequence rule conforms to a predetermined format; When the amount of information of the characteristic value is greater than a preset value and the sequence rule conforms to a predetermined format, it is determined that the code information of the characteristic code conforms to a predetermined condition; when the amount of information of the characteristic value is less than or equal to a preset value or the sequence rule does not conform to a predetermined format, it is determined that the code information of the characteristic code conforms to a predetermined condition.
4. The method according to claim 1, characterized in that: After merging the multiple feature codes into one feature integration code, the method further includes: Determine whether the cloud feature library of the target sample contains feature content of the feature integration code; When the cloud feature library of the target sample contains feature content of the feature integration code, repeated feature content of the feature integration code is merged and added to the cloud feature library; when the cloud feature library of the target sample does not contain feature content of the feature integration code, the feature integration code is added to the cloud feature library.
5. The method according to claim 1, characterized in that Receiving multiple feature codes uploaded by multiple terminals includes at least one of the following: Receive multiple static feature codes uploaded by multiple terminals; Receive multiple dynamic feature codes uploaded by multiple terminals.
6. A feature code processing device, characterized in that: include: A receiving module, configured to receive a plurality of feature codes uploaded by a plurality of terminals, wherein the plurality of feature codes correspond to the same target sample, and the plurality of feature codes corresponding to the target sample are distributed in a distributed manner on each of the terminals; A first judgment module is used to judge whether the plurality of feature codes conform to a predetermined rule, wherein the predetermined rule is used to characterize the attribute information of the feature code; the judging whether the plurality of feature codes conform to the predetermined rule comprises: for each of the plurality of feature codes, judging whether the code information of the feature code conforms to a predetermined condition, wherein the predetermined condition is used to characterize the format and information volume of the feature code; A merging module is used to discard or delete the feature codes that do not meet the predetermined rules among the multiple feature codes, and merge the remaining multiple feature codes that all meet the predetermined rules into a feature integration code, wherein the merging of the remaining multiple feature codes that all meet the predetermined rules into a feature integration code includes: for each feature code among the multiple feature codes, splitting it into multiple code blocks according to the minimum feature unit, wherein each code block corresponds to a sample feature of the target sample; after deduplicating the same code blocks between at least two of the feature codes, combining the code blocks according to the feature order to obtain a feature integration code.
7. The device according to claim 6, characterized in that The first judgment module includes: A verification unit, configured to perform automated testing and verification on the feature code when the code information of the feature code meets the predetermined condition; The determination unit is used to determine whether the feature code meets the predetermined rule when the automated test passes.
8. The device according to claim 6, characterized in that The device also includes: A second judgment module is used to judge whether the cloud feature library of the target sample has feature content of the feature integration code after the merging module merges the multiple feature codes into one feature integration code; A storage module is used to merge repeated feature contents of the feature integration code and add them to the cloud feature library when the cloud feature library of the target sample contains feature contents of the feature integration code; and to add the feature integration code to the cloud feature library when the cloud feature library of the target sample does not contain feature contents of the feature integration code.
9. A feature code processing system, characterized in that: include: Multiple clients, servers, where The client is used to analyze the target sample according to the feature code rule, obtain the feature code of the target sample, and upload the feature code to the server; The server comprises the device as described in any one of claims 7 to 8.
10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 5 when executed.
11. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 5.
