PT0-001 · Question #56
A penetration tester is performing a code review. Which of the following testing techniques is being performed?
The correct answer is C. Static analysis. A code review examines source code without executing the program, which is the definition of static analysis. Dynamic and runtime techniques require the application to be running.
Question
A penetration tester is performing a code review. Which of the following testing techniques is being performed?
Options
- ADynamic analysis
- BFuzzing analysis
- CStatic analysis
- DRun-time analysis
How the community answered
(15 responses)- A7% (1)
- C87% (13)
- D7% (1)
Why each option
A code review examines source code without executing the program, which is the definition of static analysis. Dynamic and runtime techniques require the application to be running.
Dynamic analysis involves testing an application while it is actively running and observing its behavior; a code review requires no program execution and therefore does not qualify.
Fuzzing analysis involves sending malformed or unexpected inputs to a running application to trigger crashes or unexpected behavior; it requires execution and is a subset of dynamic analysis.
Static analysis involves inspecting source code, bytecode, or binaries without executing the application. A penetration tester performing a code review is directly reading and analyzing the code to identify vulnerabilities such as insecure function calls, hardcoded secrets, or logic flaws - which is precisely the definition and purpose of static analysis.
Run-time analysis is synonymous with dynamic analysis and involves observing application behavior during execution, which does not apply to a non-executing code review.
Concept tested: Static analysis vs dynamic analysis in code review
Source: https://owasp.org/www-community/controls/Static_Code_Analysis
Topics
Community Discussion
No community discussion yet for this question.