Threats, Vulnerabilities, and Attacks

A payroll script wipes files only when a named employee's record is missing from the HR database. Which control would MOST likely have caught the code before it reached production?

Show the answer

Correct answerC. Peer code review before release

AWhy not this: Egress filtering limits outbound traffic, but this code destroys local data and sends nothing out.

BWhy not this: Encryption protects data at rest from theft but does not stop authorized code from deleting files.

CWhy this is right: Reviewing code before release can expose the hidden trigger condition and destructive payload.

DWhy not this: Custom insider code has no known signature, so signature scanning would not match it.

A logic bomb is custom code an insider plants with a trigger, so it has no known signature. Peer code review and change control can expose the hidden condition before release. Antivirus signatures only match known malware.