Repository navigation
Process Tracking
Home · Start Here · Reference Map
- How suspicious long-running processes are flagged.
- How to use csf.pignore without blinding detection.
- What this feature can and cannot detect reliably.
Related guide: Security-Features-Guide
| Setting | Purpose |
|---|---|
PT_LIMIT |
Minimum seconds a process must run before tracking checks it |
PT_SKIP_HTTP |
Skip scripts running directly or through CGI in Apache (reduces false positives) |
PT_USERPROC |
Enable user process tracking |
PT_USERMEM |
Memory limit per user process before alert |
PT_USERTIME |
CPU time limit per user process before alert |
| File | Purpose |
|---|---|
/etc/csf/csf.pignore |
Whitelist for users, executables, and command lines |
/usr/local/csf/tpl/processtracking.txt |
Email template for process tracking alerts |
Process tracking examines user and nobody processes for suspicious
executables or open network ports. Its purpose is to identify potential exploit
processes running on the server, even if they are obfuscated to appear as system
services.
If a suspicious process is found, an alert email is sent. It is then the administrator's responsibility to investigate further — the feature takes no automatic action beyond alerting. Processes (PIDs) are only reported once unless LFD is restarted.
Whitelist entries use the following formats:
exe:/full/path/to/file
user:username
cmd:command line
Important notes on format:
- The command line as reported in
/prochas the trailing null character removed and all other occurrences replaced with a space. Use space separators for command line arguments, not null characters. - Command line ignores should be used very carefully — any process can change what it reports to the OS.
-
Never list paths to
perlorphp— this prevents detection of suspicious web scripts.
For more information on executable vs. command line reporting:
man proc
man lsof- Enable process tracking with a conservative
PT_LIMIT(e.g., 60 seconds). - Keep
PT_SKIP_HTTPenabled initially to reduce noise. - Reload:
csf -ra - Review alerts in
/var/log/lfd.logfor one to two days. - Add confirmed false positives to
csf.pignoreusing the most specific format (exe:preferred overuser:). - Optionally lower
PT_LIMITor disablePT_SKIP_HTTPfor deeper coverage once baseline noise is managed.
- Root processes are ignored — this feature will not detect a root compromise. Use established IDS tools (e.g., AIDE, OSSEC) for that.
- Cannot distinguish intent — the feature flags suspicious patterns but cannot tell malicious from legitimate; that judgement is the administrator's job.
-
Obfuscation — processes can alter their reported command line;
exe:matching is more reliable thancmd:matching.
- False positives are expected — this is by design; the feature is intentionally sensitive. Validate before ignoring.
-
Over-broad
csf.pignoreentries — whitelistinguser:nobodyor binaries likeperl/phpcreates dangerous blind spots. -
Disabling
PT_SKIP_HTTPwithout raisingPT_LIMIT— will generate heavy alert volume from normal web traffic. - Not restarting LFD after investigation — processes are only reported once per PID per LFD session.
See also: Script Email Alerts
Last reviewed: 2026-02-27
← Previous: Script Email Alerts · Next: Directory Watching
- Security Features Guide
- Cloud & Container Hardening
- Automation & IaC
- IPv6 Deployment & Hardening
- IP Block Lists
- Reference Map
- Introduction
- csf Principles
- lfd Principles
- csf CLI Options
- lfd CLI Options
- Login Tracking
- Regex Custom Cookbook
- Script Email Alerts
- Process Tracking
- Directory Watching
- Advanced Filters
- Multiple Ethernet
- Generic Linux
- FTP Issues
- Messenger Service
- Block Reporting
- Port Flood
- Pre/Post Scripts
- Port Knocking
- Connection Limit
- Port/IP Redirect
- Integrated UI
- RESTRICT_SYSLOG
- Exim SMTP AUTH
- UI Skinning
- InterWorx
- CentOS Web Panel