Security Control Selection and Gap Analysis
Select preventive, detective, and corrective controls based on risk and perform gap analysis.
Security Control Selection and Gap Analysis is a free Cyber Security Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Control Types: Preventive, Detective, Corrective
Preventive controls block threats before they succeed (firewalls, access control, encryption). Detective controls identify threats that have occurred (IDS, logging, audits). Corrective controls reduce impact after an incident (backups, IR plans, patches). Layered defense requires all three types.
Control Categories
Controls span multiple dimensions: Physical (locks, cameras), Technical (firewalls, MFA), Administrative (policies, training). For a given risk, select complementary controls across categories — a technical control supported by an administrative policy and physical security creates genuine defense-in-depth.
Risk-Based Control Selection
Select controls proportionate to risk. Calculate residual risk: inherent risk minus control effectiveness. High-likelihood, high-impact risks justify expensive controls. Low-likelihood, low-impact risks may be accepted without controls. Document the risk treatment rationale.
NIST 800-53 Control Catalog
NIST 800-53 Rev 5 contains over 1,000 controls organized into 20 families (AC, AU, CA, CM, etc.). Federal agencies and contractors must implement specified baselines (Low/Moderate/High). The catalog is the most comprehensive technical control reference available.
Performing a Gap Analysis
Gap analysis compares your current security state to a target framework baseline. Steps: (1) Document current controls implemented, (2) Map to framework controls, (3) Identify controls not implemented or partially implemented, (4) Prioritize gaps by risk, (5) Create remediation roadmap.
Compensating Controls
When an ideal control is not feasible (cost, operational constraints, legacy systems), implement compensating controls that achieve equivalent risk reduction through alternative means. Document the compensating control rationale for auditors and risk acceptance.
Control Effectiveness Assessment
Controls must be tested — not assumed to work. Test preventive controls by attempting the blocked action. Test detective controls by simulating the event and verifying detection. Test corrective controls by running tabletop exercises and recovery drills.
CIS Controls v8
The CIS Critical Security Controls (18 controls) are prioritized, practical safeguards. Implementation Groups (IG1/IG2/IG3) scale from basic hygiene for small organizations to sophisticated controls for enterprises. IG1 provides the highest-impact basic protections for minimum viable security.
Security Maturity Roadmaps
Gap analysis outputs become a maturity roadmap: prioritize by risk reduction per dollar, group controls into quarterly sprints, track progress against maturity milestones, report progress to executive stakeholders in business risk language rather than technical jargon.
Vendor and Third-Party Controls
Third-party risk management requires assessing controls in your supply chain. Security questionnaires, SOC 2 reports, ISO 27001 certificates, and penetration test summaries provide evidence of vendor control effectiveness. High-risk vendors may require on-site assessments.
Continuous Control Monitoring
Controls degrade over time — patch levels slip, configurations drift, access rights accumulate. Continuous control monitoring via automated compliance tools (AWS Config, Azure Policy, SCC) maintains a real-time control state rather than a point-in-time snapshot from annual audits.
Knowledge Check
What is the difference between preventive and detective security controls?
Summary
Control selection maps identified risks to appropriate preventive, detective, and corrective controls across physical, technical, and administrative categories. Gap analysis identifies missing controls against framework baselines, and a risk-prioritized roadmap drives systematic improvement toward measurable security maturity.
Frequently asked questions
Is the “Security Control Selection and Gap Analysis” lesson free?
Yes — the full text of “Security Control Selection and Gap Analysis” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.
What will I learn in “Security Control Selection and Gap Analysis”?
Select preventive, detective, and corrective controls based on risk and perform gap analysis. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Cyber Security Academy?
No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Security Control Selection and Gap Analysis” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Cyber Security Academy lesson?
Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Threat Modeling with STRIDE and PASTA
- Risk Frameworks: NIST CSF and ISO 27001
- Security Control Selection and Gap Analysis
- Security Audit and Compliance Reviews