Skip to content

Add SRP (Secure Remote Password) probe #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ic0ns
Copy link
Contributor

@ic0ns ic0ns commented Jun 27, 2025

Summary

  • Implements a new probe to scan for SRP (Secure Remote Password) support as requested in New Probe: Scanning for SRP #29
  • Detects SRP extension support and identifies which SRP cipher suites are available
  • Checks for RFC 5054 compliance regarding missing SRP extension behavior

Implementation Details

This PR adds:

  • SrpProbe: New probe class that tests SRP functionality
  • Three new TLS analyzed properties:
    • SUPPORTS_SRP_EXTENSION: Whether the server supports the SRP extension
    • SRP_CIPHERSUITES: List of supported SRP cipher suites
    • MISSING_SRP_EXTENSION_BUG: Whether the server incorrectly accepts SRP cipher suites without the SRP extension

The probe performs two main tests:

  1. Tests with SRP extension present to identify supported SRP cipher suites
  2. Tests without SRP extension to verify RFC 5054 compliance (server should reject with unknown_psk_identity alert)

Test Plan

  • Added unit tests for the probe
  • Added integration tests
  • Code compiles successfully
  • Code formatted with spotless

Fixes #29

- Add new SRP probe to detect SRP extension support and cipher suites
- Test for RFC 5054 compliance regarding missing SRP extension behavior
- Add properties: SUPPORTS_SRP_EXTENSION, SRP_CIPHERSUITES, MISSING_SRP_EXTENSION_BUG
- Register probe in TlsServerScanner probe list
- Include unit and integration tests

Fixes #29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Probe: Scanning for SRP
1 participant