Join our Newsletter — 33% off our NHI Course
Home› Guides› D3-CAA Connection Attempt Analysis: Catching Internal Scanning Through…
Guide SOC & Detection Engineering

D3-CAA Connection Attempt Analysis: Catching Internal Scanning Through Failed Connections

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 12 November 2026 11 min read
On this page

An intruder who lands inside a network does not know where anything is, and the failed connections made while finding out are one of the earliest reliable signs of an active compromise. MITRE D3FEND names this detection Connection Attempt Analysis (D3-CAA), with the synonym Network Scan Detection, and defines it as "Analyzing failed connections in a network to detect unauthorized activity." It sits under the Detect tactic as a child of Network Traffic Analysis, and its digital artefact is Intranet Network Traffic, meaning traffic that stays inside the network's boundaries. This card covers the two methods D3FEND describes, the ATT&CK techniques D3FEND relates to D3-CAA, the log fields that carry failed connections, how to verify detection and where it falls short. It is for detection engineers and SOC teams; the wider context is in the Lateral Movement Guide.

Key takeaways

  • Failures are the signal. Legitimate hosts mostly connect to services that exist. Connection attempts that get no reply, a reset or a firewall block, especially to many destinations, point to discovery or worm-like spread.
  • D3FEND describes two methods. Watching for connections to unallocated IP space (a darknet inside your own network), and pattern matching on traffic that looks like sequential probing for hosts.
  • D3FEND relates it to lateral movement. Through the Intranet Network Traffic artefact, D3FEND links D3-CAA to T1021 Remote Services, T1090.001 Internal Proxy, T1199 Trusted Relationship and T1210 Exploitation of Remote Services.
  • The address inventory decides accuracy. D3FEND's considerations say the unallocated space inventory must be kept current, or decommissioned hosts and stale configuration produce false positives.
  • IPv6 is a gap to plan for. D3FEND warns that IPv6 traffic can bypass IPv4-specific firewalls and IDS, so a CAA deployment that only watches IPv4 leaves a path open.

D3-CAA at a glance

AttributeValue
D3FEND IDD3-CAA (d3f:ConnectionAttemptAnalysis)
SynonymNetwork Scan Detection
TacticDetect
Parent techniqueNetwork Traffic Analysis
Digital artefactIntranet Network Traffic (D3FEND relation: analyzes)
D3FEND referenceVectra Networks patent US20150264078A1, "Detecting network reconnaissance by tracking intranet dark-net communications"
Typical data sourcesNetwork sensor connection logs, firewall deny logs, host firewall events, cloud flow logs
EffortLow to start with firewall and flow logs; medium for a maintained internal darknet
Main limitationMisses targeted movement to known hosts, which produces successful connections, not failures

How it works

Method 1: connections to unallocated address space

D3FEND describes capturing network traffic to map the network, identifying both the assets in use and the address space that is unallocated, then using that map to spot connection attempts to the unallocated space. Nothing legitimate should talk to an address where no host lives, so each attempt is suspicious. The Vectra patent D3FEND cites calls these "ghost assets", including addresses that were never assigned and devices that are temporarily disabled. MITRE's analysis of the patent gives an example threshold: a host contacting four ghost assets in less than seven minutes raises an alert. Treat that as an example from the reference, not a recommended setting.

Method 2: sequential probing patterns

The second method passively inspects traffic with protocol analysers, looking at packet volumes, TCP session attributes and connection information between hosts (start time, source and destination, services), then pattern matching for traffic that appears to probe for hosts. In practice the patterns are:

  • Horizontal sweep: one source, one port, many destinations, most with no reply. Typical of searching for a service such as SMB or RDP.
  • Vertical scan: one source, one destination, many ports.
  • Rejected bursts: many connection attempts that end in a reset or a firewall block in a short window.
  • Half-open connections: SYN sent, no handshake completed, repeated across hosts.

Log fields that show a failed connection

SourceField and valueMeaning
Zeek conn.logconn_state S0Connection attempt seen, no reply
Zeek conn.logconn_state REJConnection attempt rejected
Zeek conn.logconn_state RSTOS0Originator sent a SYN then a RST, with no SYN-ACK from the responder
Zeek conn.logconn_state SHOriginator sent a SYN then a FIN, with no SYN-ACK seen
Zeek conn.loghistory field letters (uppercase originator, lowercase responder), for example "S" with no "h"A SYN with no SYN-ACK in reply
Windows Security logEvent 5157, "The Windows Filtering Platform has blocked a connection" (subcategory Audit Filtering Platform Connection)Host firewall block, with Direction, SourceAddress, DestAddress, DestPort, Protocol and the blocking FilterRTID
AWS VPC Flow Logsaction REJECT; tcp-flags 2 (SYN) without 18 (SYN-ACK)Traffic not allowed by security groups or network ACLs; SYN with no handshake
Suricata EVE flow eventsstate and reason fields, with pkts_toclient at zeroFlows that never received a reply

Microsoft's monitoring guidance for event 5157 includes alerting on destination addresses that should never communicate with the host and on unexpected destination ports, which are the host-level form of D3-CAA. Event 5157 volume can be very high, so collect it from servers and sensitive segments first rather than everywhere.

ATT&CK techniques D3FEND relates to D3-CAA

Relationship type: inferred only. D3FEND lists no hand-made ATT&CK mapping for D3-CAA. The rows below are inferred through the shared Intranet Network Traffic artefact: D3-CAA analyzes it, and each technique produces it (D3FEND 1.6.0, checked November 2026). Each ID was checked against ATT&CK v20.

ATT&CK IDTechniqueD3FEND relation (inferred via Intranet Network Traffic)What failed connection analysis can notice
T1021Remote ServicesTechnique produces Intranet Network TrafficA host trying RDP, SMB, SSH or WinRM on many internal systems, most refusing
T1090.001Internal ProxyTechnique produces Intranet Network TrafficA compromised host attempting to relay to internal addresses it has no reason to reach
T1199Trusted RelationshipTechnique produces Intranet Network TrafficA partner or supplier connection probing beyond the systems it is meant to reach
T1210Exploitation of Remote ServicesTechnique produces Intranet Network TrafficSweeps for a vulnerable service ahead of exploitation, the pattern of self-spreading malware

Through the same artefact D3FEND also infers three ATT&CK for ICS relations: T0866 Exploitation of Remote Services, T0884 Connection Proxy and T0886 Remote Services. The D3FEND site also shows further experimental relations, for example T1110.003 Password Spraying and T1557.001 Name Resolution Poisoning and SMB Relay. Discovery techniques such as T1046 Network Service Discovery and T1018 Remote System Discovery are the most common cause of failed connection bursts in practice, even though D3FEND relates them to the parent Network Traffic artefact rather than to D3-CAA directly. Deeper defensive guidance for the four related techniques is in T1021 Remote Services, T1090 Proxy Defensive Guide, MITRE ATT&CK T1199 Trusted Relationship Guide and MITRE ATT&CK T1210 Exploitation of Remote Services.

Where it is implemented

Tools are named as examples of a class, listed alphabetically, not as recommendations.

Implementation classWhat it providesFits when
Cloud flow logs plus queriesREJECT records and SYN-only flows per source across a VPCCloud workloads where you cannot place a sensor
Deception and internal darknetUnused addresses, or decoy hosts on them, that alert on any contact; see the Deception Technology GuideYou want the unallocated-space method with almost no false positives
Host firewall loggingWindows event 5157 or Linux firewall log entries for blocked inbound attempts on each serverFlat networks without internal sensors, or to cover segments sensors cannot see
Network detection and response platformsMaintained reconnaissance and scan detections with asset context; see the NDR GuideLarge estates that want packaged detections
Network sensors (Suricata, Zeek) plus a SIEMConnection logs with connection states, and IDS rules for scan patternsYou run sensors on internal segments and can write aggregation queries

Where identity fits

Service accounts and automation hosts produce some of the most regular connection patterns on a network, so a scheduler or a monitoring server suddenly failing to reach new destinations stands out. The reverse also matters: inventory and vulnerability scanners run under privileged service accounts and generate exactly the pattern D3-CAA looks for. Allowlist those scanners by source host and schedule, and alert when the same pattern comes from any other host or at any other time. Credential-based follow-on activity is covered in D3-ANET Authentication Event Thresholding.

Implementation steps

  1. Collect failed connection data first. Confirm which sources you already have: internal sensor logs with connection state, internal firewall deny logs, cloud flow logs with REJECT records. Add host firewall logging on servers in segments no sensor sees.
  2. Build the address map. Export allocated ranges and live hosts from IPAM, DHCP and the CMDB, and mark unallocated ranges. Schedule the export so the map follows the network, as D3FEND's considerations require.
  3. Write the base analytics. Count distinct destinations with failed attempts per source in a short window (horizontal sweep), distinct ports per source and destination pair (vertical scan) and any contact with unallocated space. Start with conservative example thresholds and tune.
  4. Allowlist the expected scanners. Register vulnerability scanners, discovery tools and monitoring systems by host and schedule. Alert if their schedule or source changes.
  5. Cover IPv6. Confirm that sensors and firewall logs record IPv6 traffic and that the analytics include it. If IPv6 is not used, alert on any internal IPv6 connection attempt.
  6. Pilot and tune. Run alert-only for two to four weeks, then route high-confidence detections (darknet contact, broad sweeps from user workstations) to the on-call queue.
  7. Roll back cleanly. Version each analytic and disable only the noisy one; keep collecting data.

How to verify it works

  • Authorised sweep test: from an approved test host outside the scanner allowlist, run a small, scheduled connection sweep against a test range during a change window and confirm the alert fires with the correct source.
  • Darknet touch test: make a single connection attempt to an unallocated address and confirm it is detected.
  • IPv6 test: repeat one test over IPv6 where the network carries it.
  • Coverage check: list segments with no sensor, flow log or host firewall logging, and track that list to zero.
MetricExample target (NHI Mgmt Group suggestion, not a standard)Why it matters
Internal segments with failed connection visibilityRising to 100%Scans in unmonitored segments are invisible
Age of the unallocated address mapRefreshed at least weeklyStale maps create false positives
Authorised sweep and darknet tests detected100%End-to-end proof
Time from first sweep event to alertMinutes, not hoursDiscovery precedes movement, so speed matters
Alerts from allowlisted scanners outside their scheduleInvestigated every timeScanner hosts and their accounts are attractive targets

Limits, bypasses and failure patterns

  • Quiet, targeted movement: an attacker who reads targets from Active Directory, DNS or configuration files connects only to hosts that exist, so few connections fail. Pair D3-CAA with authentication and remote session analytics such as D3-RTSD Remote Terminal Session Detection.
  • Slow scans: a sweep spread over days stays below short-window thresholds. Add a long-window count of distinct failed destinations per source.
  • Flat networks with no internal visibility: sensors at the internet edge never see host-to-host attempts on the same segment. Host firewall logging or segmentation fixes this; see the Network Segmentation Guide.
  • Allowlists that grow: every new tool that scans is added to the allowlist, until a compromised tool host is ignored. Review the allowlist with owners each quarter.
  • IPv6 left out: D3FEND specifically notes IPv6 traffic bypassing IPv4-specific firewalls and IDS.
  • Worm-speed spread: self-propagating malware exploiting a remote service generates large sweeps, which D3-CAA detects well, but alerting alone does not stop it; response must include rapid isolation.

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev 5SI-4 System MonitoringMonitoring for attacks and indicators of potential attacks, including internal traffic
NIST SP 800-53 Rev 5SC-7 Boundary ProtectionInternal managed interfaces where denied connections are logged
NIST SP 800-53 Rev 5AU-6 Audit Record Review, Analysis, and ReportingReview of firewall and flow records
NIST CSF 2.0DE.CM-01, DE.AE-02Network monitoring and analysis of adverse events
MITRE D3FENDNetwork Traffic Analysis, D3-CAAParent and technique
  • Client-server Payload Profiling (D3-CSPP): profiles successful exchanges, complementing the failure view. See D3-CSPP.
  • Network Traffic Community Deviation (D3-NTCD): flags a host that talks unlike its peers. See D3-NTCD.
  • Relay Pattern Analysis (D3-RPA): catches the internal proxying that follows discovery. See D3-RPA.
  • Network Access Mediation (D3-NAM): the preventive side, reducing what a compromised host can reach. See D3-NAM Network Access Mediation.

Practitioner checklist

  • Inventory every source of failed connection data and the segments each covers.
  • Maintain an automatically refreshed map of allocated and unallocated internal address space.
  • Alert on any contact with unallocated space and on broad sweeps from user workstations.
  • Allowlist authorised scanners by host and schedule, and alert outside that schedule.
  • Include IPv6 in collection and analytics, or alert on unexpected IPv6.
  • Add long-window counts to catch slow scans.
  • Collect Windows event 5157 on servers in segments no sensor sees.
  • Test detection with an authorised sweep and a darknet touch on a schedule.

Standards and references

Related NHI Mgmt Group resources: Lateral Movement Guide · NDR Guide · T1021 Remote Services · MITRE D3FEND Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 12 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.