nerdexam
GIAC

GSEC · Question #304

When file integrity checking is enabled, what feature is used to determine if a monitored file has been modified?

The correct answer is D. One-way hash. File integrity monitoring relies on cryptographic one-way hashes to detect unauthorized changes because any modification to a file produces a completely different hash value.

Operating System Security

Question

When file integrity checking is enabled, what feature is used to determine if a monitored file has been modified?

Options

  • Afile size
  • BLast modified dale
  • CFile change notifications in the Application Event Log
  • DOne-way hash

How the community answered

(45 responses)
  • A
    7% (3)
  • B
    4% (2)
  • C
    18% (8)
  • D
    71% (32)

Why each option

File integrity monitoring relies on cryptographic one-way hashes to detect unauthorized changes because any modification to a file produces a completely different hash value.

Afile size

File size only changes when bytes are added or removed; an attacker can modify file contents while preserving the original size, making this check insufficient.

BLast modified dale

Last modified date is a filesystem metadata attribute that can be trivially reset by an attacker using tools like 'touch', so it cannot reliably indicate whether content was altered.

CFile change notifications in the Application Event Log

Application Event Log file change notifications rely on the OS logging subsystem, which an attacker with sufficient privileges can clear or disable, and they do not provide a cryptographic proof of content integrity.

DOne-way hashCorrect

A one-way hash (such as SHA-256) produces a fixed-length digest that is uniquely representative of the file's exact byte content; even a single changed bit results in an entirely different hash, making tampering immediately detectable when the stored baseline hash is compared to a newly computed hash. This cryptographic property makes it far more reliable than metadata-based checks, which can be easily manipulated by an attacker.

Concept tested: Cryptographic hashing for file integrity verification

Source: https://csrc.nist.gov/publications/detail/sp/800-92/final

Topics

#file integrity monitoring#one-way hash#HIDS#change detection

Community Discussion

No community discussion yet for this question.

Full GSEC Practice