Tripwire: A File Changed. Was It Supposed To?
Tripwire checks for changes to selected files and directories by comparing them with a recorded baseline. A baseline is the reference state used for later comparisons. Open Source Tripwire provides a documented example of this kind of file-integrity monitoring.
Integrity concerns protecting information against improper changes or destruction. A change report can show what differs. Someone still has to establish whether the change was an approved update or an unauthorized alteration.
Why Do Hashing Algorithms Keep Changing?
Choose what the comparison should remember
In Open Source Tripwire, a policy selects the paths and file properties to check. Those properties can include contents, permissions and ownership. Permissions control which operations are allowed; ownership identifies the account associated with a file.
The tool records baseline information for the chosen items. A later integrity check examines their current state and reports differences. The project's documentation explains this policy, initialization and checking process.
For file contents, a hash provides a compact comparison value calculated from the data. If the checked hash differs from the reference, the contents differ. The hash calculation doesn't store a second copy of the file that can be unpacked to restore it.
The baseline is therefore not a substitute for a backup. Knowing that a file changed and having a clean copy to recover are separate capabilities.
An approved update changes files, too
Suppose a website administrator installs an approved software update. The next check reports changed program files. Those differences may be exactly what the update was meant to produce.
Now suppose the same report also shows an unexpected change in a configuration file's permissions. That deserves its own explanation. An approved update doesn't explain every change in the same report.
The administrator can compare the report with the work that was authorized, investigate unexplained differences and accept verified changes into a new baseline. Accepting everything automatically would teach future checks to treat the altered state as normal, whether or not it should be.
Tampering means intentional, unauthorized modification. The National Institute of Standards and Technology's definition makes intent and permission part of that meaning. A difference report is evidence of a change; it isn't a complete account of who made it or why.
- Learn to spot an intruder from the traces left in network traffic.
- Understand how incidents are detected and what to do next.
- Build a monitoring habit that catches trouble early.
The reference needs protection of its own
An attacker who can alter what gets checked, or replace its reference, can undermine the comparison. Open Source Tripwire applies digital signatures to its configuration, policy and database files by default. These checks help reveal changes to the inputs themselves.
The timing of checks matters as well. The project documents scheduling periodic checks. That doesn't promise immediate detection of every change, and checking file properties doesn't record every attempt to read a file.
After the website's update, the changed program files may become the accepted reference. The unexplained permission change should remain a question to resolve before it joins them.
Data Integrity: How to Keep Records and Their Connections Reliable

Hash Functions: Small Outputs With a Big Job

System Integrity: Is the Computer Still Doing Its Intended Job?

QUOTE:
"Amateurs hack systems, professionals hack people."
