Request response method and device, electronic device and computer readable storage medium

By encrypting the sensitive fields in the request and matching the encrypted records in the database, the problem of low security of intelligence data stored in the plain text mechanism is solved and high-security distribution of intelligence data is achieved.

CN111783140BActive Publication Date: 2024-08-23QI AN XIN TECHNOLOGY GROUP INC +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010629179.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-02
Publication Date
2024-08-23
Estimated Expiration
2040-07-02

AI Technical Summary

Technical Problem

The security of storing intelligence data based on a clear text mechanism is low and can easily be obtained by others.

Method used

By encrypting the sensitive fields in the request, the encrypted sensitive fields are obtained, and the encrypted records are matched in the database, and target intelligence data is sent to the requester only if there is a match.

Benefits of technology

It improves the security of intelligence data, reduces the matching based on plaintext mechanism, controls the number of requesters of intelligence data, and enhances the security of data distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111783140B
    Figure CN111783140B
Patent Text Reader

Abstract

The present disclosure provides a request response method, including: obtaining a request for obtaining target intelligence data, wherein the request includes a sensitive field; encrypting the sensitive field in the request to obtain the encrypted sensitive field; determining whether there is a target record matching the encrypted sensitive field in the database, wherein the database includes multiple encrypted records, each record including multiple fields; and sending the target intelligence data to the requesting party according to the target record when it is determined that the target record exists in the database. The present disclosure also provides a request response device, an electronic device, and a computer-readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more specifically, to a request response method, a request response device, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the rapid development of artificial intelligence, automatic control, communication and computer technology, the protection of network system hardware, software and data in the system is becoming more and more important. Accidental or intentional attacks may cause network systems to be damaged, altered, leaked, or system interrupted, causing great losses to individuals, enterprises, governments, etc. Therefore, users are increasingly expecting to obtain more intelligence data about threat sources so that they can respond to attacks from threat sources in a timely manner.

[0003] In the related art, traditional intelligence distribution methods usually use plain text mechanisms to store intelligence data.

[0004] In the process of realizing the concept of the present disclosure, the inventors discovered that there are at least the following technical problems in the related art: the security of storing intelligence data based on the plaintext mechanism is low, and it is easy for others to obtain the intelligence data. Summary of the invention

[0005] In view of this, the present disclosure provides a request response method, a request response device, an electronic device and a computer-readable storage medium.

[0006] One aspect of the present disclosure provides a request response method, including: obtaining a request for requesting target intelligence data, wherein the request includes sensitive fields; encrypting the sensitive fields in the request to obtain the encrypted sensitive fields; determining whether there is a target record matching the encrypted sensitive fields in a database, wherein the database includes multiple encrypted records, each record including multiple fields; and in the case of determining that the target record exists in the database, sending the target intelligence data to the requesting party according to the target record.

[0007] According to an embodiment of the present disclosure, in the case where it is determined that the above-mentioned target record exists in the above-mentioned database, sending the above-mentioned target intelligence data to the requesting party according to the above-mentioned target record includes: determining the target field corresponding to the above-mentioned target intelligence data in the above-mentioned target record; decrypting the above-mentioned target field into plain text data; and sending the above-mentioned plain text data to the above-mentioned requesting party; or determining the target field corresponding to the above-mentioned target intelligence data in the above-mentioned target record; sending the above-mentioned target field to the above-mentioned requesting party, so that the above-mentioned requesting party decrypts the above-mentioned target field based on the decryption method matching the above-mentioned target field.

[0008] According to an embodiment of the present disclosure, the sensitive fields in the above request are encrypted to obtain the encrypted sensitive fields, including: splitting the above sensitive fields into multiple byte blocks; and encrypting each of the above byte blocks separately to obtain multiple encrypted byte blocks.

[0009] According to an embodiment of the present disclosure, the above-mentioned sensitive field includes a domain name that meets the byte length condition.

[0010] According to an embodiment of the present disclosure, the above method also includes: converting each record in the above database into a byte stream; and converting the byte stream corresponding to each record into a string using an encryption encoding method to obtain an encrypted record.

[0011] According to an embodiment of the present disclosure, the above-mentioned request also includes non-sensitive fields, and the above-mentioned determination whether there is a target record in the database that matches the above-mentioned sensitive field after encryption processing includes: determining whether there is a target record in the above-mentioned database that matches the above-mentioned sensitive field after encryption processing and the above-mentioned non-sensitive field.

[0012] According to an embodiment of the present disclosure, the above-mentioned encryption processing of the sensitive fields in the above-mentioned request to obtain the encrypted sensitive fields includes: determining the encryption method of the records stored in the above-mentioned database; and encrypting the sensitive fields in the above-mentioned request according to the determined encryption method; wherein the above-mentioned sensitive fields include: domain name field and / or path field.

[0013] Another aspect of the present disclosure provides a request response device, including: an acquisition module, an encryption module, a determination module and a sending module.

[0014] The acquisition module is used to obtain a request for requesting to obtain target intelligence data, wherein the request includes sensitive fields.

[0015] The encryption module is used to encrypt the sensitive fields in the above request to obtain the encrypted sensitive fields.

[0016] The determination module is used to determine whether there is a target record in the database that matches the above-mentioned encrypted sensitive field, wherein the above-mentioned database includes multiple encrypted records, and each record includes multiple fields.

[0017] The sending module is used to send the target intelligence data to the requesting party according to the target record when it is determined that the target record exists in the database.

[0018] According to an embodiment of the present disclosure, the sending module includes: a determining unit, a decrypting unit and a sending unit.

[0019] The determination unit is used to determine a target field in a target record that corresponds to the target intelligence data.

[0020] The decryption unit is used to decrypt the target field into plain text data.

[0021] The sending unit is used to send plaintext data to the requesting party, or to send the target field to the requesting party so that the requesting party decrypts the target field based on a decryption method matching the target field.

[0022] According to an embodiment of the present disclosure, the encryption module includes: a splitting unit and an encryption unit.

[0023] The split unit is used to split the sensitive field into multiple byte blocks.

[0024] The encryption unit is used to perform encryption processing on each byte block respectively to obtain multiple encrypted byte blocks.

[0025] According to an embodiment of the present disclosure, the sensitive field includes a domain name that meets a byte length condition.

[0026] According to an embodiment of the present disclosure, the request response device also includes a conversion module and an encoding module.

[0027] The conversion module is used to convert each record in the database into a byte stream.

[0028] The encoding module is used to convert the byte stream corresponding to each record into a string using an encryption encoding method to obtain an encrypted record.

[0029] According to an embodiment of the present disclosure, the request further includes a non-sensitive field, and the determination module is used to determine whether there is a target record in the database that matches the encrypted sensitive field and the non-sensitive field.

[0030] According to an embodiment of the present disclosure, the encryption module is used to: determine an encryption method for records stored in the database; and encrypt sensitive fields in the request according to the determined encryption method.

[0031] According to an embodiment of the present disclosure, the above-mentioned sensitive fields include: a domain name field and / or a path field.

[0032] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors implement the above-mentioned method.

[0033] Another aspect of the present disclosure provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the above-mentioned method.

[0034] Another aspect of the present disclosure provides a computer program product, wherein the computer program includes computer executable instructions, and the instructions are used to implement the above method when executed.

[0035] According to an embodiment of the present disclosure, when a request for obtaining target intelligence data is obtained, the sensitive fields in the request are encrypted, and then the target records in the database are matched based on the encrypted sensitive fields. In this case, the target records in the database at least include fields in an encrypted state, so that they can be matched with the encrypted sensitive fields. In the case of matching, that is, when the target records exist in the database, the target intelligence data is sent to the requesting party based on the target records. Since the request is not matched directly based on a plaintext mechanism, but the sensitive fields in the request are encrypted and then matched with the records in the database, in this case, on the one hand, the security requirements for the records stored in the database are higher, and on the other hand, the matching of requests based on the plaintext mechanism can be avoided or reduced so that any user can request the target intelligence data, so the technical problem of low security of storing intelligence data based on the plaintext mechanism in the related art is at least partially overcome, thereby achieving the technical effect of improving the security of intelligence data distribution and effectively controlling the number of intelligence data requesters. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0037] Figure 1 An exemplary system architecture to which the request response method and device according to an embodiment of the present disclosure can be applied is schematically shown;

[0038] Figure 2 A flowchart of a request response method according to an embodiment of the present disclosure is schematically shown;

[0039] Figure 3 A flowchart schematically shows a method of sending target intelligence data to a requesting party according to a target record when it is determined that a target record exists in a database according to an embodiment of the present disclosure;

[0040] Figure 4 A logical block diagram of processing intelligence data according to an embodiment of the present disclosure is schematically shown;

[0041] Figure 5A flowchart schematically shows how to encrypt sensitive fields in a request to obtain encrypted sensitive fields according to an embodiment of the present disclosure;

[0042] Figure 6 A block diagram schematically shows a request response device according to an embodiment of the present disclosure; and

[0043] Figure 7 A block diagram of a computer system suitable for implementing a request response method and apparatus according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0044] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0045] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0046] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0047] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0048] An embodiment of the present disclosure provides a request response method and device, the method comprising: obtaining a request for requesting target intelligence data, wherein the request includes sensitive fields; encrypting the sensitive fields in the request to obtain the encrypted sensitive fields; determining whether there is a target record matching the encrypted sensitive fields in a database, wherein the database includes multiple encrypted records, each record including multiple fields; and when it is determined that the target record exists in the database, sending the target intelligence data to the requesting party according to the target record.

[0049] Figure 1 The exemplary system architecture 100 to which the request response method and apparatus according to the embodiment of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0050] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.

[0051] The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as web browser applications, search applications, instant messaging tools, email clients and / or social platform software, etc. (only as examples). According to an embodiment of the present disclosure, for example, the user can use the search application installed on the terminal device 101 to send a request to the server 105 that maintains the intelligence database to request to obtain target intelligence data.

[0052] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0053] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0054] It should be noted that the request response method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the request response device provided in the embodiment of the present disclosure can generally be set in the server 105. The request response method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the request response device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0055] According to an embodiment of the present disclosure, or, the request response method provided in the embodiment of the present disclosure may also be performed by the terminal device 101, 102, or 103 and the server 105. Accordingly, the request response device provided in the embodiment of the present disclosure may also be set in the terminal device 101, 102, or 103 and the server 105.

[0056] For example, a user inputs a request for obtaining target intelligence data on any one of the terminal devices 101, 102, or 103 (for example, terminal device 101, but not limited thereto). After the terminal device 101, 102, or 103 obtains the request for obtaining target intelligence data, it encrypts the sensitive fields in the request to obtain the encrypted sensitive fields, and then sends the encrypted sensitive fields to the server 105 in the form of a request. The server 105 determines whether there is a target record matching the encrypted sensitive fields in the database, and if it is determined that there is a target record in the database, it sends the target intelligence data to the terminal device 101, 102, or 103 according to the target record.

[0057] According to an embodiment of the present disclosure, sensitive fields in a request are encrypted by terminal devices 101, 102, or 103, so that when the request is transmitted, sensitive fields in the request can be prevented from being intercepted and stolen, thereby improving the security of data transmission.

[0058] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0059] Figure 2 The flowchart of the request response method according to the embodiment of the present disclosure is schematically shown.

[0060] like Figure 2 As shown, the request response method includes operations S201 to S204.

[0061] In operation S201, a request for obtaining target intelligence data is obtained, wherein the request includes a sensitive field.

[0062] According to the embodiments of the present disclosure, intelligence data may be characteristic indicators of threat sources, and may include intrinsic characteristics of the external appearance of threat sources, and may generally include information such as IP addresses, domain names, file HASH, malicious emails, etc.

[0063] According to an embodiment of the present disclosure, a request may include multiple fields, and the multiple fields may include sensitive fields. According to an embodiment of the present disclosure, the multiple fields may also include non-sensitive fields. According to an embodiment of the present disclosure, the types of sensitive fields and non-sensitive fields may be pre-defined so that the two can be distinguished. For example, a sensitive field may be information containing data features. Specifically, for example, a sensitive field may include a domain name field and / or a path field, etc. Further, a sensitive field may include, for example, parameter information such as an IP address, a domain name, a uniform resource identifier URI, and the like, and a non-sensitive word may include, for example, parameter information such as a port.

[0064] In operation S202, the sensitive fields in the request are encrypted to obtain the encrypted sensitive fields.

[0065] According to an embodiment of the present disclosure, in order to improve data processing efficiency, encryption processing may be performed only on sensitive information in a field, for example, processing may be performed on certain sensitive fields.

[0066] Specifically, for example, the original data format of the request is as follows: bytimy.com: [[0, 1, 1, 4, 1]], and the corresponding meaning is --Domain Name: [[port, path, action, type, mongo_id]].

[0067] According to an embodiment of the present disclosure, sensitive fields may be, for example, Domain Name and path. Then, Domain Name and path may be encrypted, and other non-sensitive fields may not be processed. The returned encrypted data is: [map[EHvGS69GsgFh7J9sJ41rqQ==:[[01B2M2Y8AsgTpgAmY7PhCfg==141]]]].

[0068] According to an embodiment of the present disclosure, encrypting sensitive fields in a request to obtain the encrypted sensitive fields includes: determining an encryption method for records stored in a database, and then encrypting the sensitive fields in the request according to the determined encryption method.

[0069] According to an embodiment of the present disclosure, each record in the database may have an encryption method corresponding thereto. In order to match sensitive fields with records stored in the database, it is necessary to encrypt the sensitive fields using the encryption method corresponding to the records, and then match the encrypted sensitive fields with the records in the database. According to an embodiment of the present disclosure, different records in the database may be encrypted using the same encryption method or different encryption methods. After the records in the database are encrypted, the encryption method corresponding to the records and the corresponding encryption key may be associated with the identification information of the intelligence requester. After receiving the request sent by the intelligence requester, the encryption method and encryption key may be determined based on the identification information of the intelligence requester, and then the sensitive fields may be encrypted. According to an embodiment of the present disclosure, the database may open an interface to different requesters, and each requester may request target intelligence data from the database through the interface.

[0070] In operation S203, it is determined whether there is a target record in the database that matches the encrypted sensitive field, wherein the database includes a plurality of encrypted records, and each record includes a plurality of fields.

[0071] According to an embodiment of the present disclosure, since the request for obtaining target intelligence data may also include non-sensitive fields, when determining whether a target record exists in a database, it may also be determined whether a target record that matches both the encrypted sensitive fields and the non-sensitive fields exists in the database.

[0072] According to an embodiment of the present disclosure, each record in the database includes multiple fields, and the fields in each record include encrypted fields (for example, sensitive fields) and plaintext fields (for example, non-sensitive fields). For example, the format of each record is shown in Table 1.

[0073] Table 1

[0074] ID Value1 tag Value2 Value3 Value4 1 Data 1 ~ URI1 80 Domain Name1 2 Data 2 ~ URI2 8088 Domain Name2 3 Data 3 ~ URI3 8088 Domain Name3

[0075] In Table 1, each record may include fields ID, Value1, tag, Value2 to 4. Among them, ID is used to number the record, Value1 can be used to store intelligence data, or to be associated with intelligence data, and the value of Value1 can be encrypted data. Tag can be an intelligence data tag. Value2 can be a sensitive field URI, Value3 can be a non-sensitive field port, and Value4 can be a sensitive field Domain Name.

[0076] According to an embodiment of the present disclosure, after encrypting multiple intelligence data in the database, part or all of the encrypted data can be placed in the memory, and based on different preset black and white lists and logical processing rules, different target detection engines are called to provide interface calls of different modes, and the intelligence data is returned to the user based on different fields in the request.

[0077] Through the embodiments of the present disclosure, the use of intelligence data requires rigorous type and logic processing before the judgment result is given. Through matching such as whitelists, top-level domain names, regular rules, etc., it is comprehensively judged whether it is malicious information. It solves the technical problem that in the related technology, intelligence data is directly given to the user without judgment logic, resulting in false alarms at the data usage level, uneven application methods, and increased difficulty in troubleshooting false alarms.

[0078] According to an embodiment of the present disclosure, the encrypted sensitive fields and non-sensitive fields carried in the request can be matched with each record in the database. If there is a target record matching the encrypted sensitive fields and non-sensitive fields in the database, operation S204 is performed.

[0079] In operation S204, when it is determined that the target record exists in the database, the target intelligence data is sent to the requesting party according to the target record.

[0080] According to an embodiment of the present disclosure, for example, taking the target record as ID1, data 1 corresponding to Value1 in ID1 may be sent to the requesting party.

[0081] According to an embodiment of the present disclosure, the data 1 may be decrypted using a private key corresponding to the requesting party, so that the requesting party may perform the next operation based on the decrypted data.

[0082] According to the embodiments of the present disclosure, the request response method provided by the present disclosure can be used in the distribution scenario of data intelligence, and provides a relatively complete set of technical solutions at the data security level and the intelligence data distribution level. By encrypting sensitive fields, not only the security and reliability of data distribution are improved, but also the efficiency of data query and use is not affected.

[0083] According to an embodiment of the present disclosure, when a request for obtaining target intelligence data is obtained, the sensitive fields in the request are encrypted, and then the target records in the database are matched based on the encrypted sensitive fields. In this case, the target records in the database at least include fields in an encrypted state (at least not in a plain text state) so that they can be matched with the encrypted sensitive fields. In the case of matching, that is, when the target records exist in the database, the target intelligence data is sent to the requesting party based on the target records. Since the request is not matched directly based on a plain text mechanism, but the sensitive fields in the request are encrypted and then matched with the records in the database, in this case, on the one hand, the security requirements for the records stored in the database are higher, and on the other hand, the matching of requests based on a plain text mechanism can be avoided or reduced so that any user can request the target intelligence data, so the technical problem of low security of storing intelligence data based on a plain text mechanism in the related art is at least partially overcome, thereby achieving the technical effect of improving the security of intelligence data distribution and effectively controlling the number of intelligence data requesting parties.

[0084] Reference below Figure 3 to Figure 5 , combined with specific embodiments Figure 2 The method shown is further explained.

[0085] Figure 3 The flowchart schematically shows a process of sending target intelligence data to a requesting party according to the target record when it is determined that the target record exists in the database according to an embodiment of the present disclosure.

[0086] like Figure 3 As shown, in the case where it is determined that the target record exists in the database, sending the target intelligence data to the requesting party according to the target record includes operations S301 to S303.

[0087] In operation S301, a target field corresponding to target intelligence data in a target record is determined.

[0088] According to an embodiment of the present disclosure, the intelligence field of each record in the database can be encrypted, wherein the intelligence field can include intelligence data. Further, different keys can be generated for different intelligence users when the key generator is initialized to encrypt the intelligence field. According to an embodiment of the present disclosure, data can be uniformly encapsulated to provide an interface call.

[0089] In operation S302, the target field is decrypted into plain text data.

[0090] According to an embodiment of the present disclosure, the target field may be decrypted using a key corresponding to the current intelligence user (ie, the requester).

[0091] In operation S303, plain text data is sent to the requesting party.

[0092] According to the embodiments of the present disclosure, by decrypting the target field into plain text data, unification of data usage and distribution levels is achieved.

[0093] According to an embodiment of the present disclosure, the database can be maintained in a cloud server, and the records in the database can be updated in real time.

[0094] According to an embodiment of the present disclosure, the target field in an encrypted state may also be directly sent to the requesting party. For example, when it is determined that the target record exists in the database, the target field corresponding to the target intelligence data in the target record is determined, and then the target field is sent to the requesting party, and the requesting party may decrypt the target field based on a decryption method that matches the target field.

[0095] According to an embodiment of the present disclosure, different keys can be generated for different intelligence users when the key generator is initialized, and the fields in the database are encrypted using the keys corresponding to the different intelligence users. The current intelligence user (i.e., the requesting party) can decrypt the target field based on the decryption method that matches the target field, for example, using the decryption key corresponding to the current intelligence user to decrypt the target field.

[0096] According to the embodiments of the present disclosure, sending the target field in an encrypted state to the requesting party achieves the technical effect of encrypting the transmission target field, thereby improving the security of intelligence data transmission.

[0097] Figure 4 A logical block diagram for processing intelligence data according to an embodiment of the present disclosure is schematically shown.

[0098] like Figure 4 As shown, the cloud server can process and update massive intelligence data in real time. It processes intelligence data from different sources (such as commercial intelligence, open source intelligence, self-generated data, etc.), including but not limited to labeling, normalizing, aggregating, supplementing records in the database, etc., and then manually or machine-processing, evaluating, analyzing, and deduplicating the processed data.

[0099] According to the embodiments of the present disclosure, before the intelligence data is stored in the database in the form of records, the data can be classified and graded according to preset rules, and different users can obtain different data sets. The classification and grading rules include but are not limited to classification in chronological order, classification according to the degree of danger of the hazard source, etc. Through the embodiments of the present disclosure, different classifications and gradings are carried out in terms of the types of intelligence data sets, and intelligence service agencies that meet different product safety level types have a customized service guarantee mechanism to achieve "personalized" services.

[0100] According to the embodiments of the present disclosure, data sets can be encrypted at the field level and the full level according to sensitive information, and KMS (key centralized management module) can be used to distribute keys and authorize access to data.

[0101] According to the embodiments of the present disclosure, the cloud server can push data updates, regularly poll for upgrade data, and perform distribution processing of various data services.

[0102] According to the embodiments of the present disclosure, the cloud server can provide data calls to different intelligence users, and provide analysis details and operational suggestions based on the processing logic of the threat detection engine.

[0103] According to an embodiment of the present disclosure, the cloud server can receive different types of requests from intelligence users, such as host query, IP type query or URL query type, and the engine supports returning multiple types of query results.

[0104] According to an embodiment of the present disclosure, by receiving a data query request initiated by the requester, the server can enter the engine detection logic according to the product identification and type of the requester, and after the corresponding authorization, return the result of the requested query according to the type of requested data, through the whitelist, top-level domain name judgment and regular processing.

[0105] According to the embodiments of the present disclosure, the standardized integration capability of intelligence data is improved by securely processing data.

[0106] Figure 5 The flowchart schematically shows a method of encrypting sensitive fields in a request to obtain encrypted sensitive fields according to an embodiment of the present disclosure.

[0107] like Figure 5 As shown, encrypting the sensitive fields in the request to obtain the encrypted sensitive fields includes operations S501 to S502.

[0108] In operation S501, a sensitive field is split into a plurality of byte blocks.

[0109] According to an embodiment of the present disclosure, for example, the sensitive field includes 256 bytes, and the sensitive field can be split into 2-byte blocks with 128 bytes as one block.

[0110] According to an embodiment of the present disclosure, before splitting a sensitive field into multiple byte blocks, it can be determined whether the byte length of the sensitive field meets a preset length. If so, the sensitive field is split into multiple byte blocks; if not, there is no need to split the sensitive field into multiple byte blocks.

[0111] According to an embodiment of the present disclosure, for example, the sensitive field includes a domain name that satisfies a byte length condition. For example, the byte length condition is 256 bytes. If the byte length of the domain name is greater than or equal to 256 bytes, it can be considered that the domain name satisfies the byte length condition.

[0112] In the related art, the byte length of some domain names is relatively long, resulting in low encryption efficiency. It is difficult to find a more suitable encryption algorithm to encrypt the domain name with a relatively long character length. By splitting the domain name into multiple byte blocks and encrypting each byte block separately, the encryption efficiency can be improved, and the security of the encrypted data can be improved.

[0113] In operation S502, encryption processing is performed on each byte block to obtain a plurality of encrypted byte blocks.

[0114] According to the embodiments of the present disclosure, by performing block encryption on a long character string, encryption efficiency can be improved, data processing errors in information processing can be reduced, and the security of encrypted data can be improved.

[0115] According to an embodiment of the present disclosure, before obtaining a request for obtaining target intelligence data, each record in the database may be converted into a byte stream, and the byte stream corresponding to each record may be converted into a string using an encrypted encoding method. Encryption processing of records in the database is implemented so that when determining whether there is a target record in the database that matches the encrypted sensitive field, the encrypted record is matched with the encrypted sensitive field.

[0116] According to an embodiment of the present disclosure, for example, each record in the database can be converted into an md5 byte stream. This conversion process is irreversible. The byte stream is then encoded into a 24-character string to improve security and byte compression. If the string is cracked, only the byte stream will be obtained and the native data will not be parsed, thereby further improving security.

[0117] Figure 6 The block diagram of a request response device according to an embodiment of the present disclosure is schematically shown.

[0118] like Figure 6 As shown, the request response device 600 includes: an acquisition module 610, an encryption module 620, a determination module 630 and a sending module 640.

[0119] The acquisition module 610 is used to obtain a request for requesting to obtain target intelligence data, wherein the request includes sensitive fields.

[0120] The encryption module 620 is used to encrypt the sensitive fields in the request to obtain the encrypted sensitive fields.

[0121] The determination module 630 is used to determine whether there is a target record in the database that matches the encrypted sensitive field, wherein the database includes multiple encrypted records, and each record includes multiple fields.

[0122] The sending module 640 is used to send the target intelligence data to the requesting party according to the target record when it is determined that the target record exists in the database.

[0123] According to an embodiment of the present disclosure, when a request for obtaining target intelligence data is obtained, the sensitive fields in the request are encrypted, and then the target records in the database are matched based on the encrypted sensitive fields. In this case, the target records in the database at least include fields in an encrypted state (at least not in a plain text state) so that they can be matched with the encrypted sensitive fields. In the case of matching, that is, when the target records exist in the database, the target intelligence data is sent to the requesting party based on the target records. Since the request is not matched directly based on a plain text mechanism, but the sensitive fields in the request are encrypted and then matched with the records in the database, in this case, on the one hand, the security requirements for the records stored in the database are higher, and on the other hand, the matching of requests based on a plain text mechanism can be avoided or reduced so that any user can request the target intelligence data, so the technical problem of low security of storing intelligence data based on a plain text mechanism in the related art is at least partially overcome, thereby achieving the technical effect of improving the security of intelligence data distribution and effectively controlling the number of intelligence data requesting parties.

[0124] According to an embodiment of the present disclosure, the sending module includes: a determining unit, a decrypting unit and a sending unit.

[0125] The determination unit is used to determine a target field in a target record that corresponds to the target intelligence data.

[0126] The decryption unit is used to decrypt the target field into plain text data.

[0127] The sending unit is used to send plaintext data to the requesting party, or to send a target field to the requesting party, so that the requesting party decrypts the target field based on a decryption method matching the target field.

[0128] According to an embodiment of the present disclosure, the encryption module includes: a splitting unit and an encryption unit.

[0129] The split unit is used to split the sensitive field into multiple byte blocks.

[0130] The encryption unit is used to perform encryption processing on each byte block respectively to obtain multiple encrypted byte blocks.

[0131] According to an embodiment of the present disclosure, the sensitive field includes a domain name that meets a byte length condition.

[0132] According to an embodiment of the present disclosure, the request response device 600 further includes: a conversion module and an encoding module.

[0133] The conversion module is used to convert each record in the database into a byte stream.

[0134] The encoding module is used to convert the byte stream corresponding to each record into a string using an encryption encoding method to obtain an encrypted record.

[0135] According to an embodiment of the present disclosure, the request also includes a non-sensitive field, and the determination module is further used to determine whether there is a target record in the database that matches the encrypted sensitive field and the non-sensitive field.

[0136] According to an embodiment of the present disclosure, the encryption module is used to determine an encryption method for records stored in a database; and to encrypt sensitive fields in a request according to the determined encryption method.

[0137] According to an embodiment of the present disclosure, the sensitive fields include: a domain name field and / or a path field.

[0138] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0139] For example, any multiple of the acquisition module 610, the encryption module 620, the determination module 630, and the sending module 640 can be combined in one module / unit / subunit for implementation, or any one of the modules / units / subunits can be split into multiple modules / units / subunits. Alternatively, at least part of the functions of one or more of these modules / units / subunits can be combined with at least part of the functions of other modules / units / subunits and implemented in one module / unit / subunit. According to an embodiment of the present disclosure, at least one of the acquisition module 610, the encryption module 620, the determination module 630, and the sending module 640 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware, and firmware, or by a suitable combination of any of them. Alternatively, at least one of the acquisition module 610, the encryption module 620, the determination module 630 and the sending module 640 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.

[0140] It should be noted that the request response device part in the embodiment of the present disclosure corresponds to the request response method part in the embodiment of the present disclosure. The description of the request response device part specifically refers to the request response method part, which will not be repeated here.

[0141] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors implement the above-mentioned method.

[0142] Another aspect of the present disclosure provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the above-mentioned method.

[0143] Another aspect of the present disclosure provides a computer program product, wherein the computer program includes computer executable instructions, and the instructions are used to implement the above method when executed.

[0144] Figure 7 A block diagram of a computer system suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Figure 7 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0145] like Figure 7 As shown, the computer system 700 according to the embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.

[0146] In RAM 703, various programs and data required for the operation of system 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other through bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0147] According to an embodiment of the present disclosure, the system 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The system 700 may further include one or more of the following components connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0148] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.

[0149] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0150] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.

[0151] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 702 and / or the RAM 703 described above and / or one or more memories other than the ROM 702 and the RAM 703 .

[0152] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments and / or claims of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0153] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A request response method, comprising: Obtaining a request for obtaining target intelligence data, wherein the request includes a sensitive field; Encrypting the sensitive fields in the request to obtain encrypted sensitive fields; Determining whether there is a target record matching the encrypted sensitive field in a database, wherein the database includes a plurality of encrypted records, each record including a plurality of fields; and In the case where it is determined that the target record exists in the database, sending the target intelligence data to the requesting party according to the target record; Among them, the sensitive fields include: domain name field and / or path field; the intelligence data includes characteristic indicators of the threat source, and the target intelligence data is used to respond to attacks from the threat source.

2. The method according to claim 1, wherein: In the case where it is determined that the target record exists in the database, sending the target intelligence data to the requesting party according to the target record includes: Determining a target field in the target record that corresponds to the target intelligence data; decrypting the target field into plaintext data; and sending the plaintext data to the requesting party; or Determine a target field in the target record that corresponds to the target intelligence data; and send the target field to the requesting party so that the requesting party decrypts the target field based on a decryption method that matches the target field.

3. The method according to claim 1, wherein: The sensitive fields in the request are encrypted, and the encrypted sensitive fields include: Splitting the sensitive field into a plurality of byte blocks; and Performing encryption processing on each of the byte blocks respectively to obtain a plurality of encrypted byte blocks; The sensitive field includes a domain name that meets the byte length requirement.

4. The method according to claim 1, further comprising: Convert each record in the database into a byte stream; as well as The byte stream corresponding to each record is converted into a character string using an encryption encoding method to obtain an encrypted record.

5. The method according to claim 1, wherein: The request further includes a non-sensitive field, and determining whether there is a target record in the database that matches the encrypted sensitive field includes: Determine whether there is a target record in the database that matches the encrypted sensitive field and the non-sensitive field.

6. The method according to claim 1, wherein: The sensitive fields in the request are encrypted to obtain the encrypted sensitive fields including: determining an encryption method for records stored in the database; and The sensitive fields in the request are encrypted according to the determined encryption method.

7. A request response device, comprising: An acquisition module, configured to acquire a request for obtaining target intelligence data, wherein the request includes a sensitive field; An encryption module, used to encrypt the sensitive fields in the request to obtain the encrypted sensitive fields; a determination module, configured to determine whether there is a target record matching the encrypted sensitive field in a database, wherein the database includes a plurality of encrypted records, each record including a plurality of fields; and A sending module, configured to send the target intelligence data to the requesting party according to the target record when it is determined that the target record exists in the database; Among them, the sensitive fields include: domain name field and / or path field; the intelligence data includes characteristic indicators of the threat source, and the target intelligence data is used to respond to attacks from the threat source.

8. An electronic device, comprising: one or more processors; a memory for storing one or more instructions, Wherein, when the one or more instructions are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 6.