Mail detection method and device, electronic equipment and storage medium
Through dual detection of network security and content security of email data, combined with abnormal probability judgment, the problem of poor email detection accuracy is solved, the ability to identify phishing emails is improved, and the internal security of the enterprise is guaranteed.
Patent Information
- Application Number
- CN202410487518.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-08-27
AI Technical Summary
The existing technology has the problem of poor identification accuracy in email detection, especially the difficulty in identifying phishing emails, which leads to an increase in internal security threats within the enterprise.
By obtaining the email attribute parameters and content of the email data, network security detection and content security detection are performed on the target email. Based on the network anomaly probability and the content anomaly probability, it is determined whether the email is an abnormal email and the corresponding prompt information is output.
It effectively improves the accuracy of email detection, reduces the interference of abnormal emails on mailboxes, and ensures user experience and information security.
Smart Images

Figure CN118555091A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of security detection technology, and in particular to a mail detection method, a mail detection device, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the increasing development of online information technology, cybersecurity faces a severe challenge, and phishing email incidents are a common occurrence. In particular, a large portion of daily communication within companies is conducted via email. Phishing emails sent by impersonating colleagues or human resources departments are becoming increasingly frequent, posing a serious threat to internal corporate security. However, the detection of unfamiliar emails suffers from poor recognition accuracy. Summary of the Invention
[0003] The embodiments of the present invention provide a mail detection method, device, electronic device, and computer-readable storage medium to solve or partially solve the problem of poor accuracy in mail detection.
[0004] An embodiment of the present invention discloses a method for detecting an email, comprising:
[0005] In response to receiving a target email, obtaining email data of the target email, the email data including at least email attribute parameters and email content;
[0006] Performing a network security test on the target email according to the email attribute parameters to obtain a network test result for the target email, and performing a content security test on the target email according to the email content to obtain a content test result for the target email;
[0007] If the target email is determined to be an abnormal email based on the network detection result and the content detection result, email prompt information for the target email is output.
[0008] In some feasible implementations, the email domain name parameters include the email domain name, IP address, and network segment information of the target email, and performing network security detection on the target email based on the email attribute parameters to obtain a network security detection result for the target email includes:
[0009] Comparing the email domain name with a preset domain name whitelist, comparing the IP address with a preset IP address whitelist, and comparing the network segment information with a preset network segment whitelist; if the email domain name does not belong to the domain name whitelist, and / or the IP address does not belong to the IP address whitelist, and / or the network segment information does not belong to the network segment whitelist, obtaining the sender information and recipient information of the target email, as well as the number of interactions between the sender information and the recipient information;
[0010] Calculating a first network detection result for the target email using the number of interactions;
[0011] If the email domain name belongs to the domain name whitelist, the IP address belongs to the IP address whitelist, and the network segment information belongs to the network segment whitelist, a second network detection result for the target email is generated.
[0012] In some feasible implementations, calculating the first network detection result for the target email using the number of interactions includes:
[0013] The following formula (1) is used to calculate the network anomaly probability for the target email:
[0014] P(A)=1 / (N+1)(1)
[0015] Wherein, N is greater than or equal to 1.
[0016] In some feasible implementations, the email content includes at least one of an email title, an email body, and an email link of the target email, and performing content security detection on the target email based on the email content to obtain a content detection result for the target email includes:
[0017] A content security detection is performed on the target email according to one of the email title, the email body, and the email link to obtain a content detection result for the target email.
[0018] In some feasible implementations, performing content security detection on the target email based on one of the email title, the email body, and the email link to obtain a content detection result for the target email includes:
[0019] Obtaining a screening algorithm for the target email, the screening algorithm including at least a title detection algorithm, a content detection algorithm, and a link detection algorithm;
[0020] Inputting the email title into the title detection algorithm to perform keyword detection, obtaining a keyword detection result for the email title, and outputting a probability of a title anomaly for the target email if the keyword detection result indicates that the first keyword exists in the email title;
[0021] Inputting the email content into the content detection algorithm to perform keyword detection, obtaining a keyword detection result for the email content, and outputting a content anomaly probability for the target email if the keyword detection result indicates that a second keyword exists in the email content;
[0022] If the target email contains an email link, the email link is input into the link detection algorithm for link detection to obtain a link detection result for the email link. If the link detection result indicates that the target link exists in the target email, a link anomaly probability for the target email is output, indicating that the target link is an abnormal link.
[0023] The title abnormality probability, and / or the content abnormality probability, and / or the link abnormality probability are used to perform calculations to obtain a content detection result for the target email.
[0024] In some feasible implementations, performing content security detection on the target email based on one of the email title, the email body, and the email link to obtain a content detection result for the target email further includes:
[0025] If the email title does not contain the first keyword, the email content does not contain the second keyword, and the email link does not belong to the target link, the target email is marked as a normal email.
[0026] In some feasible implementations, the network detection result includes a network anomaly probability, the content detection result includes a content anomaly probability, and if the target email is determined to be an abnormal email based on the network detection result and the content detection result, outputting email prompt information for the target email includes:
[0027] If the network anomaly probability is equal to the first network threshold, marking the target email as a normal email;
[0028] If the network anomaly probability is equal to a second network threshold, marking the target email as an abnormal email;
[0029] If the network anomaly probability is less than the second network threshold, and the content anomaly probability is greater than or equal to the content anomaly threshold, marking the target email as an abnormal email;
[0030] Output email prompt information for the abnormal email.
[0031] The embodiment of the present invention further discloses a mail detection device, comprising:
[0032] a data acquisition module, configured to acquire mail data of the target mail in response to receiving the target mail, wherein the mail data includes at least mail attribute parameters and mail content;
[0033] a detection module, configured to perform a network security detection on the target email according to the email attribute parameters to obtain a network detection result for the target email, and perform a content security detection on the target email according to the email content to obtain a content detection result for the target email;
[0034] The abnormality prompt module is used to output email prompt information for the target email if the target email is determined to be an abnormal email based on the network detection result and the content detection result.
[0035] In some feasible implementations, the email domain name parameter includes the email domain name, IP address, and network segment information of the target email, and the detection module is specifically configured to:
[0036] Comparing the email domain name with a preset domain name whitelist, comparing the IP address with a preset IP address whitelist, and comparing the network segment information with a preset network segment whitelist; if the email domain name does not belong to the domain name whitelist, and / or the IP address does not belong to the IP address whitelist, and / or the network segment information does not belong to the network segment whitelist, obtaining the sender information and recipient information of the target email, as well as the number of interactions between the sender information and the recipient information;
[0037] Calculating a first network detection result for the target email using the number of interactions;
[0038] If the email domain name belongs to the domain name whitelist, the IP address belongs to the IP address whitelist, and the network segment information belongs to the network segment whitelist, a second network detection result for the target email is generated.
[0039] In some feasible implementations, the detection module is specifically configured to:
[0040] The following formula (1) is used to calculate the network anomaly probability for the target email:
[0041] P(A)=1 / (N+1)(1)
[0042] Wherein, N is greater than or equal to 1.
[0043] In some feasible implementations, the email content includes at least one of an email title, an email body, and an email link of the target email, and the detection module is specifically configured to:
[0044] A content security detection is performed on the target email according to one of the email title, the email body, and the email link to obtain a content detection result for the target email.
[0045] In some feasible implementations, the detection module is specifically configured to:
[0046] Obtaining a screening algorithm for the target email, the screening algorithm including at least a title detection algorithm, a content detection algorithm, and a link detection algorithm;
[0047] Inputting the email title into the title detection algorithm to perform keyword detection, obtaining a keyword detection result for the email title, and outputting a probability of a title anomaly for the target email if the keyword detection result indicates that the first keyword exists in the email title;
[0048] Inputting the email content into the content detection algorithm to perform keyword detection, obtaining a keyword detection result for the email content, and outputting a content anomaly probability for the target email if the keyword detection result indicates that a second keyword exists in the email content;
[0049] If the target email contains an email link, the email link is input into the link detection algorithm for link detection to obtain a link detection result for the email link. If the link detection result indicates that the target link exists in the target email, a link anomaly probability for the target email is output, indicating that the target link is an abnormal link.
[0050] The title abnormality probability, and / or the content abnormality probability, and / or the link abnormality probability are used to perform calculations to obtain a content detection result for the target email.
[0051] In some feasible implementations, the detection module is further configured to:
[0052] If the email title does not contain the first keyword, the email content does not contain the second keyword, and the email link does not belong to the target link, the target email is marked as a normal email.
[0053] In some feasible implementations, the network detection result includes a network anomaly probability, the content detection result includes a content anomaly probability, and the anomaly prompt module is specifically configured to:
[0054] If the network anomaly probability is equal to the first network threshold, marking the target email as a normal email;
[0055] If the network anomaly probability is equal to a second network threshold, marking the target email as an abnormal email;
[0056] If the network anomaly probability is less than the second network threshold, and the content anomaly probability is greater than or equal to the content anomaly threshold, marking the target email as an abnormal email;
[0057] Output email prompt information for the abnormal email.
[0058] An embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0059] The memory is used to store computer programs;
[0060] The processor is configured to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0061] An embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon. When executed by one or more processors, the processors are enabled to execute the method according to the embodiment of the present invention.
[0062] The embodiments of the present invention include the following advantages:
[0063] In an embodiment of the present invention, when an email is received, for the received target email, the email data of the target email can be obtained, and the email data at least includes email attribute parameters and email content. Then, a network security detection is performed on the target email based on the email attribute parameters to obtain a network detection result for the target email, and a content security detection is performed on the target email based on the email content to obtain a content detection result for the target email. If the target email is determined to be an abnormal email based on the network detection result and the content detection result, an email prompt message for the target email is output. In this way, by obtaining the email data of the email and performing dual detection of network security and content security on the email layer by layer based on the email data, the accuracy of the email detection is effectively guaranteed, while reducing the interference of abnormal emails on the mailbox, thereby ensuring the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 This is a flowchart of a method for detecting an email provided in an embodiment of the present invention;
[0065] Figure 2 This is the email status detection process provided in an embodiment of the present invention;
[0066] Figure 3 This is the email detection process provided in the embodiment of the present invention;
[0067] Figure 4 1 is a flowchart of an email detection process provided in an embodiment of the present invention;
[0068] Figure 5 This is a structural block diagram of a mail detection device provided in an embodiment of the present invention;
[0069] Figure 6 This is a block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0070] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0071] For example, emails received in user mailboxes often contain abnormal emails. If users accidentally click on an abnormal email to browse the corresponding content, it is easy to lead to the risk of leaking user personal information. Therefore, effectively identifying abnormal emails can effectively ensure the security of user information. However, the process of detecting unfamiliar emails has the problem of poor recognition accuracy.
[0072] In this regard, in the present invention, when an email is received, for the received target email, the email data of the target email can be obtained, and the email data at least includes email attribute parameters and email content. Then, a network security detection is performed on the target email according to the email attribute parameters to obtain a network detection result for the target email, and a content security detection is performed on the target email according to the email content to obtain a content detection result for the target email. If the target email is determined to be an abnormal email based on the network detection result and the content detection result, an email prompt message for the target email is output. Therefore, by obtaining the email data of the email and performing dual detection of network security and content security on the email layer by layer based on the email data, the accuracy of the email detection is effectively guaranteed, while reducing the interference of abnormal emails on the mailbox, thereby ensuring the user experience.
[0073] Reference Figure 1 , shows a flowchart of a method for detecting an email provided in an embodiment of the present invention, which may specifically include the following steps:
[0074] Step 101: in response to receiving a target email, obtaining email data of the target email, wherein the email data includes at least email attribute parameters and email content;
[0075] In the embodiment of the present invention, a corresponding mail application can be run on the electronic device. After the user logs in to the corresponding user account in the mail application, the user can receive the corresponding mail and process the mail.
[0076] In a specific implementation, the electronic device can obtain the email data of the target email in response to receiving the target email. The email data includes at least email attribute parameters and email content, wherein the email attribute parameters may include parameters used to characterize the email-related status, and the email content may be the content information contained in the email. For example, the email attribute parameters may include sender information, recipient information, email domain name, IP address, and gateway information, etc.; the email content may include email title, email body, email link, etc., and the present invention does not limit this.
[0077] Optionally, email attribute parameters and email content may be collected through corresponding data models and crawler tools, so as to determine whether the target email is an abnormal email based on the collected email attribute parameters and email content.
[0078] Step 102: Performing a network security test on the target email based on the email attribute parameters to obtain a network test result for the target email, and performing a content security test on the target email based on the email content to obtain a content test result for the target email;
[0079] After obtaining the email attribute parameters and email content, the target email can be analyzed from different levels to determine whether it is an abnormal email. Specifically, a network security test can be performed on the target email based on the email attribute parameters to obtain a network test result for the target email, and a content security test can be performed on the target email based on the email content to obtain a content test result for the target email. The network test result can be used to detect whether the email status of the target email is abnormal, and the content test result can be used to detect whether the email content of the target email is abnormal. Therefore, by performing dual tests on the network security and content security of the email, the accuracy of the email detection is effectively guaranteed.
[0080] In some feasible implementations, the email domain name parameters include the email domain name, IP address and network segment information of the target email. The email domain name can be compared with a preset domain name whitelist, the IP address can be compared with a preset IP address whitelist, and the network segment information can be compared with a preset network segment whitelist. If the email domain name does not belong to the domain name whitelist, and / or the IP address does not belong to the IP address whitelist, and / or the network segment information does not belong to the network segment whitelist, the sender information and recipient information of the target email, as well as the number of interactions between the sender information and the recipient information, are obtained, and then the number of interactions is used to calculate the first network detection result for the target email; if the email domain name belongs to the domain name whitelist, the IP address belongs to the IP address whitelist, and the network segment information belongs to the network segment whitelist, then a second network detection result for the target email is generated.
[0081] In a specific implementation, when it is determined that the email domain name, IP address, and network segment information of the target email do not belong to the whitelist, the corresponding abnormality probability can be calculated based on the number of interactions between the sender information and the recipient information. Specifically, the following formula (1) can be used to calculate the network abnormality probability for the target email:
[0082] P(A)=1 / (N+1)(1)
[0083] Wherein, N is greater than or equal to 1.
[0084] For the detection of email content, the email content includes at least one of the email title, email body and email link of the target email. The target email can be subjected to content security detection based on one of the email title, email body and email link to obtain the content detection result for the target email. Specifically, a screening algorithm for the target email can be obtained, and the screening algorithm includes at least a title detection algorithm, a content detection algorithm, and a link detection algorithm. Then, the email title is input into the title detection algorithm for keyword detection to obtain a keyword detection result for the email title. If the keyword detection result indicates that there is a first keyword in the email title, the title abnormality probability for the target email is output. The email content is input into the content detection algorithm for keyword detection to obtain a keyword detection result for the email content. If the keyword detection result indicates that there is a second keyword in the email content, the content abnormality probability for the target email is output. The email link is input into the link detection algorithm for link detection to obtain a link detection result for the email link. If the link detection result indicates that there is a target link in the target email, the link abnormality probability for the target email is output, and the target link is an abnormal link. Then, the title abnormality probability, and / or the content abnormality probability, and / or the link abnormality probability are used for calculation to obtain the content detection result for the target email.
[0085] In addition, if the email title does not contain the first keyword, the email content does not contain the second keyword, and the email link does not belong to the target link, the target email is marked as a normal email.
[0086] It should be noted that for whitelists such as domain name whitelist, IP address whitelist and network segment whitelist, big data monitoring models can be used to build corresponding trustworthy domain names, IP addresses and network segment information, so that after obtaining the sender's email domain name, IP address and network segment information of the target email through big data models and crawler technology, the obtained information can be compared with the information in the whitelist to determine whether the email status of the target email is abnormal.
[0087] In one example, referring to Figure 2 , shows the email status detection process provided in an embodiment of the present invention. Specifically, for corporate mailboxes, they usually have fixed mailbox domain names, exclusive IP addresses and network segment information (such as MAC physical addresses, etc.), etc., then by establishing a white list of corporate domain names, corporate IP network segments and corporate physical addresses, and then extracting the sender's email address of the target email, the email source code identifies the email domain name and IP address of the email sender, etc., and then judge it to determine the email status of the target email. Specifically, we can first determine whether the email domain name, IP address and network segment information are all in the whitelist. If so, calculate the corresponding abnormal probability P(A) = 0; if at least one of the email domain name, IP address and network segment information is not in the whitelist, obtain the number of interactions between the sender information and the recipient information in the target email (that is, the number of email sending and receiving interactions, etc.), and then calculate the abnormal probability corresponding to the target email according to P(A) = 1 / (N+1). If it is the first interaction, the abnormal probability is 1 / 2; if it is the second interaction, the abnormal probability is 1 / 3, and so on. The higher the number of interactions, the lower the probability of abnormal email status of the target email.
[0088] After determining the abnormal probability corresponding to the email status of the target email, the email content of the target email may be further tested to determine whether the email content contains corresponding abnormal information. Specifically, a big data monitoring model can be established, a basic data table model can be designed, and the basic data of the corporate mailbox can be stored and analyzed. The email title, email content, email link, etc. can be judged respectively. The probability of abnormal emails can be calculated based on the keyword index library and sensitive word library in the model, and machine learning of the word library and content update can be continuously performed. For example, by utilizing the computing power of the big data platform, the title source data of the email can be obtained to quickly match the title suspected phishing algorithm. If the keyword is matched, the probability of occurrence is recorded as Pa (with a value of Pa = 1 / 6); and the obtained email content can be cleaned, and the content data can be deduplicated, associated, combined, and fault-tolerant to obtain a structured data set. The content suspected phishing algorithm is matched. If the same content is matched, the probability of occurrence is recorded as Pb (with a value of Pb = 1 / 6); and the address link in the email content is converted and stored, and the link suspected phishing algorithm is matched. If the same content is matched, the probability of occurrence is recorded as Pc (with a value of Pc = 1 / 6). Then Pa, Pb, and Pc are added to obtain the content abnormality probability P(B) corresponding to the target email.
[0089] It should be noted that the embodiments of the present invention include but are not limited to the numerical values involved in the above examples. In practical applications, the numerical values can be set according to actual needs, and the present invention does not impose any restrictions on this.
[0090] In a specific implementation, for the detection of email titles, an email title keyword index library can be established to judge the email title. If the email keywords involve "system administrator", "notification", "salary subsidy", "employee points", "invoice", "meeting agenda", "attendee list", etc., the corresponding occurrence probability will be output; for the detection of email Nie Rong, a big data model sensitive word library can be established, and real-time batch parsing and storage of the company's emails can be performed, and the email content can be converted into structured data. The big data model can be used to monitor whether generalized greetings such as "leader", "colleague", "must be completed before leaving get off work today", "award list", "local detection tool", "questionnaire" and other key link statements are involved, and the corresponding occurrence probability will be output; for the detection of email links, the text link can be judged. If the link contains the "&redirect" address redirection access function, the corresponding occurrence probability will be output, etc. The present invention does not limit this.
[0091] Step 103: If the target email is determined to be an abnormal email based on the network detection result and the content detection result, an email prompt message for the target email is output.
[0092] After obtaining the network detection results and content detection results, it is possible to determine whether the target email is an abnormal email based on the two. If so, an email prompt message for the target email can be output. By obtaining the email data of the email and performing dual network security and content security detection on the email layer by layer based on the email data, the accuracy of email detection is effectively guaranteed, while reducing the interference of abnormal emails on the mailbox and ensuring the user experience.
[0093] In some feasible implementations, as described in the previous embodiment, the network detection result includes a network anomaly probability, and the content detection result includes a content anomaly probability. The electronic device can then detect the target email based on the network anomaly probability and the content anomaly probability. The target email can first be detected based on the network anomaly probability. If the network anomaly probability is a first network threshold, the target email is marked as a normal email; if the network anomaly probability is a second network threshold, the target email is marked as an abnormal email; if the network anomaly probability is less than the second network threshold, and the content anomaly probability is greater than or equal to the content anomaly threshold, the target email is marked as an abnormal email. After determining that the target email is an abnormal email, an email prompt message for the abnormal email can be output. Optionally, the first network threshold can be 0, the second network threshold can be 1 / 2, and the content anomaly threshold can be 1 / 6. The first network threshold can be used to determine whether the email domain name, IP address, and network segment information of the target email are all in the whitelist; the second network threshold can be used to determine whether the interaction between the sender and recipient of the target email is normal; and the content anomaly threshold can be used to determine whether the email content of the target email is normal, etc. The present invention is not limited to this.
[0094] In one example, referring to Figure 3 , shows the email detection process provided in an embodiment of the present invention. Assuming that the network abnormality probability is S1 and the content abnormality probability is S2, if S1=1 / 2, the abnormal email is directly marked; if the S1 execution result is <1 / 2 and the S2 execution result is ≥1 / 6, the abnormal email can be marked. If it is the other case, no marking is performed. By obtaining the email data of the email and performing dual detection of network security and content security on the email layer by layer based on the email data, the accuracy of email detection is effectively guaranteed, while reducing the interference of abnormal emails on the mailbox, ensuring the user experience.
[0095] It should be noted that the embodiments of the present invention include but are not limited to the above examples. It is understandable that those skilled in the art can also make settings according to actual needs under the guidance of the ideas of the embodiments of the present invention, and the present invention does not limit this.
[0096] In an embodiment of the present invention, when an email is received, for the received target email, the email data of the target email can be obtained, and the email data at least includes email attribute parameters and email content. Then, a network security detection is performed on the target email based on the email attribute parameters to obtain a network detection result for the target email, and a content security detection is performed on the target email based on the email content to obtain a content detection result for the target email. If the target email is determined to be an abnormal email based on the network detection result and the content detection result, an email prompt message for the target email is output. In this way, by obtaining the email data of the email and performing dual detection of network security and content security on the email layer by layer based on the email data, the accuracy of the email detection is effectively guaranteed, while reducing the interference of abnormal emails on the mailbox, thereby ensuring the user experience.
[0097] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the following examples are provided for illustrative purposes:
[0098] As an example, each enterprise company can detect the received emails by the email detection method in the embodiment of the present invention. For details, refer to Figure 4 , shows a schematic diagram of the email detection process provided in an embodiment of the present invention. The corresponding process includes: start - email domain name and IP address storage - comparison with the whitelist database - marking "external" emails - email title indexing - email body comparison - email link determination - abnormal email marking - email quantity statistics - abnormal email prompt - notification to security administrator - end. The corresponding implementation process can be:
[0099] (1) Establish a big data monitoring model, design a basic data table model, and conduct an analysis of the basic data stored in corporate mailboxes.
[0100] (2) Through the mailbox source data and mailbox source code, use big data models and crawler technology to obtain the sender's mailbox domain name and IP address, and compare them with the corporate mailbox domain name, office network segment, and corporate physical address whitelist library model.
[0101] (3) Determine whether the mailbox is a non-corporate mailbox domain name, a non-corporate office IP network segment, or a non-corporate physical address whitelist database, and calculate the probability.
[0102] (3.1) If the mailbox is not the enterprise domain name, office network segment or enterprise physical address, it falls into the abnormal email range, that is, P(B)=1.
[0103] (3.2) If the mailbox is a corporate domain name, office network segment, or corporate physical address, it is not considered an abnormal email, that is, P(B) = 0;
[0104] (4) If the mailbox is not an enterprise domain name, office network segment or enterprise physical address, the next step is to determine the number of contacts with the sender's mailbox. By storing all the data of the mail server in recent years, a data record of the relationship between the recipient and the sender is formed. A quick judgment is made based on the sender and recipient mailbox numbers to determine whether it is the first contact. The number of contacts is counted and the probability P(A) is output. P(A) is the probability of an abnormal email when the number of contacts is N. For the first contact, P(A) = 1 / 2, and for N contacts, P(A) = 1 / (N+1).
[0105] (5) Calculate the probability.
[0106] (6) Based on the big data monitoring model, the title, content, and link of the email are judged, and the probability of abnormal emails is calculated based on the keyword index library and sensitive word library in the model.
[0107] (7) Calculate the total probability (P) of abnormal emails based on the occurrence of S1 and S2, and mark abnormal emails according to the predicted results. If the execution result of S1 = 1 / 2, mark the abnormal email directly; if the execution result of S1 is less than 1 / 2 and the execution result of S2 is greater than or equal to 1 / 6, mark the abnormal email; otherwise, do not mark it.
[0108] (8) Finally, the impact range is output based on the monitoring model, and the enterprise security administrator and email recipient are immediately notified for timely processing.
[0109] (9) Afterwards, the labels of the big data model are continuously supplemented based on the actual results, and the automatic growth of the model is achieved through machine learning.
[0110] In this process, a monitoring model for suspected abnormal emails was established based on the enterprise office network. By establishing a whitelist management database for the enterprise's email domain names, IP network segments, and physical addresses, it quickly identifies external emails and issues alerts, reducing the risk of information theft and improving enterprise security management. At the same time, it conducts big data modeling, analysis, cleaning, and calculation of abnormal email language, such as email titles, bodies, and links. Furthermore, through machine learning, it achieves automatic growth detection, helping enterprises empower digital enterprises.
[0111] It should be noted that for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, 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 this specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0112] Reference Figure 5, shows a structural block diagram of a mail detection device provided in an embodiment of the present invention, which may specifically include the following modules:
[0113] The data acquisition module 501 is configured to acquire email data of the target email in response to receiving the target email, wherein the email data includes at least email attribute parameters and email content;
[0114] A detection module 502 is configured to perform a network security detection on the target email based on the email attribute parameters to obtain a network detection result for the target email, and perform a content security detection on the target email based on the email content to obtain a content detection result for the target email;
[0115] The abnormality prompt module 503 is configured to output email prompt information for the target email if the target email is determined to be an abnormal email based on the network detection result and the content detection result.
[0116] In some feasible implementations, the email domain name parameter includes the email domain name, IP address, and network segment information of the target email, and the detection module 502 is specifically configured to:
[0117] Comparing the email domain name with a preset domain name whitelist, comparing the IP address with a preset IP address whitelist, and comparing the network segment information with a preset network segment whitelist; if the email domain name does not belong to the domain name whitelist, and / or the IP address does not belong to the IP address whitelist, and / or the network segment information does not belong to the network segment whitelist, obtaining the sender information and recipient information of the target email, as well as the number of interactions between the sender information and the recipient information;
[0118] Calculating a first network detection result for the target email using the number of interactions;
[0119] If the email domain name belongs to the domain name whitelist, the IP address belongs to the IP address whitelist, and the network segment information belongs to the network segment whitelist, a second network detection result for the target email is generated.
[0120] In some feasible implementations, the detection module 502 is specifically configured to:
[0121] The following formula (1) is used to calculate the network anomaly probability for the target email:
[0122] P(A)=1 / (N+1)(1)
[0123] Wherein, N is greater than or equal to 1.
[0124] In some feasible implementations, the email content includes at least one of an email title, an email body, and an email link of the target email, and the detection module 502 is specifically configured to:
[0125] A content security detection is performed on the target email according to one of the email title, the email body, and the email link to obtain a content detection result for the target email.
[0126] In some feasible implementations, the detection module 502 is specifically configured to:
[0127] Obtaining a screening algorithm for the target email, the screening algorithm including at least a title detection algorithm, a content detection algorithm, and a link detection algorithm;
[0128] Inputting the email title into the title detection algorithm to perform keyword detection, obtaining a keyword detection result for the email title, and outputting a probability of a title anomaly for the target email if the keyword detection result indicates that the first keyword exists in the email title;
[0129] Inputting the email content into the content detection algorithm to perform keyword detection, obtaining a keyword detection result for the email content, and outputting a content anomaly probability for the target email if the keyword detection result indicates that a second keyword exists in the email content;
[0130] If the target email contains an email link, the email link is input into the link detection algorithm for link detection to obtain a link detection result for the email link. If the link detection result indicates that the target link exists in the target email, a link anomaly probability for the target email is output, indicating that the target link is an abnormal link.
[0131] The title abnormality probability, and / or the content abnormality probability, and / or the link abnormality probability are used to perform calculations to obtain a content detection result for the target email.
[0132] In some feasible implementations, the detection module 502 is further configured to:
[0133] If the email title does not contain the first keyword, the email content does not contain the second keyword, and the email link does not belong to the target link, the target email is marked as a normal email.
[0134] In some feasible implementations, the network detection result includes a network anomaly probability, the content detection result includes a content anomaly probability, and the anomaly prompt module 503 is specifically configured to:
[0135] If the network anomaly probability is equal to the first network threshold, marking the target email as a normal email;
[0136] If the network anomaly probability is equal to a second network threshold, marking the target email as an abnormal email;
[0137] If the network anomaly probability is less than the second network threshold, and the content anomaly probability is greater than or equal to the content anomaly threshold, marking the target email as an abnormal email;
[0138] Output email prompt information for the abnormal email.
[0139] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0140] In addition, an embodiment of the present invention also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and runnable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned email detection method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0141] The present invention also provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program implements the various processes of the aforementioned email detection method embodiment and achieves the same technical effects. To avoid repetition, the details are not described here. The computer-readable storage medium may be, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0142] Figure 6 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.
[0143] The electronic device 600 includes but is not limited to components such as a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. It will be understood by those skilled in the art that the electronic device structure involved in the embodiments of the present invention does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.
[0144] It should be understood that in this embodiment of the present invention, the RF unit 601 can be used to receive and transmit signals during information transmission or calls. Specifically, it receives downlink data from the base station and transmits it to the processor 610 for processing; in addition, it transmits uplink data to the base station. Typically, the RF unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and the like. Furthermore, the RF unit 601 can communicate with the network and other devices via a wireless communication system.
[0145] The electronic device provides users with wireless broadband Internet access through the network module 602, such as helping users to send and receive emails, browse web pages, and access streaming media.
[0146] The audio output unit 603 can convert audio data received by the RF unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output it as sound. In addition, the audio output unit 603 can also provide audio output related to a specific function performed by the electronic device 600 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, etc.
[0147] The input unit 604 is used to receive audio or video signals. The input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042. The GPU 6041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 606. The image frames processed by the GPU 6041 can be stored in the memory 609 (or other storage medium) or transmitted via the RF unit 601 or the network module 602. The microphone 6042 can receive sound and process such sound into audio data. In the case of a telephone call mode, the processed audio data can be converted into a format that can be sent to a mobile communication base station via the RF unit 601 for output.
[0148] The electronic device 600 also includes at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 6061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 6061 and / or the backlight when the electronic device 600 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 605 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
[0149] The display unit 606 is used to display information input by the user or information provided to the user. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0150] The user input unit 607 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by the user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel 6071). The touch panel 6071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 610, which receives and executes the command sent by the processor 610. In addition, the touch panel 6071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 6071, the user input unit 607 may also include other input devices 6072. Specifically, other input devices 6072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0151] Furthermore, the touch panel 6071 may be overlaid on the display panel 6061. When the touch panel 6071 detects a touch operation on or near it, it transmits the information to the processor 610 to determine the type of touch event. The processor 610 then provides a corresponding visual output on the display panel 6061 based on the type of touch event. It will be understood that in one embodiment, the touch panel 6071 and the display panel 6061 are two independent components to implement the input and output functions of the electronic device. However, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the electronic device. The specific details are not limited here.
[0152] The interface unit 608 is an interface for connecting external devices to the electronic device 600. For example, the external devices may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from the external device and transmit the received input to one or more elements within the electronic device 600, or may be used to transmit data between the electronic device 600 and the external device.
[0153] Memory 609 can be used to store software programs and various data. Memory 609 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function or an image playback function); the data storage area may store data generated based on the use of the mobile phone (such as audio data, a phone book, etc.). Furthermore, memory 609 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0154] The processor 610 is the control center of the electronic device. It connects the various components of the electronic device using various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 609 and accessing data stored in the memory 609, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into the processor 610.
[0155] The electronic device 600 may also include a power supply 611 (such as a battery) to supply power to each component. Preferably, the power supply 611 may be logically connected to the processor 610 through a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.
[0156] In addition, the electronic device 600 includes some functional modules not shown, which will not be described here.
[0157] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0158] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0159] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are protected by the present invention.
[0160] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0161] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0162] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, 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 interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0163] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0164] In addition, each functional unit in each embodiment of the present invention 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.
[0165] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, ROM, RAM, a magnetic disk, or an optical disk.
[0166] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A method for detecting mails, It is characterized in that include: In response to receiving a target email, obtaining email data of the target email, the email data at least including email attribute parameters and email content; Performing a network security test on the target email according to the email attribute parameters to obtain a network test result for the target email, and performing a content security test on the target email according to the email content to obtain a content test result for the target email; If the target email is determined to be an abnormal email according to the network detection result and the content detection result, email prompt information for the target email is output.
2. The method according to claim 1, It is characterized in that The email domain name parameters include the email domain name, IP address and network segment information of the target email, and performing network security detection on the target email according to the email attribute parameters to obtain the network detection result for the target email includes: Compare the email domain name with a preset domain name whitelist, compare the IP address with a preset IP address whitelist, and compare the network segment information with a preset network segment whitelist; if the email domain name does not belong to the domain name whitelist, and / or the IP address does not belong to the IP address whitelist, and / or the network segment information does not belong to the network segment whitelist, obtain the sender information and recipient information of the target email, and the number of interactions between the sender information and the recipient information; Calculating a first network detection result for the target email using the number of interactions; If the email domain name belongs to the domain name whitelist, the IP address belongs to the IP address whitelist, and the network segment information belongs to the network segment whitelist, a second network detection result for the target email is generated.
3. The method according to claim 2, It is characterized in that The calculating the first network detection result for the target email by using the number of interactions includes: The network anomaly probability for the target email is calculated using the following formula (1): P(A)=1 / (N+1)(1) Wherein, N is greater than or equal to 1.
4. The method according to claim 1, It is characterized in that The email content includes at least one of an email title, an email body, and an email link of the target email, and performing content security detection on the target email according to the email content to obtain a content detection result for the target email includes: A content security detection is performed on the target email according to one of the email title, the email body and the email link to obtain a content detection result for the target email.
5. The method according to claim 4, It is characterized in that The performing content security detection on the target email according to one of the email title, the email body and the email link to obtain a content detection result for the target email includes: Acquire a screening algorithm for the target email, wherein the screening algorithm at least includes a title detection algorithm, a content detection algorithm, and a link detection algorithm; Inputting the email title into the title detection algorithm to perform keyword detection, obtaining a keyword detection result for the email title, and if the keyword detection result indicates that the first keyword exists in the email title, outputting a probability of abnormal title for the target email; Inputting the email content into the content detection algorithm to perform keyword detection, obtaining a keyword detection result for the email content, and if the keyword detection result indicates that a second keyword exists in the email content, outputting a content anomaly probability for the target email; If the target email has an email link, the email link is input into the link detection algorithm for link detection to obtain a link detection result for the email link. If the link detection result indicates that the target link exists in the target email, a link abnormality probability for the target email is output, and the target link is an abnormal link. The title abnormality probability, and / or the content abnormality probability, and / or the link abnormality probability are used for calculation to obtain a content detection result for the target email.
6. The method according to claim 5, It is characterized in that The performing content security detection on the target email according to one of the email title, the email body and the email link to obtain a content detection result for the target email also includes: If the email title does not contain the first keyword, the email content does not contain the second keyword, and the email link does not belong to the target link, the target email is marked as a normal email.
7. The method according to claim 1, It is characterized in that The network detection result includes a network abnormality probability, the content detection result includes a content abnormality probability, and if the target email is determined to be an abnormal email according to the network detection result and the content detection result, then outputting email prompt information for the target email includes: If the network anomaly probability is the first network threshold, marking the target email as a normal email; If the network abnormality probability is the second network threshold, marking the target email as an abnormal email; If the network anomaly probability is less than the second network threshold, and the content anomaly probability is greater than or equal to the content anomaly threshold, marking the target email as an abnormal email; Output email prompt information for the abnormal email.
8. A mail detection device, It is characterized in that include: A data acquisition module, configured to acquire mail data of the target mail in response to receiving the target mail, wherein the mail data at least includes mail attribute parameters and mail content; A detection module, configured to perform a network security detection on the target email according to the email attribute parameters to obtain a network detection result for the target email, and perform a content security detection on the target email according to the email content to obtain a content detection result for the target email; The abnormality prompt module is used to output email prompt information for the target email if the target email is determined to be an abnormal email according to the network detection result and the content detection result.
9. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 7.
