Program 02 · Module 08 of 9
Module 08: Security Review and Hardening
Review a legacy system for common weaknesses and harden it in small steps. You check inputs, authentication, secrets and dependencies, and you review AI-written code with particular care.
- Suggested study time
- 6 hours
- Prerequisites
- Modules 1 to 5.; Familiarity with the OWASP Top 10 categories is helpful.
Sign in to track your progress. Every lesson stays free to read without an account.
Learning outcomes
By the end of this module you will be able to:
- Perform a focused review of input handling, authorisation, secrets and dependencies.
- Rank findings by impact and likelihood, with evidence for each.
- Fix findings in small changes with tests that prove the fix.
- Review assistant-generated code for security faults and risks specific to AI use.
Lessons
- 8.1
A Focused Security Review
Review the paths that matter first: entry points, authorisation and data access.
45 min - 8.2
Secrets and Configuration Hygiene
Find and remove credentials from code and history, and move them to configuration.
40 min - 8.3
Input Validation and Injection
Find unvalidated input and fix it at the boundary.
45 min - 8.4
Dependency Vulnerabilities
Assess advisories against how your code uses the library, and prioritise.
40 min - 8.5
Reviewing AI-Written Code for Security
Check generated code for missing checks, unsafe defaults and invented APIs.
40 min
About 3 h 30 min of lessons in total.
Practical assignment
Review and harden a service
Review one service or module for weaknesses, report what you found with evidence, and fix the highest-priority issue.
Deliverables
- A findings list with evidence, impact and priority.
- A fix for at least one finding, with a test.
- A secrets check with a record of how you searched.
- A note on what you did not review.
Validation checklist
Use this to check your assignment before you move on.
Knowledge check
Show the answer and explanation
Answer: B. The credential is in history and should be treated as exposed, so it must be replaced. Deleting it in a commit leaves the old value valid and visible.
Show the answer and explanation
Answer: A. Generated code looks complete while missing authorisation or validation. It is not always insecure, so the second option overstates.
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.