A host intrusion indicator detection method based on network collaboration mechanism

By introducing a network collaboration mechanism into host intrusion indicator detection, sharing detection data and results, and dynamically adjusting detection queues, the problem of redundant detection among multiple hosts is solved and detection efficiency is improved.

CN118282745BActive Publication Date: 2024-09-27CHINESE PEOPLES LIBERATION ARMY UNIT 61660
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410411645.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-08
Publication Date
2024-09-27
Estimated Expiration
2044-04-08

Smart Images

  • Figure CN118282745B
    Figure CN118282745B
Patent Text Reader

Abstract

The present invention relates to a host intrusion index detection method based on a network collaboration mechanism, and belongs to the field of network security. The detection method of the present invention implements a rapid IoC detection process for multiple hosts through three steps of establishing a network collaboration server, sharing file detection status and detection results, and dynamically adjusting file detection logic, and judges whether the host has an intrusion threat through the detection results, and finally determines the risk level of the host. The present invention is suitable for performing IoC detection on multiple hosts in the same network, and reduces the redundant detection process of the same file between different hosts through a network collaboration mechanism, optimizes the detection logic and detection order, shortens the detection time of a single host, and improves the overall IoC detection efficiency of multiple hosts in the same network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of network security, and in particular relates to a host intrusion indicator detection method based on a network collaboration mechanism. Background Art

[0002] Indicators of Compromise (IoC) are information used to determine if a system, network, or application has been attacked or compromised. IoCs typically contain known signs of malicious activity, such as file hashes, malicious IP addresses, malicious domains, etc. IoCs include known attack characteristics or signatures, such as hashes of specific files, known malicious domains, registry keys, etc. The purpose of IoCs is to detect known attacks and threats, and to determine if a system has been attacked. IoCs help automate detection and response procedures, reduce adversary action time, and improve the effectiveness of overall network security.

[0003] Currently, host IoC detection usually runs on a single host in the form of an independent program, without a server or client and without the need for network communication. When detecting multiple hosts, all files must be fully scanned on each host. Multiple hosts may have exactly the same files, but since there is no information exchange between multiple hosts when performing detection, different hosts repeatedly detect the same file multiple times, resulting in redundant detection, occupying host computing resources and wasting overall detection time. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] The technical problem to be solved by the present invention is how to provide a host intrusion indicator detection method based on a network collaboration mechanism to solve the problem in the prior art that when multiple hosts are detected, redundant detection is caused, host computing resources are occupied, and overall detection time is wasted.

[0006] (II) Technical solution

[0007] In order to solve the above technical problems, the present invention proposes a host intrusion index detection method based on a network collaboration mechanism, the method comprising the following steps:

[0008] Step S1, based on the network collaboration mechanism, an IoC detection information sharing server (ISS) is created to communicate with the host performing IoC detection and store corresponding detection data, including query records, a blacklist of detected files, a whitelist of detected files, and a list of files being detected;

[0009] Step S2: All hosts performing IoC detection establish a communication connection with the ISS at the beginning of their own detection, and create their own hash queue, query queue and detection queue on the local machine. After the creation is completed, they start to traverse all files on the local machine and add each file to their own hash queue in the order of the files.

[0010] Step S3: When any host performs IoC detection, the same hash algorithm is used to calculate the hash value of the file in the hash queue. After the calculation result is obtained, the file is removed from the hash queue of the local machine and the hash value of the file is placed in the query queue.

[0011] Step S4, the host performing IoC detection sends the file hash values ​​in its own query queue with the host identification in sequence through the established communication connection to the ISS for query, removes the file hash value from the query queue and places the corresponding file in the detection queue. At this time, the host starts to detect the files in the detection queue in sequence, and sends the start record to the ISS synchronously when the file starts to be detected, and continues to send the hash value of the next file in the query queue to the ISS for query, and repeats this process until all the file hash values ​​in the query queue are removed and all the corresponding files are in the detection queue;

[0012] Step S5, after receiving the file hash value query from the host, the ISS determines whether the value exists in any list, and sends the query result back to the host. If the value does not exist in any list or exists in the file list being detected, the ISS also stores the host identifier in the corresponding query record;

[0013] Step S6: When the host performing IoC detection receives a query result that the file hash value exists in the list of files being detected, the host moves the file to the bottom of the local detection queue and waits to receive the file detection record of the file; when receiving a query result that the file hash value exists in the black / white list of detected files, the host confirms the query result and removes the corresponding file from the local detection queue; after receiving a query result that the file hash value does not exist in any list, the host moves the file to the top of the local detection queue except the file being detected and detects it in sequence, and sends a start record to the ISS synchronously when the file starts to be detected. After the file detection is completed, a security record or a risk record is synchronously sent to the ISS according to different results. The record carries the file hash value so that the ISS can distinguish different files;

[0014] Step S7, after the ISS receives the file detection record sent by the host performing IoC detection, the file detection record includes: start record, security record and risk record, and different operations are performed according to different types of file detection records; when the record type is a start record, the file hash value is added to the list of files being detected; when the record type is a security record, the file hash value is added to the whitelist of detected files; when the record type is a risk record, the file hash value is added to the blacklist of detected files; by retrieving the host identifier stored in the query record, the file detection record is synchronously forwarded to other hosts that have queried the file;

[0015] Step S8, after receiving the file detection record forwarded by the ISS from other hosts performing IoC detection, the host performing IoC detection performs different operations according to different types of records; when the host receives the start record sent by the ISS, it moves the file corresponding to the hash value carried by the record to the bottom of the local detection queue, and waits to receive the security record or risk record of the file. When receiving the security record or risk record, it removes the file corresponding to the hash value carried by the record from the local detection queue, and retains the file detection result corresponding to the record;

[0016] Step S9: By continuously sending and receiving records, the queue is dynamically adjusted to reduce redundant detection and improve the detection speed until all files are detected.

[0017] (III) Beneficial effects

[0018] The present invention proposes a host intrusion indicator detection method based on a network collaboration mechanism. The beneficial effects of the present invention are: reducing the redundant detection process of the same file between different hosts, optimizing the detection logic and detection sequence, shortening the detection time of a single host, and improving the overall IoC detection efficiency of multiple hosts in the same network. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a flow chart of the host intrusion indicator detection method based on the network collaboration mechanism of the present invention. DETAILED DESCRIPTION

[0020] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.

[0021] In order to solve the above problems, the present invention provides a host intrusion indicator (IoC) detection method based on a network collaboration mechanism, which can reduce the redundant detection process of the same file between different hosts through the network collaboration mechanism, optimize the detection logic and detection sequence, shorten the detection time of a single host, and improve the overall IoC detection efficiency of multiple hosts in the same network.

[0022] The present invention relates to a host intrusion indicator (IoC) detection method based on a network collaboration mechanism, and belongs to the field of network security. The detection method of the present invention implements a rapid IoC detection process for multiple hosts by establishing a network collaboration server, sharing file detection status and detection results, and dynamically adjusting file detection logic. It determines whether the host has an intrusion threat through the detection results, and finally determines the risk level of the host. The present invention is suitable for multiple hosts in the same network to perform IoC detection, and reduces the redundant detection process of the same file between different hosts through a network collaboration mechanism, optimizes the detection logic and detection order, shortens the detection time of a single host, and improves the overall IoC detection efficiency of multiple hosts in the same network.

[0023] A host intrusion indicator detection method based on a network collaboration mechanism comprises the following steps:

[0024] Step S1: Create an IoC detection information sharing server (ISS) based on a network collaboration mechanism, which is used to communicate with the host performing IoC detection and store corresponding detection data, including query records, a blacklist of detected files, a whitelist of detected files, and a list of files being detected;

[0025] Step S2: All hosts performing IoC detection establish a communication connection with the ISS at the beginning of their own detection, and create their own hash queue, query queue and detection queue on the local machine. After the creation is completed, they start to traverse all files on the local machine and add each file to their own hash queue in the order of the files.

[0026] Step S3: When any host performs IoC detection, the same hash algorithm is used to calculate the hash value of the file in the hash queue. After the calculation result is obtained, the file is removed from the local hash queue and the file hash value is placed in the query queue.

[0027] The hash algorithm is the MD5 algorithm.

[0028] The hash algorithm is the SHA-1 algorithm.

[0029] Among them, the hash algorithm is the SHA-256 algorithm.

[0030] The hash algorithm is the SHA-3 algorithm.

[0031] Among them, the hash algorithm is the CRC32 algorithm.

[0032] Step S4, the host performing IoC detection sends the file hash values ​​in its own query queue with the host identification in sequence through the established communication connection to the ISS for query. Without waiting for the ISS query result, the file hash value is removed from the query queue and the corresponding file is placed in the detection queue. At this time, the host starts to detect the files in the detection queue in sequence, and sends the start record to the ISS synchronously when the file starts to be detected, and continues to send the hash value of the next file in the query queue to the ISS for query. This process is repeated until all the file hash values ​​in the query queue are removed and all the corresponding files are in the detection queue.

[0033] Step S5, after receiving the file hash value query from the host, the ISS determines whether the value is in any list (detected file blacklist, detected file whitelist, and detecting file list), and sends the query result back to the host. If the value does not exist in any list or exists in the detecting file list, the ISS also stores the host identifier in the corresponding query record;

[0034] Step S6, when the host performing IoC detection receives a query result that the file hash value exists in the list of files being detected, the host moves the file to the bottom of the local detection queue and waits to receive the file detection record of the file; when receiving a query result that the file hash value exists in the black / white list of detected files, the query result is confirmed and the corresponding file is removed from the local detection queue. If the file that needs to be moved or removed is being detected, the detection of the file is interrupted before it is removed. After receiving a query result that the file hash value does not exist in any list, the file is moved to the top of the local detection queue except for the file being detected and detected in sequence. When the file starts to be detected, the start record is synchronously sent to the ISS. After the file detection is completed, the security record or risk record is synchronously sent to the ISS according to different results. The record carries the file hash value so that the ISS can distinguish different files.

[0035] Step S7, after ISS receives the file detection record (start record, security record, risk record) sent by the host performing IoC detection, it performs different operations according to different types of file detection records. When the record type is a start record, the file hash value is added to the list of files being detected; when the record type is a security record, the file hash value is added to the whitelist of detected files; when the record type is a risk record, the file hash value is added to the blacklist of detected files; by retrieving the host identifier stored in the query record, the file detection record is synchronously forwarded to other hosts that have queried the file;

[0036] Step S8, after the host performing IoC detection receives the file detection record forwarded by ISS from other hosts performing IoC detection, it performs different operations according to the different types of records. When the host receives the start record sent by ISS, it moves the file corresponding to the hash value carried by the record to the bottom of the local detection queue and waits to receive the security record or risk record of the file. When receiving the security record or risk record, it removes the file corresponding to the hash value carried by the record from the local detection queue and retains the file detection result corresponding to the record. If the file to be moved or removed is being detected, the detection of the file is interrupted before removal. ;

[0037] Step S9: By continuously sending and receiving records, the queue is dynamically adjusted to reduce redundant detection and improve the detection speed until all files are detected.

[0038] Preferably, it is applicable to the scenario where multiple hosts and ISS are performing IoC detection when the network is interconnected, and is not applicable to the scenario where the network is disconnected and only a single host is performing detection;

[0039] Preferably, ISS works in coordination with all hosts performing IoC detection. The hosts performing IoC detection maintain three queues (hash queue, query queue, detection queue). ISS receives three types of query records (start record, security record, risk record) and maintains three lists (detected file blacklist, detected file whitelist, and detecting file list).

[0040] Preferably, placing the file at the top of the three queues maintained by the host performing IoC detection will not affect the currently ongoing tasks (hash calculation, hash query, file detection), and the queue will wait for the currently ongoing task to end before starting the next task.

[0041] Embodiment 1:

[0042] like Figure 1 As shown, the host intrusion indicator (IoC) detection method based on the network collaboration mechanism provided by the present invention shares information among multiple hosts performing IoC detection through the network collaboration mechanism, adjusts the detection logic of a single host in real time, avoids redundant detection and wastes computing resources, and improves the overall detection efficiency.

[0043] The following is an illustration of this method being applied to a scenario where multiple hosts in the same network are simultaneously performing IoC detection. The specific detection method steps are as follows:

[0044] Step A: Create an IoC detection information sharing server (ISS) based on the network collaboration mechanism, which mainly communicates with the host that performs IoC detection and stores the corresponding detection data, including query records, detected file blacklists, detected file whitelists, and lists of files being detected;

[0045] Step B: The host for IoC detection establishes a communication connection with the ISS. The host maintains the hash queue, query queue, and detection queue. The host traverses the directory to be detected and adds each file to the hash queue in the order of the files in the directory.

[0046] Step C: The host performing IoC detection calculates the hash value of the file in the hash queue, removes the file from the hash queue after obtaining the calculation result, places it at the head of the query queue and attaches the hash value.

[0047] Step D: query the hash value in the query queue through the established communication connection ISS, without waiting for the ISS query result, continue to query the hash value of the next file in the queue, and repeat this process until all files in the queue are queried;

[0048] Step E: After receiving the hash value query from the host, the ISS determines whether the value is in any list (detected file blacklist, detected file whitelist, and detecting file list), and sends the query result back to the host. If the value does not exist in any list or exists in the detecting file list, the host identifier is stored in the corresponding query record at the same time;

[0049] Step F: When the host performing IoC detection receives a query result that the file hash value exists in the black / white list of detected files, it confirms the query result and performs a hash value query for the next file in the query queue; when it receives a query result that the file hash value exists in the list of files being detected, it skips the file detection and performs a hash value query for the next file in the query queue; after receiving a query result that the file hash value does not exist in any list, the file is placed at the top of the detection queue and detected in sequence, and a start record is synchronously sent to the ISS when the file detection starts, and a result record is synchronously sent to the ISS after the file detection is completed.

[0050] Step G: When the ISS receives the file detection record (start record, result record), it synchronously sends the file detection record to other hosts that have made queries by retrieving the host identifier stored in the query record;

[0051] Step H: After the host performing IoC detection receives the file detection record sent by ISS, it performs different operations according to the different types of records. When the host receives the start record sent by ISS, it moves the corresponding file to the bottom of the detection queue. When the host receives the result record sent by ISS, it removes the corresponding file from the detection queue and retains the result record;

[0052] Step I: By repeatedly sending queries and receiving records, the queue is dynamically adjusted to reduce redundant detection and increase the detection speed until all files are detected.

[0053] The beneficial effects of the present invention are: reducing the redundant detection process of the same file between different hosts, optimizing the detection logic and detection sequence, shortening the detection time of a single host, and improving the overall IoC detection efficiency of multiple hosts in the same network.

[0054] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A host intrusion index detection method based on network collaboration mechanism, characterized in that: The method comprises the following steps: Step S1, based on the network collaboration mechanism, an IoC detection information sharing server (ISS) is created to communicate with the host performing IoC detection and store corresponding detection data, including query records, a blacklist of detected files, a whitelist of detected files, and a list of files being detected; Step S2: All hosts performing IoC detection establish a communication connection with the ISS at the beginning of their own detection, and create their own hash queue, query queue and detection queue on the local machine. After the creation is completed, they start to traverse all files on the local machine and add each file to their own hash queue in the order of the files. Step S3: When any host performs IoC detection, the same hash algorithm is used to calculate the hash value of the file in the hash queue. After the calculation result is obtained, the file is removed from the hash queue of the local machine and the hash value of the file is placed in the query queue. Step S4, the host performing IoC detection sends the file hash values ​​in its own query queue with the host identification in sequence through the established communication connection to the ISS for query, removes the file hash value from the query queue and places the corresponding file in the detection queue. At this time, the host starts to detect the files in the detection queue in sequence, and sends the start record to the ISS synchronously when the file starts to be detected, and continues to send the hash value of the next file in the query queue to the ISS for query, and repeats this process until all the file hash values ​​in the query queue are removed and all the corresponding files are in the detection queue; Step S5, after receiving the file hash value query from the host, the ISS determines whether the value exists in any list, and sends the query result back to the host. If the value does not exist in any list or exists in the file list being detected, the ISS also stores the host identifier in the corresponding query record; Step S6: When the host performing IoC detection receives a query result that the file hash value exists in the list of files being detected, the host moves the file to the bottom of the local detection queue and waits to receive the file detection record of the file; when the host receives a query result that the file hash value exists in the black / white list of detected files, the host confirms the query result and removes the corresponding file from the local detection queue; After receiving the query result that the file hash value does not exist in any list, the file is moved to the top of the local detection queue except the file being detected and detected in order. When the file starts to be detected, the start record is sent to the ISS synchronously. After the file detection is completed, the security record or risk record is sent to the ISS synchronously according to the different results. The record carries the file hash value so that the ISS can distinguish different files; Step S7, after the ISS receives the file detection record sent by the host performing IoC detection, the file detection record includes: start record, security record and risk record, and different operations are performed according to different types of file detection records; when the record type is a start record, the file hash value is added to the list of files being detected; when the record type is a security record, the file hash value is added to the whitelist of detected files; when the record type is a risk record, the file hash value is added to the blacklist of detected files; by retrieving the host identifier stored in the query record, the file detection record is synchronously forwarded to other hosts that have queried the file; Step S8, after receiving the file detection record forwarded by the ISS from other hosts performing IoC detection, the host performing IoC detection performs different operations according to different types of records; when the host receives the start record sent by the ISS, it moves the file corresponding to the hash value carried by the record to the bottom of the local detection queue, and waits to receive the security record or risk record of the file. When receiving the security record or risk record, it removes the file corresponding to the hash value carried by the record from the local detection queue, and retains the file detection result corresponding to the record; Step S9: By continuously sending and receiving records, the queue is dynamically adjusted to reduce redundant detection and improve the detection speed until all files are detected.

2. The host intrusion index detection method based on network collaboration mechanism as claimed in claim 1 is characterized in that: In step S3, the hash algorithm is the MD5 algorithm.

3. The host intrusion index detection method based on network collaboration mechanism as claimed in claim 1 is characterized in that: In step S3, the hash algorithm is the SHA-1 algorithm.

4. The host intrusion index detection method based on network collaboration mechanism as claimed in claim 1 is characterized in that: In step S3, the hash algorithm is the SHA-256 algorithm.

5. The host intrusion index detection method based on network collaboration mechanism as claimed in claim 1 is characterized in that: In step S3, the hash algorithm is the SHA-3 algorithm.

6. The host intrusion index detection method based on network collaboration mechanism as claimed in claim 1 is characterized in that: In step S3, the hash algorithm is the CRC32 algorithm.

7. The host intrusion index detection method based on network collaboration mechanism as claimed in claim 1 is characterized in that: In step S4, when the host performing IoC detection sends the file hash values ​​in its own query queue and the host identifier to the ISS for query in sequence, there is no need to wait for the ISS query result.

8. The host intrusion index detection method based on network collaboration mechanism as claimed in claim 1 is characterized in that: Any list in step S5 is: a blacklist of detected files, a whitelist of detected files, or a list of files being detected.

9. The host intrusion index detection method based on network collaboration mechanism as claimed in claim 1, characterized in that: In step S6, if the file to be moved or removed is being detected, the detection of the file is interrupted before the removal.

10. The host intrusion index detection method based on network collaboration mechanism as claimed in claim 1, characterized in that: In step S8, if a file to be moved or removed is being detected, the detection of the file is interrupted before removal.

Citation Information

Patent Citations

  • Log-based threat intelligence detection method and device

    CN108763031A

  • Method and device for marking ECN in RoCE network, electronic equipment and storage medium

    CN116318626A

  • Integrated network threat analysis

    US20150281260A1

  • System and method for detection of malicious interactions in a computer network

    US20190379694A1

  • Digital asset authentication processing system

    WO2021012814A1