Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
cve-2023-23397-detection-lab — Detection and mitigation research lab for CVE-2023-23397 using network and endpoint security telemetry. | Kitploit
도구/GitHubGitHub/zhoucc-cpu/cve-2023-23397-detection-lab
Vulnerability AnalysisNetwork SecurityThreat IntelligenceLearning & EducationIncident Response
GitHubzhoucc-cpu/cve-2023-23397-detection-lab

cve-2023-23397-detection-lab

Detection and mitigation research lab for CVE-2023-23397 using network and endpoint security telemetry.

저장소 보기

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
76일 전아직 검토되지 않음
공유
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

CVE-2023-23397 Detection & Mitigation Research Lab

Overview

This project is a defensive cybersecurity research lab focused on the network behavior associated with CVE-2023-23397.

The project studies suspicious outbound SMB and NTLM authentication from a Windows endpoint and demonstrates a complete defensive workflow:

Baseline
-> Network Observation
-> NTLM Detection
-> Alert Generation
-> Gateway Mitigation
-> Host Mitigation
-> Validation

The laboratory is fully isolated and uses only systems owned and controlled for authorized security testing.


Research Framing

This repository is organized as a reproducible defensive security study rather than an exploit demonstration. Its central research question is:

Can SMB/NTLM protocol semantics and network trust boundaries detect anomalous outbound authentication behavior associated with CVE-2023-23397, and how do host-side and gateway-side mitigations differ in blocking behavior and sensor visibility?

The study evaluates four questions:

  • whether a parsed NTLM Authenticate event distinguishes authentication from a TCP/445-only connection;
  • whether victim and untrusted subnet constraints exclude out-of-scope authentication;
  • how Windows host filtering and Ubuntu gateway filtering change network visibility;
  • whether packet, protocol, notice, firewall and rollback evidence can be reliably correlated.

The project validates forced outbound SMB/NTLM behavior associated with CVE-2023-23397 and the corresponding detection and mitigation controls. It does not prove that Outlook processed a malicious MAPI message or that CVE-2023-23397 was exploited.

Research Documents

DocumentPurpose
report/project-report.mdMain research report with questions, design, results, discussion, and limitations
docs/literature-review.mdReview of authoritative work on the vulnerability, Forced Authentication, NTLM, Zeek and firewall controls
docs/research-methodology.mdTopology, variables, controls, procedures, evidence sources and validity boundaries
docs/live-validation-2026-09-11.mdExact live validation observations and final lab state
evidence/validation-20260911/PCAPs, logs, integrity manifest and machine-readable verification summary
scripts/verify_validation_evidence.pyRead-only automated evidence consistency checks

Project Goals

The primary goals of this project are to:

  • Build an isolated multi-network cybersecurity laboratory.
  • Observe normal SMB and NTLM authentication behavior.
  • Capture and preserve network evidence.
  • Develop a custom Zeek detection for suspicious outbound NTLM authentication.
  • Validate the detection using controlled traffic.
  • Test gateway-based SMB mitigation.
  • Test Windows host-based SMB mitigation.
  • Compare pre-mitigation and post-mitigation behavior.
  • Map the observed security behavior to MITRE ATT&CK.
  • Produce reproducible evidence suitable for defensive security research.

Lab Architecture

The laboratory contains three virtual machines.

SystemRoleAddress
Windows-VictimProtected Windows endpoint10.10.20.10/24
Ubuntu-SensorRouter and Zeek security sensor10.10.20.1/24, 10.10.30.1/24
Kali-AdversaryControlled SMB destination10.10.30.10/24

Logical traffic path:

root@kitploit:~
Windows-Victim
10.10.20.10
      |
      | VICTIM_NET
      |
Ubuntu-Sensor
10.10.20.1 / 10.10.30.1
      |
      | ATTACK_NET
      |
Kali-Adversary
10.10.30.10

The victim and adversary networks are isolated from each other.

Traffic between them must traverse Ubuntu-Sensor, allowing the sensor to observe and control the communication.

A separate VMware management network is used for administrative SSH access to Ubuntu-Sensor.

More information:

lab/network-plan.md


Threat Scenario

CVE-2023-23397 is associated with forced outbound authentication behavior involving Microsoft Outlook.

The security-relevant behavior is a Windows system attempting to authenticate to an attacker-controlled network resource.

This laboratory focuses on the observable network behavior:

root@kitploit:~
Windows endpoint
-> outbound TCP/445
-> SMB negotiation
-> NTLM authentication
-> network detection

The laboratory does not claim that every generated SMB event represents exploitation of the Outlook vulnerability.

Instead, controlled SMB and NTLM traffic is used to safely develop and validate defensive detection logic.

Detailed analysis:

docs/attack-flow.md


MITRE ATT&CK Mapping

Primary technique:

T1187 - Forced Authentication

Primary tactic:

Credential Access

The project focuses on detecting and preventing suspicious outbound authentication from a protected workstation toward an untrusted destination.


Baseline Traffic Analysis

The first phase established normal routed communication between the Windows victim and the controlled adversary.

Baseline packet captures and Zeek connection logs were collected before detection logic was introduced.

This provided a reference point for later comparison.

Analysis:

docs/baseline-traffic-analysis.md


SMB and NTLM Baseline

A controlled SMB server was hosted on Kali-Adversary.

Windows-Victim successfully accessed:

root@kitploit:~
\\10.10.30.10\SHARE

Zeek successfully parsed:

  • TCP/445 communication
  • SMB
  • NTLM
  • SMB share mappings
  • SMB file activity
  • successful NTLM authentication

The baseline demonstrated that the sensor could observe the complete authentication path before custom detection logic was introduced.

Analysis:

docs/smb-baseline-analysis.md


Custom Zeek Detection

A custom Zeek detector was developed:

detections/zeek/cve_2023_23397_ntlm.zeek

The detector generates:

root@kitploit:~
CVE23397::Suspicious_Outbound_NTLM

The rule evaluates four main conditions:

  1. The source belongs to the protected victim network.
  2. The destination belongs to the controlled untrusted network.
  3. The destination port is TCP/445.
  4. Zeek observes an NTLM Authenticate event.

This provides more context than alerting on TCP/445 alone.

Detection logic:

root@kitploit:~
Victim network
+
Untrusted destination
+
TCP/445
+
NTLM Authenticate
=
Suspicious outbound NTLM notice

A five-minute suppression interval is used to reduce duplicate notices for repeated authentication toward the same destination.


Detection Validation

The custom detector was successfully validated using controlled SMB and NTLM traffic.

The validated event demonstrated correlation between:

  • TCP connection telemetry
  • SMB communication
  • NTLM authentication
  • Zeek connection UID
  • custom Notice Framework alert

A validated alert included:

root@kitploit:~
CVE23397::Suspicious_Outbound_NTLM

The detection analysis and integrity-verified evidence are documented in:

docs/ntlm-detection-analysis.md


Gateway Mitigation

The first mitigation was applied on Ubuntu-Sensor.

The gateway blocked forwarded TCP/445 traffic from:

root@kitploit:~
10.10.20.10

to:

root@kitploit:~
10.10.30.10:445

After the rule was enabled:

root@kitploit:~
Windows SYN
-> Ubuntu Sensor
-> DROP

Observed result:

  • Windows TCP/445 connectivity failed.
  • The sensor observed SYN attempts and retransmissions.
  • The firewall DROP counter increased.
  • No complete TCP handshake occurred.
  • No SMB session was established.
  • No new NTLM authentication occurred.
  • No new custom NTLM alert was generated.

Validation:

docs/mitigation-validation.md


Windows Host Mitigation

A second mitigation was tested using Windows Defender Firewall.

The endpoint blocked outbound:

root@kitploit:~
TCP/445 -> 10.10.30.10

Observed result:

  • TCP/445 connectivity failed.
  • SMB access failed.
  • Ubuntu-Sensor captured zero matching TCP/445 frames.
  • No new NTLM authentication reached the sensor.
  • No new custom Zeek notice was generated.

This demonstrated an important difference between the two defensive control points.

Gateway filtering

root@kitploit:~
Windows
-> SYN
-> Network Sensor
-> DROP

The network sensor retains visibility into the blocked attempt.

Host filtering

root@kitploit:~
Windows
-> Host Firewall DROP

The packet never reaches the external network sensor.

Validation:

docs/windows-host-mitigation-validation.md


Detection and Mitigation Comparison

StateTCP/445Sensor VisibilitySMBNTLMZeek Alert
No mitigationAllowedFullYesYesYes
Gateway blockBlocked at gatewaySYN attempts visibleNoNoNo
Windows host blockBlocked at endpointNo matching packetsNoNoNo

This demonstrates both detective and preventive controls.


Defense in Depth

The laboratory demonstrates that detection and prevention should be used together.

The defensive model includes:

root@kitploit:~
Endpoint filtering
        +
Network egress filtering
        +
Zeek network monitoring
        +
NTLM authentication monitoring
        +
Patch management

Gateway controls provide centralized enforcement and network visibility.

Host controls stop unwanted communication earlier.

Zeek provides visibility when suspicious authentication reaches the monitored network path.


Evidence

The repository preserves evidence collected during the experiments.

Packet captures

Stored under:

evidence/pcap/

Examples include:

  • baseline traffic
  • SMB baseline traffic
  • NTLM detection validation
  • gateway post-mitigation traffic
  • Windows host-block validation

Zeek and mitigation logs

Stored under:

evidence/logs/

Evidence includes:

  • Zeek connection logs
  • SMB logs
  • NTLM logs
  • custom notice logs
  • firewall validation output
  • mitigation validation results

SHA-256 hashes are recorded in the corresponding analysis documents to support evidence integrity.


Repository Structure

root@kitploit:~
cve-2023-23397-detection-lab/
|
|-- README.md
|-- LICENSE
|
|-- lab/
|   `-- network-plan.md
|
|-- detections/
|   `-- zeek/
|       `-- cve_2023_23397_ntlm.zeek
|
|-- docs/
|   |-- attack-flow.md
|   |-- threat-model.md
|   |-- literature-review.md
|   |-- research-methodology.md
|   |-- baseline-traffic-analysis.md
|   |-- smb-baseline-analysis.md
|   |-- ntlm-detection-analysis.md
|   |-- mitigation-analysis.md
|   |-- mitigation-validation.md
|   |-- windows-host-mitigation-validation.md
|   `-- live-validation-2026-09-11.md
|
|-- evidence/
    |-- pcap/
    |-- logs/
    |-- screenshots/
    `-- validation-20260911/
|
|-- report/
|   `-- project-report.md
|
`-- scripts/
    `-- verify_validation_evidence.py

Validated Project Workflow

The current project has successfully completed:

root@kitploit:~
Lab Architecture
        |
        v
Routed Network Validation
        |
        v
Baseline PCAP
        |
        v
SMB / NTLM Baseline
        |
        v
Custom Zeek Detection
        |
        v
Detection Alert Validation
        |
        v
Gateway TCP/445 Mitigation
        |
        v
Gateway Post-Mitigation Validation
        |
        v
Windows Host TCP/445 Mitigation
        |
        v
Host Post-Mitigation Validation

Current Tooling

Validated tools used in the current implementation include:

  • VMware Workstation
  • Windows 10
  • Ubuntu Linux
  • Kali Linux
  • Zeek
  • ZeekControl
  • tcpdump
  • Impacket SMB Server
  • Linux iptables
  • Windows Defender Firewall
  • Git
  • GitHub
  • PowerShell

Future Work

Potential future improvements include:

  • Sysmon endpoint telemetry
  • Sigma detection rules
  • Suricata network detection
  • stronger endpoint-to-network event correlation
  • automated detection testing
  • false-positive evaluation
  • additional detection tuning
  • screenshot-based evidence documentation

These items are future work and are not presented as completed capabilities.


Limitations

The laboratory primarily validates network-observable SMB and NTLM behavior.

The current controlled tests demonstrate the authentication behavior relevant to CVE-2023-23397 but do not claim to reproduce every component of real-world Outlook exploitation.

The custom rule is designed for the defined laboratory trust boundaries and would require tuning before use in a production environment.

Latest Live Validation

The live three-VM environment was revalidated on 2026-09-11. The run confirmed the routed packet path, controlled SMB/NTLM telemetry, detector loading, correlated custom notices, negative cases, gateway and host blocking, and rollback recovery.

Key evidence is consistent across the repository:

  • The baseline contains 91 IPv4/TCP445 packets on each Ubuntu interface; all 91 packets match across the routed path with a one-hop TTL change.
  • The gateway block shows 5 TCP/445 packets on ens33, 0 on ens34, and an iptables counter of 5 packets / 260 bytes.
  • The host block shows 0 TCP/445 packets on both interfaces, while each interface captured 6 ICMP control packets.
  • Baseline connection, NTLM and notice records correlate through UID CCpuF7S8CCLEmpKsd.
  • Two live NTLM authentications occurred 234.473 seconds apart and produced one notice under the five-minute suppression interval.

The validated conclusion is limited to forced outbound SMB/NTLM behavior associated with CVE-2023-23397 and the corresponding detection and mitigation controls. The project does not prove that Outlook processed a malicious MAPI message or that CVE-2023-23397 was exploited.

See docs/live-validation-2026-09-11.md and evidence/validation-20260911/.


Ethical and Legal Notice

All testing documented in this repository is conducted within an isolated and controlled laboratory environment using systems owned or explicitly authorized for testing.

The project is intended exclusively for:

  • cybersecurity education
  • defensive security research
  • network monitoring
  • detection engineering
  • mitigation analysis

No production systems or unauthorized external systems are targeted.

도구 다운로드