ECCouncil 312-38 (Certified Network Defender) Practice Test 19

Question 180

An HTTP daemon currently runs with root privileges even though its runtime work only requires low-privilege access. Which Linux account or permission mechanism best addresses this requirement?

  1. File mode permissions
  2. Setuid privilege review
  3. POSIX access control list
  4. Service-specific system account
  5. Sudo command delegation

Explanation

Correct Answer

D:

Dedicated nonlogin accounts and tightly scoped permissions limit the impact of service exploitation. Privileged ports can be handled through supported capabilities.

Incorrect Answers

A:

Unix mode bits constrain owner, group and other permissions when the underlying evidence concerns owner-only local file access rather than the stated reducing daemon execution identity privileges.

B:

Setuid can elevate a program's effective user identity and is sensitive when the owner is root; that is relevant to privileged execution through file attribute but does not directly account for reducing daemon execution identity privileges.

C:

POSIX ACL entries can grant fine-grained named-user and named-group rights beyond ordinary mode bits in a setting defined by per-user access beyond basic mode bits; the observed issue is reducing daemon execution identity privileges.

E:

Carefully scoped sudoers rules allow selected commands under another identity, supporting least privilege in a setting defined by limited elevation for a specific command; the observed issue is reducing daemon execution identity privileges.

Question 181

Administrators can connect remotely as root with passwords, and the organization wants individual attribution through separate user accounts. Which Linux remote-access hardening measure is the right choice?

  1. SSH host-key verification
  2. Restrict SSH source addresses
  3. SSH public-key authentication
  4. Disable direct root SSH login

Explanation

Correct Answer

D:

Disabling direct root SSH login forces administrators to use named identities before controlled elevation. It improves auditability and reduces direct targeting.

Incorrect Answers

A:

Verifying host keys against a trusted record helps establish the remote server's identity before sensitive credentials or commands are exchanged; it handles authenticity of remote SSH server, while the decisive evidence in the question is direct root access over SSH.

B:

Host firewall or network ACL rules can restrict who may reach SSH when the underlying evidence concerns restricted network origin for SSH rather than the stated direct root access over SSH.

C:

SSH key authentication verifies possession of a private key corresponding to an authorized public key; the operational difference is key-based remote user proof versus the scenario's direct root access over SSH.

Question 182

Servers accept reusable passwords for remote login and administrators want to rely on per-user asymmetric credentials. Which Linux remote-access hardening measure is the right choice?

  1. Restrict SSH source addresses
  2. SSH host-key verification
  3. Disable direct root SSH login
  4. SSH public-key authentication

Explanation

Correct Answer

D:

SSH key authentication verifies possession of a private key corresponding to an authorized public key. Private keys should be protected and rotated on compromise.

Incorrect Answers

A:

Host firewall or network ACL rules can restrict who may reach SSH when the underlying evidence concerns restricted network origin for SSH rather than the stated key-based remote user proof.

B:

Verifying host keys against a trusted record helps establish the remote server's identity before sensitive credentials or commands are exchanged; its distinguishing scope is authenticity of remote SSH server, not the reported key-based remote user proof.

C:

Disabling direct root SSH login forces administrators to use named identities before controlled elevation for the specific concern of direct root access over SSH, not the requirement involving key-based remote user proof.

Question 183

An administrative SSH service must be reachable only from a designated management subnet rather than all internet locations. Which Linux remote-access hardening measure is the right choice?

  1. SSH public-key authentication
  2. Disable insecure rlogin
  3. Disable direct root SSH login
  4. Restrict SSH source addresses

Explanation

Correct Answer

D:

Host firewall or network ACL rules can restrict who may reach SSH. Authentication still applies inside the allowed network range.

Incorrect Answers

A:

SSH key authentication verifies possession of a private key corresponding to an authorized public key; the operational difference is key-based remote user proof versus the scenario's restricted network origin for SSH.

B:

Replacing rlogin and similar legacy services with SSH removes insecure remote terminal paths in a setting defined by removal of obsolete remote terminal access; the observed issue is restricted network origin for SSH.

C:

Disabling direct root SSH login forces administrators to use named identities before controlled elevation; that is relevant to direct root access over SSH but does not directly account for restricted network origin for SSH.

Question 184

A legacy server permits a remote terminal protocol that does not provide modern encrypted authentication and transport protections. Which Linux remote-access hardening measure is the right choice?

  1. SSH host-key verification
  2. Restrict SSH source addresses
  3. Disable direct root SSH login
  4. Disable insecure rlogin

Explanation

Correct Answer

D:

Replacing rlogin and similar legacy services with SSH removes insecure remote terminal paths. Confirm dependent automation before shutdown.

Incorrect Answers

A:

Verifying host keys against a trusted record helps establish the remote server's identity before sensitive credentials or commands are exchanged for situations characterized by authenticity of remote SSH server; the case points instead to removal of obsolete remote terminal access.

B:

Host firewall or network ACL rules can restrict who may reach SSH; that is relevant to restricted network origin for SSH but does not directly account for removal of obsolete remote terminal access.

C:

Disabling direct root SSH login forces administrators to use named identities before controlled elevation when analysts encounter direct root access over SSH; this question instead describes removal of obsolete remote terminal access.

Question 185

A script accepts every new SSH server key without validation, creating a man-in-the-middle risk during administration. Which Linux remote-access hardening measure is the right choice?

  1. Restrict SSH source addresses
  2. Disable direct root SSH login
  3. SSH public-key authentication
  4. SSH host-key verification
  5. Disable insecure rlogin

Explanation

Correct Answer

D:

Verifying host keys against a trusted record helps establish the remote server's identity before sensitive credentials or commands are exchanged.

Incorrect Answers

A:

Host firewall or network ACL rules can restrict who may reach SSH; that is relevant to restricted network origin for SSH but does not directly account for authenticity of remote SSH server.

B:

Disabling direct root SSH login forces administrators to use named identities before controlled elevation when analysts encounter direct root access over SSH; this question instead describes authenticity of remote SSH server.

C:

SSH key authentication verifies possession of a private key corresponding to an authorized public key; it handles key-based remote user proof, while the decisive evidence in the question is authenticity of remote SSH server.

E:

Replacing rlogin and similar legacy services with SSH removes insecure remote terminal paths; the operational difference is removal of obsolete remote terminal access versus the scenario's authenticity of remote SSH server.

Question 186

A hardening team needs alerts if system binary hashes or permissions depart from a trusted recorded baseline. Which Linux integrity or malware-detection capability best fits?

  1. SELinux mandatory access control
  2. AIDE file integrity monitoring
  3. AppArmor profile confinement
  4. Rootkit detection tools

Explanation

Correct Answer

B:

AIDE compares current file attributes against a stored database to identify unexpected changes. Protect and refresh the baseline after approved updates.

Incorrect Answers

A:

SELinux applies type and domain enforcement policies to confine process access; its distinguishing scope is policy confinement beyond ordinary Unix permissions, not the reported integrity checks against stored file baseline.

C:

AppArmor uses profiles tied to executable programs to restrict resources accessed by confined processes; it handles path-oriented application confinement, while the decisive evidence in the question is integrity checks against stored file baseline.

D:

Rootkit scanners look for known signatures and behavioral inconsistencies, but clean results do not prove a host trustworthy; the operational difference is checking for rootkit indicators versus the scenario's integrity checks against stored file baseline.

Question 187

Investigators need evidence about privileged file access and command actions at the Linux kernel audit interface. Which Linux integrity or malware-detection capability best fits?

  1. Rootkit detection tools
  2. SELinux mandatory access control
  3. AppArmor profile confinement
  4. Auditd syscall auditing

Explanation

Correct Answer

D:

The Linux audit framework records configured security-relevant system calls and object access. Rule selection affects noise and performance.

Incorrect Answers

A:

Rootkit scanners look for known signatures and behavioral inconsistencies, but clean results do not prove a host trustworthy; this characterizes checking for rootkit indicators, whereas the reported condition is kernel-mediated security event collection.

B:

SELinux applies type and domain enforcement policies to confine process access; this characterizes policy confinement beyond ordinary Unix permissions, whereas the reported condition is kernel-mediated security event collection.

C:

AppArmor uses profiles tied to executable programs to restrict resources accessed by confined processes in a setting defined by path-oriented application confinement; the observed issue is kernel-mediated security event collection.

Question 188

A compromised web server process should remain unable to read protected credential files even if discretionary permissions are misconfigured. Which Linux integrity or malware-detection capability best fits?

  1. Rootkit detection tools
  2. AppArmor profile confinement
  3. Auditd syscall auditing
  4. SELinux mandatory access control

Explanation

Correct Answer

D:

SELinux applies type and domain enforcement policies to confine process access. Correct labels and policy rules are essential.

Incorrect Answers

A:

Rootkit scanners look for known signatures and behavioral inconsistencies, but clean results do not prove a host trustworthy when the underlying evidence concerns checking for rootkit indicators rather than the stated policy confinement beyond ordinary Unix permissions.

B:

AppArmor uses profiles tied to executable programs to restrict resources accessed by confined processes in a setting defined by path-oriented application confinement; the observed issue is policy confinement beyond ordinary Unix permissions.

C:

The Linux audit framework records configured security-relevant system calls and object access for the specific concern of kernel-mediated security event collection, not the requirement involving policy confinement beyond ordinary Unix permissions.

Question 189

A service should be constrained to approved file paths and operations through a loadable Linux security profile. Which Linux integrity or malware-detection capability best fits?

  1. Auditd syscall auditing
  2. AppArmor profile confinement
  3. Rootkit detection tools
  4. AIDE file integrity monitoring

Explanation

Correct Answer

B:

AppArmor uses profiles tied to executable programs to restrict resources accessed by confined processes. Profile learning and enforcement modes differ.

Incorrect Answers

A:

The Linux audit framework records configured security-relevant system calls and object access; the operational difference is kernel-mediated security event collection versus the scenario's path-oriented application confinement.

C:

Rootkit scanners look for known signatures and behavioral inconsistencies, but clean results do not prove a host trustworthy; that is relevant to checking for rootkit indicators but does not directly account for path-oriented application confinement.

D:

AIDE compares current file attributes against a stored database to identify unexpected changes; the operational difference is integrity checks against stored file baseline versus the scenario's path-oriented application confinement.

Question 190

An administrator sees suspicious kernel modules and hidden processes and needs a targeted indicator check on a Linux server. Which Linux integrity or malware-detection capability best fits?

  1. SELinux mandatory access control
  2. AppArmor profile confinement
  3. AIDE file integrity monitoring
  4. Auditd syscall auditing
  5. Rootkit detection tools

Explanation

Correct Answer

E:

Rootkit scanners look for known signatures and behavioral inconsistencies, but clean results do not prove a host trustworthy. Offline examination may be necessary.

Incorrect Answers

A:

SELinux applies type and domain enforcement policies to confine process access; the operational difference is policy confinement beyond ordinary Unix permissions versus the scenario's checking for rootkit indicators.

B:

AppArmor uses profiles tied to executable programs to restrict resources accessed by confined processes for situations characterized by path-oriented application confinement; the case points instead to checking for rootkit indicators.

C:

AIDE compares current file attributes against a stored database to identify unexpected changes; the operational difference is integrity checks against stored file baseline versus the scenario's checking for rootkit indicators.

D:

The Linux audit framework records configured security-relevant system calls and object access; it handles kernel-mediated security event collection, while the decisive evidence in the question is checking for rootkit indicators.

Certified Network Defender (312-38) Practice Tests