---
title: "CAPEC-298: UDP Ping"
url: https://radicalnotion.ai/capec/capec-298
type: capec
description: "An adversary sends a UDP datagram to the remote host to determine if the host is alive. If a UDP datagram is sent to an open UDP port there is very often no response, so a typical strategy for using a UDP ping is to send the datagram to a random high port on the target. The goal is to solicit an 'ICMP port unreachable' message from the target, indicating that the host is alive. UDP pings are useful because some firewalls are not configured to block UDP datagrams sent to strange or typically unused ports, like ports in the 65K range. Additionally, while some firewalls may filter incoming ICMP, weaknesses in firewall rule-sets may allow certain types of ICMP (host unreachable, port unreachable) which are useful for UDP ping attempts."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-298: UDP Ping

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

## Description

An adversary sends a UDP datagram to the remote host to determine if the host is alive. If a UDP datagram is sent to an open UDP port there is very often no response, so a typical strategy for using a UDP ping is to send the datagram to a random high port on the target. The goal is to solicit an 'ICMP port unreachable' message from the target, indicating that the host is alive. UDP pings are useful because some firewalls are not configured to block UDP datagrams sent to strange or typically unused ports, like ports in the 65K range. Additionally, while some firewalls may filter incoming ICMP, weaknesses in firewall rule-sets may allow certain types of ICMP (host unreachable, port unreachable) which are useful for UDP ping attempts.

## Prerequisites

- The adversary requires the ability to send a UDP datagram to a remote host and receive a response.
- The adversary requires the ability to craft custom UDP Packets for use during network reconnaissance.
- The target's firewall must not be configured to block egress ICMP messages.

## Resources required

- UDP pings can be performed via the use of a port scanner or by raw socket manipulation using a scripting or programming language. Packet injection tools are also useful for this purpose. Depending upon the technique used it may also be necessary to sniff the network in order to see the response.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Other | - |
| Confidentiality, Access Control, Authorization | Bypass Protection Mechanism, Hide Activities | - |

## Mitigations

- Configure your firewall to block egress ICMP messages.

## 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-292](https://radicalnotion.ai/capec/capec-292) | Host Discovery |

## Frequently asked questions

### What is CAPEC-298?

An adversary sends a UDP datagram to the remote host to determine if the host is alive. If a UDP datagram is sent to an open UDP port there is very often no response, so a typical strategy for using a UDP ping is to send the datagram to a random high port on the target. The goal is to solicit an 'ICMP port unreachable' message from the target, indicating that the host is alive. UDP pings are useful because some firewalls are not configured to block UDP datagrams sent to strange or typically unused ports, like ports in the 65K range. Additionally, while some firewalls may filter incoming ICMP, weaknesses in firewall rule-sets may allow certain types of ICMP (host unreachable, port unreachable) which are useful for UDP ping attempts.

### How do you prevent CAPEC-298?

Configure your firewall to block egress ICMP messages.

### What weaknesses does CAPEC-298 target?

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

### How severe is CAPEC-298?

MITRE rates CAPEC-298 as Low severity.

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

---

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