Files
Xin ZhongandgVisor bot 95e33b9705 Add seccheck point for mmap.
This change introduces a new seccheck point, "sentry/mmap", which is triggered
when a memory mapping is created. The seccheck event includes information about
the mapped file, such as its path, inode, mode, UID, and GID, as well as a
timestamp. It also indicates if the mapping corresponds to the initial
executable. This allows for monitoring of potential code injection or execution
from unexpected sources.

PiperOrigin-RevId: 944614086
2026-07-08 11:45:33 -07:00

61 lines
1.1 KiB
JSON

{
"trace_session": {
"name": "Default",
"points": [
{
"name": "container/start"
},
{
"name": "sentry/clone"
},
{
"name": "sentry/task_exit"
},
{
"name": "syscall/openat/enter"
},
{
"name": "syscall/openat/exit"
},
{
"name": "syscall/read/enter",
"optional_fields": [
"fd_path"
],
"context_fields": [
"time",
"container_id",
"thread_id"
]
},
{
"name": "syscall/read/exit"
},
{
"name": "syscall/sysno/1/enter",
"context_fields": [
"time",
"container_id"
]
},
{
"name": "syscall/sysno/1/exit"
},
{
"name": "sentry/mmap",
"context_fields": ["time", "container_id", "thread_id"]
}
],
"sinks": [
{
"name": "remote",
"config": {
"endpoint": "/tmp/gvisor_events.sock",
"retries": 3
},
"ignore_setup_error": true
}
]
}
}