learntodriveai.dev/Cybersecurity/Network Exploitation + Metasploit + First Threat Models
CybersecurityProject 048 unitsVerified on 17 October 2026

Network Exploitation + Metasploit + First Threat Models

Marie-Claire DesrosiersExecutive Director · Health clinic network · Cap-Haitien, Haiti
Voicemail · from Marie-Claire
I need someone to check if our systems are secure, tell me what's wrong, and give me something professional I can send to the donor. The clinics cannot close — we see 200 patients a day across all six locations.
Chat with Marie-Claire

What you hand back

  • A STRIDE threat model for the clinic network
  • Metasploit and Hydra findings with evidence
  • Grafana security dashboard on designed log labels
  • Sigma detection rules written from scratch
  • Prioritized fixes with environmental CVSS reasoning
  • A donor-ready assessment report

8 units

  1. Unit 1: The Voicemail and the Environment

    Start the clinic's EHR and monitoring environment, then listen to Marie-Claire's voicemail and send her questions.

    Open unit 1
  2. Unit 2: Passive Intelligence and the Threat Model

    Gather passive intelligence from DNS records, a zone transfer and client statements, then fill in the STRIDE threat model.

    Open unit 2
  3. Unit 3: Active Reconnaissance and Network Service Discovery

    Scan the network services the threat model points to, and compare the results with the passive findings.

    Open unit 3
  4. Unit 4: Network Exploitation with Metasploit

    Exploit a network service with Metasploit after checking the payload architecture, then test SSH credentials with Hydra.

    Open unit 4
  5. Unit 5: SIEM Configuration and Label Design

    Redesign the Alloy log labels and add new log sources so each service can be queried separately.

    Open unit 5
  6. Unit 6: Detection Rules from Scratch

    Find the attacks in the logs, write Sigma rules from scratch, and tune them against false positives.

    Open unit 6
  7. Unit 7: Remediation and Fix Selection

    Rank the findings by environmental risk instead of CVSS score alone, then choose and verify the fixes.

    Open unit 7
  8. Unit 8: The Report and the Donor

    Compile the assessment report and write an executive summary Marie-Claire can send to the donor.

    Open unit 8
Read the full brief

You're assessing the electronic health record system and network infrastructure for a clinic network across northern Haiti — six sites connected by VPN, with patient data that includes HIV diagnoses and pregnancy status.

The discipline skills: network service exploitation using Metasploit (modules, payloads, handlers), building a STRIDE threat model from a template using your own reconnaissance findings, including a DNS zone transfer against the clinic's own lab DNS server, writing Sigma rules from scratch without starter templates, designing Alloy label configurations, and creating Grafana security dashboards.

The AI-direction lesson: assessment phases connect — passive intelligence feeds the threat model, which guides exploitation, which produces the log patterns you write detection rules for, which inform what to fix. AI treats each phase independently. It will generate a threat model without using your reconnaissance findings. It will write detection rules without referencing the actual attacks you ran. It will prioritize remediation in discovery order instead of risk order. The skill is sequencing the work deliberately and making sure each phase's output feeds the next — because when you skip a phase or do it carelessly, the downstream AI output is built on the wrong foundation.

Your Role

You are assessing the clinic network's EHR system and the infrastructure it runs on. Network services — SSH, database ports, and other exposed services — are now assessment targets alongside the web application. The VPN infrastructure is out of scope for direct testing, but anything you learn about its configuration from passive reconnaissance is in scope to report.

Marie-Claire's voicemail gives the outline, but leaves gaps. You will need to ask her questions to understand the VPN configuration, the remote clinic connectivity, and who has access to what.

What's New

Last time you performed passive OSINT with crt.sh, Shodan, and Google dorks, ran multi-protocol active scans, exploited web vulnerabilities, wrote Sigma rules from a starter template, cross-checked detection rules with a second AI, and hardened Docker containers. You know the purple team pipeline. You know that container infrastructure is part of the attack surface.

Three new domains enter.

Metasploit. Network service exploitation uses a structured framework — modules, payloads, and handlers — not just individual tools. AI assembles Metasploit commands fluently but can mismatch payload architectures to the target. The exploit runs, the session never establishes, and the syntax looks fine. You verify the match.

Threat modeling. You receive a STRIDE template and fill it in yourself for Marie-Claire's clinic network. Reconnaissance findings (DNS records and a zone transfer from the clinic's lab DNS server) feed directly into the threat model — the technology stack determines which threats are relevant. A threat model built without reconnaissance is a generic checklist.

Detection rules from scratch. The starter template is gone. You provide the logsource specification, field mapping, and detection logic yourself. Each of these is a design decision, not a formatting choice. The false positive problem becomes direct experience: a rule that fires on every legitimate request is worse than no rule at all.

The hard part is that these layers connect. Passive intelligence feeds the threat model, which guides exploitation, which produces the log patterns you write detection rules for, which inform what to fix. Skip a phase or do it carelessly, and the downstream phases suffer.

Tools

  • Metasploit Framework — exploitation framework with modules, payloads, and handlers. New.
  • Hydra — credential brute-forcing. New.
  • Nmap — multi-protocol scanning. Continuing.
  • Wireshark/tshark — packet-level analysis. Continuing.
  • Grafana — log viewing and dashboard creation. Extended: creating security dashboards is new.
  • Alloy — log collection pipeline configuration. Extended: label design and new log sources are new.
  • pySigma — Sigma rule to LogQL conversion. Continuing.
  • Docker — running the EHR application and monitoring stack.
  • Claude Code — AI agent directing all tool execution.
  • Git/GitHub — version control and project submission.

Materials

  • Scope document — assessment boundaries covering network services, VPN infrastructure, and the web application.
  • TTP selection guide — testing categories for network and web application assessment.
  • Threat model template — STRIDE-based template for you to fill in for Marie-Claire's clinic network.
  • Report template — assessment report structure with CVSS environmental context and fix selection rationale sections.
  • Docker environment — the clinic's EHR system, database, DNS server, Grafana, Loki, and Alloy running in containers.
  • CLAUDE.md — project governance file with tickets and verification targets.
Materials · 23 files
Start Project 4

You work at a computer with a terminal. Signed in, your place is saved.