GSEC · Question #35
When should you create the initial database for a Linux file integrity checker?
The correct answer is C. Before a system has been compromised. A file integrity checker's baseline database must be created on a clean, uncompromised system so that any future unauthorized changes are detectable by comparison against that trusted snapshot.
Question
When should you create the initial database for a Linux file integrity checker?
Options
- ABefore a system is patched
- BAfter a system has been compromised
- CBefore a system has been compromised
- DDuring an attack
How the community answered
(42 responses)- A5% (2)
- B7% (3)
- C71% (30)
- D17% (7)
Why each option
A file integrity checker's baseline database must be created on a clean, uncompromised system so that any future unauthorized changes are detectable by comparison against that trusted snapshot.
Creating the database before patching records a potentially vulnerable state as the trusted baseline, causing every legitimate patch-related file change to register as a false positive alert.
Creating the database after a compromise records the already-altered or attacker-modified file state as the trusted baseline, making the integrity checker blind to the existing compromise.
Creating the initial database before a system has been compromised captures verified file hashes, sizes, and attributes in a known-good state; any subsequent unauthorized modification is then detectable because the current file state will differ from this clean baseline, triggering an alert.
Creating the database during an active attack is unreliable because files may already be in the process of being modified, producing a corrupted or attacker-influenced baseline that cannot serve as a valid reference.
Concept tested: File integrity monitoring baseline creation timing
Source: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/security_guide/sec-using-aide
Topics
Community Discussion
No community discussion yet for this question.