Write
This event gets generated whenever a file is write.
info
If consecutive write operations are made on the same file, only one event will be generated for a given task.
danger
If you decide to enable these events (disabled by default), please be aware that there will be a large number of them. Make sure you have read the configuration section.
{
"data": {
"ancestors": "/usr/lib/systemd/systemd|/usr/bin/login|/usr/bin/zsh|/usr/bin/bash|/usr/bin/xinit|/usr/bin/i3|/usr/bin/bash|/usr/bin/urxvt|/usr/bin/zsh",
"command_line": "/bin/bash ./generate-activity.sh",
"exe": {
"path": "/usr/bin/bash"
},
"path": "/tmp/tmp.URdsDAjMAu_kunai_test.sh"
},
"info": {
"host": "...",
"event": {
"source": "kunai",
"id": 83,
"name": "write",
"uuid": "c9fb9d68-073c-7fd4-8e9f-b2b38e3b2d32",
"batch": 606
},
"task": "...",
"parent_task": "...",
"utc_time": "2024-10-29T12:47:58.845139221Z"
}
}
Additional Details
Why This Event Matters
The write event is crucial for:
- File Monitoring: Tracks when files are written, providing visibility into file modification patterns across the system.
- Security Monitoring: Detects unauthorized file modifications that may indicate malware installation, data tampering, or persistence mechanisms.
- Forensic Analysis: Establishes timelines of file modifications for incident investigation and understanding attack patterns.
Key Fields Explained
.data.ancestors
- A pipe-separated list of the executable paths of the process ancestors that wrote to the file.
.data.command_line
- The command line of the process that wrote to the file.
.data.exe.path
- The path to the executable that wrote to the file.
.data.path
- The full path to the file that was written.