Skip to main content

Linux System Time Modification

Anti-forensics
technique
Updated 4 May 2026

A subject modifies the Linux system time, time zone, hardware clock, or time synchronization configuration to obscure the chronology of activity relevant to an insider threat investigation. This behavior may affect timestamps associated with file creation, file modification, authentication records, shell history, service execution, package activity, scheduled jobs, and other host-based artifacts used to reconstruct subject activity. On Linux systems, this behavior may involve commands or utilities such as timedatectl, date, hwclock, or changes to time synchronization services such as NTP, Chrony, or systemd-timesyncd.

1
Prevention Strategies
2
Detection Methods
0
Tactics
2
Contributors

Prevention Strategies (1)

Restrict Access to Administrative Privileges

The Principle of Least Privilege should be enforced, and period reviews of permissions conducted to ensure that accounts have the minimum level of access required to complete duties as per their role.

From the Matrix:

The Principle of Least Privilege should be enforced, and period reviews of permissions conducted to ensure that accounts have the minimum level of access required to complete duties as per their role....

Our pillar mapping:
Identity & SaaS

Detection Methods (2)

auditd System Clock Modification Rule

Audit Daemon (auditd) is a Linux tool for tracking and logging system events, including security-relevant system calls. It is part of the Linux Auditing System and can be used to record attempts to modify the system clock. This detection records time-changing system calls that may be used by a subject to alter local system time and disrupt forensic timeline analysis. These calls may be invoked directly or through administrative utilities such as date, timedatectl, hwclock, Chrony, NTP tooling, or custom scripts. Below is an example auditd rule to detect system clock modification: sudo nano /etc/audit/rules.d/audit.rulesOpens the auditd rules file with the Nano editor. Add the following lines: -a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime -k system-time-changed-a always,exit -F arch=b32 -S adjtimex -S settimeofday -S clock_settime -k system-time-changed Rule Explanation: -a Add a rule to the audit system.always,exit Apply this rule when the system call exits. Audit records will be generated when the configured system calls complete.-F arch=b64 Filter condition. Specifies that this rule applies to 64-bit architecture.-F arch=b32 Filter condition. Specifies that this rule applies to 32-bit architecture. This should be included where 32-bit compatibility is enabled or required.-S adjtimex Specifies the adjtimex system call to be audited. This call can adjust kernel clock parameters.-S settimeofday Specifies the settimeofday system call to be audited. This call can set the system time.-S clock_settime Specifies the clock_settime system call to be audited. This call can set the time for a specified clock.-k system-time-changed Adds a key to the rule for easier identification in the logs. To review audit logs related to this rule, use ausearch:ausearch -k system-time-changedor retrieve matching lines from the raw audit logs with grep:sudo grep system-time-changed /var/log/audit/audit.log Investigators should review the audit record fields to identify the subject and execution context, including auid, uid, euid, ses, exe, comm, cwd, and tty. The auid field is particularly important because it may preserve the original authenticated subject even where the effective user is root after privilege elevation. This detection should be correlated with sudo logs, shell history, endpoint telemetry, authentication records, and centralized SIEM ingestion time. A system clock modification occurring near file staging, log deletion, privilege escalation, archive creation, removable media activity, or outbound data transfer may indicate anti-forensic intent.

auditd Time Zone Modification Rule

Audit Daemon (auditd) is a Linux tool for tracking and logging system events, including file access, attribute changes, and security-relevant configuration changes. It is part of the Linux Auditing System and can be used to record attempts to modify the system time zone configuration. This detection records changes to /etc/localtime, which is commonly used by Linux systems to define the local system time zone. A subject may alter the system time zone to disrupt forensic timeline analysis, create apparent timestamp displacement, or complicate the interpretation of local artifacts, authentication records, shell activity, service logs, and application events. Below is an example auditd rule to detect time zone modification: sudo nano /etc/audit/rules.d/audit.rulesOpens the auditd rules file with the Nano editor. Add the following line: -w /etc/localtime -p wa -k timezone-changed Rule Explanation: -w /etc/localtime Watches the /etc/localtime file for activity. This file is commonly used to define the local system time zone.-p wa Specifies the permissions to monitor. w records write activity, and a records attribute changes.-k timezone-changed Adds a key to the rule for easier identification in the logs. To review audit logs related to this rule, use ausearch:ausearch -k timezone-changedor retrieve matching lines from the raw audit logs with grep:sudo grep timezone-changed /var/log/audit/audit.log Investigators should review the audit record fields to identify the subject and execution context, including auid, uid, euid, ses, exe, comm, cwd, name, nametype, and tty. The auid field is particularly important because it may preserve the original authenticated subject even where the effective user is root after privilege elevation. This detection should be correlated with sudo logs, shell history, endpoint telemetry, authentication records, configuration management logs, and centralized SIEM ingestion time. A time zone modification occurring near file staging, log deletion, privilege escalation, archive creation, removable media activity, or outbound data transfer may indicate anti-forensic intent.

Contributors

Forscie® Limited
The ITM Team

Our pillar mapping

Our own keyword match of each prevention and detection to the Insider Risk Index's five pillars. It is not part of the Forscie Matrix and not a measured value.

Visibility
2
Prevention & Coaching
Investigation & Evidence
Identity & SaaS
1
Phishing Resilience

Attribution

This technique is part of the Forscie® Insider Threat Matrix™. Copyright 2026 Forscie® Limited. Licensed under Apache License 2.0.

View on Forscie® Insider Threat Matrix™
Linux System Time Modification | Insider Risk Index