AUDIT OF SYSTEM PROCESSES AND EVENTS IN WINDOWS, LINUX .
WHAT IS PROCESS AND EVENT AUDITING?
Process and event auditing is the process of recording, storing, and analyzing information about actions occurring in the operating system or applications. �It records events such as process startup and termination, file access, configuration changes, user logins, and other important activities.
Definition :
Process and event auditing is the systematic monitoring and recording of actions and changes in a system for subsequent analysis, control, and improvement of security levels.
WHY IS AUDITING IMPORTANT FOR INFORMATION SECURITY?
Auditing plays a key role in ensuring security for several reasons:
PROCESS AND EVENT AUDIT: WHAT IT TRACKS AND WHY IT'S IMPORTANT
What does the audit track? | Why is this important? |
Starting and ending processes | Detection of malicious or suspicious programs |
User logins and logouts | Detecting unauthorized access |
Changes to files and system settings | Protection against unauthorized changes and sabotage |
Access to confidential information | Data leakage control |
Application and system errors and crashes | Early detection of technical and operational problems |
Changes in user rights and roles | Privilege control, abuse prevention |
Attempts to bypass security systems | Rapid response to potential attacks |
AUDITING : AN OVERVIEW
Audit services
In Windows, event auditing is provided by special services and mechanisms:
Together, these services provide centralized registration and storage of security information.
EVENT LOGS ( EVENT VIEWER)
Event Viewer is a built-in Windows utility designed to :
Main journals:
Path to open : �Start → Administrative Tools → Event Viewer �or the eventvwr.msc command via the command line.
AUDIT CATEGORIES
1. Login ( Logon / Logoff) Events )
2. Access to files and objects (Object Access)
3. User rights and changes ( Privilege Use , User Rights Assignment )
HOW TO ENABLE LOGON AUDITING IN WINDOWS
1. Open Local Security Policy
secpol.msc
Press Enter to open the Local Security Policy window .
2. Go to audit settings
3. Set up login auditing
4. Check event registration
Windows Logs →
Look for events with IDs:
SETTING UP AUDITING IN WINDOWS
1. Local Security Policy ( secpol.msc )
Local security policy allows you to configure event auditing at the level of a single computer.
Setup steps:
secpol.msc
2. Go to menu:
Local Policies → Audit Policy
3. Configure the required audit parameters, for example:
When to use:
GROUP POLICY ( GPEDIT.MSC )
The Local Group Policy Editor ( gpedit.msc ) allows you to fine-tune auditing settings, including advanced audit policies .
Setup steps:
gpedit.msc
2. Go to menu:
Computer Configuration → Policies → Windows Settings → Security Settings → Advanced Audit Policy
3. Set up detailed rules:
Process audit,
Registry access audit,
Privilege use audit,
Audit of network connections.
When to use:
On workstations within domains, in corporate networks, when fine-tuning security is required.
AUDITING : AN OVERVIEW
In Linux, all major system and application events are recorded in text log files, which are stored in the directory:
/var/log/
Main journals:
/var/log/auth.log — user authentication
/ var / log / secure — a similar log for some distributions (for example, CentOS , RHEL).
/ var / log / syslog — system-wide messages and notifications.
/var/log/audit/audit.log - Security audit records when using the
Important : Logs allow you to track all important events related to security and user actions.
AUDITING : AN OVERVIEW
2. System services: auditd and rsyslog
auditd — security audit service
/ etc /audit/ auditd.conf
Audit rules are set in:
/ etc /audit/rules.d /audit.rules
Key features of auditd :
Track whether files have been read, modified, or deleted.
Monitoring process startup.
Logging of successful and unsuccessful access attempts.
rsyslog — system logging service
Processes and records standard system messages.
Configuration in file:
/etc/rsyslog.conf
Used to collect events from different system components and store them in / var / log /.
Note: rsyslog and auditd can operate in parallel, providing both standard and specialized logging of security events.
AUDITING : AN OVERVIEW
2. System services: auditd and rsyslog
auditd — security audit service
/ etc /audit/ auditd.conf
Audit rules are set in:
/ etc /audit/rules.d /audit.rules
Key features of auditd :
Track whether files have been read, modified, or deleted.
Monitoring process startup.
Logging of successful and unsuccessful access attempts.
rsyslog — system logging service
Processes and records standard system messages.
Configuration in file:
/etc/rsyslog.conf
Used to collect events from different system components and store them in / var / log /.
Note: rsyslog and auditd can operate in parallel, providing both standard and specialized logging of security events.
AUDITING : AN OVERVIEW
3. Access rights and user activity tracking
Permissions in Linux are based on a system of users, groups, and file attributes:
Tracking user actions :
Action | Where is it recorded? |
User login | /var/log/auth.log |
Attempt to modify an important file | /var/log/audit/audit.log |
Attempting to run a command via sudo | /var/log/auth.log |
SETTING UP AUDITING IN LINUX
1. Installing and running auditd
auditd is the primary security auditing daemon in Linux. It records events in a dedicated log file
How to install and run:
For Debian /Ubuntu:
sudo apt update
sudo apt install auditd audispd -plugins
sudo systemctl enable auditd
sudo systemctl start auditd
For CentOS/RHEL:
sudo yum install audit
sudo systemctl enable auditd
sudo systemctl start auditd
Checking service status:
sudo systemctl status auditd
SETTING UP AUDITING IN LINUX
2. Configuration /etc/audit/audit.rules
The file /etc/audit/rules.d/audit.rules contains the rules by which auditd will monitor
Examples of basic rules:
-w / etc /passwd -p wa -k passwd_changes
-a always,exit -F arch=b64 -S execve -k command_exec
-w / etc / ssh / sshd_config -p wa -k ssh_config
sudo systemctl restart auditd
✅ Useful commands for working with audit:
PRACTICAL TASK 1 ( WINDOWS)
Objective of the task:
Learn how to set up login auditing and analyze successful and unsuccessful login event logs.
Instructions:
Step 1: Configure login auditing
secpol.msc
3. Go to the section:
Local Policies → Audit Policy → Audit login attempts
4. Double - click Audit logon attempts.
5. Check the boxes:
✅ Successful attempts
✅ Unsuccessful attempts
6. Click OK to apply the changes.
PRACTICAL TASK 1 ( WINDOWS)
Step 2: Checking Events in Event Viewer
eventvwr.msc
3. Go to the section:
Windows Logs → Security
4. Find events by their ID:
4624 - Successful login,
4625 - Failed login attempt.
What you need to do and provide:
✅ Important: After configuration, you can simulate an invalid login attempt (for example, enter an incorrect password when logging in) to see event 4625.
PRACTICAL TASK 2 ( LINUX)
Objective of the task:
auditd audit service on Linux and configure a rule to monitor changes to the / etc / passwd system file .
Instructions:
Step 1: Install and run auditd
sudo apt update
2. Install the audit service:
sudo apt install auditd audispd -plugins
(for CentOS/RHEL: sudo yum install audit)
3. Start and enable the service:
sudo systemctl enable auditd
sudo systemctl start auditd
PRACTICAL TASK 2 ( LINUX)
Step 2: Configure an audit rule for the / etc / passwd file
sudo nano /etc/audit/rules.d/audit.rules
2. Add a rule to audit changes:
-w / etc /passwd -p wa -k passwd_changes
Where:
-w / etc / passwd — watch the file,
-p wa — audit of entries and changes to attributes,
-k passwd_changes — key for quick filtering of events.
3. Save the changes and close the file.
4. Restart the auditd service :
sudo systemctl restart auditd
PRACTICAL TASK 2 ( LINUX)
Step 3. Checking the audit work
sudo nano / etc /passwd
2. Find change records via:
sudo ausearch -k passwd_changes
What you need to do and provide:
✅ Important:
THANK YOU FOR YOUR ATTENTION