ranilojohn/claude-blue/defensive-defense-in-depth

Claude Code and agent skill by ranilojohn/claude-blue

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Defense in depth and layered security model: layers (governance and people, physical, perimeter, network, endpoint/host, application, data, identity, monitoring and response, recovery), Swiss cheese model, control diversity and independence, prevent-detect-respond-recover per layer, mapping layers to NIST CSF 2.0 functions and CIS Controls v8.1, coverage matrices per attack path, single points of failure, and building a layered control stack for SMB, enterprise, cloud, and OT. Use when designin…

Install

npx vskill@latest install ranilojohn/claude-blue/defensive-defense-in-depth

SKILL.md

The same SKILL.md was published earlier as ranilojohn/claude-blue/defensive-defense-in-depth.

Defense in Depth

No single control is perfect, so stack independent controls so that an attacker must defeat several — and each attempt creates a detection opportunity. Independence matters: two controls sharing one failure mode (same credential, same vendor bug, same admin) are one layer.

Quick Workflow

  1. List crown-jewel assets and the attack paths to them
  2. For each path, place controls per layer (§1) and per function (prevent/detect/respond/recover)
  3. Mark single points of failure and shared failure modes
  4. Prioritize gaps on the most likely paths (threat-informed — defensive-threat-informed-defense)

1. Layers

LayerPreventDetectRespond / Recover
Governance & peoplePolicy, awareness, background checksReporting culture (phish button)IR plan, tabletop
PhysicalBadges, locks, mantrapsCCTV, badge logsGuard response
Perimeter / edgeNGFW, WAF, email gateway, DDoS protection, patched edge devicesIPS, edge logs, EASMBlock/geofence, emergency patch
NetworkSegmentation, NAC, ACLs, egress filtering, DNS filteringNDR, Zeek, NetFlow, IDSQuarantine VLAN, null route
IdentityMFA (phishing-resistant), CA policies, PAM, tieringITDR, sign-in risk, AD monitoringSession revoke, credential reset
Endpoint / hostHardening, app control, ASR, patching, least privilegeEDR, Sysmon, FIMIsolation, reimage
ApplicationSecure SDLC, input validation, authz checks, RASPApp logs, WAF alertsFeature flags, rollback
DataClassification, encryption, DLP, access reviewsDLP alerts, access analyticsKey revocation, legal/notification
Cloud control planeSCPs/policies, guardrails, CSPMCloudTrail/Activity, GuardDuty/DefenderRevoke keys, quarantine accounts
Monitoring & responseLogging standardsSIEM correlation, huntingSOAR, IR
RecoveryImmutable/offline backupsBackup integrity checksTested restores, DR

2. Swiss Cheese Model

Each layer has holes (vulnerabilities, misconfigurations, human error). A breach happens when holes align. Goals:

  • Fewer holes per layer (hardening, patching)
  • Non-aligned holes — diverse, independent controls (e.g., email gateway + EDR + app control from different mechanisms)
  • Detection between layers — every layer crossing is a chance to alert

3. Coverage Matrix (per attack path)

Example path: phishing → macro → credential theft → lateral movement → ransomware.

StepPreventDetectGap?
Phish deliveredGateway, DMARCUser report, gateway alert—
Macro executesMOTW macro block, ASREDR Office child ruleASR in audit only → gap
Credential theftCredential Guard, LSA PPLSysmon 10 LSASS rule—
Lateral movementLocal admin restriction (LAPS), firewall host rules4624 workstation↔workstationHost firewall off → gap
EncryptionApp control, backups immutableRecovery-inhibition rule → isolate—

Rule: every step needs ≥ 1 preventive and ≥ 1 detective control; crown jewels need ≥ 2 independent detectives.


4. Mapping to Frameworks

NIST CSF 2.0 functionDefense-in-depth role
Govern (GV)Policy, risk strategy, roles, supply chain
Identify (ID)Asset inventory, risk assessment
Protect (PR)Preventive layers
Detect (DE)Monitoring layers
Respond (RS)IR
Recover (RC)Backups, DR, lessons learned

CIS Controls v8.1 IG1 (56 safeguards) is the minimum layered baseline for small organizations; IG2/IG3 add depth.


5. Reference Stacks

EnvironmentMinimum layered stack
SMBPatched edge or no edge (ZTNA), M365/Google with phishing-resistant MFA + CA, Defender/EDR with ASR, DNS filtering, LAPS, immutable backups, MDR service
Enterprise+ NGFW segmentation, NAC, PAM + AD tiering, SIEM/SOAR, NDR, app control on servers, DLP, vuln management SLAs, purple teaming
Cloud-nativeOrg guardrails (SCP/Azure Policy/Org Policy), SSO + no long-lived keys, CSPM/CNAPP, workload identity, runtime security (Falco/Defender), centralized immutable logs, backups in separate account
OTPurdue/IEC 62443 zones & conduits, unidirectional gateways where justified, passive OT NDR, jump hosts with MFA, offline backups of PLC logic, compensating controls for unpatchable assets

6. Anti-Patterns

  • "Crunchy shell, soft center" — strong perimeter, flat internal network
  • All layers administered by one domain admin account (shared failure mode)
  • Detection layers that alert to an inbox nobody reads
  • Backups reachable with the same credentials as production
  • Many tools, no integration — layers that don't share context

Engagement Cheatsheet

text
crown jewels → attack paths → per step: prevent + detect (+ respond/recover) across layers → find SPOFs & shared failure modes
→ prioritize gaps on likely paths → map to CSF 2.0 / CIS IG → re-test with purple team

Key References

  • NSA "Defense in Depth" (2010s); NIST CSF 2.0 (Feb 2024); CIS Controls v8.1 (2024)
  • James Reason, Swiss cheese model
  • Related: defensive-security-fundamentals, defensive-zero-trust-architecture, defensive-security-architecture, defensive-frameworks

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ranilojohn/claude-blue/defensive-defense-in-depth/badge)](https://verified-skill.com/skills/ranilojohn/claude-blue/defensive-defense-in-depth)

Something wrong with this skill or its page? Tell us.