Risk score calculation device
The risk score calculation device uses machine learning to analyze log data from various devices, addressing the limitations of rule-based systems by automatically detecting complex incidents through file path and time-based risk scoring, enhancing incident detection efficiency and accuracy.
Patent Information
- Application Number
- JP2023036028
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2043-02-20
AI Technical Summary
Existing rule-based IT technologies struggle with detecting complex and diverse incidents in vast amounts of log data, often missing incidents due to the need for manual rule updates and the inability to handle dynamic user behavior changes.
A risk score calculation device using machine learning to analyze log data from computer systems, smartphones, and IoT devices, calculating risk scores based on file path usage trends, time frequency, and hourly access patterns to automatically detect abnormal activities.
The device efficiently and accurately detects incidents that conventional methods miss, providing timely notifications to administrators by quantifying log data complexity and user behavior dynamics.
Smart Images

Figure 0007576646000045 
Figure 0007576646000046 
Figure 0007576646000047
Abstract
Description
[Technical field]
[0001] The present invention relates to a technology for detecting unknown, complex, and diverse incidents by using machine learning technology to detect features from the log generation patterns of each user using file operation log information output when a user operates files stored in a computer device, etc., using a device using artificial intelligence (AI) technology. [Background technology]
[0002] In recent years, the number of situations in which people use various types of computers, such as PCs, smartphones, and tablet computers, has increased, and new forms of computer use, such as ICT and the IoT, have become popular. As a result of ICT and the IoT, machines and electrical equipment from a variety of industries and business types that are connected via networks, including AI-equipped automobiles, have entered the information and communications field. As a result of vast amounts of information from the physical world being collected in cyberspace, the amount of log data used to record operations and leave audit trails has become enormous, making analysis and interpretation more complex and increasing the number of incidents occurring.
[0003] Conventional rule-based IT technology has the challenge that administrators must be proactive in detecting incidents and be aware of them themselves, which can lead to problems being overlooked. In addition, as the environment in which computers are used changes, the rules for detecting incidents need to be changed quickly, and taking time to change the rules can lead to incidents being overlooked.
[0004] By using machine learning to learn the log generation patterns for each user and creating a group of models that define normal behavior for each user, it will be possible to automatically detect anomalies such as the unauthorized use of files, which could lead to the unauthorized removal of important information for each user.This will require technology that can instantly detect unknown, complex, and diverse incidents from massive amounts of data, something that was difficult to do with conventional rule-based methods.
[0005] The prior art such as those shown in Patent Documents 1 to 5 may be similar in concept because they use a variance formula, but the present application has the characteristic that, for file paths, which cannot calculate variance as is, it measures a numerical value such as distance and calculates it by considering the distance to the closest reference path. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2018-206273 A [Patent Document 2] JP 2004-309998 A [Patent Document 3] JP 2005-332345 A [Patent Document 4] Patent Publication No. 2021-064323 [Patent Document 5] JP 2005-258599 A Summary of the Invention [Problem to be solved by the invention]
[0007] Computers have the ability to record the operation of all software, including the OS, running on the computer as a log file, but because the log file records all internal behavior of the OS, the amount of information is huge and complex, making it difficult for humans to read and understand. Therefore, in the case of incidents and accidents involving computer systems, it is necessary to verify how humans operated the system from the perspective of incident management and security management. Furthermore, in light of the future development of IoT, there is an increasing need to efficiently and accurately analyze information for communication between things.
[0008] However, while computer systems, PCs (smartphones, tablets, wearables), machinery (industrial equipment, general equipment, vehicles), and other objects (home appliances, furniture, buildings) are connected as part of the IoT, there is an issue that the rules for outputting operation logs, such as how humans operated computers, may change due to upgrades to operating systems and changes in the user's usage environment. [Means for solving the problem]
[0009] The present invention is intended to realize the following procedures. Log information (event log data, audit log data, system logs, application logs, service logs, etc.) output by computer systems, PCs (smartphones, tablets, wearables), machinery (industrial equipment, general equipment, vehicles), electrical appliances, and other objects (furniture, buildings) is used as input to extract human operation log information for each target, such as user and server. By performing machine learning, a model is created for each user operating a computer based on the daily frequency and file path usage trends, and abnormal access is detected by calculating a risk score, and incidents are notified to administrators, divided into categories such as by day, hour, and file path.
[0010] The risk score calculation device according to the first aspect of the present invention is A device for collecting log information output by a group of target computer devices and calculating a risk score based on the log information, a reference file path extraction processing means for reading log information of past accesses to files etc. by users as a learning access log, collecting identical file paths from the log, excluding identical paths on the parent side of file paths in a parent-child relationship in a directory hierarchical structure, and tabulating the collected files, and creating a reference file path for which the number of occurrences of the file path is equal to or exceeds a preset threshold value; The distance for each reference file path created by the reference file path extraction processing means is the layer L i (1≦i≦n, n: total number of reference file paths) and count the hierarchy L iThe average value of the sum of L - (L bar) and calculate the average value L - (L bar) to determine the level L i The variance value S is an index showing the degree of variation in the values. 2 A reference value calculation processing means for calculating (S^2) using Equation 1;
number
number
number
[0011] A risk score calculation device according to a second aspect of the present invention includes: A device for collecting log information output by a group of target computer devices and calculating a risk score based on the log information, From the access logs to be detected, the processes from opening to closing one file per hour for the user on the detection day are counted and aggregated to create a frequency value for each hour, and a triangular moving average of each hour frequency value in the time direction is calculated to calculate a moving average frequency value for each hour for each user. Calculate the probability density using kernel density estimation with each time moving average frequency value as input data, Calculate the negative log-likelihood from the probability density, The present invention is characterized in that it is equipped with a frequency score calculation processing means that uses the log-likelihood to create a normalization constant Pmin according to equation 4, then uses the normalization constant Pmin to calculate a risk score for each user according to equation 5, calculates the log-likelihood for each time point according to equation 6 using the risk score for each user, and calculates a daily score as a risk on a date-by-date basis according to equation 7 using the log-likelihood for each time point.
number
number
number
number
[0012] A risk score calculation device according to a third aspect of the present invention includes: A device for collecting log information output by a group of target computer devices and calculating a risk score, From the learning access log, the number of accesses per hour is aggregated, and the aggregated number of accesses per hour is divided by the number of hours to be aggregated to calculate the average frequency per hour. Based on the average frequency per hour, a triangular moving average is calculated for the median value of each hour to obtain the frequency value for each hour x i Calculate the frequency value x i Add up all the values and divide the total by 24 to calculate the average value x-(x bar) per hour of the day, and then use formula 8 to calculate the frequency value x iThe deviation H for each hour is calculated by subtracting the average value x-(x bar) from the deviation H for each hour, and the average of the squares of the deviation H is calculated using equation 9 to calculate it as each time moving average frequency value V for each learning user. From the detection target access log, the open process to close process for one file for each hour of the user on the detection target day is counted as one occurrence, and these are aggregated to create each time frequency value. A triangular moving average of each time frequency is calculated in the time direction to calculate each time moving average frequency value K for each user. If each time moving average frequency value K is zero, it is determined that the risk is zero. If each time moving average frequency value K is other than zero, then, using equation 10, if the value D obtained by subtracting the frequency value X of each time moving average frequency value for each learning user from each time moving average frequency value K becomes zero or negative, it is determined that the risk is zero. If the value D becomes positive, then, using equation 10, 2 It is characterized by having a time score calculation process that, if the value obtained by subtracting V from (D^2) is positive, judges it to be a dangerous time period and notifies the user that this is a time period on a day when risk was high.
number
number
number
[0013] A risk score calculation device according to a fourth aspect of the present invention is a risk score calculation device according to the first aspect of the present invention, a frequency score calculation processing means for counting and aggregating the open and close processes for one file for each hour of the user on the detection target day from the access log to be detected, creating each time frequency value, calculating a triangular moving average of each time frequency in the time direction to calculate each time moving average frequency value for each user, calculating a probability density using kernel density estimation with each time moving average frequency value as input data, calculating a negative log likelihood from the probability density, using the log likelihood to create a normalization constant Pmin according to equation 4, then using the normalization constant Pmin to calculate a risk score for each user according to equation 5, using the risk score for each user to calculate a log likelihood for each time according to equation 6, and using the log likelihood for each time to calculate a daily score as a risk by date according to equation 7;
number
number
number
number
number
number
number
[0014] A risk score calculation device according to a fifth aspect of the present invention is a risk score calculation device according to the first aspect of the present invention, The reference file path extraction processing means includes: The system is characterized in that it reads log information of past accesses to files etc. by users as a learning access log, breaks down file paths from the log into hierarchical levels such as device, drive, directory and file units, counts the number of occurrences of file paths for each of the broken down devices, drives, directories and files, secures devices, drives, directories and files that have occurred a number of times equal to or greater than a predetermined reference value, and sets file paths that do not have subdirectories among the file paths of devices, drives, directories and files that have occurred equal to or greater than the reference value as reference file paths. In the mathematical formula, the symbol indicating an average value, which is a single alphabetic character with a bar above it, will be shown for convenience in the text of this specification as, for example, "average value L-(L bar)" or "average value x-(x bar)". Effect of the Invention
[0015] The present invention uses a risk score calculation device that analyzes data, performs machine learning on log data output by computers, smartphones, etc. as a result of human file operations, and defines and judges risk based on the machine learning information.This allows for automatic detection of incidents that were difficult to detect using conventional rule-based methods, and promptly notifies administrators of abnormalities. [Brief description of the drawings]
[0016] [Figure 1] 1 is a diagram showing an example of a functional configuration of a risk score calculation device according to an embodiment of the present invention. FIG. [Diagram 2] FIG. 11 is a flowchart showing the processing procedure of a reference file path extraction process. [Diagram 3] FIG. 11 is a flowchart showing a processing procedure of a reference value calculation process. [Figure 4] FIG. 11 is a flowchart showing the procedure of a path score calculation process. [Diagram 5] FIG. 11 is a flowchart showing the procedure of a frequency score calculation process. [Figure 6] FIG. 11 is a flowchart showing a processing procedure for moving average processing. [Figure 7] FIG. 11 is a flowchart showing the processing steps of a time score calculation process. [Figure 8] FIG. 11 is a flowchart showing a processing procedure of each time degree process. [Figure 9] FIG. 11 is a diagram showing an example of a reference value file path. [Figure 10] FIG. 11 is a diagram showing an example of a path score calculation value. [Figure 11] FIG. 13 is a diagram showing an example of a log-likelihood table. [Figure 12] FIG. 13 is a diagram showing an example of a time score table. [Figure 13] FIG. 13 illustrates an example of extracting a reference file path. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS EXAMPLES
[0017] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to the following preferred embodiments.
[0018] Fig. 1 shows an example of the functional configuration of a risk score calculation device according to an embodiment of the present invention. The risk score calculation device collects log information output by computers and the like, compresses the collected log information, extracts necessary information, digitizes non-quantified information using a unique technology, calculates statistical information, and detects incidents that pose a threat to computer security.
[0019] As shown in FIG. 1, the risk score calculation device includes a reference file path extraction processing means 100, a reference value calculation processing means 200, a path score calculation processing means 300, a frequency score calculation processing means 400, and a time score calculation processing means 500.
[0020] A reference file path extraction processing means 100 reads a learning access log 101, which is an access log file in which a subject has accessed files in the past, and creates a reference file path 102. A reference value calculation processing means 200 creates a reference value 201 for the subject based on the created reference file path 102. A path score calculation processing means 300 outputs a report group and alarm transmission 302 for each file path using the created reference value 201 and a detection target access log 301. Furthermore, a frequency score calculation processing means 400 outputs a report group and alarm transmission 302 for each day using the detection target access log 301. Furthermore, a time score calculation processing means 500 outputs a report group and alarm transmission 302 for each hour using the detection target access log 301 and the learning access log 101.
[0021] Next, the reference file path extraction processing means 100 will be described with reference to Fig. 2. Fig. 2 is a flow chart showing the processing procedure of the reference file path extraction processing means 100.
[0022] · Read 101 learning access log, which is a record of past user access to files, etc., and create 103 ascending sorted access log by sorting in ascending order using the file path item as a sort key in order to aggregate identical file paths. 103 Sorting in ascending order: Counts the same file paths in the access log and counts the number of occurrences for each directory hierarchy. - Excluding identical parent paths of file paths in a parent-child relationship in the directory hierarchical structure, the count is done, and if the number of occurrences of a file path is equal to or greater than a preset threshold (for example, equal to or greater than n% of the total number of access logs targeted this time), and if there is no file path with a subdirectory, the file path is secured as a tentative reference path of 160. However, n% can also be 0%. The 160 provisional reference paths that were secured are Or Drive 170 tentative reference paths are decomposed into units such as directories and files, and 180 decompositions are counted to determine the device Or Drive Counts each unit such as directory and file, and if the count is greater than or equal to the threshold value Reference file path 102 Write the path and save it.
[0023] Next, a specific example of the reference file path extraction processing means 100 will be described with reference to Fig. 13. Fig. 13 is a diagram showing an example of reference path extraction.
[0024] · 103 The access log to be sorted in ascending order will be the five entries from line 13001 to line 13005. -Allocate the first line, line 13001. ·next, Line 13001 C: / aaa / bbb / ccc.pdf file path / aaa / bbb and Line 13002 C: / aaa / ddd / eee / fff.xls file path / aaa / ddd / eee The values are different, so 13,002 rows are allocated. Line 13002 C: / aaa / ddd / eee / fff.xls file path / aaa / ddd / eee Line 13003 C: / aaa / ddd / ggg / hhh.xls file path / aaa / ddd / ggg The values are different, so 13003 rows are allocated. Line 13003 C: / aaa / ddd / ggg / hhh.xls file path / aaa / ddd / ggg Line 13004 C: / iii / jjj / kkk / lll.zip file path / iii / jjj / kkk The values are different, so 13,004 rows are allocated. Line 13004: C: / iii / jjj / kkk / lll.zip file path / iii / jjj / kkk Line 13005: C: / iii / jjj / mmm.zip file path / iii / jjj Comparing the above, the path on line 13005 is / iii / jjj. Since it is a path included in / iii / jjj / kkk on line 13004, Delete C: / iii / jjj / mmm.zip on line 13005. As a result, the 1301 provisional standard path will be secured.
[0025] Next, the secured 1301 tentative reference path is decomposed and the number of occurrences of 13038 path elements is counted. · Drive C: appears in all lines from 13011 to 13014 of the tentative reference path, and as a result appears four times, so 1302 counts the decomposition contents of 13021 and 13039. C: This is set to four times. Next, in the same way as above, if we count the number of times the combination C: / aaa occurs, it appears 3 times, so the count in line 13022, 13039, is set to 3. Next, count the number of occurrences of the combination C: / aaa / bbb / . Since it occurs once, the count in line 13023, 13039, is set to 1. Next, count the number of times the combination C: / aaa / bbb / ccc.pdf appears. Since it appears once, the count in line 13024, 13039, is set to 1. This counts all combinations of the path C: / aaa / bbb / ccc.pdf. If you decompose all 1301 tentative reference paths and count the number of occurrences of 13038 path elements, you will get a result similar to counting the decomposition contents 1302. · 1302 The decomposition contents are counted, and 13039 path elements whose count is equal to or less than a preset reference value are deleted. In this example, if you set the reference value to 2 and delete values below 2, you will end up with a result of 1304, which is above the reference value. This standard value will be changed depending on the amount of access logs for 101 learning. When analyzing lines 13041, 13042, and 13043 that are greater than the 1304 standard, Since the 1304 reference value or higher of lines 13041 and 13042 is included in the 1304 reference value or higher of line 13043, only C: / aaa / ddd, which is the 1304 reference value or higher of line 13043, is used as the reference path. Reference file path 102 Write-secure to.
[0026] Next, the reference value calculation process 200 will be described with reference to Fig. 3. Fig. 3 is a flow chart showing the procedure of the reference value calculation process 200. In the reference value calculation process 200, Reference file path 102 In order to know how much the Reference file path 102 Read in the data, convert each reference path into a numerical value and set the distance L, and set the average distance L as L - (L bar) as the variance value S 2 Calculate (S^2).
[0027] 210 Counting the levels of paths: count the levels of each path, convert the path level into a number, and let L be the number. Divide the total number of 220 path hierarchies by the number of reference paths, add up the quantified hierarchies of all paths, calculate the average, and secure this average as L-(L bar). The average value L-(L bar) is subtracted from the value L that quantifies the hierarchy of each file path, and the sum of the squared values is divided by the total number of reference paths to obtain the variance value S 2 Calculate (S^2). The calculation formula is number 1.
number
[0028] Next, the path score calculation processing means 300 will be described with reference to Fig. 4. Fig. 4 is a flow chart showing the processing procedure of the path score calculation processing 300. The path score calculation processing means 300 uses the target user's detection target access log 301 as input data, assigns numerical values to non-digitized items such as file paths, and detects incidents by calculating the assigned numerical values.
[0029] 310 File Path Comparison 301 Read the target access log and extract only the file path, and compare the extracted file path with Reference file path 102 Compare with. If the comparison result is a 100% match or a child path, the result of the corresponding data in the 301 detection target access log will be set to 0. If it doesn't match 100%, Reference file path 102 Calculate the distance to the nearest file path in , measure the distance, and let that distance be L. 350To calculate the distance, use formula 2 to find P. The numbers 4 and 2 in equation 2 are constants derived in the present invention when calculating distance, and 4 is used as the exponent and the base of the logarithm. By adjusting this, it is also possible to adjust the limit of what is recognized as normal. As a result of repeated experiments, it was found that separation performance was improved by using 4. Next, find X.
number
number
[0030] Next, a specific example of the reference value calculation processing means 200 and the path score calculation processing means 300 will be described with reference to Figures 9 and 10. Figure 9 is a diagram showing an example of a reference value file path.
[0031] The first to third 900 numbers in Figure 9 are the reference paths extracted in 0014. For the 901 reference path C: / aaa / bbb / ccc / ddd.txt, count 1 for C, 2 for aaa, 3 for bbb, 4 for ccc, and 5 for ddd.txt, and record 5 in 902 distance L. Count the second and third entries in the same way. Using equation 1, the total of 902 distances L is 10, and this total is divided by the number of 901 reference paths, 3, to find the average 905 average L', which is 3.3. ·902 Subtract L' from distance L to obtain a value for 903 deviation. The 903 deviation of the first 900 number is 1.7. The second and third numbers are calculated in the same way. ·904 Square is the square of the 903 deviation value. The first 900 number is 1.7x1.7=2.9, and so on for the second and third numbers. The sum of 904 squares is the sum of 906 variances, and 906 variances is divided by the number of reference paths, 3, to get 907S 2 It becomes 1.6.
[0032] FIG. 10 shows a calculation value table that is calculated from the detection target access log 301 using the reference value file path table of FIG.
[0033] This explanation will be given using number 1000 in Figure 10. -1001The file path is C: / aaa / iii.txt. When comparing this value with the 901 reference path in Figure 9, the first 900 number is the 901 reference path We can see that the closest file path is C: / aaa / bbb / ccc / ddd.txt. ·These two are equal up to C: / aaa, so the distance is 2. Use number 2 to calculate as follows: 4 (2-2)2 =1 1÷6=0.625 Using number 3, 100(1÷100) X =1.9 · Record a passing score of 1.9 in the 1003 calculation. · When comparing the 1000 number (i) with the 901 reference path C: / fff.txt, it is found that they are all equal, so in this case 0 is recorded as the 1003 calculated value. · Since the 1000 number U does not match the 901 reference path, the distance is set to 0. 4 (2-0)2 =256 256÷1.6=160 100(1÷100) 160=ln100(1÷100) 160 =-732.22205957211 Record Ln=732.2 in 1003 Calculated Value. When comparing 1000 number E with the 901 reference path C: / aaa / bbb / ccc / ddd.txt, it is clear that up to C: / aaa / bbb / ccc, it is the same, so the distance is set to 4. 4 (2-4)2 =0.00390625 0.00390625÷1.6=0.00244140625 100(1÷100) 0.00244140625 =98.88 · Record a passing score of 98.88 into 702 calculated values. · When comparing the 1000 number O with the 901 reference path, it is found that only C is equal, so the distance is set to 1. 4 (2-1)2 =16 16÷1.6=10=ln100(1÷100) 10 = -41.446531673893 ·Record Ln=-41.4 in 1003 Calculated Value. As can be seen from the above calculation results, the 1000 numbers U and E result in ridiculous calculations that require logarithmic calculations. When calculating logarithms, natural logarithms were used in this example, but common logarithms can also be used, regardless of the base.
[0034] Next, the frequency score calculation process 400 will be described with reference to Fig. 5 and Fig. 6. Fig. 5 is a flow chart showing the processing procedure of the frequency score calculation process 400, and Fig. 6 is a flow chart showing the processing procedure of the moving average process 410. In the frequency score calculation process 400, the moving average process 410 calculates each time moving average frequency value for each user 403 from the detection target access log 301, calculates a risk score based on each time moving average frequency value, and notifies the administrator of the day when the risk became high.
[0035] The frequency value aggregation process for each time 411 of the moving average process 410 shown in FIG. 6 aggregates the number of accesses by users on a target day in one-hour units 402 to generate a frequency value for each time for each user. The number of accesses is counted from the open process to the close process for a user accessing a file. The 412-hour direction moving average process calculates a triangular moving average centered on each hour. The interval is 7, the weights are 0.25, 0.5, 0.75, 1, 0.75, 0.5, 0.25 and the denominator is 4. The experimental results showed that the weight and intervals listed above were optimal, but it is advisable to change the intervals depending on the working hours and environment of each company.
[0036] In the process of calculating risk scores for each user and time 420 shown in FIG. 5, the probability density is calculated using kernel density estimation with the moving average frequency value for each user and time 403 calculated in the moving average process 410 as input data. -Calculate the negative log-likelihood from the calculated probability density. The calculated negative log-likelihood is used to create a normalization constant Pmin according to equation 4. The normalization constant Pmin creates the smallest decimal that can be calculated using a PC or other device. In the daily score calculation process 440, the risk score for each user is calculated using equation 5. Next, the log likelihood for each time is calculated from the risk score for each user using equation 6, and the daily score is calculated as the risk by date using equation 7. The daily score calculated here is used as the risk for that day, and if the daily score exceeds a preset threshold, a notification (report group, alarm issuance, etc.) is sent as this is a day with high risk.
number
number
number
number
[0037] Next, a specific example of the frequency score calculation processing means 400 and the moving average processing means 410 will be described with reference to Fig. 11. Fig. 11 is a diagram showing an example of a log-likelihood table.
[0038] The log-likelihood table in Figure 11 is a table that calculates the log-likelihood of each time from the number of accesses by time on the target day. We will explain this table specifically using 11:00 on the 801st hour. ·Since the number of accesses at 11:00 in the 801 hour was 2, the 802 frequency is 2. ·Based on this data, the 803 frequency value is calculated using a triangular moving average. Frequency value = (0.25x0+0.5x0+0.75x6+2x1+0.75x4+0.5x0+0.25x0)÷4= 9.5÷4= 2.375 The frequency value found is 2.375, and using kernel density estimation the probability density is calculated to be 0.1267. The negative log likelihood of 0.1267 is 2.065933191655. Using the constant Pmin negative log likelihood created from equation 4 and equation 5, the risk score for each user can be calculated as follows: 100x2.065933191655÷708.39645172655= The result is 0.2916748823457589. The risk score for each of the 804 users at 11:00 is 0.292. For illustration purposes, this is rounded to the nearest 4 decimal places, and the actual figure used is 0.2916748823457589.
[0039] Next, the daily score is calculated using the daily total risk score for each of the 804 users and the formulas in (6) and (7). Since ln(Qmin) is defined in equation 6 as "when 1-risk score≦Qmin, log likelihood=ln(Qmin)," it is the maximum value at one time, so ln(Qmin)×24= is the maximum value for one day. That is, ln(Qmin)x24= -6.9077552789821x24= The result is -165.78612669557. ·806The sum of the log-likelihoods for each time instant is -33.4375567424607. Compare this value to the daily maximum value Daily Score = -33.4375567424607÷-(-165.78612669557)= 0.201690921966356 This means your daily score will be around 20 points.
[0040] Next, the time score calculation process 500 will be described with reference to Fig. 7 and Fig. 8. Fig. 7 is a flow chart showing the processing procedure of the time score calculation process means 500, and Fig. 8 is a flow chart showing the processing procedure of each time degree process 530. The time score calculation process means 500 calculates time-specific reference values from the learning access logs, and notifies the administrator of the time periods on days when the risk of the detection target access logs became high.
[0041] In the hourly score calculation process 500 shown in FIG. 7, the frequency value aggregation process for each hour 510 reads the learning access log 101, aggregates the number of accesses per hour, and divides the aggregated number of accesses per hour by the number of hours to be aggregated to calculate the average frequency per hour. The frequency value is calculated by calculating the triangular moving average of the median value for each hour from the calculated average frequency by hour. Add up all the frequency values for each hour and divide the total by 24 to get the average per hour for the day. Using equation 8, subtract the daily average from the frequency value to calculate the deviation for each hour, and then square the deviation to obtain the square root. Using equation 9, find the sum of the calculated squares, divide it by 24, calculate the average of the squares for each hour unit, and use this as V. The data calculated in this manner is stored as a moving average frequency value for each time for each learning user 502.
[0042] Next, in the moving average process 410, the detection target access log 301 is used as input data, and a moving average frequency value for each time for each user 403 is calculated.
[0043] Next, in the each time degree process 530 shown in FIG. 8, in the judgment 531 of the each time degree process, nothing is done to data where the frequency of the each time moving average frequency value for each user 403 is 0. In addition, in the judgment 531, using the formula 10, when the frequency value of each time-of-day moving average frequency value for each user 403 is K, the value obtained by subtracting each time-of-day moving average frequency value X for each learning user 502 from K is set as D, and nothing is done for data where D is 0 or negative. Next, in the judgment process at each time 540 shown in FIG. 7, D of the data to be detected is squared to calculate D^2. Subtract V from D^2 for each hour, and if this value is positive, notify the administrator of the target date and time as the time period during which risk increased.
number
number
number
[0044] Next, a specific example of the time score calculation processing means 500 and each time degree processing means 530 will be described with reference to Fig. 12. Fig. 12 is a diagram showing an example of a time score table.
[0045] The time score table shown in FIG. 12 is a diagram in which 1200 learning access logs aggregated from 101 learning access logs are arranged on the left, and 1206 detection and response access logs aggregated from each time moving average frequency value for each user 403 are arranged on the right. The following time sequences will be used as examples: 7:00, 15:00, 18:00, and 3:00 in 1201 hours. However, the actual calculation is done in ascending order from 0:00 to 1:00, 2:00, 3:00.
[0046] The frequency value X of 1202 is the hourly average value of the past data obtained by adding up the number of accesses at each time of the learning access log of 101 and dividing the total by the number of days. · 1206 Frequency is the number of accesses per hour on the detection date. If the time is 7:00 on 1201, the frequency is 0 on 1206, so the judgment on 531 is that it is safe and nothing is done. Since there was no access during this time, this time is considered safe. · If the 1201 time is 3:00 p.m., the calculation using the 1207 frequency value K in the triangular moving average gives a result of 6.2. · If we subtract 1202 frequency X from 1207 frequency K, 1208D value becomes -0.8, which is negative. Therefore, since it is safe according to 532 judgment, nothing is done. Since the number of accesses during this time was lower than the past average, it is judged to be safe. Furthermore, if the 1201 time is 18:00, and 1202 frequency X, 1207 frequency value K, and 1208 D are calculated in the same manner as above, the conditions do not apply to 531 judgment and 532 judgment, so the following process is carried out. When calculating the 1203 deviation H using number 8, the sum of the 1202 frequency X becomes 105.0, and when divided by 24, the 1212 average x- becomes 4.4. The difference H between the 1203 editions is 1202 frequency X-1202 average xx, so 4.0-4.4=-0.4. ·1204 square H 2 When we calculate this, we get -0.4x-0.4=0.16, which is rounded up to 0.2. Using number 9, calculate the 1214 average V, which is 17.4. · From the number 10, 1208D is 1207 frequency value K - 1202 frequency X = 2.9. 2.9 squared is 1209 2 is 8.6. 1209D 2 Subtract the 1214 average V from this and the 1210 degree becomes -8.8. - As a result, it can be said that 1201 hours, 18:00 is safe. Furthermore, if the 1201 time is 3 o'clock, calculating the numbers 8, 9, and 10 gives a degree of 3.4 for 1210, which is greater than 0, so it is determined that some kind of problem has occurred and the date, time, and path information for the access log that occurred at 3 o'clock are notified to the administrator.
[0047] next, The risk of the file path calculated by the reference file path extraction process described in Figure 2, the reference value calculation process described in Figure 3, and the path score calculation process described in Figure 4, -Date-based risk calculated using the frequency score calculation process described in Figures 5 and 6. -Hourly risk calculated by the time score calculation process described in Figures 7 and 8; By using a combination of these, it becomes possible to detect the degree of risk in detail, such as which file path is dangerous on what date and at what time.
[0048] For example, when the risk scores output by the path score calculation process, frequency score calculation process, and time score calculation process all overlap, the administrator can be notified that it is "highly dangerous." In addition, when the risks of two of the above processes overlap, it is "dangerous," and when there is only one risk from the above processes, it is "slightly dangerous," and the degree of danger can be displayed in multiple stages.
[0049] The inventors and applicants have given their own names to each piece of software and device, and the names are unique to the present invention and will be described below.
[0050] Learning: Analyzes past access logs and analyzes behavioral trends for each user Detection: Analyze target data based on trends learned through learning. Frequency score: Analyzes the trend of the number of access logs at each time of the day for each user Path Score: Analyzes the trends of each user based on the correlation of words contained in file paths Risk score: A relative index that combines frequency score and path score - Time Score: Analyze user risk by time Due to problems with the software used to write the data, bars may not be displayed mathematically. For example, there are places where it is expressed as L bar or L-, but L bar and L- are the same thing. For example, H^2 represents the square of H and the multiplication of H 2 and H^2 are identical. For the purpose of explanation, the numbers are rounded off to the nth decimal place in some places, but in reality, the calculations are done to the maximum number of decimal places that a computer can handle.
Claims
1. A device for collecting log information output by a group of target computer devices and calculating a risk score based on the log information, a reference file path extraction processing means for reading log information of past accesses to files etc. by users as a learning access log, collecting identical file paths from the log, excluding identical paths on the parent side of file paths in a parent-child relationship in a directory hierarchical structure, and tabulating the collected files, and creating a reference file path for which the number of occurrences of the file path is equal to or exceeds a preset threshold value; The distance for each reference file path created in the reference file path extraction process is expressed as the layer L i (1≦i≦n, n: total number of reference file paths) and count the hierarchical level L i The average value of the sum of L - Calculate the average value L - Using the above, the layer L i The variance value S is used as an index showing the degree of variation in the values of 2 A reference value calculation processing means for calculating the reference value by Equation 1; [0010] a path score calculation processing means for comparing a file path included in the detection target access log with a reference file path created in the reference file path extraction processing, and for a file path that is 100% identical, evaluating it as safe and calculating a path score of 0, and for a file path that is not 100% identical, counting a distance L between the reference file path created in the reference file path extraction processing and the closest file path, using that distance L to calculate P and X according to Equation 2, and using X calculated by Equation 2 to calculate a path score as the risk of the file path according to Equation 3; A risk score calculation device comprising: [0025] [0030]
2. A device for collecting log information output by a group of target computer devices and calculating a risk score based on the log information, From the detection target access log, count and aggregate each process from open processing to close processing for one file for each hour of the user on the detection target day to create each time frequency value, calculate a triangular moving average of each time frequency in the time direction to calculate each time moving average frequency value for each user, calculate a probability density using kernel density estimation with each of the time moving average frequency values as input data, and calculate a negative log likelihood from the probability density, A frequency score calculation processing means for generating a normalization constant Pmin by equation 4 using the log likelihood, calculating a risk score for each user by equation 5 using the normalization constant Pmin, calculating a log likelihood for each time by equation 6 using the risk score for each user, and calculating a daily score as a risk on a date basis by equation 7 using the log likelihood for each time. A risk score calculation device comprising: [0045] [0050] [006] [0070]
3. A device for collecting log information output by a group of target computer devices and calculating a risk score based on the log information, From the learning access log, the number of accesses per hour is tallied, the total number of accesses is divided by the number of hours to be tallied, the average frequency per hour is calculated, and a triangular moving average is calculated for the median value of each hour based on the average frequency per hour to obtain the frequency value x for each hour. i Calculate the frequency value x i The sum of all the above is divided by 24 to calculate the average value x- per hour of one day, and the frequency value x is calculated by using Equation 8. ia time score calculation processing means for calculating deviation H for each time by subtracting the average value x- from x, calculating an average of the squares of the deviation H using equation 9, and calculating the deviation H as each time moving average frequency value V for each learning user; counting and aggregating the open process to close process for one file for each hour of the user on the detection target day from the detection target access log to create each time frequency value; calculating a triangular moving average of each time frequency in the time direction to calculate each time moving average frequency value K for each user; determining that the risk is zero when the frequency value K is zero; and determining that the risk is zero when the frequency value K is other than zero when the value D obtained by subtracting the frequency value X of each time moving average frequency value for each learning user from the frequency value K becomes zero or negative using equation 10; and determining that the risk is zero when the value D becomes positive when the value D is positive when the value obtained by subtracting V from D^2 for each time is positive using equation 10. A risk score calculation device comprising: [0080] [0090] [0010]
4. The risk score calculation device according to claim 1, From the detection target access log, the open process to close process for one file for each hour of the user on the detection target day is counted and aggregated to create each time frequency value, a triangular moving average of each time frequency in the time direction is calculated to calculate each time moving average frequency value for each user, a probability density is calculated using kernel density estimation with each time moving average frequency value as input data, a negative log likelihood is calculated from the probability density, a normalization constant Pmin is created using the log likelihood according to Equation 4, and then a risk score for each user is calculated using the normalization constant Pmin according to Equation 5, The log likelihood at each time is calculated by Equation 6 using the risk score for each user. A frequency score calculation process for calculating a daily score as a risk on a date basis using the log likelihood of each time point according to Equation 7; [0045] [0050] [006] [0070] From the learning access log, the number of accesses per hour is tallied, the total number of accesses is divided by the number of hours to be tallied, the average frequency per hour is calculated, and the triangular moving average is calculated for the median value of each hour based on the average frequency per hour to obtain the frequency value for each hour x i Calculate the frequency value x i The sum of all the above is divided by 24 to calculate the average value x- per hour of one day, and the frequency value x is calculated by using Equation 8. i The deviation H for each hour is calculated by subtracting the average value x- from x-, and the average of the squares of the deviation H is calculated by equation 9 to calculate it as each time moving average frequency value V for each learning user. From the detection target access log, the open process to close process for one file for each hour of the user on the detection target day is counted as one occurrence, and these are tallied to create each time frequency value. A triangular moving average of each time frequency is calculated in the time direction to calculate each time moving average frequency value K for each user. If the frequency value K is zero, it is determined that the risk is zero. If the frequency value K is other than zero, it is determined that the risk is zero if the value D obtained by subtracting the frequency value X of each time moving average frequency value for each learning user from the frequency value K becomes zero or negative by equation 10. If the value D becomes positive, it is determined that the risk is zero by equation 10. 2 a time score calculation processing means for determining that the time period is a dangerous time period when the value obtained by subtracting V from the time period is positive, and notifying the user that the time period is a time period on a day when risk is high; [0080] [0090] [0010] Equipped with A risk score calculation device characterized by detecting the degree of risk, i.e., which file path is dangerous at what time on what day, using a combination of the risk of the file path calculated by the path score calculation process, the risk on a date basis calculated by the frequency score calculation process, and the risk on an hourly basis calculated by the time score calculation process.
5. The risk score calculation device according to claim 1, The reference file path extraction processing means The system reads the log information of past user accesses to files, etc. as a learning access log, and breaks down the file paths into hierarchical levels such as devices, drives, directories, and file units. Count the number of occurrences of the file path for each of the decomposed devices, drives, directories, and files, and secure the devices, drives, directories, and files whose occurrences exceed a predetermined reference value. Among the file paths of the devices, drives, directories, and files that exceed the reference value, file paths that do not have subdirectories are set as reference file paths. A risk score calculation device characterized by:
Citation Information
Patent Citations
Probabilistic distribution estimation apparatus, abnormal behavior detection device, probabilistic distribution estimation method, and abnormal behavior detection method
JP2004309998A
Method for visualization of data, apparatus for visualization of data, program for visualization of data, and storage medium
JP2005258599A
Behavioral management system, client terminal, behavioral management server, manager terminal, monitoring program, behavioral management program and restriction setting program
JP2005332345A
Love emotion forming apparatus, love emotion forming method, and program for forming love emotion between apparatus and operator
JP2018206273A
Time-series data analyzer and program for time-series data analysis
JP2021064323A
