Proposal: NSE script to detect exposed and unauthenticated BGP endpoints
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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