CHFI Application, Email and Cloud Forensics Practice Question
During an investigation of a web application breach, an analyst reviews IIS logs and finds numerous entries with status code '200' and URIs containing '?cmd=' followed by encoded strings. The analyst also notices that some requests have a 'User-Agent' string resembling 'Microsoft-CryptoAPI/10.0'. What is the MOST likely conclusion?
⚠ Common exam trap
The trap here is that candidates see '200 OK' and assume success of an attack like SQL injection, but the '?cmd=' parameter is the definitive indicator of a command execution webshell. EC-CHFI emphasizes recognizing webshell indicators such as encoded command parameters and unusual User-Agent strings.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
A webshell is being used to execute commands on the server
The presence of numerous HTTP 200 (success) responses with URIs containing '?cmd=' followed by encoded strings indicates that an attacker is sending command execution requests to a webshell on the server. The unusual User-Agent string 'Microsoft-CryptoAPI/10.0' is a known evasion technique used by webshell tools (e.g., China Chopper variants) to blend in with legitimate Windows update traffic. Successful command execution returns a 200 status, confirming the webshell is active and under attacker control.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The logs indicate a successful SQL injection attack
Why it's wrong here
A successful SQL injection would appear in logs as crafted SQL syntax within parameters, such as single quotes, UNION SELECT statements, OR 1=1 payloads, or time-based sleep functions, none of which appear in these URIs. Instead, the presence of a cmd parameter carrying operating-system-level commands indicates the attacker is invoking server-side command execution, not manipulating a database query. SQL injection targets the database layer, whereas cmd execution targets the underlying OS, and the log pattern here is unequivocally the latter.
- ✗
The logs show a cross-site scripting (XSS) attack targeting administrators
Why it's wrong here
Cross-site scripting (XSS) is a client-side vulnerability: the attacker injects JavaScript or other script content that executes in a victim's browser, typically to steal cookies, session tokens, or perform actions on behalf of an authenticated administrator. The logs under investigation show server-side command execution via the cmd parameter, not scripted content reflected or stored for browser execution. Furthermore, the non-standard User-Agent and direct OS command invocations indicate a webshell channel, which is fundamentally different from XSS payloads that would appear in HTML/JavaScript form within HTTP parameters or response bodies.
- ✗
The server is infected with ransomware, encrypting files
Why it's wrong here
Ransomware behavior is characterized by mass file encryption, changes to file extensions, and the deployment of a ransom note, none of which is visible in these logs. The cmd parameter and unusual User-Agent indicate an interactive, command-and-control style webshell session, where the attacker is executing arbitrary commands on the server, not an automated crypto-malware process. Ransomware would generate a distinct pattern of file I/O, encryption API calls, and a ransom demand, none of which is consistent with the URI command execution trail observed here.
- ✓
A webshell is being used to execute commands on the server
Why this is correct
The logs indicate a webshell is in use because the HTTP requests contain a cmd parameter whose values are operating-system commands, a classic hallmark of server-side web shells such as China Chopper or b374k. The non-standard User-Agent further suggests a customized or automated attacker tool, and the consistent use of this parameter across requests shows persistent remote access. This behavior is the result of a command injection vulnerability, where the web application fails to sanitize user input before passing it to the system shell, allowing the attacker to execute arbitrary commands directly against the server.
Go deeper
Related to this question
About these practice questions
This CHFI question is part of Courseiva's 205-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CHFI practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CHFI exam.