Alert icon Keyboard navigation enabled.
Alert icon TAB or Shift+TAB to navigate across. Down ↓ to open menu. ESC to close menu.
Alert icon Down ↓ to select section. Right → to activate. Up ↑ / Down ↓ / Tab to traverse all. ESC to exit.
BeyondTrust
Skip to content Use space or enter to skip.

What can we help you find today?

Instant Results
  • Website Results
  • Technical Documentation

Filter Options

Focus your search

Filtering by

Your recent searches:

Contact Us Chat with Sales Get Support
  • English
  • Deutsch
  • français
  • español
  • 한국어
  • português
  • Home
  • Resources
  • Blog
  • Linux Security = File Integrity Monitoring current page
Link copied

Linux Security = File Integrity Monitoring

Nov 14, 2016
Author:
Randy Franklin Smith 200X200
Randy Franklin Smith
CEO, Monterey Technology Group, Inc. CISA, SSCP, Security MVP
Blog banner default
Linux Security = File Integrity Monitoring
Randy Franklin Smith 200X200
Randy Franklin Smith
CEO, Monterey Technology Group, Inc. CISA, SSCP, Security MVP

Linux Security

Why There’s No Security Log in Linux Like There is in Windows

Linux security is all about file security. That’s because configuration in Linux is stored in files directly accessible to root. Mis-edit a file and you can be in a lot of trouble. You may not be in the habit of configuring Linux through direct file editing but that’s because many distros have built GUI or command line tools to help you avoid the aforementioned trouble. But the key point here is that you aren’t forced to go through those utilities.

This is very different than Windows. In Windows the actual bits of configuration are far more isolated and you never touch them even if you are an administrator. You are pretty much forced to go through Win32 APIs for everything. This allows Windows to enforce both privilege and validation rules.

In Linux, since you aren’t going through an API, you only get validation if you use the appropriate utility to make the configuration change instead of directly editing the file. As an example, in Linux you can create a user by either directly editing the etc/passwd and related files or it’s safer to use the useradd program instead which edits the files for you based on the command line arguments you provide.

Want to learn more? Join me in my upcoming webinar on November 30th. This is real FREE training, with CPE credits, that you won't want to miss – Good Linux Security Needs File Integrity Monitoring. Register now

Why is this such a big deal? It has some big implications.

Least Privilege

Let’s say you want to implement least privilege and allow some IT folks authority to change only a subset of properties on accounts. Maybe you want them to be able to change home directory on user accounts but nothing else. You can’t allow them to edit the whole etc/passwd file because they could change anything or even create new users, delete users or corrupt the file. And the usermod program likely doesn’t have any least privilege functionality of its own. That’s why I’ve done so many webinars in the past about sudo. If you are willing to do the work in your sudoers file you could grant them the ability to run usermod but only with the -d switch.

Auditing

The other big issue is your audit trail. If security changes are always executed through the appropriate utility (like usermod or useradd) and with sudo then it’s possible to get a decent audit trail. But what’s to stop someone from directly editing the /etc/passwd file using VI or something else? Where’s your audit trail then? The reason I’ve never created a Linux Security Log Encyclopedia (like my Windows Security Log Encyclopedia) is basically because of this. There’s no single choke point in Linux where you are forced to go to make different configuration changes. Therefore, there’s no way for Linux to generate the kind of audit log that Windows does with hundreds of unique event IDs for each security action.

Linux security is all about file security.

That’s why file integrity monitoring is of paramount importance to compliance and security for your Linux systems. If you aren’t closely monitoring changes to key security configuration files you have no way to detect major changes to your security policy.

Monitoring Windows security is primarily a matter of monitoring the security log. Monitoring Linux security requires your sudo logs and file integrity monitoring. FIM is a much, much bigger deal in Linux than in Windows.

Join me for a real training for FREE on November 10th, where we’ll look at file integrity monitoring in Linux and identify the most important files that need to be monitored. BeyondTrust has kindly sponsored my series of webinars on Linux security including this one, and product manager Paul Harper will briefly show you the file integrity monitoring capabilities being introduced to PowerBroker for Unix & Linux.

Register now

Latest Posts
  • Hooked on Identity (Part 2): Abusing OAuth Trust Boundaries in Okta
    Jun 12, 2026 Hooked on Identity (Part 2): Abusing OAuth Trust Boundaries in Okta
    Blog
    7m
  • Hooked on Identity: Abusing SAML Assertion Inline Hooks in Okta
    Jun 9, 2026 Hooked on Identity: Abusing SAML Assertion Inline Hooks in Okta
    Blog
    6m
  • Joining Project Glasswing: Securing the Privilege Backbone of the AI Era
    Jun 8, 2026 Joining Project Glasswing: Securing the Privilege Backbone of the AI Era
    Blog
    5m
  • The Most Common & Most Dangerous Types of Shadow IT
    Jun 5, 2026 The Most Common & Most Dangerous Types of Shadow IT
    Blog
    19m
  • 14 Password Management Best Practices
    May 28, 2026 14 Password Management Best Practices
    Blog
    12m
Related
  • 4 Ways the Insecurity of Security Solutions is Putting You at Risk, & 5 Ways to Mitigate the Threat
    Mar 27, 2019 4 Ways the Insecurity of Security Solutions is Putting You at Risk, & 5 Ways to Mitigate the Threat
    Blog
    1m
  • Understanding Privileged Access Management (PAM)
    Feb 18, 2016 Understanding Privileged Access Management (PAM)
    Blog
    1m
Share this Article
  • Link
Stay up to Date
Get the latest news, ideas, and tactics from BeyondTrust. You may unsubscribe at any time.

Keep up with BeyondTrust

Customer Support Get Started
  • LinkedIn
  • X
  • Facebook
  • Instagram
  • Add BeyondTrust as a preferred source on Google
  • Privacy
  • Security
  • Manage Cookies
  • Do Not Sell My Data
  • WEEE Compliance

Copyright © 2003 — 2026 BeyondTrust Corporation. All rights reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust Corporation is not a chartered bank or trust company, or depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.

Prefers reduced motion setting detected. Animations will now be reduced as a result.