A data transaction security assessment method
By analyzing the distance between data points and the security rate of historical transaction data in data transactions, adaptively adjusting the clustering radius solves the problem of low-density but low-risk data points that cannot be accurately clustered, and improves data transaction security. Accuracy of assessment.
Patent Information
- Application Number
- CN202411067125.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-06
AI Technical Summary
In the current data transaction process, data points with low density but low risk cannot be accurately clustered, resulting in low accuracy of data transaction security assessment results.
By analyzing the distance between each parameter item in the data point and other data points, the initial clustering radius is determined, and the clustering radius is adaptively adjusted based on the safety rate of historical transaction data to ensure the accuracy of the clustering results of the data points.
The accuracy of data transaction clustering is improved, thereby improving the accuracy of data transaction security assessment results and avoiding the situation of low density but safe data points being misclassified.
Smart Images

Figure CN118587013B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and more specifically, to a data transaction security assessment method. Background Art
[0002] Data transaction security assessment refers to the process of evaluating and determining the security of data transactions. Data transaction security assessment aims to determine whether data transactions meet security requirements and whether there are potential security risks or vulnerabilities. By evaluating the security of data transactions, potential threats can be identified in a timely and efficient manner, and appropriate security measures can be taken to prevent data leaks, unauthorized access, or other security incidents.
[0003] The patent application document with publication number CN117291716A discloses a risk assessment method for payment data. The method obtains a first risk indicator based on the overdue duration of each payment of the user to be evaluated, the total number of payment overdues, the total number of transactions and the number of transactions that have not been repaid so far; obtains a repayment time change indicator based on the overdue duration of each overdue payment of the user to be evaluated and the time between each overdue repayment time and the current time; uses the K-means clustering algorithm and the DBSCAN clustering algorithm to cluster all users to obtain an optimal clustering result; and finally determines the risk level of the payment of the user to be evaluated.
[0004] The above-mentioned existing technical solutions ultimately cluster all users through the K-means clustering algorithm and the DBSCAN clustering algorithm to obtain the optimal clustering results. However, the density of the data points composed of various audit parameters in the clustering sample space during the data transaction process is different, and the DBSCAN clustering algorithm uses a fixed clustering radius and cannot accurately cluster data points with low density and low risk, nor can it obtain accurate risk assessment results.
[0005] Based on this, how to accurately obtain the evaluation results of data transaction security is an urgent problem to be solved by technical personnel in this field. Summary of the invention
[0006] In order to solve the above technical problem of how to accurately obtain the evaluation result of data transaction security, the present invention proposes a data transaction security evaluation method, which includes the following steps:
[0007] Acquire each data point of the transaction data sample space, wherein the data point includes multiple parameter items;
[0008] Obtain the difference between the parameter item and the corresponding parameter item in other data points, determine the density of each parameter item in the data point, and the density is negatively correlated with the absolute value of the difference; take the average density of each parameter item in the data point as the average density of the data point; obtain the average distance between the parameter items of the data point and other data points through the Manhattan distance formula, determine the initial clustering radius of the data point, and the initial clustering radius of the data point is positively correlated with the average distance; obtain the safety rate of the historical transaction data sample space, cluster the data point with the largest average density as the starting data point based on the initial clustering radius, obtain the ratio of the number of data points in the largest cluster to the total number of data points, and obtain the clustering radius of the data point by comparing the safety rate with the ratio; obtain the data transaction security assessment result based on the clustering result of the data point based on the clustering radius of the data point.
[0009] The present invention takes into account that some data points have low density but high possibility of being safe data points but cannot be correctly clustered. Therefore, by analyzing the data changes of various parameter items that affect the clustering radius of the data points, the clustering radius of each data point is obtained and clustering is performed to obtain the clustering results. By combining the security rate of the historical transaction data sample space and the clustering results, the data transaction security assessment result is obtained, which effectively improves the accuracy of the obtained data transaction security assessment result.
[0010] According to a data transaction security assessment method provided by the present invention, the step of obtaining each data point in the transaction data sample space also includes: obtaining transaction audit data from a data middle station, preprocessing the transaction audit data to construct a transaction data sample space, and obtaining each data point in the transaction data sample space.
[0011] The present invention takes into account the possibility of data missing in the collected original data, and therefore can improve the overall quality of each data point in the transaction data sample space through preprocessing, facilitating subsequent data analysis and processing.
[0012] According to a data transaction security assessment method provided by the present invention, the density of each parameter item in the data point satisfies the relationship: the transaction data, access user and access times in the parameter item of the data point are obtained;
[0013] ; In the formula, Indicates the jth access user of the i-th transaction data The data point of the visit The density of the parameters, Indicates the total number of transaction data items. Indicates The total number of users accessing the transaction data. Indicates Transaction data The number of visits by visiting users, Indicates the jth access user of the i-th transaction data The data point of the visit The value of the parameter item, Indicates that except for the i-th transaction data, the j-th access user Visited outside Transaction data The visiting user The data point of the visit The value of the parameter item, represents the linear normalization function.
[0014] The present invention provides an accurate method for calculating the density of each parameter item in a data point, which can accurately obtain the density of each parameter item in the data point, so that the clustering radius of the data point can be accurately obtained based on it later.
[0015] According to a data transaction security assessment method provided by the present invention, the average distance between the parameter items of the data point and other data points satisfies the relationship:
[0016] ;
[0017] In the formula, Indicates the jth access user of the i-th transaction data The data point of the visit The parameter term and the other data points The average distance between parameter items, Indicates the total number of transaction data items. Indicates The total number of users accessing the transaction data. Indicates Transaction data The number of visits by visiting users, Indicates the jth access user of the i-th transaction data The data point of the visit The value of the parameter item, Indicates that except for the i-th transaction data, the j-th access user Visited outside Transaction data The visiting user The data point of the visit The value of the parameter item, Represents the absolute value symbol.
[0018] The present invention provides an accurate method for calculating the average distance between each parameter item in a data point and the parameter items of other data points, so that the initial clustering radius of the data point in each parameter item dimension can be accurately obtained based on this.
[0019] According to a data transaction security assessment method provided by the present invention, determining the initial clustering radius of the data point includes: determining the initial clustering radius of the data point in each parameter item dimension, the initial clustering radius in each parameter item dimension is positively correlated with the average distance; and taking the sum of the initial clustering radii of the data point in each parameter item dimension as the initial clustering radius of the data point.
[0020] According to a data transaction security assessment method provided by the present invention, the initial clustering radius of the data points in each parameter dimension satisfies the relationship:
[0021] ;
[0022] In the formula, Indicates the jth access user of the i-th transaction data The data point of the visit The initial cluster radius in the dimension of parameter items, Indicates the total number of transaction data items. Indicates the total number of users accessing the i-th transaction data, represents the number of visits by the jth user in the i-th transaction data. Indicates the jth access user of the i-th transaction data The data point of the visit The parameter term and other data points The average distance between the parameters.
[0023] According to a data transaction security assessment method provided by the present invention, the clustering radius of the data point is obtained by comparing the safety rate with the proportion, including: when the safety rate is less than the proportion, taking the initial clustering radius of the data point as the clustering radius of the data point; when the safety rate is greater than or equal to the proportion, obtaining the ratio of the initial clustering radius to the density of parameter items in the data point, and taking the sum of the ratios of all parameter items in the data point as the clustering radius of the data point.
[0024] The present invention can adaptively obtain the clustering radius of each data point by combining the safety rate and the proportion, thereby avoiding the situation where some data points cannot be correctly clustered even though they have low density but are highly likely to be safety data points.
[0025] According to a data transaction security assessment method provided by the present invention, the clustering results of the data points based on the clustering radius of the data points to obtain the data transaction security assessment results, including: clustering the transaction data based on the clustering radius of the data points to obtain multiple clusters, marking the assessment results of the data points in the largest cluster among all the clusters as normal data points; marking the assessment results of the data points in other clusters except the largest cluster as risky data points.
[0026] The present invention has the following beneficial effects:
[0027] When obtaining data transaction security assessment results, the present invention combines the density of data points and the safety rate of data points to jointly determine the optimal clustering radius of each data point, thereby avoiding the situation where some data points cannot be correctly clustered even though they have low density but are likely to be safe data points. This effectively improves the accuracy of transaction data clustering, thereby effectively improving the accuracy of data transaction security assessment results obtained therefrom. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0029] Figure 1 A flowchart of a data transaction security assessment method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0030] 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 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0031] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0032] It should be noted that the density of the data points composed of various audit parameters in the data transaction process is different in the cluster sample space. Some data points have low density but may be safe data points. Since the distance between low-density data points and other data points is far, the conventional DBSCAN clustering algorithm cannot complete accurate clustering of such data points using a fixed clustering radius, and the accuracy of the data transaction security assessment result obtained based on the clustering result is low. Based on this, an embodiment of the present invention provides a data transaction security assessment method, which obtains the initial clustering radius of the data point in each parameter item dimension by analyzing the distance between each parameter item of the data point and the parameter items of other data points in the data transaction sample space, and finally obtains the clustering radius of the data point, and finally obtains the data transaction security assessment result based on the clustering result.
[0033] See also Figure 1 As shown, Figure 1 A flowchart of a data transaction security assessment method provided by an embodiment of the present invention includes the following steps:
[0034] S1: Obtain each data point in the transaction data sample space, where the data point contains multiple parameter items.
[0035] It should be noted that the parameter items in the data points are audit data in the data transactions, which can verify the legality and compliance of the transactions. The number of parameter items in the data points is the number of dimensions in the transaction data sample space. By analyzing the data changes of the parameter items in different data points, the density of each parameter item can be obtained, and thus the average density of each data point can be obtained to reflect the distribution of each data point in the sample space.
[0036] For example, the parameter items in the data point can be transaction data, access users, number of accesses, access time, access rights, etc. The number of parameter items can be set according to actual needs. The access user is marked by the user identity Identifier (hereinafter referred to as user ID). For ease of understanding, the embodiment of the present invention takes the processing of transaction audit data within a single day as an example for explanation.
[0037] Specifically, the transaction audit data of a single day is obtained from the data center, and the transaction audit data is preprocessed to construct a transaction data sample space, and each data point in the transaction data sample space is obtained. The parameter items in each data point may include the transaction data of a single day, the visiting user, the number of visits, the access time, and the access rights. For example, the transaction audit data preprocessing method may include data cleaning, data integration, and data transformation, etc., which may be specifically set according to actual needs, and the embodiment of the present invention does not impose too many restrictions on this.
[0038] Among them, transaction data can be transaction data accessed by users in a single day. For example, when users access sales data, the transaction data can be sales orders, sales, sales volume, sales channels, sales regions and other data, and the corresponding total number of transaction data items is 5. When users access these transaction data, the data center will record the user's access information parameter items in real time, and the security assessment results of the transaction data can be obtained by analyzing the parameter items.
[0039] The number of accesses includes the number of times a user accesses a single transaction data and the number of times a user accesses all transaction data within a single day. If a user frequently accesses a single transaction data within a single day, the transaction data may be at risk.
[0040] User ID types include administrator, seller, buyer, and unknown, which can be represented by numbers 1, 2, 3, and 4. If an unknown user ID accesses transaction data, the transaction data it accesses may be risky data, and such users and transaction data need to be closely observed.
[0041] Access time is mainly divided into normal access time and abnormal access time. For example, if 7:00 am to 10:00 pm is set as normal access time, and the time outside this period is set as abnormal access time, the transaction data accessed by the user during the abnormal access time may be risky data.
[0042] Access permissions include operation permissions and operation scopes. Operation permissions include query, update, and delete. Different operations are assigned different values. For example, when the user does not perform an operation, the value is 0; when the user performs an operation and is within the operation permissions, the value is 1; when the user performs an operation that exceeds the permissions, the value is -1.
[0043] Based on the above method, the parameter items in each data point can be obtained. It can be understood that the parameter items in each data point correspond to the parameter items of other data points one by one, and the data point and its parameter items also correspond to each other one by one. After obtaining the access user ID and the number of visits of the user, the transaction data corresponding to the user can be uniquely determined. Based on this, the scheme of the embodiment of the present invention can be explained by processing the access user, the number of visits and the transaction data in the data point, that is, based on the above method, the transaction data of the jth access user of the i-th item of transaction data can be obtained. The data points of the visit (i-th transaction data, j-th visiting user, number of visits, visit time, access rights).
[0044] S2: Obtain the difference between the parameter item and the corresponding parameter item in other data points, determine the density of each parameter item in the data point, and take the average density of each parameter item in the data point as the average density of the data point.
[0045] It should be noted that the density of a data point is related to the density of each parameter item in the data point, and the density of a parameter item can reflect the distribution of the parameter item in the entire parameter item.
[0046] For example, in the embodiment of the present invention, the density of the parameter item is negatively correlated with the absolute value of the difference between the parameter item and the corresponding other parameter items, that is, the smaller the absolute value of the difference is, the greater the density of the parameter item is.
[0047] Specifically, the transaction data, visiting users and number of visits in the parameter items of the data point are obtained. For the i-th transaction data, each visit of the j-th visiting user is a data point, so the access situation of the j-th visiting user to the i-th transaction data can be obtained. In addition, since each parameter item is of different dimensions, the parameter items of each dimension need to be normalized in data processing. The data point of the visit The density of each parameter item can be specifically found in the following relationship:
[0048] ;
[0049] In the formula, Indicates the jth access user of the i-th transaction data The data point of the visit The density of the parameters, Indicates the total number of transaction data items. Indicates The total number of users accessing the transaction data. Indicates Transaction data The number of visits by visiting users, Indicates the jth access user of the i-th transaction data The data point of the visit The value of the parameter item, Indicates that except for the i-th transaction data, the j-th access user Visited outside Transaction data The visiting user The data point of the visit The value of the parameter item, represents the linear normalization function.
[0050] The average value of the density of each parameter item in the data point is the average density of the data point:
[0051] Specifically, determine the jth access user of the i-th transaction data The average density of data points visited can be found in the following relationship:
[0052] ;
[0053] In the formula, Indicates the jth access user of the i-th transaction data The average density of data points visited, represents the number of parameter items in the data point, Indicates the jth access user of the i-th transaction data The data point of the visit The density of the parameters.
[0054] In this way, the average density of data points is obtained, and the density of parameter items in different dimensions in the data points is comprehensively considered, which effectively improves the accuracy of the average density of the obtained data points.
[0055] S3: The average distance between the data point and other data point parameters is obtained through the Manhattan distance formula to determine the initial clustering radius of the data point.
[0056] It should be noted that the present invention analyzes the differences between each parameter item in the data point and the parameter items of other data points, comprehensively considers the information of multiple dimensions, and can improve the accuracy of the average density of the obtained data points, thereby obtaining accurate clustering results. However, the more dimensional information, the better. If the number of dimensions involved in the calculation is too large, the spatial sparsity caused by the dimensional disaster may lead to inaccurate clustering. Based on this, the embodiment of the present invention analyzes the distance between the data point parameter items through the Manhattan distance formula, which can effectively reduce the occurrence of inaccurate clustering caused by the dimensional disaster, and obtain the initial clustering radius of each data point based on this.
[0057] It is understandable that the data distribution between each parameter item in the data point is different. For example, the value of the parameter item access rights only changes to 0, 1, and -1, so the overall data change is small. As for the number of parameter item accesses, the value range is determined by the user himself, which is completely random, and the overall distribution of the data is quite different. Therefore, the distribution of each parameter item in the data point is not exactly the same, and the impact on the distribution of the data point in the overall data point is also different. Different parameter items need to be analyzed separately. Based on this, we can consider obtaining the average distance of each parameter item in the data point in the dimension, so as to obtain the initial clustering radius of the data point in each parameter item dimension, and obtain the initial clustering radius of the data point based on the initial clustering radius of the data point in each parameter item dimension.
[0058] For example, in an embodiment of the present invention, when determining the initial clustering radius of a data point, the average distance between each parameter item in the data point and the parameter items of other data points can be first obtained to obtain the initial clustering radius of the data point in the dimension of the parameter item. The initial clustering radius of the data point is positively correlated with the average distance between the parameter items of the data point and other data points.
[0059] Specifically, the average distance between the data point and the other data point parameter items is determined, which can be specifically referred to in the following relationship:
[0060] ;
[0061] In the formula, Indicates the jth access user of the i-th transaction data The data point of the visit The parameter term and the other data points The average distance between parameter items, Indicates the total number of transaction data items. Indicates The total number of users accessing the transaction data. Indicates Transaction data The number of visits by visiting users, Indicates the jth access user of the i-th transaction data The data point of the visit The value of the parameter item, Indicates that except for the i-th transaction data, the j-th access user Visited outside Transaction data The visiting user The data point of the visit The value of the parameter item, Represents the absolute value symbol.
[0062] After obtaining the average distance between the parameter item in the data point and the parameter items of other data points based on the above formula, the initial clustering radius of the data point in the dimension of the parameter item can be obtained based on the average distance.
[0063] For example, in an embodiment of the present invention, when determining the initial clustering radius of a data point, the initial clustering radius of the data point in each parameter item dimension can be determined, and the initial clustering radius in each parameter item dimension is positively correlated with the average distance; the sum of the initial clustering radii of the data point in each parameter item dimension is used as the initial clustering radius of the data point.
[0064] Specifically, in the embodiment of the present invention, the jth access user of the i-th transaction data is determined. The data point visited is in When the initial cluster radius is calculated on the dimension of parameter items, the following relationship can be referred to:
[0065] ;
[0066] In the formula, Indicates the jth access user of the i-th transaction data The data point of the visit The initial cluster radius in the dimension of parameter items, Indicates the total number of transaction data items. Indicates the total number of users accessing the i-th transaction data, represents the number of visits by the jth user in the i-th transaction data. Indicates the jth access user of the i-th transaction data The data point of the visit The parameter term and other data points The average distance between the parameters.
[0067] It can be understood that based on the above formula, the initial clustering radius of the data point in all parameter item dimensions can be obtained, and the initial clustering radius of the data point can be obtained by combining the initial clustering radii in all parameter item dimensions.
[0068] Specifically, determine the jth access user of the i-th transaction data The initial clustering radius of the data points visited can be found in the following relationship:
[0069] ;
[0070] In the formula, Indicates the jth access user of the i-th transaction data The initial cluster radius of the data points visited, represents the number of parameter items in the data point, Indicates the jth access user of the i-th transaction data The data point visited is in The initial cluster radius in the dimension of parameter items.
[0071] Based on the above steps, the initial clustering radius of each data point can be obtained by comprehensively considering the distribution of the parameter items in each data point. However, in the process of data point clustering, not only the distribution of the parameter items of the data point should be considered, but also the security of the transaction data sample space should be considered, that is, the following steps are performed:
[0072] S4: Obtain the safety rate of the historical transaction data sample space, cluster the data points with the largest average density as the starting data points based on the initial clustering radius, obtain the ratio of the number of data points in the largest cluster to the total number of data points, and obtain the clustering radius of each data point by comparing the safety rate with the ratio.
[0073] It should be noted that, in general, the overall security of transaction data is relatively high. When clustering data points in the transaction data sample space, data points with low density but high security are far away from other data points. During the clustering iteration process, when the proportion of clustered data points to the total data points is low, the probability that the data point to be clustered is a safe data point is high. In order to reduce the erroneous evaluation results caused by low density, the clustering radius at the data point should be increased; correspondingly, during the iteration process, when the proportion of clustered data points to the total data points is high, the probability that the data point to be clustered is safe is low, and there is no need to process the clustering radius at the data point, and the initial clustering radius can be used.
[0074] Specifically, the security rate of the historical transaction data sample space can be obtained based on the ratio of the security data points to all data points in the historical transaction data sample space. The higher the ratio, the higher the security rate of the historical transaction data sample space.
[0075] For example, in an embodiment of the present invention, the cluster radius of the data points is obtained by comparing the safety rate with the ratio of the number of data points in the largest cluster to the total number of data points, including the following two possible situations:
[0076] When the safety rate is less than the proportion, the initial clustering radius of the data point is used as the clustering radius of the data point.
[0077] When the safety rate is greater than or equal to the proportion, the ratio of the initial clustering radius to the density of the parameter items in the data point is obtained, and the sum of the ratios of all parameter items in the data point is taken as the clustering radius of the data point.
[0078] It is understandable that the number of data points in the transaction data sample space is the same as the sum of the number of visits. Therefore, when determining the ratio of the number of data points in the largest cluster to the total number of data points, it can be represented by the ratio of the number of data points to the total number of visiting users.
[0079] Specifically, determine the jth access user of the i-th transaction data The clustering radius of the data points visited can be specifically found in the following relationship:
[0080] ;
[0081] In the formula, Indicates the jth access user of the i-th transaction data The cluster radius of the data point visited, represents the number of parameter items in the data point, Indicates the jth access user of the i-th transaction data The data point of the visit The density of the parameters, Indicates the jth access user of the i-th transaction data The initial cluster radius of the data points visited, Indicates the number of data points in the largest cluster during the clustering process. Indicates the total number of transaction data items. Indicates the total number of users accessing the i-th transaction data, Represents the safety rate of the historical transaction data sample space.
[0082] In the above formula, It indicates the ratio of the number of data points in the largest cluster to the total number of visiting users, that is, the ratio of the number of data points in the largest cluster to the total number of data points.
[0083] In this way, the initial clustering radius of the data points is adaptively adjusted according to the changes in the number of data points in the largest cluster and the total number of data points. After the clustering radius of each data point is obtained, the clustering result of the transaction data sample space can be obtained through the clustering algorithm:
[0084] S5: Clustering results of data points based on the clustering radius of the data points to obtain data transaction security assessment results.
[0085] It should be noted that, in the process of data clustering, the clustering radius of each data point can be continuously and adaptively adjusted, and multiple clusters can be finally obtained by clustering.
[0086] By way of example, in an embodiment of the present invention, when obtaining a data transaction security assessment result based on the clustering results of the data points according to the clustering radius of the data points, the transaction data can be clustered based on the clustering radius of the data points to obtain multiple clusters, and the assessment results of the data points in the largest cluster among all the clusters can be marked as normal data points; and the assessment results of the data points in other clusters except the largest cluster can be marked as risky data points.
[0087] Specifically, a threshold for the number of sample data points is set, and the data point with the largest average density is used as the starting data point for clustering. The number of data points within the clustering radius of the data point is obtained. If the number of data points exceeds the threshold for the number of sample data points, the data point is marked as a core point, otherwise it is marked as a risky data point. For the core point, all data points within the clustering radius are found, including the core point itself, to form a cluster. For all data points in the cluster, they are marked as processed. Then, a data point is selected from the unprocessed data points, and the above process is repeated until all data points are processed, clustering is completed, and multiple clusters are obtained.
[0088] It should be noted that, in general, the overall security of transaction data is relatively high, and the security rate of the historical transaction data sample space is generally higher than 50%. In this case, the evaluation results of the data points in the largest cluster can be directly marked as normal data points.
[0089] Taking into account that there may be extreme trading situations in trading data, that is, there is a risk that all trading data within a single day may be attacked, the security rate of the corresponding historical trading data sample space is equal to or lower than 50%.
[0090] In this case, the historical largest cluster in the historical clustering results can be obtained. If the largest cluster can be clustered into the same category as the historical largest cluster, the evaluation results of the data points in the largest cluster are marked as normal data points, and the evaluation results of the data points in other clusters except the largest cluster are marked as risk data points; otherwise, the remaining clusters are sorted from large to small according to the number of data points, and compared with the historical largest cluster in turn. If one of the clusters can be clustered into the same category as the historical largest cluster, then the cluster is taken as the largest cluster, and the evaluation results of the data points contained in it are marked as normal data points, and the evaluation results of the data points in other clusters except the largest cluster are marked as risk data points.
[0091] It can be seen that in an embodiment of the present invention, when a security assessment is performed on data transactions, each data point in the transaction data sample space can be obtained, and the data point contains multiple parameter items; the difference between the parameter item and the corresponding other parameter items in all data points is obtained, and the density of each parameter item in the data point is determined, and the density is negatively correlated with the absolute value of the difference; the average density of each parameter item in the data point is used as the average density of the data point; the average distance between the data point and the parameter items of other data points is obtained by the Manhattan distance formula, and the initial clustering radius of the data point is determined, and the initial clustering radius of the data point is positively correlated with the average distance; the safety rate of the historical transaction data sample space is obtained, and the data point with the largest average density is clustered as the starting data point based on the initial clustering radius to obtain the ratio of the number of data points in the largest cluster to the total number of data points, and the clustering radius of each data point is obtained by comparing the safety rate with the ratio; the data point is clustered based on the clustering radius of the data point to obtain the data transaction security assessment result.
[0092] In this way, the present invention combines the density of data points and the safety rate of data points to jointly determine the clustering radius of each data point, thereby avoiding the situation where some data points cannot be correctly clustered even though they have low density but are highly likely to be safe data points, thereby effectively improving the accuracy of transaction data clustering, and thus effectively improving the accuracy of the data transaction security assessment results obtained based on this.
[0093] After obtaining the data transaction security assessment results based on the above steps, the security data points can be sorted and archived and stored in the normal database; the risk data points can be frozen and sent to the maintenance system for maintenance.
[0094] Specifically, when maintaining risk data points, various parameter items in the data points can be obtained, including transaction data, user ID of the accessing user, number of accesses, access time, and access rights, and the risk data points can be manually confirmed for a second time.
[0095] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A data transaction security assessment method, characterized in that: include: Obtain each data point of the transaction data sample space, where the data point contains multiple parameter items; Obtaining the difference between the parameter item and the corresponding parameter item in other data points to determine the density of each parameter item in the data point, including: obtaining transaction data, visiting users and number of visits in the parameter item of the data point; ; In the formula, Indicates the jth access user of the i-th transaction data The data point of the visit The density of the parameters, Indicates the total number of transaction data items. Indicates The total number of users accessing the transaction data. Indicates Transaction data The number of visits by visiting users, Indicates the jth access user of the i-th transaction data The data point of the visit The value of the parameter item, Indicates that except for the i-th transaction data, the j-th access user Visited outside Transaction data The visiting user The data point of the visit The value of the parameter item, Represents a linear normalized function, where the density is negatively correlated with the absolute value of the difference; the average density of each parameter item in the data point is taken as the average density of the data point, including: ; In the formula, Indicates the jth access user of the i-th transaction data The average density of data points visited, represents the number of parameter items in the data point, Indicates the jth access user of the i-th transaction data The data point of the visit The density of the parameters; The average distance between a data point and the parameter items of other data points is obtained by the Manhattan distance formula, including: ; In the formula, Indicates the jth access user of the i-th transaction data The data point of the visit The parameter term and the other data points The average distance between parameter items, Indicates the total number of transaction data items. Indicates The total number of users accessing the transaction data. Indicates Transaction data The number of visits by visiting users, Indicates the jth access user of the i-th transaction data The data point of the visit The value of the parameter item, Indicates that except for the i-th transaction data, the j-th access user Visited outside Transaction data The visiting user The data point of the visit The value of the parameter item, Represents the absolute value sign and determines the initial clustering radius of the data points. The initial clustering radius of the data points is positively correlated with the average distance. Obtain the safety rate of the historical transaction data sample space, cluster the data points with the largest average density as the starting data points based on the initial clustering radius, obtain the ratio of the number of data points in the largest cluster to the total number of data points, and obtain the clustering radius of the data points by comparing the safety rate with the ratio; The data points are clustered based on their clustering radius to obtain the data transaction security assessment result.
2. A data transaction security assessment method according to claim 1, characterized in that: The step of obtaining each data point of the transaction data sample space also includes: Acquire transaction audit data from the data center, preprocess the transaction audit data to construct a transaction data sample space, and obtain each data point in the transaction data sample space.
3. A data transaction security assessment method according to claim 1, characterized in that: The determining the initial clustering radius of the data points comprises: Determine an initial clustering radius of the data point in each parameter item dimension, wherein the initial clustering radius in each parameter item dimension is positively correlated with the average distance; The sum of the initial clustering radii of the data point in each parameter item dimension is used as the initial clustering radius of the data point.
4. A data transaction security assessment method according to claim 3, characterized in that: The initial clustering radius of the data points in each parameter dimension satisfies the relationship: ; In the formula, Indicates the jth access user of the i-th transaction data The data point visited is in The initial cluster radius in the dimension of parameter items, Indicates the total number of transaction data items. Indicates the total number of users accessing the i-th transaction data, represents the number of visits by the jth user in the i-th transaction data. Indicates the jth access user of the i-th transaction data The data point of the visit The parameter terms and other data points The average distance between the parameters.
5. A data transaction security assessment method according to claim 1, characterized in that: The obtaining of the clustering radius of the data point by comparing the safety rate with the proportion includes: When the safety rate is less than the proportion, the initial clustering radius of the data point is used as the clustering radius of the data point; When the safety rate is greater than or equal to the proportion, the ratio of the initial clustering radius to the density of the parameter items in the data point is obtained, and the sum of the ratios of all the parameter items in the data point is used as the clustering radius of the data point.
6. A data transaction security assessment method according to claim 1, characterized in that: The clustering result of the data points based on the clustering radius of the data points to obtain a data transaction security assessment result includes: The transaction data is clustered based on the clustering radius of the data points to obtain multiple clusters, and the evaluation results of the data points in the largest cluster among all the clusters are marked as normal data points; and the evaluation results of the data points in other clusters except the largest cluster are marked as risky data points.
