---
title: "CAPEC-307: TCP RPC Scan"
url: https://radicalnotion.ai/capec/capec-307
type: capec
description: "An adversary scans for RPC services listing on a Unix/Linux host."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-307: TCP RPC Scan

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

## Description

An adversary scans for RPC services listing on a Unix/Linux host.

This type of scan can be obtained via native operating system utilities or via port scanners like nmap. When performed by a scanner, an RPC datagram is sent to a list of UDP ports and the response is recorded. Particular types of responses can be indicative of well-known RPC services running on a UDP port. Discovering RPC services gives the adversary potential targets to attack, as some RPC services are insecure by default. Direct RPC scans that bypass portmapper/sunrpc are typically slow compare to other scan types, are easily detected by IPS/IDS systems, and can only detect open ports when an RPC service responds. ICMP diagnostic message responses can help identify closed ports, however filtered and unfiltered ports cannot be identified through TCP RPC scans. There are two general approaches to RPC scanning: One is to use a native operating system utility, or script, to query the portmapper/rpcbind application running on port 111. Portmapper will return a list of registered RPC services. Alternately, one can use a port scanner or script to scan for RPC services directly.

## Execution flow

### Step 1: Experiment

An adversary sends RCP packets to target ports.

### Step 2: Experiment

An adversary uses the response from the target to determine which, if any, RPC service is running on that port. Responses will vary based on which RPC service is running.

## Prerequisites

- RPC scanning requires no special privileges when it is performed via a native system utility.

## Resources required

- The ability to craft custom RPC datagrams for use during network reconnaissance via native OS utilities or a port scanning tool. By tailoring the bytes injected one can scan for specific RPC-registered services. Depending upon the method used it may 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

- Typically, an IDS/IPS system is very effective against this type of attack.

## 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-307?

An adversary scans for RPC services listing on a Unix/Linux host.

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

It typically unfolds over 2 phases. It begins with: An adversary sends RCP packets to target ports.

### How do you prevent CAPEC-307?

Typically, an IDS/IPS system is very effective against this type of attack.

### What weaknesses does CAPEC-307 target?

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

### How severe is CAPEC-307?

MITRE rates CAPEC-307 as Low severity.

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

---

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