Security Operations

A developer accidentally commits a file containing a cloud provider API key to the company's Git repository. Which control is designed to detect this kind of exposure in repository content before or after it is committed?

Show the answer

Correct answerD. Secrets scanning

AWhy not this: Network segmentation isolates network zones and does not inspect repository content for credentials.

BWhy not this: A honeyfile is a decoy that alerts on access; it does not scan real repositories for secrets.

CWhy not this: An allow list limits which software may run and does not find credentials in source code.

DWhy this is right: Secrets scanning searches code and commit history for embedded credentials such as API keys and tokens.

Secrets scanning inspects repository code, commit history and configuration files for credentials such as API keys, tokens and passwords. A honeyfile is a decoy that alerts when opened; it does not search real repositories for exposed credentials.