GIAC Foundational Cybersecurity Technologies Practice Test

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for the GIAC Cybersecurity Technologies Test. Use practice questions and detailed explanations to enhance your understanding and readiness. Start your journey to certification today!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What is the best way to defend against a Directory Traversal attack?

  1. Regularly update software

  2. Limit user input during system calls

  3. Utilize complex passwords

  4. Enable multifactor authentication

The correct answer is: Limit user input during system calls

Defending against a Directory Traversal attack primarily involves limiting user input during system calls. A Directory Traversal attack enables an attacker to access files and directories that are stored outside the intended directory. This typically occurs when an application takes user inputs, such as file path requests, and does not properly validate or sanitize those inputs. By limiting the type and format of user input—like implementing strict validation checks and ensuring that only legitimate, expected input is processed—systems can prevent unauthorized access to sensitive files. Regularly updating software is essential for overall security hygiene, but it does not specifically address the vulnerability related to Directory Traversal attacks. While complex passwords and multifactor authentication are vital components of access control and protection against unauthorized access, they do not directly mitigate the specific risks posed by Directory Traversal. Thus, focusing on user input is the most effective strategy for preventing such attacks.