Safety protection method and device based on honeypot, electronic equipment and storage medium
By dynamically adjusting honeypot deployment strategies and utilizing machine learning models, the honeypot system is solved inefficient when facing complex cyber attacks, achieving more efficient attacker trapping and information collection, and enhancing network security defense capabilities.
Patent Information
- Application Number
- CN202411158740.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When facing complex and changing cyber attacks, existing honeypot systems are difficult to continuously and effectively attract and capture attackers, and cannot fully obtain the attacker's detailed information, resulting in low network security defense efficiency.
By obtaining target attack data from honeypots, we can judge whether there are abnormalities in the attacker's behavior, and dynamically adjust the honeypot deployment strategy, including changing the disguised identity and service type, using machine learning models for automated, intelligent detection and prediction, and generating attacks 2. The person portrays the person to achieve personalized defense.
It improves the trapping efficiency and accuracy of honeypots, so that they can better adapt to the ever-changing network attack environment, enhance network security protection capabilities, promptly discover and respond to new attack methods, and improve resource utilization efficiency.
Smart Images

Figure CN119094180A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information security technology, and in particular to a honeypot-based security protection method, device, electronic device and storage medium. Background Art
[0002] Network security is an important branch of the information technology field. Currently, there are many technical means for defending and detecting network attacks, including firewalls, intrusion detection systems (IDS), etc. Honeypots, as an active defense technology, attract attackers by simulating real network services, thereby collecting attacker behavior information and providing data for security analysis. However, the honeypot system in related technologies is usually deployed in the network as a static trapping tool, which identifies attack behaviors and collects relevant data by monitoring and analyzing network traffic in and out of the honeypot. When faced with complex and changeable network attacks, this method is often difficult to continuously and effectively attract and capture attackers, and it is also unable to fully obtain detailed information about attackers, resulting in low efficiency of network security defense. Therefore, it is particularly important to improve the trapping efficiency of honeypots to enhance network security protection capabilities. Summary of the invention
[0003] In order to solve the above technical problems, the present application provides a honeypot-based security protection method, device, electronic device and storage medium.
[0004] In a first aspect, the present application provides a honeypot-based security protection method, comprising: obtaining target attack data from a honeypot, wherein the target attack data includes data on the attacker's attack behavior on the network; judging whether the attacker's attack behavior is abnormal based on the target attack data; and when it is determined that the attacker's attack behavior is abnormal, adjusting the deployment strategy of the honeypot to facilitate luring the attacker.
[0005] By adopting the above technical solution, by obtaining target attack data from the honeypot, and judging whether the attacker's behavior is abnormal based on these target attack data, the deployment strategy of the honeypot can be adjusted dynamically. By using the attack data collected by the honeypot, the attacker's behavior can be deeply analyzed and abnormal behavior patterns can be identified. After detecting abnormal attack behavior, the deployment strategy of the honeypot can be dynamically adjusted to improve the efficiency of trapping, making it easier for attackers to fall into the trap, avoiding the problem that the honeypot system in the related technology can only be deployed statically and the trapping strategy is fixed, which makes it difficult to dynamically adjust according to the attacker's behavior and strategy. This dynamic adjustment method enables the honeypot to better adapt to the ever-changing network attack environment and improve the efficiency and accuracy of trapping attackers.
[0006] Optionally, judging whether there is an abnormality in the attacker's attack behavior based on the target attack data includes at least one of the following: determining that there is an abnormality in the attacker's attack behavior when the number of login attempts to the target service determined based on the target attack data is greater than a preset threshold number of times; determining that there is an abnormality in the attacker's attack behavior when the current traffic pattern determined based on the target attack data does not match the preset traffic pattern, wherein the current traffic pattern includes characteristics of the network traffic currently received by the honeypot; determining that there is an abnormality in the attacker's attack behavior when the port scanning behavior determined based on the target attack data exceeds a preset time length; determining that there is an abnormality in the attacker's attack behavior when there is a data packet with abnormal characteristics determined based on the target attack data.
[0007] By adopting the above technical solution, the attacker may crack the password by multiple login attempts, may detect the network through abnormal traffic patterns, may scan network ports to find vulnerabilities, and may send abnormal data packets to test the response of the network system; by setting the threshold of the number of login attempts, possible attack behaviors can be discovered in time, and by comparing the current traffic pattern with the preset pattern, abnormal traffic can be identified, thereby discovering potential network attack behaviors; by setting the preset time threshold of port scanning behavior, continuous attack behaviors exceeding the threshold can be effectively identified, and it can be judged whether the attacker has malicious intentions; by identifying abnormal data packets, it is possible to discover the exploratory attacks or malicious data packets sent by the attacker. By introducing a multi-dimensional method for judging the abnormality of attack behavior, the problem of a single judgment basis in the existing technology is solved, and the technical effect of improving the accuracy of attack behavior judgment and enhancing network security protection capabilities is achieved.
[0008] Optionally, judging whether the attacker's attack behavior is abnormal based on the target attack data includes: using a target detection model to detect the target attack data to obtain a detection result, wherein the detection result includes a target attack pattern, and the target detection model is trained on historical behavior data, and the historical behavior data includes historical normal behavior data and historical abnormal behavior data; judging whether the attacker's attack behavior is abnormal based on the detection result.
[0009] By adopting the above technical solution and introducing the target detection model, the purpose of automatic and intelligent detection of target attack data can be achieved, greatly improving the detection efficiency. At the same time, since the model is trained based on a large amount of historical behavior data, it can more accurately identify abnormal attack behaviors; the target detection model can learn the characteristics of historical normal behavior data and historical abnormal behavior data, thus having a certain generalization ability; when new attack methods appear, as long as these attack behaviors are similar in characteristics to historical abnormal behavior data, the model can effectively identify them. By training a target detection model that can identify attack patterns, the attack data can be analyzed more intelligently and the detection results can be given, including the judgment of whether there is abnormal behavior. Once abnormal behavior is detected, action can be taken immediately to adjust the deployment strategy of the honeypot to deal with potential attacks.
[0010] Optionally, judging whether the attacker's attack behavior is abnormal based on the target attack data includes: analyzing the target attack data using a machine learning model, and predicting the attacker's attack behavior to obtain a prediction result, wherein the machine learning model is trained on historical attack data, and the historical attack data includes network attack data of various attack types; judging whether the attacker's attack behavior is abnormal based on the prediction result.
[0011] By adopting the above technical solutions, the target attack data can be analyzed and predicted using machine learning models, which can realize the automatic and intelligent identification of attack behaviors. Machine learning models can learn the characteristics of historical attack data, so as to more accurately predict future attack behaviors; machine learning models have strong generalization capabilities and can identify unknown attacks that are similar to known attack behaviors but not exactly the same, which helps network security systems to promptly discover and respond to new attack methods, and adopt corresponding adjustment strategies or trapping methods to increase the attacker's interest and stay time, attract the attacker to further attempt attacks, and further collect the attacker's attack behavior data.
[0012] Optionally, when it is determined that the attacker's attack behavior is abnormal, adjusting the deployment strategy of the honeypot includes: when it is determined that the attacker's attack behavior is abnormal, changing the disguised identity and / or service type of the honeypot.
[0013] By adopting the above technical solution, by changing the disguised identity and / or service type of the honeypot, the honeypot can present more diverse characteristics in the network environment. This diversity makes it difficult for attackers to accurately identify the true identity of the honeypot, thereby increasing the concealment and attractiveness of the honeypot. When abnormal attack behavior is detected, the disguised identity and service type of the honeypot are dynamically changed according to the characteristics and targets of the attack behavior, so that the honeypot can be more adapted to the current attack environment. This adaptability enables the honeypot to more effectively capture and analyze new attack methods and targets; by changing the disguised identity and service type of the honeypot, it is possible to more effectively attract and confuse attackers and improve the success rate of trapping. For disguised identity change, for example, according to the behavior and preference of the attacker, the honeypot can simulate different user roles or system identities to attract specific attackers; for service type adjustment, for example, the honeypot can provide different types of services, such as Web services, database services, etc., to adapt to the attack targets of different attackers. Through this method of dynamically adjusting the honeypot deployment strategy, not only can the efficiency of trapping attackers be improved, but also the adaptability and real-time response capabilities of the network security protection system can be enhanced. By dynamically adjusting the disguised identity and / or service type of the honeypot according to changes in attack behavior, it can be ensured that the honeypot always matches the main attack target in the current network environment, which helps to improve the resource utilization efficiency of the honeypot and enables it to make better use of resources to capture and analyze attack behavior.
[0014] Optionally, the honeypot is configured to allow simulation of multiple network services, and when it is determined that the attacker's attack behavior is abnormal, the honeypot's disguised identity and / or service type is changed, including at least one of the following: changing the honeypot's IP address; changing the honeypot's domain name; changing the honeypot's server response information; changing the honeypot's browser type; changing the honeypot's port; changing the honeypot's service type; changing the honeypot's operating system type.
[0015] By adopting the above technical solutions, by changing the identity information of the honeypot, the real environment can be better simulated to attract more types of attackers; the constantly changing IP addresses, domain names and other information increase the difficulty for attackers to identify the honeypot and improve the concealment of the honeypot; by changing the service type and operating system type, the honeypot can respond to more types of attacks and improve the security of the system; by simulating different network services and environments, a wider range of attack data can be collected to provide a more comprehensive perspective for security analysis. By allowing the honeypot to simulate multiple network services and change the disguised identity when abnormal attack behavior is detected, the disguise flexibility of the honeypot is significantly improved, which enables the honeypot to better adapt to the complex and changing network attack environment and increases the difficulty for attackers to identify and bypass the honeypot. Through this diverse and dynamic disguise strategy, the honeypot can more effectively trap attackers while improving its own security and concealment.
[0016] Optionally, the above method also includes: generating an attacker portrait based on target attack data, wherein the target attack data includes attack data of the attacker within a preset time period in the past; determining a target deployment strategy based on the attacker portrait, wherein the target deployment strategy is a deployment strategy that matches the attacker portrait.
[0017] By adopting the above technical solution, by generating an attacker portrait based on the target attack data, the method can deeply understand the attacker's behavioral characteristics, attack preferences and attack patterns. Based on these characteristics, a target deployment strategy that matches the attacker portrait can be determined to achieve personalized defense. This defense strategy is more targeted and effective, and can more effectively curb the malicious activities of specific attackers. By analyzing the attacker's historical behavior data, the attacker's intentions and behavior patterns can be more accurately identified, and the deployment strategy of the honeypot can be customized according to the attacker portrait to achieve personalized defense against different attackers. The attacker portrait is quickly generated and the deployment strategy is adjusted accordingly, which improves the response speed and effect to the attack. Through targeted deployment strategies, security protection resources can be more effectively allocated and resource utilization efficiency can be improved.
[0018] In the second aspect of the present application, a honeypot-based security protection device is also provided, including: an acquisition module for acquiring target attack data from the honeypot, wherein the target attack data includes data on the attacker's attack behavior on the network; a judgment module for judging whether the attacker's attack behavior is abnormal based on the target attack data; an adjustment module for adjusting the deployment strategy of the honeypot to facilitate trapping the attacker when it is determined that the attacker's attack behavior is abnormal.
[0019] In a third aspect of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, any of the above method steps is implemented.
[0020] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the above method steps is performed.
[0021] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. After detecting abnormal attack behavior, the deployment strategy of the honeypot can be dynamically adjusted so that the honeypot can better adapt to the ever-changing network attack environment and improve the efficiency and accuracy of trapping attackers; 2. The machine learning model can learn the characteristics of historical attack data, so as to more accurately predict future attack behaviors, which helps the network security system to timely discover and respond to new attack methods, and take corresponding adjustment strategies or trapping methods to attract attackers to further attempt attacks, thereby further collecting attackers' attack behavior data; 3. By changing the disguised identity and / or service type of the honeypot, it can more effectively attract and confuse attackers and increase the success rate of entrapment; 4. Generate an attacker profile based on the target attack data, and determine the target deployment strategy that matches the attacker profile, thereby achieving personalized defense. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a flow chart of a honeypot-based security protection method provided in an embodiment of the present application; Figure 2 It is a structural block diagram of a honeypot-based security protection device provided in an embodiment of the present application; Figure 3 It is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application.
[0023] Description of reference numerals: 300 - electronic device; 301 - processor; 302 - communication bus; 303 - user interface; 304 - network interface; 305 - memory. DETAILED DESCRIPTION
[0024] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0025] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0026] In the description of the embodiments of the present application, the term "plurality" means two or more. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0027] This application provides a honeypot-based security protection method. Figure 1 , Figure 1 This is a flow chart of a honeypot-based security protection method provided in an embodiment of the present application, comprising the following steps: Step S101, obtaining target attack data from a honeypot, wherein the target attack data includes data of an attacker's attack behavior on a network; Step S102, judging whether the attacker's attack behavior is abnormal based on the target attack data; Step S103, when it is determined that the attacker's attack behavior is abnormal, the deployment strategy of the honeypot is adjusted to trap the attacker.
[0028] In the above embodiment, by obtaining the target attack data from the honeypot, and judging whether the attacker's behavior is abnormal based on these target attack data, the deployment strategy of the honeypot can be dynamically adjusted. By using the attack data collected by the honeypot, the attacker's behavior can be deeply analyzed and the abnormal behavior pattern can be identified. After detecting the abnormal attack behavior, the deployment strategy of the honeypot can be dynamically adjusted to improve the efficiency of trapping, making it easier for the attacker to fall into the trap, avoiding the problem that the honeypot system in the related art can often only be statically deployed and the trapping strategy is fixed, which makes it difficult to dynamically adjust according to the attacker's behavior and strategy. This dynamic adjustment method enables the honeypot to better adapt to the ever-changing network attack environment and improve the efficiency and accuracy of trapping attackers. Through in-depth analysis of the target attack data, it is possible to more accurately judge whether the attacker's behavior is abnormal. The embodiment of the present application can not only defend when an attack occurs, but also prevent attacks by dynamically adjusting the deployment strategy of the honeypot before the attack occurs. This active defense method helps to reduce the damage caused by network attacks to the system and improve the overall security of the network. By continuously collecting and analyzing the attacker's behavior data, the network security defense strategy can be continuously optimized and improved. At the same time, this data can also provide security teams with important information about new attack vectors, vulnerabilities, and threat intelligence, helping to better understand the network security situation and improve the ability to respond to cyber attacks.
[0029] In an optional embodiment, determining whether the attacker's attack behavior is abnormal based on the target attack data includes at least one of the following: determining that the attacker's attack behavior is abnormal when the number of login attempts to the target service is greater than a preset threshold based on the target attack data; determining that the attacker's attack behavior is abnormal when the current traffic pattern does not match the preset traffic pattern based on the target attack data, wherein the current traffic pattern includes characteristics of the network traffic currently received by the honeypot; determining that the attacker's attack behavior is abnormal when the port scanning behavior of the attacker exceeds a preset time period based on the target attack data; determining that the attacker's attack behavior is abnormal when a data packet with abnormal characteristics is determined based on the target attack data.
[0030] In the above embodiments, the attacker may crack the password by multiple login attempts, may detect the network through abnormal traffic patterns, may scan network ports to find vulnerabilities, and may send abnormal data packets to test the response of the network system; by setting the threshold of the number of login attempts, possible attack behaviors can be discovered in time, and by comparing the current traffic pattern with the preset pattern, abnormal traffic can be identified, thereby discovering potential network attack behaviors; by setting the preset time threshold of the port scanning behavior, continuous attack behaviors exceeding the threshold can be effectively identified, and it can be judged whether the attacker has malicious intentions; by identifying abnormal data packets, tentative attacks or malicious data packets sent by the attacker can be found. By introducing a multi-dimensional method for judging the abnormality of attack behavior, the problem of a single judgment basis in the prior art is solved, and the technical effect of improving the accuracy of attack behavior judgment and enhancing network security protection capabilities is achieved. By monitoring the number of login attempts, key services can be protected from brute force cracking; by analyzing traffic patterns and port scanning behaviors, complex attack methods can be identified and the network's protection capabilities can be enhanced; by identifying abnormal data packets, possible attacks can be discovered and prevented in time, reducing security risks and potential losses. The preset traffic mode refers to a network traffic feature model that is set in advance based on historical data, business characteristics, network architecture and other factors when the network is operating normally. This model includes the characteristics of the normal range of traffic, traffic distribution, traffic type, traffic rate and other aspects. The preset traffic mode is mainly used in scenarios such as network monitoring, traffic analysis, and anomaly detection. For example, in an e-commerce website, the preset traffic mode may include the number of visits at different times of the day, user behavior patterns (such as browsing products, adding to shopping carts, placing orders and paying, etc.), and the distribution of visits in different regions; for example, in an internal network of an enterprise, the preset traffic mode may include the data transmission volume between departments, the traffic proportion of specific applications, and the usage of network bandwidth. When a large number of access requests from unknown IP addresses suddenly appear, and most of these requests are concentrated on a specific service port, this may be a precursor to a DDoS attack; or, in a certain period of time, the network bandwidth is occupied in large quantities, resulting in the inability to carry out normal business smoothly, and this part of the traffic mainly comes from a specific IP address or IP address segment, which may be a manifestation of a CC attack.
[0031] In an optional embodiment, judging whether the attacker's attack behavior is abnormal based on the target attack data includes: using a target detection model to detect the target attack data to obtain a detection result, wherein the detection result includes a target attack pattern, and the target detection model is trained on historical behavior data, and the historical behavior data includes historical normal behavior data and historical abnormal behavior data; judging whether the attacker's attack behavior is abnormal based on the detection result.
[0032] In the above embodiment, by introducing the target detection model, the purpose of automatic and intelligent detection of target attack data can be achieved, greatly improving the detection efficiency. At the same time, since the model is trained based on a large amount of historical behavior data, it can more accurately identify abnormal attack behaviors; the target detection model can learn the characteristics of historical normal behavior data and historical abnormal behavior data, so it has a certain generalization ability; when new attack methods appear, as long as these attack behaviors are similar to historical abnormal behavior data in characteristics, the model can effectively identify them. The attacker's behavior may be very complex and diverse, and traditional detection systems may find it difficult to accurately identify and classify these behavior patterns. The target detection model can be trained based on historical behavior data, so as to dynamically learn and adapt to new attack patterns; integrating the target detection model into the honeypot-based security protection system can achieve all-round and multi-level monitoring and defense of attack behaviors. By more accurately identifying attack behaviors, the deployment strategy of honeypots can be adjusted faster, and the overall defense capability of the network can be improved. This can not only timely discover and respond to potential network security threats, but also provide strong support for subsequent security analysis, source tracing and evidence collection. By training a target detection model that can identify attack patterns, we can analyze attack data more intelligently and give detection results, including the judgment of whether there is abnormal behavior. Once abnormal behavior is detected, we can take immediate action to adjust the deployment strategy of the honeypot to deal with potential attacks.
[0033] In an optional embodiment, judging whether the attacker's attack behavior is abnormal based on the target attack data includes: analyzing the target attack data using a machine learning model, and predicting the attacker's attack behavior to obtain a prediction result, wherein the machine learning model is trained on historical attack data, and the historical attack data includes network attack data of various attack types; judging whether the attacker's attack behavior is abnormal based on the prediction result.
[0034] In the above embodiments, by using a machine learning model to analyze and predict target attack data, automated and intelligent identification of attack behaviors can be achieved. The machine learning model can learn the characteristics of historical attack data, so as to more accurately predict future attack behaviors; the machine learning model has a strong generalization ability and can identify unknown attacks that are similar to but not exactly the same as known attack behaviors, which helps the network security system to promptly discover and respond to new attack methods, and adopt corresponding adjustment strategies or trapping methods to increase the attacker's interest and stay time, attract the attacker to further attempt to attack, and further collect the attacker's attack behavior data. Traditional security systems may find it difficult to identify complex and changeable network attack behaviors, and existing security measures often lack the ability to predict future attack behaviors, resulting in lagging defense measures; the valuable information contained in historical attack data may not be fully utilized, so that the accuracy of detection and prediction cannot be improved. The machine learning model can continuously adapt to new attack patterns by learning historical attack data, improve the dynamics of detection, and use network attack data of multiple attack types to train the model, so that the model can identify and predict multiple attack behaviors. For example, the machine learning model can be used to analyze historical DDoS attack data and learn the characteristics of DDoS attacks (such as traffic patterns, packet sizes, source IP address distribution, etc.). Then, the model can predict real-time network traffic, determine whether there is a risk of DDoS attacks, and adjust the deployment strategy of the honeypot in advance or take defensive measures. For example, the machine learning model can be used to analyze historical SQL injection attack data and learn the characteristics of SQL injection attacks (such as abnormal patterns of SQL statements, abnormal request parameters, etc.). In this way, the model can monitor the user's current input in real time and predict that a SQL injection attack may occur.
[0035] When training a machine learning model, it is also necessary to balance the weights of different types of attack data. For example, by adjusting the number of different types of attack data, their proportion in the training set can be controlled. For example, if a certain type of attack is relatively rare, it can be oversampled to increase its representativeness in the training set; when training a model, different weights can be assigned to different types of attack data. In this way, even if some types of data are less in number in the training set, their impact in the model training process will be amplified; different loss weights are assigned to different types of attack data. If the consequences of certain types of attacks are more serious, these types of data can be assigned higher weights in the loss function. Example 1: Weight setting based on attack severity. For example, attack data types may include: DDoS attacks, SQL injections, and XSS attacks (cross-site scripting attacks). Assuming that DDoS attacks have the most serious impact on the system, the weight can be set to 2.0. SQL injections may pose a threat to data security, but may not necessarily cause service interruptions. The weight is set to 1.5. XSS attacks affect user privacy and security, but usually do not directly affect backend services. The weight is set to 1.0. When implemented, in the loss function, different types of attack data are weighted according to the above weights. Example 2: Weight setting based on data scarcity. For example, the types of attack data include: ransomware attack, phishing attack, APT attack (advanced persistent threat). Assuming that ransomware attack data is more common, the weight is set to 1.0, phishing attack data is moderate, and the weight is set to 1.2 to reflect its prevalence in network attacks. APT attack data is relatively scarce, so a higher weight is required to improve the model's ability to identify such attacks. The weight is set to 2.5. During the training process, the loss of APT attack data samples is weighted to increase the model's sensitivity to such attacks. For example, if the model fails to correctly identify an APT attack, its loss will be multiplied by 2.5.
[0036] In an optional embodiment, when it is determined that the attacker's attack behavior is abnormal, the deployment strategy of the honeypot is adjusted, including: when it is determined that the attacker's attack behavior is abnormal, the deployment strategy of the honeypot is adjusted in at least one of the following ways: adjusting the open port of the honeypot; adjusting the service content of the honeypot; adjusting the location of the honeypot; adjusting the IP address of the honeypot.
[0037] In the above embodiment, by dynamically adjusting the deployment strategy of the honeypot (such as open ports, service content, location and IP address, etc.) according to the changes in attack behavior, the honeypot can be made more difficult for attackers to identify and bypass. This helps to improve the concealment of the honeypot, so that it can capture attack behaviors more effectively. The honeypot system can dynamically adjust its own configuration and deployment strategy according to the real-time attack situation. For example, SQL injection is a common network attack method. Attackers control the background database system by inserting malicious SQL code in Web form input or URL parameters. The honeypot settings can be adjusted as follows: In terms of service content adjustment, a Web application containing known vulnerabilities is configured as a honeypot, such as using an old version of CMS (content management system) or forum software. In terms of open port adjustment, ensure that the standard ports of Web services (such as HTTP port 80 and HTTPS port 443) are open to the outside world. For another example, a DDoS (distributed denial of service) attack controls a large number of computers or network devices to send a large number of useless requests to the target system, causing the target system to run out of resources and be unable to respond to normal requests. The honeypot settings can be adjusted as follows: In terms of location, the honeypot is deployed close to the edge of the network, such as the DMZ (demilitarized zone) or the edge node of the cloud service, so that DDoS traffic can be detected earlier. In terms of IP addresses, multiple IP addresses are assigned to the honeypot to simulate the IP address distribution of the real business system and increase the difficulty for attackers to identify the honeypot. In terms of bait setting, some high-traffic services such as live video streaming and file downloading can be simulated in the honeypot to attract DDoS attack traffic, or appropriate bandwidth limits can be set for the honeypot to simulate the tolerance of the real business system and avoid the honeypot from crashing due to excessive traffic.
[0038] In an optional embodiment, when it is determined that the attack behavior of the attacker is abnormal, adjusting the deployment strategy of the honeypot includes: when it is determined that the attack behavior of the attacker is abnormal, changing the disguised identity and / or service type of the honeypot.
[0039] In the above embodiment, by changing the disguised identity and / or service type of the honeypot, the honeypot can present more diverse characteristics in the network environment. This diversity makes it difficult for attackers to accurately identify the true identity of the honeypot, thereby increasing the concealment and attractiveness of the honeypot. When abnormal attack behavior is detected, the disguised identity and service type of the honeypot are dynamically changed according to the characteristics and targets of the attack behavior, so that the honeypot can be more adapted to the current attack environment. This adaptability enables the honeypot to more effectively capture and analyze new attack methods and targets; by changing the disguised identity and service type of the honeypot, it is possible to more effectively attract and confuse attackers and improve the success rate of trapping; the constantly changing honeypot identity and service type increase the difficulty for attackers to identify the honeypot and reduce the risk of being evaded by the attacker. For disguised identity change, for example, according to the behavior and preferences of the attacker, the honeypot can simulate different user roles or system identities to attract specific attackers; for service type adjustment, for example, the honeypot can provide different types of services, such as Web services, database services, etc., to adapt to the attack targets of different attackers. Through this method of dynamically adjusting the honeypot deployment strategy, not only can the efficiency of trapping attackers be improved, but also the adaptability and real-time response capabilities of the network security protection system can be enhanced. Traditional honeypot systems often use fixed disguised identities and service types, which makes it possible for attackers to identify the true identity of the honeypot after multiple attempts, thereby taking evasive measures or conducting more covert attacks. The singleness of the disguised identity limits the attractiveness and effectiveness of the honeypot; when the attacker adopts a new attack strategy or target, the fixed disguised identity and service type may not be able to effectively attract and capture attack behaviors. If the disguised identity and / or service type of the honeypot does not match the main attack target in the current network environment, the honeypot may be idle for a long time and cannot fully utilize its resources to capture and analyze attack behaviors, resulting in low resource utilization efficiency. By dynamically adjusting the disguised identity and / or service type of the honeypot according to the changes in attack behaviors, it can be ensured that the honeypot always matches the main attack target in the current network environment, which helps to improve the resource utilization efficiency of the honeypot and enable it to more fully utilize resources to capture and analyze attack behaviors. Changing the disguised identity and / or service type of the honeypot not only enhances the concealment and attractiveness of the honeypot itself, but also improves the flexibility and adaptability of the entire network security protection system. The embodiment of the present application solves the problems of the singleness of the disguised identity, poor adaptability to attack behaviors, and low resource utilization efficiency of the honeypot system in the related art by introducing a mechanism for changing the disguised identity and service type of the honeypot, and achieves the technical effects of enhancing the diversity of disguised identities, improving the adaptability to attack behaviors, optimizing resource utilization, and improving the overall security protection level. Optionally, for SQL injection attacks, the service type can be changed, for example, the honeypot can simulate a Web application containing a known SQL injection vulnerability.When an attacker attempts SQL injection, the honeypot will capture and record these attacks. You can also change the disguised identity. For example, the honeypot can disguise itself as a common web application, such as a blog platform, e-commerce website, etc., because these types of websites are more likely to become targets of SQL injection attacks. Optionally, for DDoS attacks, you can change the service type. For example, since DDoS attacks mainly target network bandwidth and service availability, the honeypot can simulate a high-traffic service (such as video streaming service) to attract attack traffic. You can also combine the disguised identity with the service type. For example, the honeypot can disguise itself as a popular online video platform that provides video streaming services, thereby attracting DDoS attack traffic and monitoring and analyzing it.
[0040] In an optional embodiment, the honeypot is configured to allow simulation of multiple network services. When it is determined that the attacker's attack behavior is abnormal, the honeypot's disguised identity and / or service type is changed, including at least one of the following: changing the honeypot's IP address; changing the honeypot's domain name; changing the honeypot's server response information; changing the honeypot's browser type; changing the honeypot's port; changing the honeypot's service type; changing the honeypot's operating system type.
[0041] In the above embodiments, by changing the identity information of the honeypot, the real environment can be better simulated to attract more types of attackers; the constantly changing IP address, domain name and other information increases the difficulty for attackers to identify the honeypot and improves the concealment of the honeypot; by changing the service type and operating system type, the honeypot can respond to more types of attacks and improve the security of the system; by simulating different network services and environments, a wider range of attack data can be collected to provide a more comprehensive perspective for security analysis. By allowing the honeypot to simulate multiple network services and change the disguised identity (such as IP address, domain name, server response information, browser type, port, service type and operating system type, etc.) when abnormal attack behavior is detected, the disguise flexibility of the honeypot is significantly improved, which enables the honeypot to better adapt to the complex and changeable network attack environment and increases the difficulty for attackers to identify and bypass the honeypot. For example, change the IP address of the honeypot regularly or as needed to avoid being tracked by attackers for a long time; use different domain names to simulate different services or organizations to increase the difficulty of identification by attackers; adjust the server's response information, such as HTTP headers, response time, etc., to simulate different server states or configurations; simulate different user agents to attract attacks targeting specific browser vulnerabilities; change the port that the honeypot listens on to simulate different services or avoid attackers' scanning; adjust the type of service provided by the honeypot, such as Web services, FTP services, etc., according to the attacker's behavior or attack type; simulate the characteristics of different operating systems to attract attacks targeting specific operating system vulnerabilities. Through this diversified and dynamic camouflage strategy, the honeypot can more effectively trap attackers while improving its own security and concealment. After detecting abnormal attack behavior, the honeypot can quickly change its disguised identity, thereby blocking the attacker's further attempts and inducing it to reveal more attack details; by dynamically adjusting the disguised identity and service type according to changes in attack behavior, the honeypot can more effectively attract and capture the main attack behaviors in the current network environment. This helps to optimize resource utilization and ensure that the honeypot system is always in an efficient operating state.
[0042] In an optional embodiment, the above method also includes: generating an attacker portrait based on target attack data, wherein the target attack data includes attack data of the attacker within a preset period of time in the past; determining a target deployment strategy based on the attacker portrait, wherein the target deployment strategy is a deployment strategy that matches the attacker portrait.
[0043] In the above embodiment, by generating an attacker portrait based on the target attack data, the method can gain an in-depth understanding of the attacker's behavioral characteristics, attack preferences, and attack patterns. Based on these characteristics, a target deployment strategy that matches the attacker portrait can be determined to achieve personalized defense. This defense strategy is more targeted and effective, and can more effectively curb the malicious activities of specific attackers. By analyzing the attacker's historical behavior data, the attacker's intentions and behavior patterns can be more accurately identified, and the deployment strategy of the honeypot can be customized according to the attacker portrait to achieve personalized defense against different attackers. The attacker portrait is quickly generated and the deployment strategy is adjusted accordingly, which improves the response speed and effect to the attack. Through targeted deployment strategies, security protection resources can be more effectively allocated and resource utilization efficiency can be improved. The above-mentioned attackers may include one or more different network attackers, and the target attack data includes the attack behavior data of each network attacker; for example, the attack data of the attacker within a preset period of time may be collected, including login attempts, traffic patterns, port scans, etc., and features may be extracted from the attack data using data analysis and machine learning techniques to generate attacker portraits, analyze key features in the attacker portraits, such as attack frequency, preferred attack methods, target services, etc., select or generate matching deployment strategies from the predefined strategy library based on the features of the attacker portraits, monitor the attacker behavior in real time, and dynamically adjust the deployment strategy of the honeypot based on the update of the portraits. Attacker portraits refer to the construction of a descriptive framework that includes attacker characteristics, preferences, skills, and attack patterns by collecting and analyzing the attacker's behavior data. This kind of portrait can help security experts better understand the attacker's behavior, predict their possible attack methods, and formulate corresponding defense strategies. For example, taking the APT attacker portrait as an example, it is usually an organized group with advanced technology and resources, capable of conducting long-term and complex network attacks, possibly using customized malware, zero-day vulnerability exploits and complex social engineering techniques, focusing on high-value targets such as government agencies, large enterprises or research institutions. The attacks are usually planned and include long incubation periods to avoid being discovered. The attacker portrait can contain information in multiple dimensions, thereby helping the security team better understand the attacker's behavioral characteristics and develop more accurate and effective defense measures.
[0044] The above-mentioned target attack data includes at least one of the following: attack frequency; tools used in the attack; attack method; attacker's device information.
[0045] Specific embodiment 1: In actual application, the honeypot system can be deployed on the key nodes of the enterprise network and initially appear as a common network service. When an attack is detected, the system begins to collect and analyze the attacker's behavior data, such as attack frequency, tools and techniques used, etc. Based on this data, the system uses machine learning algorithms to predict the attacker's possible targets and adjust the location, open ports and service content of the honeypot accordingly. At the same time, the system can also further change the disguised identity of the honeypot based on the collected attacker device information, such as IP address, browser type, etc., to better confuse the attacker.
[0046] Specific embodiment 2: In the specific implementation, the honeypot system is first deployed as a default Web service node. Once a specific attack pattern is detected, such as an SQL injection attempt, the system will automatically adjust some honeypot nodes to simulate database services to more accurately capture attacks against this type. At the same time, the machine learning module will analyze the source and frequency of these attack data to provide intelligent decision support for the deployment of future honeypots.
[0047] Compared with the related art, the embodiment of the present application significantly improves the honeypot's ability to trap attackers in the network and the efficiency of information collection by dynamically adjusting the deployment strategy of the honeypot and using machine learning algorithms to predict behavior. At the same time, by integrating multiple camouflage technologies and changing identities and service types in real time, the confusion for attackers is increased, making the present invention have better application effects in the field of network security defense.
[0048] The present application also provides a honeypot-based security protection device, such as Figure 2 As shown, Figure 2 This is a structural block diagram of a honeypot-based security protection device provided in an embodiment of the present application, the device comprising: An acquisition module 201 is used to acquire target attack data from a honeypot, wherein the target attack data includes data of an attacker's attack behavior on a network; A judgment module 202 is used to judge whether the attacker's attack behavior is abnormal based on the target attack data; The adjustment module 203 is used to adjust the deployment strategy of the honeypot in order to trap the attacker when it is determined that the attacker's attack behavior is abnormal.
[0049] Other device embodiments correspond to the aforementioned method embodiments, and other technical features can be found in the previous embodiments, which will not be repeated here.
[0050] The present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed, any one of the method steps described above is executed.
[0051] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0052] The present application also discloses an electronic device. Figure 3 As shown, Figure 3 The electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .
[0053] The communication bus 302 is used to realize the connection and communication between these components.
[0054] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.
[0055] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0056] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts of the entire electronic device (such as a server), and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.
[0057] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally also be at least one storage device located away from the aforementioned processor 301. Refer to Figure 3 , the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program of a honeypot-based security protection method.
[0058] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call an application program of a honeypot-based security protection method stored in the memory 305. When executed by one or more processors 301, the electronic device 300 executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0059] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0060] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0061] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0062] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0063] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0064] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.
[0065] This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the technical field not recorded in the present disclosure.
Claims
1. A honeypot-based security protection method, characterized in that: include: Obtaining target attack data from the honeypot, wherein the target attack data includes data of the attacker's attack behavior on the network; Determining whether the attacker's attack behavior is abnormal based on the target attack data; When it is determined that the attacker's attack behavior is abnormal, the deployment strategy of the honeypot is adjusted to trap the attacker.
2. The method according to claim 1, characterized in that Judging whether the attacker's attack behavior is abnormal based on the target attack data includes at least one of the following: In a case where it is determined based on the target attack data that the number of login attempts of the attacker to the target service is greater than a preset number threshold, determining that the attack behavior of the attacker is abnormal; In the case where it is determined based on the target attack data that the current traffic pattern does not match the preset traffic pattern, determining that the attacker's attack behavior is abnormal, wherein the current traffic pattern includes characteristics of the network traffic currently received by the honeypot; In the case where it is determined based on the target attack data that the port scanning behavior of the attacker exceeds a preset time, determining that the attack behavior of the attacker is abnormal; In the case where a data packet having abnormal characteristics is determined based on the target attack data, it is determined that the attack behavior of the attacker is abnormal.
3. The method according to claim 1, characterized in that: Judging whether the attacker's attack behavior is abnormal based on the target attack data includes: Detecting the target attack data using a target detection model to obtain a detection result, wherein the detection result includes a target attack mode, and the target detection model is obtained by training historical behavior data, and the historical behavior data includes historical normal behavior data and historical abnormal behavior data; It is determined whether the attack behavior of the attacker is abnormal according to the detection result.
4. The method according to claim 1, characterized in that: Judging whether the attacker's attack behavior is abnormal based on the target attack data includes: Analyze the target attack data using a machine learning model, and predict the attacker's attack behavior to obtain a prediction result, wherein the machine learning model is trained on historical attack data, and the historical attack data includes network attack data of multiple attack types; Based on the prediction result, it is determined whether the attacker's attack behavior is abnormal.
5. The method according to claim 1, characterized in that When it is determined that the attack behavior of the attacker is abnormal, adjusting the deployment strategy of the honeypot includes: When it is determined that the attacker's attack behavior is abnormal, the disguised identity and / or service type of the honeypot is changed.
6. The method according to claim 5, characterized in that The honeypot is configured to allow simulation of multiple network services. When it is determined that the attacker's attack behavior is abnormal, the disguised identity and / or service type of the honeypot is changed, including at least one of the following: Changing the IP address of the honeypot; Changing the domain name of the honeypot; Transforming the server response information of the honeypot; Changing the browser type of the honeypot; Changing the port of the honeypot; Changing the service type of the honeypot; The operating system type of the honeypot is changed.
7. The method according to claim 1, characterized in that The method further comprises: Generate an attacker profile according to the target attack data, wherein the target attack data includes attack data of the attacker in a preset period of time in the past; A target deployment strategy is determined according to the attacker portrait, wherein the target deployment strategy is a deployment strategy that matches the attacker portrait.
8. A honeypot-based security protection device, characterized in that: include: An acquisition module, used to acquire target attack data from a honeypot, wherein the target attack data includes data of an attacker's attack behavior on a network; A judgment module, used for judging whether the attack behavior of the attacker is abnormal based on the target attack data; The adjustment module is used to adjust the deployment strategy of the honeypot in order to trap the attacker when it is determined that the attacker's attack behavior is abnormal.
9. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is performed.
Citation Information
Cited By
Network attack protection method and device based on honeypot, equipment and medium
CN120768699A
Construction method and system of dynamic threat capture system
CN120896776A
