Honeypot adaptive deployment method and system based on traffic characteristics
By adopting an adaptive honeypot deployment method based on traffic characteristics, and dynamically adjusting response strategies and signature databases, the problem of low honeypot deployment efficiency is solved, achieving efficient and accurate threat detection and improved system security.
Patent Information
- Application Number
- CN202311128939.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-04
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-09-04
AI Technical Summary
Existing honeypot deployment methods are slow and inefficient due to manual operation, and cannot be automatically updated, resulting in poor system security protection capabilities.
The honeypot adaptive deployment method based on traffic characteristics decodes and listens for request traffic packets, determines whether they match preset rules and feature databases, dynamically adjusts response strategies, and automatically updates the feature database to adapt to network attacks.
It improves threat detection capabilities, reduces security risks, decreases false positives and false negatives, provides attacker behavior analysis, and enhances system security and adaptability.
Smart Images

Figure CN117278259B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of network security technology, and in particular to a honeypot adaptive deployment method and system based on traffic characteristics. Background Technology
[0002] In an increasingly complex network environment, users' assets and hosts are constantly under attack from malicious traffic on the internet, which can cause significant losses if successful. While existing technologies such as firewalls can block some malicious traffic, firewalls are ineffective against new types of malicious traffic as hacker attack methods evolve rapidly.
[0003] Honeypots are essentially a technique to deceive attackers. By deploying decoy hosts, network services, or information, attackers are lured to launch attacks against them. This allows attackers to capture and analyze the attack behavior, understand the tools and methods used, and infer the attack intent and motives. It enables defenders to clearly understand the security threats they face and enhance the security protection capabilities of their actual systems through technical and management means.
[0004] In practical applications, honeypots are all deployed passively. For a wide variety of asset host applications, the method of manually simulating each application one by one cannot automatically update the honeypot after changes occur in the real services of the user's asset environment. This results in slow speed, low efficiency, and poor system security protection capabilities. Summary of the Invention
[0005] In view of this, the present disclosure provides a honeypot adaptive deployment method and system based on traffic characteristics, which can solve the problems of slow manual operation, low efficiency and poor system security protection in the prior art.
[0006] In a first aspect, embodiments of this disclosure provide a honeypot adaptive deployment method based on traffic characteristics, the method comprising:
[0007] Decode the first request traffic packet obtained from the monitoring to obtain the original message of the first request;
[0008] Determine whether the first request original message matches a preset traffic rule. If not, determine whether the first request original message matches a preset feature library. If yes, obtain the corresponding message response traffic packet and respond with the message response traffic packet. If no, respond by refusing the connection.
[0009] If the original message of the first request matches the preset traffic rules, output the first actual traffic feature;
[0010] Determine whether the first actual traffic feature matches a preset feature library. If yes, obtain the corresponding feature response traffic packet and respond with the feature response traffic packet. If no, respond by refusing the connection.
[0011] Optionally, the decoding of the first request traffic packet obtained by the monitoring to obtain the original first request message includes:
[0012] The honeypot monitors the first request traffic packet in real time, decodes the byte data of the first request traffic packet into character data, and obtains the original message of the first request.
[0013] The first request packet is an attacker's request packet.
[0014] Optionally, the preset traffic rules include one or more of the following: HTTP protocol traffic rules, MySQL 5.7 protocol traffic rules, and TFTP protocol traffic rules;
[0015] The HTTP protocol traffic rules include one or more of the following: GET request, HEAD request, POST request, PUT request, DELETE request, CONNECT request, OPTIONS request, TRACE request, and PATCH request.
[0016] The MySQL 5.7 protocol traffic rules include one or more of the following: login authentication requests, query requests, and version negotiation requests.
[0017] The TFTP protocol traffic rules include file upload requests and file download requests.
[0018] Optionally, when the first request original message matches the HTTP protocol traffic rule, the output first actual traffic feature is the request method, URL, and HTTP in the HTTP request header;
[0019] When the first request original message matches the mysql5.7 protocol traffic rule, the first actual traffic feature output is username, password and mysql, or the first actual traffic feature output is select, query sql and mysql;
[0020] When the first request original message matches the TFTP protocol traffic rule, the first actual traffic feature output is get, filename, and TFTP; or, the first actual traffic feature output is put, filename, and TFTP.
[0021] Optionally, the method further includes: if the first request original message does not match the preset feature library, a similar traffic packet with a preset similarity is queried in the preset feature library using a fuzzy matching method, and a similar response traffic packet corresponding to the similar traffic packet is obtained, and the similar response traffic packet is used to reply;
[0022] If the similar traffic packet is not found in the preset feature library, the response will be a connection rejection.
[0023] The preset similarity is no less than 80%.
[0024] Optionally, the method for constructing the preset feature library includes:
[0025] Obtain several second request traffic packets and several business response traffic packets from the proxy;
[0026] Determine whether the service response traffic packet contains a special field. If so, modify the timestamp in the service response traffic packet to obtain a modified response traffic packet. Decode the second request traffic packet to obtain the second request original message. Determine whether the second request original message matches the preset traffic rule. If so, output the second actual traffic feature and construct the preset feature library, which includes the second actual traffic feature and the corresponding second request traffic packet and the modified service response traffic packet. If not, construct the preset feature library, which includes the second request original message and its corresponding modified service response traffic packet.
[0027] If not, decode the second request traffic packet to obtain the original message of the second request;
[0028] Determine whether the original message of the second request matches the preset traffic rule. If so, output the second actual traffic feature and construct the preset feature library. The preset feature library includes the second actual traffic feature and the corresponding second request traffic packet and the service response traffic packet.
[0029] If not, construct the preset feature library, which includes the original message of the second request and its corresponding service response traffic packet.
[0030] Optionally, obtaining the proxy's plurality of second request traffic packets and plurality of service response traffic packets includes:
[0031] Several services of the asset host service are accessed through a proxy to obtain several second request traffic packets;
[0032] Several of the services provide real-time feedback of several service response traffic packets based on several second request traffic packets.
[0033] Optionally, the special fields include one or more of the following: Timestamp field, date field, If-Modified-Since field, and last-modify field.
[0034] Optionally, the method further includes real-time updating of the preset feature library, wherein the update includes:
[0035] Real-time monitoring of the process IDs of all services;
[0036] If a changed process ID exists, it is determined that the asset host service has been updated, and the set of updated services is obtained;
[0037] Send several third request traffic packets to the service set and obtain several update response traffic packets;
[0038] Determine whether the update response traffic packet contains a special field. If so, modify the timestamp in the update response traffic packet to obtain a modified update response traffic packet. Decode the third request traffic packet to obtain the original third request message. Determine whether the original third request message matches the preset traffic rule. If so, output the third actual traffic feature and store the third actual traffic feature, the corresponding third request traffic packet, and the modified update response traffic packet in the preset feature library. If not, store the original third request message and the modified update response traffic packet in the preset feature library.
[0039] If not, decode the third request traffic packet to obtain the original third request message;
[0040] Determine whether the original message of the third request matches the preset traffic rule. If so, output the third actual traffic feature and store the third actual traffic feature, the corresponding third request traffic packet, and the update response traffic packet into the preset feature library.
[0041] If not, store the original message of the third request and its corresponding update response traffic packet in the preset feature library.
[0042] Secondly, embodiments of this disclosure also provide a honeypot adaptive deployment system based on traffic characteristics, including:
[0043] The decoding module is configured to decode the first request traffic packet acquired by the listener.
[0044] The acquisition module is configured to obtain the original message of the first request;
[0045] The first judgment module is configured to determine whether the first request original message matches a preset traffic rule; if not, determine whether the first request original message matches a preset feature library; if yes, obtain the corresponding message response traffic packet and respond with the message response traffic packet; if no, respond by refusing connection.
[0046] The output module is configured to output the first actual traffic feature if the first request original message matches a preset traffic rule;
[0047] The second judgment module is configured to determine whether the first actual traffic feature matches a preset feature library. If yes, it obtains the corresponding feature response traffic packet and responds with the feature response traffic packet. If no, it responds by refusing the connection.
[0048] Thirdly, this disclosure also provides an electronic device that adopts the following technical solution:
[0049] The electronic device includes:
[0050] At least one processor; and,
[0051] A memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute any of the above-described honeypot adaptive deployment methods based on traffic characteristics.
[0052] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium storing computer instructions for causing a computer to execute any of the above-described honeypot adaptive deployment methods based on traffic characteristics.
[0053] The honeypot adaptive deployment method based on traffic characteristics disclosed in this application has the following advantages: 1) Strong adaptability: This method can adaptively deploy according to actual traffic characteristics and can update the preset traffic rules and feature library at any time to adapt to constantly changing network attacks and threats. Compared with traditional honeypot deployment methods, it has higher flexibility and adaptability; 2) Effectively improves threat detection capability and detection accuracy: By matching the original packet of the first request with the actual traffic characteristics, this method can accurately identify malicious requests, thereby timely preventing attacks and intrusions on the system. The preset traffic rules and feature library serve as judgment criteria, providing more accurate and detailed threat detection, avoiding false positives and false negatives, and greatly improving detection accuracy; 3) Effectively reduces malicious request responses: The scheme disclosed in this application can dynamically adjust the deployment strategy; when the original packet of the first request matches the preset traffic characteristics, the method can dynamically adjust the deployment strategy; when the original packet of the first request matches the actual ... When matching signatures, this method returns specific message response packets to simulate the system's response. This can confuse attackers, making them believe they have successfully infiltrated the system, thus halting or delaying their attacks on the real target. It also allows for the collection of attacker information and behavioral characteristics, providing clues for subsequent analysis and tracking, and improving the system's adaptability and resilience. 4) Effectively improves system security: As a hypothetical target, a honeypot can attract and analyze attacker behavior, helping security personnel to promptly identify system vulnerabilities and potential threats, and take corresponding defensive measures. Through the honeypot's adaptive deployment method, new attack techniques and unknown threats can be better identified, improving the system's ability to protect against unknown attacks. 5) Effectively reduces security risks: Deploying a honeypot in the network can isolate the real system and sensitive data from attackers. Even if a malicious request is approved, the attacker cannot damage or intrude into the real system because the system itself does not have any real vulnerabilities, thus greatly reducing the system security risk; 6) It can provide attacker behavior analysis: By analyzing the attacker's behavior, information such as the attacker's attack characteristics, attack methods and attack objectives can be obtained, thereby revealing the attack strategies and action patterns of hacker organizations and providing a reference for further security protection.
[0054] In summary, the honeypot adaptive deployment method based on traffic characteristics disclosed in this application has unique advantages in network security protection. It can improve threat detection capabilities, reduce security risks, reduce malicious request responses, and provide comprehensive protection for system security. By adopting this method, enterprises and organizations can better protect their network and data security and respond to evolving cyberattacks in a timely manner.
[0055] The method disclosed in this application has adaptive capabilities. The honeypot can automatically trigger communication between the agent and the asset host service during operation. It can dynamically and adaptively update according to changes in the user's asset host application, meet the various functional requirements corresponding to the real services of the user's asset environment, and realize automated monitoring and dynamic automated real-time updates. That is, it can dynamically update the response traffic packets associated with the request, thereby dynamically changing the content of the traffic packets responded to the attacker, achieving an adaptive effect. Users do not need to manually simulate each application one by one, which greatly improves deployment and response efficiency and has high accuracy.
[0056] The above description is merely an overview of the technical solution disclosed herein. In order to better understand the technical means of this disclosure and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0057] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0058] Figure 1 This is a flowchart illustrating the honeypot adaptive deployment method based on traffic characteristics in this application.
[0059] Figure 2 A schematic diagram of the method for constructing a preset feature library provided in the embodiments of this disclosure.
[0060] Figure 3 This is a flowchart illustrating a method for real-time updating of a preset feature library, as provided in an embodiment of this disclosure.
[0061] Figure 4 This is a block diagram illustrating the principle of a traffic-feature-based honeypot adaptive deployment system provided in an embodiment of this disclosure.
[0062] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0063] The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.
[0064] It should be understood that the following specific examples illustrate the implementation of this disclosure, and those skilled in the art can easily understand other advantages and effects of this disclosure from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. This disclosure can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this disclosure. It should be noted that, in the absence of conflict, the following embodiments and features in the embodiments can be combined with each other. Based on the embodiments in this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0065] It should be noted that various aspects of embodiments within the scope of the appended claims are described below. It will be apparent that the aspects described herein can be embodied in a wide variety of forms, and any particular structure and / or function described herein is merely illustrative. Based on this disclosure, those skilled in the art will understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects set forth herein can be used to implement the device and / or practice the method. Additionally, this device and / or method can be implemented using structures and / or functionalities other than one or more of the aspects set forth herein.
[0066] It should also be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this disclosure. The drawings only show the components related to this disclosure and are not drawn according to the number, shape and size of the components in actual implementation. In actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0067] Furthermore, specific details are provided in the following description to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the described aspects can be practiced without these specific details.
[0068] Reference Figure 1 The first aspect of this application discloses a honeypot adaptive deployment method based on traffic characteristics, which includes the following steps:
[0069] S100 decodes the first request traffic packet acquired through monitoring to obtain the original message of the first request.
[0070] Specifically, the honeypot monitors the first request traffic packet in real time, decodes the byte data of the first request traffic packet into character data, and obtains the original message of the first request.
[0071] In this embodiment, the first request traffic packet is the attacker's request traffic packet.
[0072] S200: Determine whether the original message of the first request matches the preset traffic rules. If so, output the first actual traffic characteristics and execute S300.
[0073] If not, execute S400.
[0074] The preset traffic rules include HTTP protocol traffic rules, MySQL 5.7 protocol traffic rules, and TFTP protocol traffic rules. The HTTP protocol traffic rules include GET requests, HEAD requests, POST requests, PUT requests, DELETE requests, CONNECT requests, OPTIONS requests, TRACE requests, and PATCH requests. The MySQL 5.7 protocol traffic rules include login authentication requests, query requests, and version negotiation requests. The TFTP protocol traffic rules include file upload requests and file download requests.
[0075] In this embodiment, when the original first request message matches the HTTP protocol traffic rules, the first actual traffic characteristic output is the request method + URL + HTTP in the HTTP request header.
[0076] When the original message of the first request matches the MySQL 5.7 protocol traffic rules, the first actual traffic feature output is username + password + mysql, or the first actual traffic feature output is select + query sql + mysql.
[0077] Specifically, when the rule \s+(.*)|14|(.*)mysql_native_password is successfully matched, the actual output traffic characteristics are username + password + mysql (username and password are obtained by matching the wildcard .*); when the rule |03|select@@version_comment limit1 is successfully matched, the actual output traffic characteristics are select + query sql + mysql.
[0078] When the original request message matches the TFTP protocol traffic rules, the first actual traffic characteristic output is get + filename + tftp, or the first actual traffic characteristic output is put + filename + tftp.
[0079] Specifically, when the rule |0001|(.*)|00|octet|0000| is successfully matched, the output traffic characteristic is get + filename + tftp (the filename is obtained by matching the wildcard .*); when the rule |0002|(.*)|00|octet|0000| is successfully matched, the output traffic characteristic is put + filename + tftp.
[0080] S300, determine whether the first actual traffic feature matches the preset feature library; if yes, obtain the corresponding feature response traffic packet and respond with the feature response traffic packet; if no, respond by refusing connection.
[0081] S400: Determine whether the original message of the first request matches the preset feature database. If yes, obtain the corresponding message response traffic packet and respond with the message response traffic packet. If no, respond by refusing the connection.
[0082] Specifically, when the original request message matches the preset feature library, the method of calculating the md5+sha1 of the original request message and then comparing it with the md5+sha1 of the traffic packets in the feature library is used for matching. If they exist, the response traffic packet corresponding to the matched traffic packet is obtained and the response is made using the traffic packet.
[0083] Furthermore, this application also includes: if the original message of the first request does not match the preset feature library, a fuzzy matching method can be used to query a similar traffic packet with a preset similarity in the preset feature library, and obtain the similar response traffic packet corresponding to the similar traffic packet, and reply with the similar response traffic packet; if the similar traffic packet does not exist in the preset feature library, the response reply is to refuse the connection; through this method, the query efficiency can be greatly improved and the response cycle can be effectively shortened.
[0084] In this embodiment, the preset similarity is no less than 80%, that is, the similarity between the similar traffic packet and the first request traffic packet is required to be no less than 80%.
[0085] Preferably, the fuzzy matching uses the Cosine Similarity algorithm.
[0086] The honeypot adaptive deployment method based on traffic characteristics disclosed in this application has the following advantages: 1) Strong adaptability: This method can adaptively deploy according to actual traffic characteristics and can update the preset traffic rules and feature library at any time to adapt to constantly changing network attacks and threats. Compared with traditional honeypot deployment methods, it has higher flexibility and adaptability; 2) Effectively improves threat detection capability and detection accuracy: By matching the original packet of the first request with the actual traffic characteristics, this method can accurately identify malicious requests, thereby timely preventing attacks and intrusions on the system. The preset traffic rules and feature library serve as judgment criteria, providing more accurate and detailed threat detection, avoiding false positives and false negatives, and greatly improving detection accuracy; 3) Effectively reduces malicious request responses: The scheme disclosed in this application can dynamically adjust the deployment strategy; when the original packet of the first request matches the preset traffic characteristics, the method can dynamically adjust the deployment strategy; when the original packet of the first request matches the actual ... When matching signatures, this method returns specific message response packets to simulate the system's response. This can confuse attackers, making them believe they have successfully infiltrated the system, thus halting or delaying their attacks on the real target. It also allows for the collection of attacker information and behavioral characteristics, providing clues for subsequent analysis and tracking, and improving the system's adaptability and resilience. 4) Effectively improves system security: As a hypothetical target, a honeypot can attract and analyze attacker behavior, helping security personnel to promptly identify system vulnerabilities and potential threats, and take corresponding defensive measures. Through the honeypot's adaptive deployment method, new attack techniques and unknown threats can be better identified, improving the system's ability to protect against unknown attacks. 5) Effectively reduces security risks: Deploying a honeypot in the network can isolate the real system and sensitive data from attackers. Even if a malicious request is approved, the attacker cannot damage or intrude into the real system because the system itself does not have any real vulnerabilities, thus greatly reducing the system security risk; 6) It can provide attacker behavior analysis: By analyzing the attacker's behavior, information such as the attacker's attack characteristics, attack methods and attack objectives can be obtained, thereby revealing the attack strategies and action patterns of hacker organizations and providing a reference for further security protection.
[0087] In summary, the honeypot adaptive deployment method based on traffic characteristics disclosed in this application has unique advantages in network security protection. It can improve threat detection capabilities, reduce security risks, reduce malicious request responses, and provide comprehensive protection for system security. By adopting this method, enterprises and organizations can better protect their network and data security and respond to evolving cyberattacks in a timely manner.
[0088] Reference Figure 2 In this embodiment, the method for constructing the preset feature library includes:
[0089] Obtain several second request traffic packets and several business response traffic packets from the proxy;
[0090] Determine if the business response traffic packet contains special fields. If so, modify the timestamp in the business response traffic packet to obtain the modified business response traffic packet. Decode the second request traffic packet to obtain the original second request message. Determine if the original second request message matches the preset traffic rules. If so, output the second actual traffic feature and construct a preset feature library, which includes the second actual traffic feature and the corresponding second request traffic packet and the modified business response traffic packet. If not, construct a preset feature library, which includes the original second request message and its corresponding modified business response traffic packet.
[0091] If not (i.e., the business response traffic packet does not contain special fields), decode the second request traffic packet to obtain the original message of the second request;
[0092] Determine whether the original message of the second request matches the preset traffic rules. If so, output the second actual traffic characteristics and build a preset feature library. The preset feature library includes the second actual traffic characteristics and the corresponding second request traffic packet and business response traffic packet.
[0093] If not, construct a preset feature library, which includes the original message of the second request and its corresponding business response traffic packet.
[0094] Specifically, the acquisition of several second request traffic packets and several service response traffic packets includes: the user or a pre-edited preset script command accessing several services of the asset host service through a proxy. In this embodiment, all services of the asset host service are accessed to obtain all the second request traffic packets.
[0095] Then, all services respond with service response packets in real time based on all second request traffic packets, which are captured by the proxy.
[0096] The special fields include Timestamp, date, If-Modified-Since, and last-modify fields. In this embodiment, when the business response traffic packet contains special fields, the timestamp in the business response traffic packet is deleted or modified, that is, the corresponding field is deleted before being entered into the database. In addition, the modified business response traffic packet can also be modified by the user before being entered into the database, which can remove sensitive information in the asset business and information that is easy for attackers to detect the honeypot, thus ensuring the disguise and effectiveness of the honeypot.
[0097] In this embodiment, when the original second request message matches the HTTP protocol traffic rules, the output second actual traffic characteristic is the request method + URL + HTTP in the HTTP request header.
[0098] When the original message of the second request matches the MySQL 5.7 protocol traffic rules, the output second actual traffic feature is username + password + mysql, or the output second actual traffic feature is select + query sql + mysql.
[0099] When the original message of the second request matches the TFTP protocol traffic rules, the output second actual traffic characteristic is get + filename + tftp, or the output second actual traffic characteristic is put + filename + tftp.
[0100] In this embodiment, after the system starts, a proxy is created and listens on port 8088. The user configures the proxy service address and port for the browser and accesses the asset host's web service through the proxy. The proxy listens for and captures the network traffic between the user and the asset host. The decoder module decodes the request traffic packets captured by the proxy, converting byte data into character data.
[0101] Reference Figure 3 Furthermore, the honeypot adaptive deployment method based on traffic characteristics disclosed in this application also includes real-time updates to a preset feature library. The specific update method includes the following steps:
[0102] Real-time monitoring of the process IDs of all services provided by the asset host service;
[0103] If a changed process ID exists, it is determined that the asset host service has been updated, and the set of updated services is obtained;
[0104] Send several third-party request traffic packets to the service set and receive several update response traffic packets;
[0105] Determine if the update response traffic packet contains special fields. If so, modify the timestamp in the update response traffic packet to obtain the modified response traffic packet. Decode the third request traffic packet to obtain the original third request message. Determine if the original third request message matches the preset traffic rules. If so, output the third actual traffic feature and store the third actual traffic feature, the corresponding third request traffic packet, and the modified update response traffic packet in the preset feature library. If not, store the original third request message and the modified update response traffic packet in the preset feature library.
[0106] If not (i.e., the update response packet does not contain special fields), decode the third request packet to obtain the original third request message;
[0107] Determine whether the original message of the third request matches the preset traffic rules. If so, output the third actual traffic feature, store the third actual traffic feature and the corresponding third request traffic packet, and update the response traffic packet to the preset feature library.
[0108] If not, store the original message of the third request and its corresponding update response traffic packet to the preset feature database.
[0109] The third request traffic packet is a request packet that matches the updated business.
[0110] In this embodiment, modifying the timestamp in the update response traffic packet is equivalent to deleting a special field.
[0111] Existing traditional honeypot simulation applications lack adaptive capabilities and cannot adapt to changes in user asset host applications. The method disclosed in this application, however, possesses adaptive capabilities. During operation, the honeypot can automatically trigger communication between the agent and the asset host service, dynamically and adaptively updating itself based on changes in user asset host applications. This satisfies the various functional requirements corresponding to the real services in the user asset environment, achieving automated monitoring and dynamic real-time updates. In other words, it can dynamically update the response traffic packets associated with requests, thereby dynamically changing the content of the traffic packets responded to attackers, achieving an adaptive effect. This eliminates the need for users to manually simulate each application one by one, greatly improving deployment and response efficiency, and ensuring high accuracy.
[0112] A second aspect of this application provides a honeypot adaptive deployment system based on traffic characteristics, comprising:
[0113] The decoding module is configured to decode the first request traffic packet acquired by the listener.
[0114] The acquisition module is configured to obtain the original message of the first request;
[0115] The first judgment module is configured to determine whether the first request original message matches a preset traffic rule; if not, determine whether the first request original message matches a preset feature library; if yes, obtain the corresponding message response traffic packet and respond with the message response traffic packet; if no, respond by refusing connection.
[0116] The output module is configured to output the first actual traffic feature if the first request original message matches a preset traffic rule;
[0117] The second judgment module is configured to determine whether the first actual traffic feature matches a preset feature library. If yes, it obtains the corresponding feature response traffic packet and responds with the feature response traffic packet. If no, it responds by refusing the connection.
[0118] An electronic device according to embodiments of the present disclosure includes a memory and a processor. The memory is used to store non-transitory computer-readable instructions. Specifically, the memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM) and / or cache memory. The non-volatile memory may, for example, include read-only memory (ROM), a hard disk, flash memory, etc.
[0119] The processor may be a central processing unit (CPU) or other form of processing unit with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. In one embodiment of this disclosure, the processor is used to execute computer-readable instructions stored in the memory, causing the electronic device to perform all or part of the steps of the traffic-feature-based honeypot adaptive deployment method of the foregoing embodiments of this disclosure.
[0120] Those skilled in the art will understand that, in order to solve the technical problem of how to achieve a good user experience, this embodiment may also include well-known structures such as communication buses and interfaces, and these well-known structures should also be included within the protection scope of this disclosure.
[0121] like Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. It illustrates a structural schematic diagram suitable for implementing the electronic device in the embodiment of the present disclosure. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0122] like Figure 5 As shown, an electronic device may include a processor (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) or a program loaded from a storage device into random access memory (RAM). The RAM also stores various programs and data required for the operation of the electronic device. The processor, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.
[0123] Typically, the following devices can be connected to the I / O interface: input devices, such as sensors or visual information acquisition devices; output devices, such as displays; storage devices, such as magnetic tapes or hard drives; and communication devices. Communication devices allow electronic devices to communicate wirelessly or wiredly with other devices (such as edge computing devices) to exchange data. Although Figure 5Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have instead.
[0124] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processor, all or part of the steps of the traffic-feature-based honeypot adaptive deployment method of embodiments of this disclosure are performed.
[0125] For a detailed description of this embodiment, please refer to the corresponding descriptions in the foregoing embodiments, which will not be repeated here.
[0126] A computer-readable storage medium according to embodiments of the present disclosure stores non-transitory computer-readable instructions. When these non-transitory computer-readable instructions are executed by a processor, all or part of the steps of the traffic-feature-based adaptive honeypot deployment method of the foregoing embodiments of the present disclosure are performed.
[0127] The aforementioned computer-readable storage media include, but are not limited to: optical storage media (e.g., CD-ROM and DVD), magneto-optical storage media (e.g., MO), magnetic storage media (e.g., magnetic tape or portable hard drive), media with built-in rewritable non-volatile memory (e.g., memory card), and media with built-in ROM (e.g., ROM cartridge).
[0128] For a detailed description of this embodiment, please refer to the corresponding descriptions in the foregoing embodiments, which will not be repeated here.
[0129] The basic principles of this disclosure have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this disclosure are merely examples and not limitations, and should not be considered as essential features of each embodiment of this disclosure. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the scope of this disclosure to the necessity of employing the aforementioned specific details for implementation.
[0130] In this disclosure, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The block diagrams of devices, apparatuses, devices, and systems involved in this disclosure are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as "comprising," "including," "having," etc., are open-ended terms meaning "including but not limited to," and are used interchangeably with them. The terms "or" and "and" as used herein refer to the terms "and / or," and are used interchangeably with them unless the context clearly indicates otherwise. The term "such as" as used herein refers to the phrase "such as but not limited to," and is used interchangeably with it.
[0131] Additionally, as used herein, the “or” used in a list of items beginning with “at least one” indicates a separate list, such that a list of, for example, “at least one of A, B, or C” means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word “exemplary” does not imply that the described example is preferred or better than other examples.
[0132] It should also be noted that in the systems and methods of this disclosure, the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered as equivalent solutions to this disclosure.
[0133] Various changes, substitutions, and modifications can be made to the technology described herein without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of this disclosure is not limited to the specific aspects of the processes, machines, manufactures, events, means, methods, and actions described above. Currently existing or later-developed processes, machines, manufactures, events, means, methods, or actions that perform substantially the same function or achieve substantially the same result as the corresponding aspects described herein can be utilized. Therefore, the appended claims include such processes, machines, manufactures, events, means, methods, or actions within their scope.
[0134] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of this disclosure. Therefore, this disclosure is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.
[0135] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this disclosure to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations therein.
Claims
1. A method for adaptive deployment of honeypot based on traffic characteristics, the method comprising: receiving a request from a client to access a service; determining a traffic characteristic of the request; and deploying a honeypot based on the traffic characteristic. The method includes: Decode the first request traffic packet obtained from the monitoring to obtain the original message of the first request; Determine whether the first request original message matches a preset traffic rule. If not, determine whether the first request original message matches a preset feature library. If yes, obtain the corresponding message response traffic packet and respond with the message response traffic packet. If no, respond by refusing the connection. If the original message of the first request matches the preset traffic rules, output the first actual traffic feature; Determine whether the first actual traffic feature matches the preset feature library. If yes, obtain the corresponding feature response traffic packet and respond with the feature response traffic packet. If no, respond by refusing the connection. The method for constructing the preset feature library includes: Obtain several second request traffic packets and several business response traffic packets from the proxy; Determine whether the service response traffic packet contains a special field. If so, modify the timestamp in the service response traffic packet to obtain the modified service response traffic packet. Decode the second request traffic packet to obtain the original message of the second request. Determine whether the original message of the second request matches the preset traffic rule. If yes, output the second actual traffic feature and construct the preset feature library, which includes the second actual traffic feature, the corresponding second request traffic packet, and the modified service response traffic packet. If no, construct the preset feature library, which includes the original message of the second request and the corresponding modified service response traffic packet. If not, decode the second request traffic packet to obtain the second request original message; determine whether the second request original message matches the preset traffic rule; if yes, output the second actual traffic feature and construct the preset feature library, which includes the second actual traffic feature and the corresponding second request traffic packet and the service response traffic packet; if not, construct the preset feature library, which includes the second request original message and the corresponding service response traffic packet.
2. The honeypot adaptive deployment method based on traffic characteristics according to claim 1, characterized in that, The decoding and monitoring of the first request traffic packet yields the original first request message, including: The honeypot monitors the first request traffic packet in real time, decodes the byte data of the first request traffic packet into character data, and obtains the original message of the first request. The first request packet is an attacker's request packet.
3. The honeypot adaptive deployment method based on traffic characteristics according to claim 1, characterized in that, The preset traffic rules include one or more of the following: HTTP protocol traffic rules, MySQL 5.7 protocol traffic rules, and TFTP protocol traffic rules; The HTTP protocol traffic rules include one or more of the following: GET request, HEAD request, POST request, PUT request, DELETE request, CONNECT request, OPTIONS request, TRACE request, and PATCH request. The MySQL 5.7 protocol traffic rules include one or more of the following: login authentication requests, query requests, and version negotiation requests. The TFTP protocol traffic rules include file upload requests and / or file download requests.
4. The honeypot adaptive deployment method based on traffic characteristics according to claim 3, characterized in that, When the first request original message matches the HTTP protocol traffic rule, the output first actual traffic feature is the request method, URL, and HTTP in the HTTP request header; When the first request original message matches the mysql5.7 protocol traffic rule, the first actual traffic feature output is username, password and mysql, or the first actual traffic feature output is select, query sql and mysql; When the first request original message matches the TFTP protocol traffic rule, the first actual traffic feature output is get, filename, and TFTP; or, the first actual traffic feature output is put, filename, and TFTP.
5. The honeypot adaptive deployment method based on traffic characteristics according to claim 1, characterized in that, The method further includes: if the original request message does not match the preset feature library, a fuzzy matching method is used to query a similar traffic packet with a preset similarity in the preset feature library, and a similar response traffic packet corresponding to the similar traffic packet is obtained, and the similar response traffic packet is used to reply; If the similar traffic packet is not found in the preset feature library, the response will be a connection rejection. The preset similarity is no less than 80%.
6. The honeypot adaptive deployment method based on traffic characteristics according to claim 4, characterized in that, The acquisition of several second request traffic packets and several service response traffic packets from the proxy includes: Several services of the asset host service are accessed through a proxy to obtain several second request traffic packets; Several of the services provide real-time feedback of several service response traffic packets based on several second request traffic packets.
7. The honeypot adaptive deployment method based on traffic characteristics according to claim 5, characterized in that, The special fields include one or more of the following: Timestamp field, date field, If-Modified-Since field, and last-modify field.
8. The honeypot adaptive deployment method based on traffic characteristics according to claim 6, characterized in that, The method also includes real-time updates to the preset feature library, the updates including: Real-time monitoring of the process IDs of all services; If a changed process ID exists, it is determined that the asset host service has been updated, and the set of updated services is obtained; Send several third request traffic packets to the service set and obtain several update response traffic packets; Determine whether the update response traffic packet contains a special field. If so, modify the timestamp in the update response traffic packet to obtain a modified update response traffic packet. Decode the third request traffic packet to obtain the original third request message. Determine whether the original third request message matches the preset traffic rule. If so, output the third actual traffic feature and store the third actual traffic feature, the corresponding third request traffic packet, and the modified update response traffic packet in the preset feature library. If not, store the original third request message and the modified update response traffic packet in the preset feature library. If not, decode the third request traffic packet to obtain the original third request message; Determine whether the original message of the third request matches the preset traffic rule. If so, output the third actual traffic feature and store the third actual traffic feature, the corresponding third request traffic packet, and the update response traffic packet into the preset feature library. If not, store the original message of the third request and its corresponding update response traffic packet in the preset feature library.
9. A honeypot adaptive deployment system based on traffic characteristics, characterized in that, include: The decoding module is configured to decode the first request traffic packet acquired by the listener. The acquisition module is configured to obtain the original message of the first request; The first judgment module is configured to determine whether the first request original message matches a preset traffic rule; if not, determine whether the first request original message matches a preset feature library; if yes, obtain the corresponding message response traffic packet and respond with the message response traffic packet; if no, respond by refusing connection. The output module is configured to output the first actual traffic feature if the first request original message matches a preset traffic rule; The second judgment module is configured to determine whether the first actual traffic feature matches a preset feature library. If yes, it obtains the corresponding feature response traffic packet and responds with the feature response traffic packet. If no, it responds by refusing the connection. The method for constructing the preset feature library includes: Obtain several second request traffic packets and several business response traffic packets from the proxy; Determine whether the service response traffic packet contains a special field. If so, modify the timestamp in the service response traffic packet to obtain the modified service response traffic packet. Decode the second request traffic packet to obtain the original message of the second request. Determine whether the original message of the second request matches the preset traffic rule. If yes, output the second actual traffic feature and construct the preset feature library, which includes the second actual traffic feature, the corresponding second request traffic packet, and the modified service response traffic packet. If no, construct the preset feature library, which includes the original message of the second request and the corresponding modified service response traffic packet. If not, decode the second request traffic packet to obtain the second request original message; determine whether the second request original message matches the preset traffic rule; if yes, output the second actual traffic feature and construct the preset feature library, which includes the second actual traffic feature and the corresponding second request traffic packet and the service response traffic packet; if not, construct the preset feature library, which includes the second request original message and the corresponding service response traffic packet.
Citation Information
Patent Citations
Honeypot interaction method and device, honeypot network, equipment and storage medium
CN114389863A
Industrial control network attack message response method and response system based on honeypot system
CN115883169A
