Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2026-1731-scanner — Passive vulnerability scanner for CVE-2026-1731 — BeyondTrust RS/PRA pre-auth RCE (CVSS 9.9). Educational & defensive use only. | Kitploit
Tools/GitHubGitHub/cybrdude/cve-2026-1731-scanner
Defensive ToolsReconnaissanceVulnerability ScannersVulnerability AnalysisInformation GatheringWeb SecurityNetwork SecurityLearning & Education
GitHubcybrdude/cve-2026-1731-scanner

cve-2026-1731-scanner

Passive vulnerability scanner for CVE-2026-1731 — BeyondTrust RS/PRA pre-auth RCE (CVSS 9.9). Educational & defensive use only.

View Repository
46 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Website
Share

CVE-2026-1731 — BeyondTrust RS/PRA Passive Vulnerability Scanner

root@kitploit:~
    ╔═══════════════════════════════════════════════════════════════╗
    ║                                                               ║
    ║                      CVE-2026-1731                            ║
    ║       BeyondTrust RS/PRA Passive Vulnerability Scanner        ║
    ║                                                               ║
    ╠═══════════════════════════════════════════════════════════════╣
    ║   PASSIVE SCANNER — EDUCATIONAL & AUTHORIZED USE ONLY         ║
    ║                                                               ║
    ║   Performs passive fingerprinting via standard HTTP GET.      ║
    ║   No exploit payloads sent. No WebSocket connections.         ║
    ║   Only use against systems you own or are authorized to test. ║
    ║                                                               ║
    ║   Methods: BRDF version extraction, /check_health,            ║
    ║            static asset sizing, /get_mech_list API,           ║
    ║            HTML analysis, copyright year, /nw probe           ║
    ║                                                               ║
    ║   Author: NetGuard 24/7 LLC                                   ║
    ║   Web:    https://netguard24-7.com                            ║
    ╚═══════════════════════════════════════════════════════════════╝

A passive vulnerability scanner for CVE-2026-1731 — a critical (CVSS 9.9) pre-authentication Remote Code Execution vulnerability in BeyondTrust Remote Support (RS) and Privileged Remote Access (PRA).

This tool identifies vulnerable BeyondTrust instances using only standard HTTP GET requests. No exploit payloads are sent. No WebSocket connections are established. No authentication is attempted.

Update: 2/16/2026 Applying the hotfix, BT26-02-RS or BT26-02-PRA will make detected BeyondTrust instances below RS (v21.3 - 25.3.1) or PRA (v22.1 - 24.X) appear as vulnerable since the hotfix will not result in version increments, therefore instances patched with the hotfix (BT26-02-RS or BT26-02-PRA) will appear as vulnerable. Once the base release is upgraded, then the instance will appear as not vulnerable". Per the vendor the official fix is addressed in Remote Support 25.3.2 and greater | Privileged Remote Access 25.1 and greater

Author: NetGuard 24/7 LLC


⚠️ Legal Disclaimer

This tool is provided for EDUCATIONAL and AUTHORIZED DEFENSIVE purposes only.

You may ONLY use this tool against systems you own or have explicit written authorization to test. Unauthorized scanning of systems you do not own may violate applicable laws including the Computer Fraud and Abuse Act (CFAA) and similar statutes in other jurisdictions.

The authors assume no liability for misuse of this tool. By using this software, you agree to use it responsibly and in compliance with all applicable laws and regulations.


Vulnerability Overview

CVE-2026-1731 is a variant of CVE-2024-12356 (the vulnerability used by Chinese APT to breach the U.S. Treasury). Both target the same /nw WebSocket endpoint and the underlying thin-scc-wrapper Bash script. The BT24-10 patch for CVE-2024-12356 added a numeric sanity check, but failed to prevent Bash arithmetic evaluation of the remoteVersion parameter — which CVE-2026-1731 exploits.


How It Works

This scanner uses 8 passive fingerprinting methods — validated against live BeyondTrust instances — to determine product version and vulnerability status without sending any exploit traffic.

Detection Methods

Method 1 (BRDF) is the same technique used by Metasploit and Nessus plugin 213456. When BRDF returns an exact version, confidence is EXACT. Some 25.x instances strip the version from BRDF — in those cases, methods 2-6 are scored and corroborated to infer the version range.

What This Tool Does NOT Do

  • ❌ Send WebSocket upgrade requests
  • ❌ Transmit crafted payloads to /nw
  • ❌ Attempt any form of exploitation
  • ❌ Perform authentication or brute-forcing
  • ❌ Modify any data on target systems
  • ❌ Establish persistent or stateful connections

Quick Start

Requirements

  • Python 3.8+
  • No external dependencies (stdlib only)

Installation

root@kitploit:~
git clone https://github.com/YOUR_USERNAME/cve-2026-1731-scanner.git
cd cve-2026-1731-scanner
chmod +x cve_2026_1731_scanner.py

Single Target Scan

root@kitploit:~
python3 cve_2026_1731_scanner.py -t support.example.com -v

Bulk Scan from File

root@kitploit:~
# Create a target list (one host per line)
cat > targets.txt << 'EOF'
support.example.com
pra.example.com
192.168.1.50
10.0.0.100:8443
remote-support.beyondtrustcloud.com
EOF

# Run the scan
python3 cve_2026_1731_scanner.py -f targets.txt --threads 20 -o results.csv --json results.json -v

Full Usage

root@kitploit:~
usage: cve_2026_1731_scanner.py [-h] (-t TARGET | -f FILE) [-o OUTPUT]
                                 [--json JSON_OUTPUT] [--threads THREADS] [-v]

options:
  -t, --target TARGET     Single target hostname or IP
  -f, --file FILE         File containing targets (one per line)
  -o, --output OUTPUT     Export results to CSV file
  --json JSON_OUTPUT      Export results to JSON file
  --threads THREADS       Concurrent threads (default: 10)
  -v, --verbose           Verbose per-target output

Input Format

The target file accepts flexible input — one entry per line:

root@kitploit:~
# Comments are supported (lines starting with #)
192.168.1.1
10.0.0.5
support.example.com
support.example.com:8443
https://support.example.com
http://support.example.com    # auto-upgraded to HTTPS
support.example.com/login     # paths are stripped automatically

Understanding Output

Risk Levels

LevelMeaning
CRITICAL

Version Confidence

Exit Codes (CI/CD Integration)

CodeMeaning
0No critical or high findings
1High-risk findings detected
2Critical findings detected
root@kitploit:~
# Example: CI/CD pipeline integration
python3 cve_2026_1731_scanner.py -f targets.txt -o results.csv
if [ $? -eq 2 ]; then
    echo "CRITICAL: Vulnerable BeyondTrust instances found!"
    # trigger alert / page on-call / open ticket
fi

Example Output

root@kitploit:~
  [*] Scanning https://support.example.com...
      Status: VULNERABLE [CRITICAL]
      Version: 24.1.4 (via BRDF /get_rdf, confidence: EXACT)
      Company: examplecorp
      Product: Remote Support
      Signals: health=old, login.js=36458B, html=modern, ©2024
      /nw: REACHABLE

CSV & JSON Export

CSV Fields


Remediation

If the scanner identifies vulnerable instances:

  1. Apply BT26-02 patch immediately — available from BeyondTrust for all supported RS/PRA versions
  2. Upgrade to fixed versions: RS 25.3.2+ or PRA 25.1.1+
  3. If running RS < 21.3 or PRA < 22.1: full product upgrade is required before the patch can be applied
  4. Network controls: restrict access to the /nw WebSocket endpoint if immediate patching is not possible
  5. Hunt for compromise: check logs for WebSocket connections to /nw with unusual remoteVersion values containing $() or backticks
  6. SaaS instances: were auto-patched on February 2, 2026 — verify in your BeyondTrust portal

References

  • BT26-02 Advisory
  • NVD: CVE-2026-1731
  • Rapid7 Analysis
  • Metasploit Module (CVE-2024-12356)

Contributing

Pull requests welcome. If you discover additional passive fingerprinting methods or version correlation signals, please open an issue or PR.


License

MIT License — see LICENSE for details.


Author

NetGuard 24/7 LLC https://netguard24-7.com

Download Tool
FieldDetail
CVECVE-2026-1731
CVSS9.9 (Critical)
AdvisoryBT26-02
TypePre-authentication Remote Code Execution
VectorWebSocket endpoint /nw — Bash arithmetic evaluation injection
AffectedRS ≤ 25.3.1, PRA ≤ 24.3.4
FixedRS 25.3.2+, PRA 25.1.1+
ExploitationActive in the wild as of Feb 12, 2026
#MethodEndpointWhat It ExtractsConfidence
1BRDF Version ExtractionGET /get_rdf?comp=sdcust&locale_code=en-usExact product version from binary header (e.g., 24.1.4)EXACT
2/check_health ResponseGET /check_health"Health Check: Succeeded" = pre-25.x / "Status: Primary" = 25.x+HIGH
3Static Asset SizingHEAD /js/login.jsFile size: ~36K-39K = pre-25.x / ~12K = 25.x+HIGH
4/get_mech_list APIGET /get_mech_list?version=3Company name + thin_rep_enabled field (25.x+ only)HIGH
5HTML StructureGET /loginXHTML 1.1 + BOMGAR = pre-25.x / HTML5 = 25.x+MEDIUM
6Copyright YearGET /login footer2002-2024 = pre-25.x / 2002-2025 = 25.xMEDIUM
7Portal InfoGET /get_portal_infoX-Ns-Company value (attacker reconnaissance indicator)—
8WebSocket ProbeGET /nw (HTTP only)Confirms attack surface reachability—
Exact version confirmed vulnerable via BRDF, or multiple high-confidence signals indicate pre-25.x
HIGHLikely vulnerable but with fewer corroborating signals; manual verification recommended
MEDIUMInferred as 25.x+ (RS could still be vulnerable through 25.3.1); verify BT26-02 patch
LOW/INFOSaaS instance (auto-patched), confirmed patched version, or confirmed safe
ConfidenceSourceMeaning
EXACTBRDF /get_rdfExact version string extracted from binary (e.g., 24.1.4)
HIGHMulti-signal (3+)3 or more independent signals agree with 0 contradictions
MEDIUMMulti-signal (2+)Majority of signals agree but with some ambiguity
LOWInconclusiveConflicting or insufficient signals
FieldDescription
targetScanned URL
is_beyondtrustWhether BeyondTrust was detected
product_typeRemote Support or Privileged Remote Access
product_versionExact version (if extracted from BRDF)
version_sourceHow the version was determined
version_confidenceEXACT, HIGH, MEDIUM, or LOW
company_nameX-Ns-Company value (used in exploitation)
copyright_yearFrom login page footer
health_check_typeold (pre-25.x) or new (25.x+)
login_js_sizeFile size of /js/login.js
thin_rep_enabledPresent only in 25.x+
html_generationlegacy (XHTML) or modern (HTML5)
is_saasSaaS (.beyondtrustcloud.com) instance
ws_endpoint_reachableWhether /nw responds
vulnerability_statusAssessment result
risk_levelCRITICAL, HIGH, MEDIUM, LOW, or INFO
detailsHuman-readable assessment details