Software Security and Testing
TASK 2 COMPLETE VULNERABILITY IDENTIFICATION &
REMEDIATION PRACTICE GUIDE
Identify -> Explain Risk -> Remediate -> Test -> Verify -> Document
September 2026 alignment • Original Python/SQLite practice application • General + API security • 17 verified
tests
Important academic-use note
This is a fully worked, independently created practice guide. It is not an official WGU Task 2 prompt, rubric, answer key, or
guaranteed-pass submission. The examples intentionally use an original application so learners can practice the same security
reasoning without reproducing current assessment content. Always follow the live course task instructions and rubric in the
WGU portal.
D385 Task 2 Complete Vulnerability Identification & Remediation Practice Guide | Independent 2026 Study Resource Page 1
,1. September 2026 Course Alignment
Official catalog scope first; public student reports are treated only as an unofficial practice-structure signal.
The WGU September 2026 Institutional Catalog describes D385 as preparing learners to recognize security vulnerabilities in
software, plan interventions, and develop and test those interventions. The course description explicitly includes web
security, permissions and identity security, debugging, log-file analysis, API security, and encryption/cryptography concepts.
[1]
Public 2026 student reports describe the newer D385 V2 as a two-task performance-assessment version. One June 2026
report describes Task 2 as involving separate general-security and API-security vulnerability work, remediation,
screenshots, and tests. Another May 2026 discussion emphasizes API endpoints plus encryption and hashing as useful
preparation. These are student reports, not authoritative WGU requirements. [2][3]
How this guide uses those sources
Official WGU material determines the broad competency areas. Public student reports only inform the practice sequence
(general vulnerability -> API vulnerability -> test -> evidence -> report). No hidden task wording, starter code, rubric text, or
official solutions are reproduced.
Source type What it supports How it is used here
WGU September 2026 catalog Official D385 course scope and Defines the guide's subject boundaries
security/testing themes
Public 2026 student reports Unofficial observations about V2 structure and Informs sequencing only; not treated as rubric
workflow
OWASP / Python documentation Industry-standard defensive concepts and Supports technical explanations and
secure coding patterns remediation choices
1.1 Guide objectives
Recognize distinct general-software and API-security weaknesses in original Python code.
Explain the security impact in clear technical language rather than only naming a vulnerability.
Implement defensible remediations using parameterized SQL, password hashing, authorization checks, allowlists, input
validation, safe path handling, and controlled errors.
Create focused tests that prove a fix works and that the original weakness is no longer reachable.
Build evidence that connects code changes, test output, and written justification.
Practice professional vulnerability-report writing using finding -> risk -> fix -> verification -> evidence.
D385 Task 2 Complete Vulnerability Identification & Remediation Practice Guide | Independent 2026 Study Resource Page 2
,2. The Task 2 Practice Workflow
A repeatable evidence-driven cycle for every vulnerability.
Stage Question to answer Evidence produced
1. Identify Where is the weakness, and what behavior Line-numbered before-code screenshot or
makes it insecure? excerpt
2. Explain risk What could go wrong, what asset is affected, Concise technical risk explanation
and why does the code permit it?
3. Remediate What control removes or reduces the After-code screenshot/excerpt with rationale
weakness?
4. Test What automated test demonstrates the Test case and expected result
intended secure behavior?
5. Verify Did the tests pass and did the insecure path Test output / pytest summary
fail as expected?
6. Document Can a reviewer trace the finding from original Finding write-up with references to
code to evidence of remediation? screenshots/tests
2.1 Why “fixing code” is not enough
A secure-code change becomes convincing only when the learner can explain the failure mode and demonstrate that the
corrected behavior is enforced. For example, replacing a dynamic SQL string with a parameterized query is stronger
evidence when a negative test also proves a classic injection-shaped username no longer authenticates.
2.2 Recommended evidence naming
Example evidence filenames
A1_before_sql_injection.png
A1_after_parameterized_query.png
A1_test_injection_blocked.png
B2_before_object_access.png
B2_after_authorization_check.png
B2_test_cross_user_forbidden.png
D385 Task 2 Complete Vulnerability Identification & Remediation Practice Guide | Independent 2026 Study Resource Page 3
, 3. Original Practice Application: SecureVault
A deliberately insecure Python + SQLite service layer used only for defensive training.
SecureVault is an original, non-WGU practice application. It simulates a small service with user accounts, bearer-style
tokens, profile endpoints, a note feature, and export-file reading. The insecure version intentionally contains several
weaknesses; the remediated version implements layered controls using only Python standard-library components so every
test can run in a minimal environment.
Component Purpose Primary security boundary
Login Authenticates username/password and issues Injection resistance; password verification;
a token token generation
Identity resolver Maps Authorization header to a user Authentication integrity
Profile read/update Reads and updates user data Object-level authorization; field allowlisting
Export reader Reads approved text exports Path confinement; error handling
Note feature Accepts user-supplied text Type/length validation
SQLite database Stores users and tokens Parameterized access; least data exposure
D385 Task 2 Complete Vulnerability Identification & Remediation Practice Guide | Independent 2026 Study Resource Page 4