Network security verification method and device and storage medium

By calculating the preference vector difference between the user's commonly used and current login information and device usage information, the problem of the lack of abnormal behavior monitoring in identity verification in the existing technology is solved, the accuracy and reliability of network security verification are improved, and information theft is prevented. Communication with the network is not secure.

CN118677697AActive Publication Date: 2024-09-20SHENZHEN YANRUI INTELLIGENT TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411097632.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-09-20
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

Existing identity verification technology has deficiencies in monitoring abnormal user identity behaviors, resulting in insecure network communications, especially the lack of effective detection and prevention when identity information is stolen.

Method used

By obtaining the communication user's common login information and device usage information, the preference vector difference is calculated to determine whether the user's identity has passed. If the difference exceeds the threshold, it is determined to be an abnormal user, otherwise it is a normal user, thereby realizing user identity verification and abnormal behavior. monitor.

Benefits of technology

It improves the accuracy and reliability of network security verification, can effectively detect and monitor abnormal behavior when using user identities, and prevent information theft and network communication insecurity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677697A
    Figure CN118677697A
Patent Text Reader

Abstract

The invention relates to the technical field of communication security, and discloses a network security verification method and device and a storage medium. The method comprises the following steps: acquiring common login information, common equipment use information, current login information and current equipment use information of a communication user; obtaining a first preference vector according to the common login information and the common equipment use information; obtaining a second preference vector according to the current login information and the current equipment use information; performing difference calculation according to the first preference vector and the second preference vector to obtain a preference difference degree; judging whether the identity of the communication user passes or not according to the preference difference degree, and when the preference difference degree exceeds a threshold value, judging that the user is an abnormal user and the identity of the user does not pass; and when the preference difference degree is within a threshold value, judging that the user is a normal user, and passing the user identity. According to the method, the purpose of verifying the user identity can be achieved, and the accuracy and reliability of network security verification are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and in particular to a network security verification method, device and storage medium. Background Art

[0002] Network security identity verification refers to the process of verifying the authenticity and legitimacy of users in a network environment through specific technologies and methods. It is the foundation of network security and aims to ensure that network resources and data can only be accessed by authorized users. Identity verification technology is a key component in protecting digital assets and ensuring the security of the network environment, and is crucial to the information security of individual users, enterprises, and society as a whole.

[0003] Currently, the main authentication technologies include password-based authentication, hardware-based authentication, and biometric-based authentication. Password-based authentication is the most traditional method, but it is vulnerable to password guessing and leakage. Hardware-based authentication enhances security through cryptographic algorithms built into hardware. Biometric authentication, such as fingerprint recognition and iris recognition, provides certain security guarantees due to its uniqueness and difficulty in duplication.

[0004] However, the above authentication technologies have certain limitations. For example, hardware-based authentication requires specific hardware devices, which puts a certain burden on the flexibility and economy of security authentication in terms of deployment and update. If the hardware device is damaged, it will also affect user access. In addition, it requires a specific authentication algorithm, which will lead to the consumption of energy and storage resources of the device. Although biometric authentication brings the advantages of uniqueness and difficulty in duplication, it relies on identity recognition devices such as cameras, which is not friendly to devices such as desktop computers and laptops. In addition, existing technologies often focus on the verification stage, lack of monitoring of user identity during use, and cannot effectively detect abnormal behavior that may occur after authentication. This defect is more obvious when identity information is stolen.

[0005] In summary, existing identity authentication technologies fail to adequately monitor abnormal behaviors, which can easily lead to insecure network communications. Summary of the invention

[0006] The present invention provides a network security verification method, device and storage medium, which can verify the user's login information and monitor the user's abnormal behavior during the use of the device, thereby achieving the purpose of verifying the user's identity and improving the accuracy and reliability of network security verification.

[0007] In a first aspect, in order to solve the above technical problems, the present invention provides a network security verification method, comprising: Obtain the communication user's common login information, common device usage information, current login information, and current device usage information; Obtaining a first preference vector according to the common login information and the common device usage information; Obtaining a second preference vector according to the current login information and the current device usage information; Performing difference calculation based on the first preference vector and the second preference vector to obtain a preference difference degree; According to the preference difference, it is determined whether the communication user identity is passed. When the preference difference exceeds a threshold, it is determined to be an abnormal user and the user identity is not passed; when the preference difference is within the threshold, it is determined to be a normal user and the user identity is passed.

[0008] Preferably, the commonly used login information includes commonly used login time, commonly used login device, and commonly used login geographical location, and the commonly used device usage information includes commonly used device traffic information and commonly used access resource types; The current login information includes the current login time, the current login device, and the current login geographic location, and the current device usage information includes the current device traffic information and the current access resource type. Preferably, the first preference vector is obtained based on the common login information and the common device usage information, including: Priority setting is performed according to the common login information and the common device usage information to obtain a first preference priority; A first preference vector is obtained according to the first preference priority.

[0009] Preferably, the first preference vector is obtained according to the common login information and the common device usage information, specifically: In a plurality of preset time periods, the plurality of time periods are sorted from high to low according to the number of user logins in each time period, to obtain a first preference priority including the sorted plurality of time periods; or Sort the login times corresponding to each login device from high to low to obtain a first preference priority of the sorted plurality of login devices; or Sort the login times corresponding to each login geographical location from high to low to obtain a first preference priority including the sorted plurality of login geographical locations; or In a plurality of preset flow usage ranges, sorting the flow usage ranges from high to low according to the number of times each flow usage range is reached, and obtaining a first preference priority including the sorted plurality of flow usage ranges; or Sorting the resource types from high to low according to the number of accesses corresponding to each resource type, to obtain a first preference priority of the sorted plurality of resource types; A first preference vector is obtained according to the first preference priority.

[0010] Preferably, obtaining the second preference vector according to the current login information and the current device usage information includes: Priority setting is performed according to the current login information and the current device usage information to obtain a second preference priority; A second preference vector is obtained according to the second preference priority.

[0011] Preferably, priority is set according to the current login information and the current device usage information to obtain a second preference priority, specifically: According to the time period of the login time, the first preference priority of the corresponding login time is matched to obtain the first dimension priority; According to the login device type, the first preference priority of the corresponding login device is matched to obtain the second dimension priority; According to the login geographic location, the first preference priority of the corresponding login geographic location is matched to obtain the third dimension priority; According to the traffic usage, the first preference priority of the corresponding traffic usage range is matched to obtain the fourth dimension priority; According to the number of times the resource type is accessed, the first preference priority of the corresponding resource type is matched to obtain the fifth dimension priority; The second preference priority includes the first dimension priority, the second dimension priority, the third dimension priority, the fourth dimension priority and the fifth dimension priority.

[0012] Preferably, the first preference vector and the second preference vector are five-dimensional vectors, each dimension of the first preference vector is sorted according to the maximum value of the first preference priority, and each dimension of the second preference vector is sorted according to the second preference priority.

[0013] Preferably, performing difference calculation based on the first preference vector and the second preference vector to obtain the preference difference degree is specifically: Calculate the average value of the priority value of the yth dimension based on the current login information, current device usage information, common login information, and common device usage information , the calculation formula is: In the formula, Indicates the priority level preference vector, Represents a collection of login information and device usage information. Indicates the current login information and current device usage information. Indicates common login information and common device usage information; According to the current login information, current device usage information, common login information and common device usage information, the standard deviation of the priority value of the yth dimension The calculation formula is: Calculate the sum of the five-dimensional mean square errors based on the standard deviation of the priority value of the y-th dimension , the sum of the five-dimensional mean square errors is taken as the preference difference, and the calculation formula is: In a second aspect, the present invention provides a network security communication device, comprising: Obtain the communication user's common login information, common device usage information, current login information, and current device usage information; A preference setting module, configured to obtain a first preference vector according to the common login information and the common device usage information; An information matching module, configured to perform priority matching according to the current login information and the current device usage information to obtain a first preference vector; a difference calculation module, configured to perform difference calculation based on the first preference vector and the second preference vector to obtain a preference difference degree; The identity authentication module is used to determine whether the communication user identity is passed according to the preference difference. When the preference difference exceeds a threshold, it is determined to be an abnormal user and the user identity is not passed; when the preference difference is within the threshold, it is determined to be a normal user and the user identity is passed.

[0014] In a third aspect, the present invention further provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements any one of the above-mentioned network security verification methods when executing the computer program.

[0015] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the network security verification methods described above.

[0016] Compared with the prior art, the present invention has the following beneficial effects: an embodiment of the present invention provides a network security verification method, apparatus and storage medium, the method comprising obtaining commonly used login information, commonly used device usage information, current login information and current device usage information of a communication user; obtaining a first preference vector according to the commonly used login information and the commonly used device usage information; obtaining a second preference vector according to the current login information and the current device usage information; performing difference calculation according to the first preference vector and the second preference vector to obtain a preference difference degree; judging whether the identity of the communication user is passed according to the preference difference degree, when the preference difference degree exceeds a threshold value, judging as an abnormal user, and the user identity is not passed; when the preference difference degree is within the threshold value, judging as a normal user, and the user identity is passed.

[0017] In the present invention, the method obtains the commonly used login information and device usage information of the logged-in user's history, sets a priority for the user's historical preferences, obtains a first preference vector, then obtains the user's current login information and device usage information, matches them with the set priority, and obtains a second preference vector; the first preference vector and the second preference vector are difference-calculated to obtain the difference between the two vectors, that is, the login information and device usage information of the user with the correct identity and the currently logged-in user are compared to obtain the difference between the two. If the difference does not exceed a preset threshold, it is judged as correct user identity information; if the difference exceeds the preset threshold, it is judged as abnormal user information, thereby achieving the purpose of judging the correctness of the identity of the current user and improving the accuracy and reliability of network security verification. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flowchart of a network security verification method provided by a first embodiment of the present invention; Figure 2 It is a schematic diagram of the structure of a network security verification device provided by a second embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] Reference Figure 1 The first embodiment of the present invention provides a network security verification method, comprising the following steps: S11, obtaining the communication user's common login information, common device usage information, current login information, and current device usage information; S12, obtaining a first preference vector according to the common login information and the common device usage information; S13, obtaining a second preference vector according to the current login information and the current device usage information; S14, performing difference calculation based on the first preference vector and the second preference vector to obtain a preference difference degree; S15, judging whether the communication user identity is passed according to the preference difference, when the preference difference exceeds the threshold, it is judged as an abnormal user and the user identity is not passed; when the preference difference is within the threshold, it is judged as a normal user and the user identity is passed.

[0021] It should be noted that network security identity authentication refers to the process of verifying the authenticity and legitimacy of users in a network environment through specific technologies and methods. It is the foundation of network security and aims to ensure that network resources and data can only be accessed by authorized users. Identity authentication technology is a key component for protecting digital assets and ensuring the security of the network environment, and is crucial to the information security of individual users, enterprises and the entire society. At present, the main identity authentication technologies include password-based authentication, hardware-based authentication and biometric-based authentication. Password-based authentication is the most traditional method, but it is vulnerable to the threat of password guessing and leakage. Hardware-based authentication enhances security through cryptographic algorithms built into the hardware. Biometric identity authentication, such as fingerprint recognition and iris recognition, provides certain security guarantees due to its uniqueness and difficulty in duplication. However, existing technologies often focus on the verification stage, lack monitoring of user identities during use, and cannot effectively detect abnormal behaviors that may occur after identity authentication. This defect is more obvious when identity information is stolen.

[0022] In summary, existing identity authentication technologies fail to adequately monitor abnormal behaviors, which can easily lead to insecure network communications.

[0023] In order to facilitate the understanding of the present invention, some preferred embodiments of the present invention are further described below.

[0024] In step S11, the common login information includes common login time, common login device, common login geographical location, and the common device usage information includes common device traffic information and common access resource types. Specifically, the common login information refers to the user's most common login time, most common login device, and most common login geographical location; the common device usage information refers to the user's most common traffic usage and the most common access resource type.

[0025] The current login information includes the current login time, the current login device, and the current login geographic location, and the current device usage information includes the current device traffic information and the current access resource type. Specifically, the current login information refers to the user login time, login device, and login geographic location acquired by the system in real time when the current communication user performs a login operation; the current device usage information refers to the user traffic usage information and the type of accessed resources acquired by the system in real time when the current communication user uses the device.

[0026] In step S12, a first preference vector is obtained according to the commonly used login information and the commonly used device usage information, including: setting priorities according to the commonly used login information and the commonly used device usage information to obtain a first preference priority; and obtaining a first preference vector according to the first preference priority.

[0027] Specifically, the first preference priority is set in a specific manner as follows: within a plurality of preset time periods, the plurality of time periods are sorted from high to low according to the number of user logins within each time period, to obtain the first preference priority of the sorted plurality of time periods; or Sort the login times corresponding to each login device from high to low to obtain a first preference priority of the sorted plurality of login devices; or Sort the login times corresponding to each login geographical location from high to low to obtain a first preference priority including the sorted plurality of login geographical locations; or In a plurality of preset flow usage ranges, sorting the flow usage ranges from high to low according to the number of times each flow usage range is reached, and obtaining a first preference priority including the sorted plurality of flow usage ranges; or Sorting the resource types from high to low according to the number of accesses corresponding to each resource type, to obtain a first preference priority of the sorted plurality of resource types; It is worth noting that the first preference vector is a five-dimensional vector, each dimension of which is composed of the first preference priority obtained above. Exemplarily, the first dimension of the first preference vector is the preference priority of login time, the second dimension of the first preference vector is the preference priority of login device, the third dimension of the first preference vector is the preference priority of login geographic location, the fourth dimension of the first preference vector is the preference priority of traffic usage range, and the fifth dimension of the first preference vector is the preference priority of resource access type.

[0028] It is worth noting that, in addition to setting the priority according to the user's historical login preference and usage preference, this step also determines the specific value of the first preference vector.

[0029] For example, when determining the priority of login time, the system can preset multiple time periods: 8 am to 10 am is time period A, 10 am to 12 am is time period B, 12 am to 2 pm is time period C, and subsequent time periods are two hours long, and so on. If the user logs in 3 times in time period A, 2 times in time period B, and 1 time in time period C within the set past period, then the priority of time period A is greater than time period B, and the priority of time period B is greater than C. This example only takes three time periods as an example, so the priority of time period A can be set to 3, the priority of time period B to 2, and the priority of time period C to 1.

[0030] Exemplarily, when determining the priority of the login device, the login device can be a common communication device available for user login, including a tablet, a mobile phone, a computer, and a server. If the user logs in 4 times using a tablet, 5 times using a mobile phone, 6 times using a computer, and 2 times using a server within a set period of time, the priority is set to computer>mobile phone>tablet>server, so the priority of the computer can be set to 4, the priority of the mobile phone to 3, the priority of the tablet to 2, and the priority of the server to 1.

[0031] For example, when determining the priority of the login geographical location, the login geographical location can be the region logged in in the past period of time, which is set as region A, region B, region C, and region D. If the user logs in 4 times in region A, 3 times in region B, 2 times in region C, and 1 time in region D in the set past period of time, the priority is set as region A>region B>region C>region D, so the priority of region A can be set to 4, the priority of region B to 3, the priority of region C to 2, and the priority of region D to 1.

[0032] Exemplarily, when determining the priority of the traffic usage range, the system can preset multiple traffic ranges: within a period of time, when the traffic usage is between 0M-1G, it is set to traffic range segment A; when the traffic usage is between 1G-2G, it is set to traffic range segment B; when the traffic usage is between 2G-3G, it is set to traffic range segment C; and so on for subsequent traffic range segments. If the user uses 3 times the traffic size within traffic range segment A, 2 times the traffic size within traffic range segment B, and 1 time within traffic range segment C in a set period of time in the past, the priority is set to traffic range segment A>traffic range segment B>traffic range segment C, so the priority of traffic range segment A can be set to 3, the priority of traffic range segment B to 2, and the priority of traffic range segment C to 1.

[0033] Exemplarily, when determining the priority of resource types, the resource types may be documents, pictures, and databases accessed by users in the past period of time, which are set as resource A, resource B, and resource C. If the user accesses resource A 6 times, resource B 3 times, and resource C 1 times in the past period of time, the priority is set as resource A>resource B>resource C, so the priority of resource A can be set to 3, the priority of resource B to 2, and the priority of resource C to 1.

[0034] It is worth noting that each dimension of the first preference vector is the maximum value of the corresponding priority, that is, the most common login behavior and device usage behavior of the user history. Exemplarily, according to the values ​​set in the above example, the first preference vector can be set to [3, 4, 4, 3, 3].

[0035] In step S13, a second preference vector is obtained according to the current login information and the current device usage information, including: setting a priority according to the current login information and the current device usage information to obtain a second preference priority; and obtaining a second preference vector according to the second preference priority.

[0036] Specifically, the specific method of setting the second preference priority value is: According to the time period of the login time, the first preference priority of the corresponding login time is matched to obtain the first dimension priority; According to the login device type, the first preference priority of the corresponding login device is matched to obtain the second dimension priority; According to the login geographic location, the first preference priority of the corresponding login geographic location is matched to obtain the third dimension priority; According to the traffic usage, the first preference priority of the corresponding traffic usage range is matched to obtain the fourth dimension priority; According to the number of times the resource type is accessed, the first preference priority of the corresponding resource type is matched to obtain the fifth dimension priority; It is worth noting that the second preference vector is also a five-dimensional vector, each dimension of which is composed of the second preference priorities obtained above.

[0037] Exemplarily, as described in the example of step S12, if the user's current login time is 8:30, the corresponding login time period is time period A, and the first preference priority of the match is 3, and the value 3 is used as the first dimension priority; if the user's current login device is a mobile phone, the first preference priority of the match is 3, and the value 3 is used as the second dimension priority; if the user's current login geographical location is area C, the first preference priority of the match is 2, and the value 2 is used as the third dimension priority; if the current user uses 1.5G of traffic within a period of time, the first preference priority of the match is 2, and the value 2 is used as the fourth dimension priority; if the current user visits resource C the most times within a period of time, the first preference priority of the match is 1, and the value 1 is used as the fifth dimension priority.

[0038] According to the above login preference and usage preference of the current user, the second preference vector may be set to [3, 3, 2, 2, 1].

[0039] In step S14, a difference calculation is performed based on the first preference vector and the second preference vector to obtain a preference difference degree, which is specifically: Calculate the average value of the priority value of the yth dimension based on the current login information, current device usage information, common login information, and common device usage information , the calculation formula is: In the formula, represents the preference vector consisting of priorities, Represents a collection of login information and device usage information. Indicates the current login information and current device usage information. Indicates common login information and common device usage information; According to the current login information, current device usage information, common login information and common device usage information, the standard deviation of the priority value of the yth dimension The calculation formula is: Calculate the sum of the five-dimensional mean square errors based on the standard deviation of the priority value of the y-th dimension , the sum of the five-dimensional mean square errors is taken as the preference difference, and the calculation formula is: It is worth mentioning that It indicates the degree of difference between the current login information, current device usage information and the commonly used login information, commonly used device usage information, that is, the preference difference. If the standard deviation calculated for each dimension is larger, it means that the corresponding dimension value is more discrete, indicating that the current user's preference is more different from the historical preference. When the difference between the two is too large, it may be that the current logged in and used user is inconsistent with the correct user identity, in which case re-authentication is required.

[0040] In step S15, whether the communication user identity is passed is determined based on the preference difference. Specifically, the preference difference is the sum of the five-dimensional mean square errors, which represents the difference between the current login information, the current device usage information and the commonly used login information, the commonly used device usage information. The greater the preference difference, the lower the possibility of being the correct identity user.

[0041] When the preference difference exceeds the threshold, the user is judged as an abnormal user and the user identity is not passed; when the preference difference is within the threshold, the user is judged as a normal user and the user identity is passed. In one embodiment, the threshold can be determined in the following ways: by using a statistical analysis method, by analyzing user behavior data, using statistical methods to determine the distribution of normal behavior and set a threshold; by using a historical behavior analysis method, considering the user's past login and usage patterns, and using historical data to define what is a normal range of behavior. Machine learning methods dynamically adjust the threshold by analyzing historical data. In short, the threshold setting value cannot be too low, otherwise it will lead to misjudgment and affect the user experience; the threshold setting value cannot be too high, otherwise it will lead to insensitive identity authentication and network communication security cannot be guaranteed.

[0042] The following describes the working process of the present invention by taking a relatively common scenario as an example. The working process is as follows: The system first sets priorities based on the communication user's common login information and common device usage information. For example: the system presets multiple time periods: 00:00-08:00 is set as time period A, 08:00-16:00 is set as time period B, and 16:00-24:00 is set as time period C. Among them, the number of logins in time period A is 3 times, the number of logins in time period B is 2 times, and the number of logins in time period C is 1 times, then the priority of time period A is set to 3, the priority of time period B is 2, and the priority of time period C is 1; the system presets three login devices: tablet, mobile phone, and computer. In the past period of time, the number of logins using the tablet is 1, the number of logins using the mobile phone is 2, and the number of logins using the computer is 3. Then the priority of the computer is set to 3, the priority of the mobile phone is set to 2, and the priority of the tablet is set to 1; in the past period of time, the number of logins in area A is 4, the number of logins in area B is 3, and the number of logins in area C is 2, then the priority of area A is set to 3, the priority of region B is 2, and the priority of region C is 1; the system presets multiple traffic ranges. When the traffic usage is between 0M-1G, it is set to traffic range segment A, when the traffic usage is between 1G-2G, it is set to traffic range segment B, and when the traffic usage is between 2G-3G, it is set to traffic range segment C. In the past period of time, the number of times the traffic size used is within traffic range segment A is 3, the number of times the traffic size used is within traffic range segment B is 2, and the number of times the traffic size used is within traffic range segment C is 1, then the priority of traffic range segment A is set to 3, the priority of traffic range segment B is 2, and the priority of traffic range segment C is 1; the system presets multiple resource types, documents are set to resource A, pictures are set to resource B, and databases are set to resource C. In the past period of time, the number of times resource A was accessed is 6, the number of times resource B was accessed is 3, and the number of times resource C was accessed is 1, then the priority of resource A is set to 3, the priority of resource B is set to 2, and the priority of resource C is set to 1. So the first preference vector is [3,3,3,3,3].

[0043] When a user tries to log in and use the network system, the system obtains the current login information and the current device usage information in real time. For example, the user logs in from region B using a mobile phone at 2 pm, uses 1.5G traffic to access the database, and accesses the database the most times. The system matches the current time period, device type, geographic location, traffic usage, and access resource type with the first preference vector in the historical data, and obtains the second preference vector [2,2,2,2,3].

[0044] The system calculates the preference difference based on the obtained first preference vector [3,3,3,3,3] and the second preference vector [2,2,2,2,3]. Exemplarily, the calculation of the preference difference takes the fifth dimension as an example of the present invention: Calculates the average of the first dimension's priority values : Calculates the standard deviation of the first dimension's priority values , that is, the preference difference of the first dimension The standard deviations of the first to fourth dimensions are calculated in the same way, and finally the sum of the standard deviations of the five dimensions is calculated. According to the preference difference, determine whether the communication user identity is passed. When the preference difference exceeds a threshold, it is determined to be an abnormal user and the user identity is not passed; when the preference difference is within the threshold, it is determined to be a normal user and the user identity is passed.

[0045] In summary, an embodiment of the present invention provides a network security verification method, including obtaining a communication user's commonly used login information, commonly used device usage information, current login information, and current device usage information; obtaining a first preference vector based on the commonly used login information and the commonly used device usage information; obtaining a second preference vector based on the current login information and the current device usage information; performing a difference calculation based on the first preference vector and the second preference vector to obtain a preference difference degree; judging whether the communication user identity is passed based on the preference difference degree, when the preference difference degree exceeds a threshold, judging the user as an abnormal user, and the user identity is not passed; when the preference difference degree is within the threshold, judging the user as a normal user, and the user identity is passed. In the present invention, the method obtains the commonly used login information and device usage information of the logged-in user's history, sets a priority for the user's historical preferences, obtains a first preference vector, then obtains the user's current login information and device usage information, matches them with the set priority, and obtains a second preference vector; the first preference vector and the second preference vector are calculated to obtain the difference between the two vectors, that is, the login information and device usage information of the user with the correct identity and the currently logged-in user are compared to obtain the difference between the two. If the difference does not exceed the preset threshold, it is judged as the correct user identity information. If the difference exceeds the preset threshold, it is judged as abnormal user information, thereby achieving the purpose of judging the correctness of the current user's identity. The monitoring method is not limited to identity authentication when the user logs in, but performs identity authentication throughout the two stages from user login to use, thereby improving the accuracy and reliability of network security verification.

[0046] Reference Figure 2 The second embodiment of the present invention provides a network security verification device, including: An information acquisition module is used to acquire the communication user's common login information, common device usage information, current login information, and current device usage information; A preference setting module, configured to obtain a first preference vector according to the common login information and the common device usage information; An information matching module, obtaining a second preference vector according to the current login information and the current device usage information; a difference calculation module, configured to perform difference calculation based on the first preference vector and the second preference vector to obtain a preference difference degree; The identity authentication module is used to determine whether the communication user identity is passed according to the preference difference. When the preference difference exceeds a threshold, it is determined to be an abnormal user and the user identity is not passed; when the preference difference is within the threshold, it is determined to be a normal user and the user identity is passed.

[0047] In an optional implementation, the information acquisition module is specifically used to: Get common login time, common login device, common login geographic location, device traffic information, common access resource types, current login time, current login device, current login geographic location, current device traffic information, and current access resource types.

[0048] In an optional implementation, the preference setting module is specifically used to: Priority setting is performed according to the common login information and the common device usage information to obtain a first preference priority; A first preference vector is obtained according to the first preference priority.

[0049] Specifically, the preference module is used to: In a plurality of preset time periods, the plurality of time periods are sorted from high to low according to the number of user logins in each time period, to obtain a first preference priority including the sorted plurality of time periods; or Sort the login times corresponding to each login device from high to low to obtain a first preference priority of the sorted plurality of login devices; or Sort the login times corresponding to each login geographical location from high to low to obtain a first preference priority including the sorted plurality of login geographical locations; or In a plurality of preset flow usage ranges, sorting the flow usage ranges from high to low according to the number of times each flow usage range is reached, and obtaining a first preference priority including the sorted plurality of flow usage ranges; or Sorting the resource types from high to low according to the number of accesses corresponding to each resource type, to obtain a first preference priority of the sorted plurality of resource types; In an optional implementation, the information matching module is used to: Priority setting is performed according to the current login information and the current device usage information to obtain a second preference priority; A second preference vector is obtained according to the second preference priority.

[0050] Specifically, the information matching module is used to: According to the time period of the login time, the first preference priority of the corresponding login time is matched to obtain the first dimension priority; According to the login device type, the first preference priority of the corresponding login device is matched to obtain the second dimension priority; According to the login geographic location, the first preference priority of the corresponding login geographic location is matched to obtain the third dimension priority; According to the traffic usage, the first preference priority of the corresponding traffic usage range is matched to obtain the fourth dimension priority; According to the number of times the resource type is accessed, the first preference priority of the corresponding resource type is matched to obtain the fifth dimension priority; In an optional implementation, the difference calculation module is specifically used to: Calculate the average value of the priority value of the yth dimension based on the current login information, current device usage information, common login information, and common device usage information , the calculation formula is: In the formula, Indicates the priority level preference vector, Represents a collection of login information and device usage information. Indicates the current login information and current device usage information. Indicates common login information and common device usage information; According to the current login information, current device usage information, common login information and common device usage information, the standard deviation of the priority value of the yth dimension The calculation formula is: Calculate the sum of the five-dimensional mean square errors based on the standard deviation of the priority value of the y-th dimension , the sum of the five-dimensional mean square errors is taken as the preference difference, and the calculation formula is: It should be noted that a network security verification device provided in an embodiment of the present invention is used to execute all process steps of a network security verification method in the above embodiment, and the working principles and beneficial effects of the two correspond one to one, so they will not be described in detail.

[0051] The embodiment of the present invention further provides a terminal device. The terminal device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a network security verification program. When the processor executes the computer program, the steps in the above-mentioned network security verification method embodiments are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are realized, such as the information acquisition module.

[0052] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the terminal device.

[0053] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, and a smart tablet. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above components are merely examples of terminal devices and do not constitute a limitation on the terminal device. The terminal device may include more or fewer components than the above components, or may combine certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0054] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0055] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0056] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0057] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0058] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A network security verification method, characterized in that: include: Obtain the communication user's common login information, common device usage information, current login information, and current device usage information; Obtaining a first preference vector according to the common login information and the common device usage information; Obtaining a second preference vector according to the current login information and the current device usage information; Performing difference calculation based on the first preference vector and the second preference vector to obtain a preference difference degree; According to the preference difference, it is determined whether the communication user identity is passed. When the preference difference exceeds a threshold, it is determined to be an abnormal user and the user identity is not passed; when the preference difference is within the threshold, it is determined to be a normal user and the user identity is passed.

2. The network security verification method according to claim 1, characterized in that: The commonly used login information includes commonly used login time, commonly used login device, and commonly used login geographical location; the commonly used device usage information includes commonly used device traffic information and commonly accessed resource types; The current login information includes the current login time, the current login device, and the current login geographic location; the current device usage information includes the current device traffic information and the current access resource type.

3. The network security verification method according to claim 1, characterized in that: The obtaining a first preference vector according to the common login information and the common device usage information includes: Priority setting is performed according to the common login information and the common device usage information to obtain a first preference priority; A first preference vector is obtained according to the first preference priority.

4. The network security verification method according to claim 3, characterized in that: The priority is set according to the common login information and the common device usage information to obtain a first preference priority, which is specifically: In a plurality of preset time periods, the plurality of time periods are sorted from high to low according to the number of user logins in each time period, to obtain a first preference priority of the plurality of time periods after sorting; or Sorting the login times corresponding to each login device from high to low to obtain a first preference priority of the sorted plurality of login devices; or Sorting the number of logins corresponding to each login geographical location from high to low to obtain a first preference priority including the sorted plurality of login geographical locations; or In the preset multiple flow usage ranges, sorting is performed from high to low according to the number of times each flow usage range is reached, so as to obtain a first preference priority including the sorted multiple flow usage ranges; or Sorting the resource types from high to low according to the number of accesses corresponding to each resource type, to obtain a first preference priority of the sorted plurality of resource types; A first preference vector is obtained according to the first preference priority.

5. The network security verification method according to claim 1, characterized in that: The obtaining a second preference vector according to the current login information and the current device usage information includes: Priority setting is performed according to the current login information and the current device usage information to obtain a second preference priority; A second preference vector is obtained according to the second preference priority.

6. The network security verification method according to claim 5, characterized in that: The priority is set according to the current login information and the current device usage information to obtain a second preference priority, specifically: According to the time period of the login time, the first preference priority of the corresponding login time is matched to obtain the first dimension priority; According to the login device type, the first preference priority of the corresponding login device is matched to obtain the second dimension priority; According to the login geographic location, the first preference priority of the corresponding login geographic location is matched to obtain the third dimension priority; According to the traffic usage, the first preference priority of the corresponding traffic usage range is matched to obtain the fourth dimension priority; According to the number of times the resource type is accessed, the first preference priority of the corresponding resource type is matched to obtain the fifth dimension priority; The second preference priority includes the first dimension priority, the second dimension priority, the third dimension priority, the fourth dimension priority and the fifth dimension priority.

7. The network security verification method according to claim 4, characterized in that: The first preference vector and the second preference vector are five-dimensional vectors, each dimension of the first preference vector is sorted according to the maximum value of the first preference priority, and each dimension of the second preference vector is sorted according to the second preference priority.

8. The network security verification method according to claim 1, characterized in that: The difference calculation is performed according to the first preference vector and the second preference vector to obtain the preference difference degree, specifically: Calculate the average value of the priority value of the yth dimension based on the current login information, current device usage information, common login information, and common device usage information , the calculation formula is: In the formula, Indicates the priority level preference vector, Represents a collection of login information and device usage information. Indicates the current login information and current device usage information. Indicates common login information and common device usage information; According to the current login information, current device usage information, common login information and common device usage information, the standard deviation of the priority value of the yth dimension The calculation formula is: Calculate the sum of the five-dimensional mean square errors based on the standard deviation of the priority value of the y-th dimension , the sum of the five-dimensional mean square errors is taken as the preference difference, and the calculation formula is: 。 9. A network security communication device, characterized in that: include: An information acquisition module is used to acquire the communication user's common login information, common device usage information, current login information, and current device usage information; A preference setting module, configured to obtain a first preference vector according to the common login information and the common device usage information; An information matching module, obtaining a second preference vector according to the current login information and the current device usage information; a difference calculation module, configured to perform difference calculation based on the first preference vector and the second preference vector to obtain a preference difference degree; The identity authentication module is used to determine whether the communication user identity is passed according to the preference difference. When the preference difference exceeds a threshold, it is determined to be an abnormal user and the user identity is not passed; when the preference difference is within the threshold, it is determined to be a normal user and the user identity is passed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the network security verification method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Third-party authorization method and third-party authorization system

    CN105763547A

  • System switching method and device, device and medium

    CN109766173A

  • User identification method and device

    CN112989295A

  • Identity authentication method and device based on power system, computer equipment and storage medium

    CN113886787A

  • Abnormal detection method and device for user behavior, equipment and medium

    CN116956250A