nmap / nmap/nmap

Proposal: NSE script to detect exposed and unauthenticated BGP endpoints

Open
#3,244 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
13.6k
Forks
2.9k
PR merge metrics
No merged PRs in 30d

Description

Describe the current behavior

Currently, Nmap can identify open TCP/179 ports, but it does not provide specific detection for exposed and unauthenticated BGP endpoints, nor does it validate whether a BGP service is improperly exposed to the public Internet or accessible without proper authentication or filtering. This limits early detection of critical BGP misconfigurations that may lead to route leaks, hijacks, or unauthorized session attempts.

Expected behavior

I propose an NSE script capable of:

  • Detecting active BGP endpoints on TCP/179.
  • Verifying whether the BGP service responds without authentication or access control.
  • Identifying publicly exposed or improperly filtered BGP interfaces.
  • Optionally extracting basic BGP OPEN metadata (ASN, capabilities) in a safe, non-invasive way.
  • Flagging potential misconfigurations that may represent route hijack or exposure risks.

This script would help network operators, ISPs, and security teams audit BGP exposure in a fast, automated, and low-impact manner.

Use case

This is especially relevant for:

  • ISP edge security validation.
  • Internet-exposed routers.
  • Research and academic environments.
  • Early detection of misconfigured BGP services before exploitation.

Relationship to current research
This proposal is aligned with current research efforts related to BGP exposure, routing security, and Internet control-plane protection, and could complement ongoing IETF initiatives in inter-domain routing resilience.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the NSE script entry point for TCP/179 and review how the proposed detection should identify active BGP endpoints and unauthenticated or improperly filtered access. Done means safely checking the expected exposure conditions and, optionally, reporting basic BGP OPEN metadata such as ASN and capabilities without invasive actions.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
networking, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.