nerdexam
EC-Council

312-50V9 · Question #555

The following is an entry captured by a network IDS.You are assigned the task of analyzing this entry. You notice the value 0x90, which is the most common NOOP instruction for the Intel processor…

The correct answer is D. The attacker is attempting an exploit that launches a command-line shell. The 0x90 NOP sled combined with '/bin/sh' in the payload is a classic indicator of shellcode designed to spawn an interactive command shell via a buffer overflow.

System Hacking

Question

The following is an entry captured by a network IDS.You are assigned the task of analyzing this entry. You notice the value 0x90, which is the most common NOOP instruction for the Intel processor. You figure that the attacker is attempting a buffer overflow attack. You also notice "/bin/sh" in the ASCII part of the output. As an analyst what would you conclude about the attack?

Exhibit

312-50V9 question #555 exhibit

Options

  • AThe buffer overflow attack has been neutralized by the IDS
  • BThe attacker is creating a directory on the compromised machine
  • CThe attacker is attempting a buffer overflow attack and has succeeded
  • DThe attacker is attempting an exploit that launches a command-line shell

How the community answered

(20 responses)
  • A
    20% (4)
  • B
    5% (1)
  • C
    30% (6)
  • D
    45% (9)

Why each option

The 0x90 NOP sled combined with '/bin/sh' in the payload is a classic indicator of shellcode designed to spawn an interactive command shell via a buffer overflow.

AThe buffer overflow attack has been neutralized by the IDS

An IDS passively captures and alerts on traffic but does not neutralize or block attacks unless configured as an IPS; the log entry indicates detection, not mitigation.

BThe attacker is creating a directory on the compromised machine

Creating a directory would involve filesystem commands such as mkdir, not a NOP sled and '/bin/sh' payload, which are characteristic of shellcode execution aimed at shell access.

CThe attacker is attempting a buffer overflow attack and has succeeded

The IDS log confirms an attempt was made and detected, but does not itself confirm the exploit succeeded and a shell was actually spawned on the target.

DThe attacker is attempting an exploit that launches a command-line shellCorrect

The repeated 0x90 bytes form a NOP sled, a standard buffer overflow technique that increases the probability of execution sliding into the shellcode payload. The '/bin/sh' string at the end of the payload is shellcode that invokes a Unix command-line shell, revealing the attacker's goal of gaining an interactive shell session on the target machine. Together these artifacts confirm a shellcode-based exploit aimed at achieving remote command execution through shell spawning.

Concept tested: Buffer overflow shellcode analysis with NOP sled

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

Topics

#buffer overflow#NOP sled#shellcode#exploit analysis

Community Discussion

No community discussion yet for this question.

Full 312-50V9 Practice