QuiztudyPREMIUM
IBM Cybersecurity Analyst Professional Certificate • STUDY MODE
PRACTICE QUIZ
QUESTION 1 OF 41
Which operating system is susceptible to OS Command Injection attacks? Correct, all operating systems are susceptible.
A
LinuxB
WindowsC
MacOSD
All operating systems are susceptible.Correct AnswerQUESTION 2 OF 41
What is a possible impact of running commands thought OS shell interpreters such as sh, bash, cmd.exe and powershell.exe? Correct! It makes it easier for a hacker to inject additional commands or arguments.
A
It makes it more difficult for a hacker to inject additional commands or arguments.B
Powershell.exe is resistant to OS Injection attacks but sh, bash and cmd.exe have no built-in security.C
It makes it easier for a hacker to inject additional commands or arguments.Correct AnswerQUESTION 3 OF 41
True or False: Safe coding practice avoides using OS commands when it can be avoided. Correct, Safe coding practice avoides using OS commands when it can be avoided.
A
TrueCorrect AnswerB
FalseQUESTION 4 OF 41
True or False: Safe coding practice always runs commands through a shell interpreter. Correct! Safe coding practice does not always runs commands through a shell interperter.
A
TrueB
FalseCorrect AnswerQUESTION 5 OF 41
True or False: Safe coding practice uses library functions when running OS commands. Correct, Safe coding practice uses library functions when running OS commands.
A
TrueCorrect AnswerB
FalseQUESTION 6 OF 41
True or False: Safe coding practice uses blacklists and avoids the use of whitelists. Correct! Safe coding practice does not use blacklists but prefers the use of whitelists. SQL INJECTION
A
TrueB
FalseCorrect AnswerQUESTION 7 OF 41
A hacker tailoring his actions based on the database errors the application displays is an example of which type of SQL Injection attack?
A
Blind injectionB
Error-basedCorrect AnswerC
UNION-basedD
Out of BandQUESTION 8 OF 41
True or False: Use of prepared statements is an effective mitigation against SQL Injection attacks because it seperates the query structure from the query parameters. Correct, Use of prepared statements is an effective mitigation against SQL Injection attacks because it seperates the query structure from the query parameters.
A
TrueCorrect AnswerB
FalseQUESTION 9 OF 41
True or False: Native database errors should be hidden from the user to prevent hackers from gaining insight into the internal structure of your application. Correct, Native database errors should be hidden from the user to prevent hackers from gaining insight into the internal structure of your application.
A
TrueCorrect AnswerB
FalseQUESTION 10 OF 41
True or False: The use of object-relational mapping (ORM) libraries is a dangerous practice that can help hackers conduct successful SQL Injection attacks. Correct, The use of object-relational mapping (ORM) libraries is not a dangerous practice that can help hackers conduct successful SQL Injection attacks. SOFTWARE VULNERABILITIES
A
TrueB
FalseCorrect AnswerQUESTION 11 OF 41
What happens in a file inclusion attack? Correct. A file inclusion attack is when an attacker uploads a file to a web application without proper validation. The attacker tricks the web application into showing or running files that should not be publicly visible or available.
A
An attacker uses a web application to send a browser-side script to another user.B
An attacker sends more data to a web application than the memory buffer can handle.C
An attacker uploads a file to a web application without proper validation.Correct AnswerD
An attacker places malicious code into an SQL statement through a web page.QUESTION 12 OF 41
How can you view a complete list of an application’s pages and subpages that OWASP ZAP indexed during a scan? Correct. To view the URLs that ZAP scanned, first, expand Sites in the Tree window. Next, expand other sites to view more URLs discovered and explored.
A
Click the History tab in the Information window.B
Click the Quick Start tab in the Workspace window.C
Expand Sites in the Tree window.Correct AnswerD
Select ATTACK Mode from the list of modes.QUESTION 13 OF 41
You and a team of developers are creating an application and collaborating on the project using a GitHub repository. You edited the code for one of the project’s files and committed your change. What should you do next? Correct. After committing a change, you should issue a pull request. Doing so notifies your team members that your changes are ready for review.
A
Clone the project.B
Fork the repository.C
Issue a pull request.Correct AnswerD
Merge your code with the repository.QUESTION 14 OF 41
You just used Snyk to scan several GitHub repositories. One of the repositories is named itsarepo, and you’re especially interested in the results from scanning a file in that repository named buggycode.py. Where in Snyk could you find a detailed breakdown of this file’s vulnerabilities such as “Container is running without privilege escalation control”? Correct. You can import and scan your repositories from the Projects page in Snyk. Once that process is complete, the project security report is displayed. Expand itsarepo, and then click buggycode.py. The file’s Overview page opens. Finally, scroll down to the Issues tab for a detailed breakdown of the detected vulnerabilities. DEEP DIVE - INJECTION VULNERABILITY
A
Integrations > Vulnerability management > VulcanB
Projects > itsarepo > buggycode.yaml > Settings icon > GitHub integrationC
Projects > itsarepo > buggycode.yaml > IssuesCorrect AnswerD
Integrations > GitHub > itsarepo > buggycode.pyQUESTION 15 OF 41
Which vulnerability is being exploited in an OS Command Injection attack?
A
Improperly configured security settings in the MySQL database.B
Poor user input sanitation and unsafe execution of OS commands.Correct AnswerC
Vulnerabilities in the operating system shell interpreter.D
Vulnerabilities in the operating system kernel.QUESTION 16 OF 41
What is a simple but effective way to protect against DLL hijacking?
A
Avoid using DLL libraries in commercial applications where security is a concern.B
Write-protect the folders that contain your libraries.C
Always use explicit paths to the commands or library applications.Correct AnswerD
Use only hijack resistant open-source libraries whenever possible.QUESTION 17 OF 41
True or False: Safe coding practice runs code with the least possible privilege.
A
TrueCorrect AnswerB
FalseQUESTION 18 OF 41
True or False: Safe coding practice always specifies relative paths when running applications or using shared libraries.
A
TrueB
FalseCorrect AnswerQUESTION 19 OF 41
True or False: Safe coding practice does not let user input reach an OS command unchanged.
A
TrueCorrect AnswerB
FalseQUESTION 20 OF 41
A hacker exfiltrating data by injecting an HTTPrequest command is an example of which type of SQL Injection attack?
A
UNION-basedB
Blind injectionC
Error-basedD
Out of BandCorrect AnswerQUESTION 21 OF 41
True or False: Limiting database user permissions is an ineffective strategy in preventing SQL Injection attacks since the injected code will run directly against the database regardless of the permission levels that have been set.
A
TrueB
FalseCorrect AnswerQUESTION 22 OF 41
Which of the following will help reduce the SQL Injection attack surface?
A
Direct use of native operating system commands.B
Showing users the exact nature of database input errors.C
Direct SQL execution from user input values.D
Use of stored procedures.Correct AnswerQUESTION 23 OF 41
When developing an application, using NoSQL instead of MySQL will have what effect on the applications susceptibility to SQL Injection attacks?
A
It will have no impact on the risk of an injection attack.B
It will eliminate the injection attack surface.C
It will increase the risk of an injection attack.D
It will reduce, but not eliminate, the injection attack surface.Correct AnswerQUESTION 24 OF 41
You work at a software development company. The development team incorporates security checks throughout software development, and all their code passes them. But you want extra assurance that the applications that they develop can withstand real-world cyberattacks. You want to simulate real hacking techniques to identify any remaining vulnerabilities. What cyberdefense method should you use?
A
Security monitoringB
System information event managementC
Dynamic application security testingD
Penetration testingCorrect AnswerQUESTION 25 OF 41
How can you view a complete list of all vulnerabilities that OWASP ZAP detected while scanning an application?
A
Click the Request tab in the Workspace window.B
Expand Sites in the Tree window.C
Select Protected Mode from the list of modes.D
Click the Alerts tab in the Information window.Correct AnswerQUESTION 26 OF 41
You find a public GitHub repository for an application and would like to use and modify the application’s code for your own project. However, you need to do so without impacting the current repository. What should you do?
A
Access your list of GitHub repositories, and then click Projects.B
Access the repository’s web page, and then click Pull requests.C
Access the repository’s web page, and then click Fork.Correct AnswerD
Access your list of GitHub repositories, and then click Sort.QUESTION 27 OF 41
You’re the project manager for a development team working on code in a GitHub repository. You use Snyk to scan the repository for vulnerabilities. Snyk identifies only one vulnerability, “Container has no CPU limit”, and marks the vulnerability as low severity. The fix for this issue is currently in development, but you don’t know when it will be ready. What should you do next on the file’s Overview page?
A
Click Ignore, click Not vulnerable, type a comment in the comment field, and then click Save.B
Click Ignore, click Ignore permanently, and then click Save.C
Click Ignore, click Ignore temporarily, select the Until fix is available checkbox, and then click Save.Correct AnswerD
Click Ignore, click Not vulnerable, and then click Save.QUESTION 28 OF 41
Which operating system is susceptible to OS Command Injection attacks?
A
LinuxB
WindowsC
MacOSD
All operating systems are susceptible.Correct AnswerQUESTION 29 OF 41
What is a possible impact of running commands thought OS shell interpreters such as sh, bash, cmd.exe and powershell.exe?
A
It makes it more difficult for a hacker to inject additional commands or arguments.B
Powershell.exe is resistant to OS Injection attacks but sh, bash and cmd.exe have no built-in security.C
It makes it easier for a hacker to inject additional commands or arguments.Correct AnswerQUESTION 30 OF 41
True or False: Safe coding practice avoides using OS commands when it can be avoided.
A
TrueCorrect AnswerB
FalseQUESTION 31 OF 41
True or False: Safe coding practice always runs commands through a shell interpreter.
A
TrueB
FalseCorrect AnswerQUESTION 32 OF 41
True or False: Safe coding practice uses library functions when running OS commands.
A
TrueCorrect AnswerB
FalseQUESTION 33 OF 41
True or False: Safe coding practice uses blacklists and avoids the use of whitelists.
A
TrueB
FalseCorrect AnswerQUESTION 34 OF 41
True or False: Use of prepared statements is an effective mitigation against SQL Injection attacks because it seperates the query structure from the query parameters.
A
TrueCorrect AnswerB
FalseQUESTION 35 OF 41
True or False: Native database errors should be hidden from the user to prevent hackers from gaining insight into the internal structure of your application.
A
TrueCorrect AnswerB
FalseQUESTION 36 OF 41
True or False: The use of object-relational mapping (ORM) libraries is a dangerous practice that can help hackers conduct successful SQL Injection attacks.
A
TrueB
FalseCorrect AnswerQUESTION 37 OF 41
What happens in a file inclusion attack?
A
An attacker uses a web application to send a browser-side script to another user.B
An attacker sends more data to a web application than the memory buffer can handle.C
An attacker uploads a file to a web application without proper validation.Correct AnswerD
An attacker places malicious code into an SQL statement through a web page.QUESTION 38 OF 41
How can you view a complete list of an application’s pages and subpages that OWASP ZAP indexed during a scan?
A
Click the History tab in the Information window.B
Click the Quick Start tab in the Workspace window.C
Expand Sites in the Tree window.Correct AnswerD
Select ATTACK Mode from the list of modes.QUESTION 39 OF 41
You and a team of developers are creating an application and collaborating on the project using a GitHub repository. You edited the code for one of the project’s files and committed your change. What should you do next?
A
Clone the project.B
Fork the repository.C
Issue a pull request.Correct AnswerD
Merge your code with the repository.QUESTION 40 OF 41
You just used Snyk to scan several GitHub repositories. One of the repositories is named itsarepo, and you’re especially interested in the results from scanning a file in that repository named buggycode.py. Where in Snyk could you find a detailed breakdown of this file’s vulnerabilities such as “Container is running without privilege escalation control”?
A
Integrations > Vulnerability management > VulcanB
Projects > itsarepo > buggycode.yaml > Settings icon > GitHub integrationC
Projects > itsarepo > buggycode.yaml > IssuesCorrect AnswerD
Integrations > GitHub > itsarepo > buggycode.pyQUESTION 41 OF 41
12. You find a public GitHub repository for an application and would like to use and modify the application’s code for your own project. However, you need to do so without impacting the current repository. What should you do?
A
Access your list of GitHub repositories, and then click Projects.B
Access the repository’s web page, and then click Pull requests.C
Access the repository’s web page, and then click Fork.Correct AnswerD
Access your list of GitHub repositories, and then click Sort.Ready to test your recall?
Which operating system is susceptible to OS Command Injection attacks? Correct, all operating systems are susceptible.
A
Linux
B
Windows
C
MacOS
D
All operating systems are susceptible.
How confident are you in this answer?