nerdexam
CompTIA

SY0-501 · Question #482

A systems administrator found a suspicious file in the root of the file system. The file contains URLs, usernames, passwords, and text from other documents being edited on the system. Which of the…

The correct answer is A. Keylogger. A keylogger captures and records user input-including keystrokes, credentials, and document content-and stores it in a log file for later retrieval by an attacker.

Submitted by rachelw· Mar 4, 2026Threats, vulnerabilities, and mitigations

Question

A systems administrator found a suspicious file in the root of the file system. The file contains URLs, usernames, passwords, and text from other documents being edited on the system. Which of the following types of malware would generate such a file?

Options

  • AKeylogger
  • BRootkit
  • CBot
  • DRAT

How the community answered

(70 responses)
  • A
    73% (51)
  • B
    7% (5)
  • C
    16% (11)
  • D
    4% (3)

Why each option

A keylogger captures and records user input-including keystrokes, credentials, and document content-and stores it in a log file for later retrieval by an attacker.

AKeyloggerCorrect

A keylogger is designed to silently record all keyboard input and clipboard activity, which explains the presence of URLs, usernames, passwords, and text from documents being edited. The captured data is typically written to a local log file that the attacker later exfiltrates, which matches the suspicious file found in the root of the filesystem.

BRootkit

A rootkit is designed to hide malicious activity and maintain privileged access on a system, not to capture and log user input or document content.

CBot

A bot connects an infected system to a command-and-control network to perform automated tasks such as DDoS attacks or spam distribution, but does not specifically capture and store credentials and typed text in a local file.

DRAT

A Remote Access Trojan (RAT) provides an attacker with remote control over a system, but its primary function is remote access rather than locally logging keystrokes and document content into a file.

Concept tested: Identifying keylogger malware behavior and artifacts

Source: https://www.cisa.gov/news-events/news/understanding-hidden-threats-rootkits-and-botnets

Topics

#keylogger#malware classification#credential theft#data exfiltration

Community Discussion

No community discussion yet for this question.

Full SY0-501 Practice