Techniques for generating unique identifiers for tracking process activity
Abstract
A method includes retrieving, in a kernel space of an operating system executing on a computing device, a first value from a first clock source, retrieving, in a user space of the operating system executing on the computing device, a second value from a second clock source, generating a unique process identifier (UPID) associated with a process identifier (PID) of a process executing in the operating system, wherein the UPID is based on the first value of the first clock source and the second value of the second clock source, and tracking process activity of the process executing in the operating system by utilizing the UPID.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method comprising: retrieving, in a kernel space of an operating system executing on a computing device, a first value from a first clock source; retrieving, in a user space of the operating system executing on the computing device, a second value from a second clock source, wherein the retrieving the second value of the second clock source is performed periodically; updating a seed within a seed store based on the second value of the second clock source; generating, by a processing device, a unique process identifier (UPID) associated with a process identifier (PID) of a process executing in the operating system, wherein the UPID is based on the first value of the first clock source and the second value of the second clock source; and tracking process activity of the process executing in the operating system by utilizing the UPID.
- Claim 2Depends on #1
The method of claim 1, further comprising: determining if the UPID is present in a least recently used (LRU) map of the operating system; and responsive to determining that the UPID is present in the LRU map: retrieving, in the kernel space of the operating system, a third value from the first clock source; and generating an additional UPID based on the third value of the first clock source and the second value of the second clock source.
- Claim 3Depends on #1
The method of claim 1, wherein updating the seed within the seed store based on the second value of the second clock source comprises: retrieving, in the user space of the operating system, a third value from the second clock source; and updating the seed within the seed store based on a difference between the second value and the third value from the second clock source.
- Claim 4Depends on #1
The method of claim 1, wherein generating the UPID comprises generating a sum of the first value of the first clock source and the seed.
- Claim 5Depends on #1
The method of claim 1, wherein the seed store comprises a memory structure shared between the kernel space and the user space of the operating system, and wherein the UPID is generated by an application extension executing in an extended Berkeley packet filter (eBPF) infrastructure within the operating system of the computing device.
- Claim 6Depends on #1
The method of claim 1, further comprising: retrieving a processing device index from the processing device; and generating the UPID further based on the processing device index.
- Claim 7Independent Claim
A system comprising: a memory; and a processing device, operatively coupled to the memory, to: retrieve, in a kernel space of an operating system executing on a computing device, a first value from a first clock source; retrieve, in a user space of the operating system executing on the computing device, a second value from a second clock source, wherein the retrieval of the second value of the second clock source is performed periodically; update a seed within a seed store based on the second value of the second clock source; generate a unique process identifier (UPID) associated with a process identifier (PID) of a process executing in the operating system, wherein the UPID is based on the first value of the first clock source and the second value of the second clock source; and track process activity of the process executing in the operating system by utilizing the UPID.
- Claim 8Depends on #7
The system of claim 7, wherein the processing device is further to: determine if the UPID is present in a least recently used (LRU) map of the operating system; and responsive to determining that the UPID is present in the LRU map: retrieve, in the kernel space of the operating system, a third value from the first clock source; and generate an additional UPID based on the third value of the first clock source and the second value of the second clock source.
Technical Overview & Description
TECHNICAL FIELD Aspects of the present disclosure relate to tracking process activity in an operating system, and more particularly, to tracking process activity utilizing pseudo-unique process identifier mapping. BACKGROUND For security purposes, it may be beneficial to track activities of processes executing on an operating system. In some cases, the activity may be tracked over long periods of time, such as weeks or months. Such a tracking history may allow for forensic analysis in the event an issue is detected. In some cases, analysis of the activity may help identify signatures of malicious programs, also known as malware. When tracking activity over long periods of time, it may be useful to be able to uniquely identify a particular process. Tracking a process, however, has complexities. An operating system may generate a process identifier (ID), also referred to as a PID, for each process created. However, the number of process IDs may be finite. For example, an operating system may allow for millions, e.g., four million, process IDs. Even with this many process IDs, the process ID limit may be reached. In such cases, the operating system may begin reusing process IDs. This can create problems for tracking processes, since a given process ID may not uniquely map to a particular process due to the reuse. For example, a process ID of 1006 may map to a first process at one time and to a second process at a different time. BRIEF DESCRIPTION OF THE DRAWINGS The described embodiments and the advantages thereof may best be understood by reference to the following description taken in conjunction with the accompanying drawings. These drawings in no way limit any changes in form and detail that may be made to the described embodiments by one skilled in the art without departing from the scope of the described embodiments. FIG. 1 is a block diagram that illustrates an example system, according to some embodiments of the present disclosure. FIG. 2 is a block diagram ill
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (6)
| Patent | Title | Year | Citations |
|---|