Automatically generated based on tag:
| Title | Type | Summary | Location |
|---|---|---|---|
| Linux - Audit framework (auditd logs) | Page | The Linux Audit system is an auditing and logging framework, installed by default on some Linux distributions only (such as Red Hat Enterprise Linux 7 and later), that can be configured to log multiple types of operations, such as authentication successes or failures, process executions, file accesses, user commands executed in a TTY, etc. The Linux Audit framework implements kernel-mode hooks to monitor user-mode processes and generate audit telemetry. The auditd daemon is the main user-mode component of the Linux Audit framework, that receives audit messages sent by the kernel and other components (such as pam). The Linux Audit system operates on rules that define what records will be captured in the audit logs. If no rules are defined, which is the case by default, only distribution-specific records and telemetry from other components may be logged to the audit log file by the auditd daemon. Depending on the rules configured, multiple events can be generated for the same operation. An event can be split into multiple records, with each record of the same event sharing the same timestamp and the same unique identifier. Each record is associated with a given type: USER_AUTH, USER_LOGIN, EXECVE, SYSCALL, PATH, PROCTITLE, USER_CMD, TTY, SOCKADDR, etc. |
auditd daemon configuration: /etc/audit/auditd.conf Audit rules: /etc/audit/audit.rules /etc/audit/rules.d/ Audit logs: /var/log/audit.log /var/log/audit.log.*.gz /var/log/audit/audit.log /var/log/audit/audit.log.*.gz |
| Linux - ext4 file system (inodes, timestamps, and journal) | Page | ext4 is the default file system of most Linux distributions. Unlike NTFS, which centralizes file records in the MFT, the ext4 file system information is split across block groups, each composed of (optional) superblock and group descriptor backups, block and inode bitmaps, an inode table, and data blocks. The superblock references information on the file system: creation, last mount, and last write timestamps, last mount point, volume UUID and label, etc. Each file is associated with an inode, which stores its metadata (size, owner UID / GID, permissions, and timestamps) but not its name (stored in the parent directory entries). ext4 inodes record four timestamps, with nanosecond precision: access (atime), modification (mtime), inode change (ctime), and creation / birth (crtime), as well as a deletion time (dtime) for deleted inodes. The atime is usually only partially updated (relatime mount option). The atime and mtime can be arbitrarily set from user space (timestomping with touch), while the ctime and crtime cannot. The ext4 journal (jbd2) records metadata changes and may hold previous versions of inodes and directory blocks, which can be used to recover information on deleted files. |
File system metadata (superblock, group descriptors, inode tables, journal) on ext2 / ext3 / ext4 partitions. Notable inodes: - inode 2: root directory - inode 8: journal - inode 11: lost+found directory (usually) |
| Linux - viminfo | Page | The vim text editor logs a number of operations in the text-based ".viminfo" log file. The log file notably includes information on the last 100 files accessed (by default, 20 on Red Hat-based distributions) through vim. Under the "jumplist" section, up to 50 file accesses are referenced, with each file access associated with two entries, one for the file opening and one for the file closing. Each entry includes the file path and an epoch timestamp of occurrence (file opening or closing). Subsequent openings of the same file do not erase previous entries for the file. Under the "# History of marks within files" section, up to 100 (by default) file accesses are referenced, with only a single entry for a given file, which references the last closing of the file. This section may thus contain more historical data than the "jumplist" section. |
~/.viminfo |
View on GitHub