Courseiva

CCNA Secure Software Testing Questions

17 questions · Secure Software Testing · All types, answers revealed

1
Multi-Selecthard

Which THREE factors should be considered when prioritizing findings from a DAST scan?

Select 3 answers
A.The time of day the scan was performed.
B.The number of lines of code in the component.
C.The ease of exploitability and availability of exploits.
D.The sensitivity of the data handled by the vulnerable endpoint.
E.The CVSS base score of the vulnerability.
AnswersC, D, E

Ease of exploitability and public exploit availability directly determine real-world risk, so they must weight DAST triage. A remotely exploitable flaw with a weaponised exploit warrants immediate remediation, whereas a theoretical issue requiring unusual conditions ranks lower. This satisfies the stem's prioritisation constraint by ranking findings on practical attack likelihood.

Why this answer

Option C is correct because the ease of exploitability and the existence of public exploits (e.g., weaponized PoCs in Exploit-DB or Metasploit modules) directly raise the real-world risk of a DAST finding, making it a primary prioritization factor. Option D is correct because the sensitivity of the data handled by the vulnerable endpoint (e.g., PII, credentials, or PCI data) determines the potential business impact if the finding is exploited, which is essential for risk-based triage. Option E is correct because the CVSS base score provides a standardized, vendor-neutral severity metric (combining exploitability and impact sub-scores) that is widely used to rank DAST findings objectively.

Option A does not belong because the time of day a scan ran has no bearing on the vulnerability's severity or exploitability. Option B does not belong because lines of code is a static code metric, not a DAST finding attribute, and does not indicate exploitability or impact.

2
Multi-Selecthard

When designing a test case for secure API authentication, which THREE elements should be included?

Select 3 answers
A.Validating that error messages do not disclose account existence.
B.Testing for insecure token storage.
C.Ensuring token expiration and revocation work correctly.
D.Automating the password recovery workflow.
E.Testing the speed of the API response.
AnswersA, B, C

Authentication error messages must be generic so they cannot reveal whether an account exists, preventing username enumeration. This satisfies the stem's secure API authentication test-case element, complementing valid and invalid credential checks, lockout behaviour and token handling.

Why this answer

Option A is correct because secure API authentication must prevent username/account enumeration: error responses for invalid usernames and invalid passwords should be indistinguishable (same generic message and status code, e.g., 401 with a generic body), so validating that error messages do not disclose account existence is a core security test. Option B is correct because insecure token storage is a common authentication weakness: tests should verify that tokens (JWT, OAuth 2.0 access/refresh tokens, session IDs) are not stored in insecure locations such as localStorage, unencrypted files, or logs, and are protected in transit and at rest. Option C is correct because token lifecycle controls are essential: tests must confirm that tokens expire after their defined lifetime (e.g., JWT 'exp' claim), that refresh tokens can be revoked, and that revoked or expired tokens are rejected by the API.

Option D is not a secure authentication test element; automating the password recovery workflow is a functional/process automation concern, not a security validation of authentication mechanisms. Option E is not a security test element; measuring API response speed is a performance test and does not validate authentication security properties.

3
Multi-Selecteasy

Which TWO of the following represent common output formats for security testing reports?

Select 2 answers
A.PNG.
B.PDF.
C.MP3.
D.BIOS.
E.JSON.
AnswersB, E

PDF is a standard, portable output format for security testing reports, preserving layout and supporting distribution to stakeholders who lack the original tooling. It satisfies the stem's requirement for a common report output format alongside other formats such as XML or HTML.

Why this answer

Option B (PDF) is correct because PDF is a standard, widely used format for delivering polished security testing reports, preserving layout, tables, and charts for stakeholders and clients. Option E (JSON) is correct because JSON is a common machine-readable format used to export structured findings from scanners and testing tools, enabling automation, parsing, and integration with other systems. Option A (PNG) is an image format, suitable for screenshots or diagrams but not a typical full report output format.

Option C (MP3) is an audio format and is irrelevant to security report deliverables. Option D (BIOS) is firmware, not a report format at all.

4
MCQmedium

A developer wants to ensure that a web application is resistant to SQL injection. Which test case should be included in the automated test suite?

A.null
B.Changing the user agent header to a random string.
C.Injecting characters like single quotes (') and comments (--) into input fields.
D.Uploading a large file to test buffer overflow.
E.Adding a long string to an email field.
AnswerC

Injecting quotes and comment markers directly exercises the parser's handling of untrusted input, satisfying the requirement for a test case that detects SQL injection resistance. Single quotes break string literals, while `--` truncates the remaining query, so unsanitised concatenation produces malformed SQL or altered logic, revealing the vulnerability.

Why this answer

Testing for SQL injection involves sending input that contains special characters (like quotes) to see if the database engine returns an error or executes the injected command.

5
Multi-Selectmedium

Which TWO of the following practices are recommended when performing fuzz testing on a web service?

Select 2 answers
A.Disable all logging to improve fuzzing speed.
B.Manually input all test cases.
C.Isolate the fuzzing environment from production data.
D.Use a production environment for maximum realism.
E.Monitor application logs for crash signals and exceptions.
AnswersC, E

Fuzzing generates malformed traffic that can corrupt records, trigger unintended transactions or leak data. Running it against an isolated environment with synthetic or sanitised data prevents production records being damaged or exposed, satisfying the stem's requirement for a recommended web service fuzzing practise.

Why this answer

Option C is correct because fuzz testing deliberately sends malformed, unexpected, and potentially destructive inputs, so the fuzzing environment must be isolated from production data to prevent corruption, data leakage, or service disruption. Option E is correct because monitoring application logs for crash signals, exceptions, stack traces, and error codes is essential to detect the faults fuzzing is designed to uncover and to reproduce and triage them. Option A is wrong because disabling logging removes the very evidence needed to identify crashes and exceptions, undermining the purpose of fuzzing.

Option B is wrong because manual input does not scale and defeats the automation that makes fuzzing effective at generating large volumes of varied test cases. Option D is wrong because using a production environment risks real data and availability, whereas fuzzing should run in an isolated, non-production environment.

6
MCQhard

You are performing a fuzzing campaign on a REST API. The API uses JSON Web Tokens (JWT). What is the most effective way to include these tokens in the fuzzer input?

A.null
B.Configure the fuzzer to inject a fresh, valid JWT in the Authorization header before each request.
C.Use the same JWT throughout the entire fuzzing duration.
D.Exclude the Authorization header from the fuzzing target.
E.Disable authentication for the entire API during the test.
AnswerB

Injecting a fresh, valid JWT into the Authorization header before each request ensures the fuzzer reaches authenticated API logic rather than being rejected at the authentication layer. This satisfies the stem's constraint by exercising the endpoints under test with legitimate credentials throughout the campaign.

Why this answer

The fuzzer must be configured to refresh the JWT periodically or use a script to inject a valid token into the Authorization header for every request.

7
Multi-Selectmedium

Which TWO of the following are primary benefits of integrating SAST into the early stages of the SDLC?

Select 2 answers
A.Reduced developer education.
B.Immediate feedback on secure coding patterns.
C.Early identification of vulnerabilities.
D.Elimination of all false positives.
E.Automation of penetration testing.
AnswersB, C

Running SAST on code as it is written gives developers immediate feedback on secure coding patterns, letting them correct unsafe constructs while the code is still fresh, rather than discovering systemic mistakes during later testing or review.

Why this answer

Option B is correct because integrating SAST into early SDLC stages (e.g., IDE plugins or pre-commit hooks) gives developers immediate feedback on secure coding patterns while code is being written, enabling them to fix issues before they propagate. Option C is correct because SAST analyzes source code statically without executing it, allowing vulnerabilities such as SQL injection, XSS, or hardcoded credentials to be identified early in development when remediation is cheapest and least disruptive. Option A is incorrect because SAST does not reduce developer education; it typically requires security training so developers can interpret findings and apply secure coding practices.

Option D is incorrect because SAST tools inherently produce false positives due to limitations in static analysis, and no tool eliminates all of them. Option E is incorrect because SAST is not penetration testing; pen testing involves dynamic exploitation of running applications, whereas SAST is a static code review technique and does not automate pen testing.

8
Multi-Selecthard

A security analyst is reviewing the results of a dynamic application security testing (DAST) scan against a REST API. The scan report includes several findings, but the analyst must prioritize remediation. Which two factors are most important to consider when triaging DAST findings for an API? (Choose two.)

Select 2 answers
A.The HTTP status code returned by the API endpoint when the vulnerability is triggered.
B.The potential impact on confidentiality, integrity, and availability of the API's data.
C.The number of times the vulnerability appears in the scan report.
D.The scanner's confidence level as reported in the tool's output.
E.The ease of exploiting the vulnerability, including whether authentication is required.
AnswersB, E

The impact on confidentiality, integrity, and availability (CIA) is a core component of risk assessment. A vulnerability that exposes sensitive data or allows modification of critical records has higher priority than one with minimal impact. This factor directly informs the severity and urgency of remediation, making it essential for triaging DAST findings.

Why this answer

Triage of DAST findings should focus on risk, which is a function of impact and likelihood. The potential impact on confidentiality, integrity, and availability determines the consequences of exploitation, while ease of exploitation indicates likelihood. Together, these factors allow the analyst to prioritize vulnerabilities that pose the greatest threat to the API and its data.

Exam trap

The trap here is equating the number of occurrences or scanner confidence with severity, when actual risk depends on impact and exploitability.

9
Multi-Selectmedium

When designing a test case for a secure authentication bypass, which THREE areas should be covered?

Select 3 answers
A.Testing the password recovery/reset workflow.
B.Changing the application's CSS file.
C.Manipulating session cookies.
D.Testing the application's color scheme.
E.Brute forcing account credentials.
AnswersA, C, E

Password reset flows frequently bypass primary authentication, relying on weaker tokens, security questions or email links. Testing this workflow exposes flaws such as predictable reset tokens or user enumeration, covering an authentication bypass vector the question requires.

Why this answer

Option A is correct because the password recovery/reset workflow is a classic authentication bypass vector: testers must check for predictable or leaked reset tokens, token reuse, missing expiry, host-header injection in reset links, and whether the reset endpoint verifies the user's identity before allowing a password change. Option C is correct because manipulating session cookies (e.g., tampering with session IDs, forging JWTs, altering role/identity claims, or replaying stolen cookies) directly tests whether the application properly validates session state and can be tricked into granting authenticated access without valid credentials. Option E is correct because brute forcing account credentials tests authentication strength controls such as account lockout thresholds, rate limiting, CAPTCHA enforcement, and password complexity, all of which are core to assessing whether authentication can be bypassed through weak credential policies.

Options B and D are incorrect because changing the CSS file or the application's color scheme are purely cosmetic presentation changes that have no bearing on authentication logic, session handling, or access control.

10
MCQmedium

A security engineer is configuring SonarQube for a Java project. Which configuration step ensures that the SAST scan accurately identifies injection vulnerabilities by analyzing data flow paths?

A.null
B.Set the analysis mode to 'Incremental' only.
C.Increase the heap memory allocation for the JVM running the scanner.
D.Enable the 'Security Hotspots' and 'Taint Analysis' rule categories in the active Quality Profile.
E.Configure the 'Exclude' patterns to include all library dependencies.
AnswerD

Taint analysis is the primary mechanism for tracking data from sources to sinks in SAST.

Why this answer

The analysis of data flow paths requires the enablement of security hotspots and taint analysis rules in the Quality Profile.

11
MCQmedium

When configuring a DAST scanner to test for Cross-Site Request Forgery (CSRF), what must the scanner be able to do?

A.Attempt to brute force the user's password.
B.Extract and re-inject unique anti-CSRF tokens for each request.
C.null
D.Scan the client-side JavaScript code for vulnerabilities.
E.Bypass the need for authentication.
AnswerB

Without token handling, the application will reject the forged request.

Why this answer

CSRF tokens are unique per session; the scanner must be able to extract the token from the response and include it in the subsequent request.

12
MCQmedium

A developer is using AFL (American Fuzzy Lop) for fuzzing a C++ application. What is the primary requirement for achieving high coverage?

A.Configuring the fuzzer to use only random byte-flipping.
B.null
C.Running the fuzzer on a virtual machine without network access.
D.Instrumenting the code during compilation with afl-clang or afl-gcc.
E.Providing the fuzzer with a binary that was stripped of all symbols.
AnswerD

AFL relies on compile-time instrumentation to insert coverage-tracking probes at basic blocks, feeding feedback to the fuzzer's queue. Without afl-clang or afl-gcc instrumentation, AFL falls back to blind fuzzing with no coverage signal, so high coverage demands instrumented binaries.

Why this answer

AFL uses instrumentation to track branch coverage; without compiling with AFL's compiler wrappers, the feedback loop cannot function.

13
MCQeasy

During a manual penetration test, you discover an insecure direct object reference (IDOR). What is the most appropriate next step in the test case design for this finding?

A.Delete the record to prove the IDOR is exploitable.
B.Attempt to access resources associated with other users.
C.null
D.Report the finding immediately without further testing.
E.Run a full automated DAST scan against the entire application.
AnswerB

An IDOR means the application fails to enforce object-level authorisation, so the test must confirm whether another user's resources are reachable by manipulating the identifier. Attempting access to other users' objects directly validates the vulnerability and satisfies the stem's next-step requirement.

Why this answer

After discovering an IDOR, the appropriate next step in test-case design is to attempt to access resources belonging to other users (B) to confirm the vulnerability is exploitable and to determine its scope. This validates the finding, demonstrates real impact, and provides evidence for the report — all within authorized testing boundaries.

Exam trap

CSSLP often tests the ethics and scope of penetration testing — candidates pick destructive actions (delete) or premature reporting instead of safe, methodical validation of the finding.

How to eliminate wrong answers

Option A is wrong because deleting a record is destructive, exceeds the scope of a typical penetration test, and could cause data loss or operational harm — testers must never destroy data to prove a point. Option C is wrong because a null option provides no answer and is not a valid test step. Option D is wrong because reporting immediately without further testing skips validation and scoping, producing a low-quality finding that may be a false positive and lacks evidence of impact.

Option E is wrong because running a full automated DAST scan is a broad, unrelated activity that does not specifically validate or scope the IDOR finding.

14
Multi-Selectmedium

Which TWO of the following are common challenges when implementing IAST?

Select 2 answers
A.Requirement for full source code access.
B.Inability to find vulnerabilities in unreachable code.
C.Lack of false positives.
D.Difficulty in installing agents on client machines.
E.Performance overhead on the application.
AnswersB, E

IAST instruments runtime execution, so it only observes code paths actually exercised during testing. Unreachable or dormant branches never execute, producing no instrumentation data and therefore no findings. This directly satisfies the stem's constraint: identifying common IAST challenges, since coverage gaps in dead code are an inherent limitation of runtime-based analysis.

Why this answer

Option B is correct because IAST instruments the running application and observes execution paths, so code that is never reached during testing (unreachable or dormant code paths) cannot be exercised and therefore its vulnerabilities go undetected. Option E is correct because IAST agents hook into runtime execution and add instrumentation overhead, which can degrade application performance and throughput, making performance impact a well-known implementation challenge. Option A is not a defining IAST challenge since IAST relies on runtime instrumentation rather than requiring full source code access, unlike SAST.

Option C is incorrect because IAST typically still produces false positives, so a 'lack of false positives' is not a challenge. Option D is incorrect because IAST agents are deployed on the application server or runtime environment, not on client machines.

15
MCQeasy

A software development team is adopting a secure software testing strategy. They want to ensure that security testing is performed continuously and that feedback is provided to developers as early as possible. Which testing approach best aligns with this goal?

A.Perform manual code reviews for security issues before each release.
B.Conduct a penetration test at the end of each development cycle.
C.Run a static analysis scan only when a security champion requests it.
D.Integrate automated security testing into the CI/CD pipeline.
AnswerD

Integrating automated security testing into the CI/CD pipeline allows security checks to run on every code commit, providing immediate feedback to developers. This continuous approach aligns with DevSecOps principles and enables early detection and remediation of vulnerabilities. It is the most effective way to achieve continuous security testing and early feedback.

Why this answer

Integrating automated security testing into the CI/CD pipeline embeds security checks into the development workflow, running on every commit or build. This provides immediate, continuous feedback to developers, allowing them to fix issues early when they are cheapest to remediate. It aligns with the shift-left philosophy and ensures consistent security coverage without relying on manual triggers.

Exam trap

The trap here is thinking that end-of-cycle penetration testing or manual reviews provide early feedback, when they actually occur too late or inconsistently.

16
MCQhard

A security tester is performing interactive application security testing (IAST) on a Java web application. The IAST agent is deployed in the test environment and instruments the application during automated functional tests. The tester notices that the IAST tool reports a high number of false positives for SQL injection. What is the most likely cause of these false positives?

A.The application is using an object-relational mapping (ORM) framework that generates dynamic SQL.
B.The IAST agent is not configured to monitor database queries.
C.The IAST agent is detecting tainted data flows that are actually safe due to input validation or parameterized queries.
D.The automated functional tests do not exercise all application code paths.
AnswerC

IAST tools track data flow from sources to sinks. If the tool does not recognize that input validation or parameterized queries neutralize the taint, it may incorrectly report a vulnerability. This is a common cause of false positives in IAST, especially when the tool's rules are not tailored to the application's frameworks. Proper configuration and rule tuning can reduce these false positives.

Why this answer

IAST tools instrument the application and monitor data flow at runtime. False positives for SQL injection often occur when the tool fails to recognize that input validation or parameterized queries have neutralized the taint. The agent may still track the tainted data to the database sink and flag it as a vulnerability, even though the query is safe.

Tuning the tool's rules and ensuring it understands the application's frameworks can mitigate this issue.

Exam trap

The trap here is assuming that false positives are caused by lack of coverage or monitoring, when they actually stem from the tool misinterpreting safe data flows as vulnerable.

17
MCQeasy

When performing automated security testing, which of the following is considered a 'false positive'?

A.The scanner reports a vulnerability that is not present in the application.
B.The scanner misses an existing vulnerability.
C.The scanner causes the application to crash.
D.The scanner reports a vulnerability that is already fixed.
E.null
AnswerA

A false positive occurs when the scanner flags a vulnerability that does not actually exist in the application, wasting remediation effort. This contrasts with a false negative, where a genuine flaw goes undetected, making the reported-but-absent condition the defining characteristic.

Why this answer

A false positive is a report of a vulnerability that does not actually exist in the target application.

Ready to test yourself?

Try a timed practice session using only Secure Software Testing questions.