---
title: "CAPEC-301: TCP Connect Scan"
url: https://radicalnotion.ai/capec/capec-301
type: capec
description: "An adversary uses full TCP connection attempts to determine if a port is open on the target system. The scanning process involves completing a 'three-way handshake' with a remote port, and reports the port as closed if the full handshake cannot be established. An advantage of TCP connect scanning is that it works against any TCP/IP stack."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-301: TCP Connect Scan

- **Abstraction:** Detailed
- **Status:** Stable
- **Typical severity:** Low
- **CAPEC catalog version:** 3.9

## Description

An adversary uses full TCP connection attempts to determine if a port is open on the target system. The scanning process involves completing a 'three-way handshake' with a remote port, and reports the port as closed if the full handshake cannot be established. An advantage of TCP connect scanning is that it works against any TCP/IP stack.

RFC 793 defines how TCP connections are established and torn down. TCP connect scanning commonly involves establishing a full connection, and then subsequently tearing it down, and therefore involves sending a significant number of packets to each port that is scanned. Compared to other types of scans, a TCP Connect scan is slow and methodical. This type of scanning causes considerable noise in system logs and can be spotted by IDS/IPS systems. TCP Connect scanning can detect when a port is open by completing the three-way handshake, but it cannot distinguish a port that is unfiltered with no service running on it from a port that is filtered by a firewall but contains an active service. Due to the significant volume of packets exchanged per port, TCP connect scanning can become very time consuming (performing a full TCP connect scan against a host can take multiple days). Generally, it is not used as a method for performing a comprehensive port scan, but is reserved for checking a short list of common ports.

## Execution flow

### Step 1: Experiment

An adversary attempts to initialize a TCP connection with with the target port.

### Step 2: Experiment

An adversary uses the result of their TCP connection to determine the state of the target port. A successful connection indicates a port is open with a service listening on it while a failed connection indicates the port is not open.

## Prerequisites

- The adversary requires logical access to the target network. The TCP connect Scan requires the ability to connect to an available port and complete a 'three-way-handshake' This scanning technique does not require any special privileges in order to perform. This type of scan works against all TCP/IP stack implementations.

## Resources required

- The adversary can leverage a network mapper or scanner, or perform this attack via routine socket programming in a scripting language. Packet injection tools are also useful for this purpose. Depending upon the method used it may be necessary to sniff the network to see the response.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Data | - |

## Mitigations

- Employ a robust network defense posture that includes an IDS/IPS system.

## Related weaknesses (CWE)

- [CWE-200](https://radicalnotion.ai/cwe/cwe-200): Exposure of Sensitive Information to an Unauthorized Actor

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-300](https://radicalnotion.ai/capec/capec-300) | Port Scanning |

## Frequently asked questions

### What is CAPEC-301?

An adversary uses full TCP connection attempts to determine if a port is open on the target system. The scanning process involves completing a 'three-way handshake' with a remote port, and reports the port as closed if the full handshake cannot be established. An advantage of TCP connect scanning is that it works against any TCP/IP stack.

### How does a TCP Connect Scan attack work?

It typically unfolds over 2 phases. It begins with: An adversary attempts to initialize a TCP connection with with the target port.

### How do you prevent CAPEC-301?

Employ a robust network defense posture that includes an IDS/IPS system.

### What weaknesses does CAPEC-301 target?

CAPEC-301 exploits one CWE weakness: CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor).

### How severe is CAPEC-301?

MITRE rates CAPEC-301 as Low severity.

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/301.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/capec/capec-301). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
