Clone
A task is being cloned/forked. This means that a new task will be created on the system.
new task
- The information related to the new task (i.e. cloned/forked) will appear under the
.info.tasksection of this event. - If there is not
execvefollowing, the executable of the task remains the same .data.flagsis the flags mask (c.f. manual) passed toclone
{
"data": {
"ancestors": ["/usr/lib/systemd/systemd", "/usr/bin/udevadm"],
"command_line": "/usr/lib/systemd/systemd-udevd",
"exe": {
"path": "/usr/bin/udevadm"
},
"flags": "0x1200000"
},
"info": {
"host": "...",
"event": {
"source": "kunai",
"id": 6,
"name": "clone",
"uuid": "ccd9e8fa-5684-b753-ce65-5527157b33f7",
"batch": 605
},
"task": "...",
"parent_task": "...",
"utc_time": "2024-10-29T12:47:58.259432812Z"
}
}
Additional Details
Why This Event Matters
The clone event is crucial for:
- Process Monitoring: Tracks the creation of new processes/threads, providing visibility into process lineage and system activity.
- Security Monitoring: Detects unusual process creation patterns that may indicate malicious activity or process injection.
- Forensic Investigation: Establishes process relationships and timelines for incident response and root cause analysis.
Key Fields Explained
.data.ancestors
- A list of the executable paths of the ancestors of the process that performed the clone operation, from the oldest to the direct parent. The first item is
?when the ancestry is incomplete, or(truncated)when it is too long.
.data.command_line
- The command line of the process that performed the clone operation.
.data.exe.path
- The path to the executable that performed the clone operation.
.data.flags
- The flags mask passed to the
clonesystem call, indicating how the new task should be created (e.g., shared memory, shared filesystem, etc.).