Blog | G5 Cyber Security

Monitor Executable System Calls

TL;DR

Yes, several tools can alert you when an executable uses specific system functions (API calls). This is useful for detecting suspicious behaviour. We’ll cover Sysmon for Windows and auditd for Linux.

Windows: Using Sysmon

Sysmon (System Monitor) is a free tool from Microsoft that logs detailed system activity, including executable API calls. It’s the best option for most Windows users.

Step 1: Download and Install Sysmon

Step 2: Configure Sysmon

Sysmon uses a configuration file (XML) to define what it logs. The default config is often too noisy, so we’ll create a custom one.

Step 3: View Sysmon Logs

Linux: Using auditd

auditd is the Linux auditing system. It can log system calls made by processes.

Step 1: Install and Start auditd

Step 2: Configure auditd

Configure rules in /etc/audit/rules.d/audit.rules.

Step 3: View auditd Logs

Exit mobile version