pub const AUDITD: &str = "# Linux audit events, as auditd writes them to /var/log/audit/audit.log, in\n# its raw or enriched format. The lines of one event are gathered into one\n# record, each under its type: `SYSCALL.exe`, `EXECVE.a0`, `CWD.cwd`,\n# `PATH.0.name`, `PROCTITLE.proctitle`, `USER_LOGIN.msg.acct`.\n#\n# Kinds cover program execution and logins. System call numbers depend on\n# the architecture, so execution has a kind for each supported one. Other\n# events, such as CONFIG_CHANGE or USER_AUTH, go to the dead letters with\n# their bytes until a kind is added for them.\n#\n# The command line is the process title, which the kernel cuts at 128 bytes;\n# every argument is kept whole under `unmapped` as `a0`, `a1`, ..., where\n# Sigma\'s auditd rules look for them. `SYSCALL`\'s own `a0` to `a3`, raw\n# register values, are kept as `SYSCALL.a0` and so on.\n\nname: auditd\nversion: 1\nframing: audit-events\ndecoding: auditd\n\n# The ATT&CK data components its records supply: those ATT&CK names for\n# auditd:SYSCALL, EXECVE, and USER_LOGIN, of the records the kinds below read.\ndata_components:\n - Process Creation\n - Command Execution\n - User Account Authentication\n - Logon Session Metadata\n\ncommon:\n time: { from: time, as: unix-seconds }\n severity_id: { value: 1 }\n metadata.version: { value: \"1.5.0\" }\n metadata.product.name: { value: auditd }\n metadata.product.vendor_name: { value: Linux Audit }\n metadata.sequence: { from: serial, as: integer }\n device.hostname: node\n device.os.type_id: { value: 200 }\n device.os.name: { value: Linux }\n\nkinds:\n - name: execve_x86_64\n when:\n SYSCALL.arch: c000003e\n SYSCALL.syscall: \"59\"\n # Process Activity: Launch.\n class: { class_uid: 1007, activity_id: 1 }\n fields: &execve\n status_id: { from: SYSCALL.success, map: { \"yes\": 1, \"no\": 2 } }\n process.pid: { from: SYSCALL.pid, as: integer }\n process.name: SYSCALL.comm\n process.file.path: SYSCALL.exe\n process.cmd_line: PROCTITLE.proctitle\n process.working_directory: CWD.cwd\n process.user.uid: SYSCALL.uid\n process.user.name: SYSCALL.UID\n process.session.uid: SYSCALL.ses\n process.parent_process.pid: { from: SYSCALL.ppid, as: integer }\n # The login user, which stays the same through su and sudo.\n actor.user.uid: SYSCALL.auid\n actor.user.name: SYSCALL.AUID\n unmapped: &execve_unmapped [EXECVE, SYSCALL]\n\n - name: execve_aarch64\n when:\n SYSCALL.arch: c00000b7\n SYSCALL.syscall: \"221\"\n # Process Activity: Launch.\n class: { class_uid: 1007, activity_id: 1 }\n fields: *execve\n unmapped: *execve_unmapped\n\n - name: login_success\n when:\n USER_LOGIN.msg.res: success\n # Authentication: Logon.\n class: { class_uid: 3002, activity_id: 1 }\n fields: &login\n user.name: USER_LOGIN.msg.acct\n user.uid: USER_LOGIN.msg.id\n src_endpoint.ip: USER_LOGIN.msg.addr\n src_endpoint.hostname: USER_LOGIN.msg.hostname\n logon_process.file.path: USER_LOGIN.msg.exe\n logon_process.pid: { from: USER_LOGIN.pid, as: integer }\n session.uid: USER_LOGIN.ses\n status: USER_LOGIN.msg.res\n status_id: { from: USER_LOGIN.msg.res, map: { success: 1, failed: 2 } }\n unmapped: &login_unmapped [USER_LOGIN]\n\n - name: login_failure\n when:\n USER_LOGIN.msg.res: failed\n # Authentication: Logon.\n class: { class_uid: 3002, activity_id: 1 }\n fields: *login\n unmapped: *login_unmapped\n";Expand description
The Linux audit log definition shipped with this crate.