Skip to content

[AI] Fix decode error by adding proper connection termination #221

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

Conversation

ic0ns
Copy link
Contributor

@ic0ns ic0ns commented Jun 26, 2025

Summary

  • Added close_notify alerts to dynamic handshake workflow to ensure proper TLS connection termination
  • Fixes the decode error that occurred when TLS-Attacker client didn't properly close connections with OpenSSL servers
  • Applied to both TLS 1.2 and TLS 1.3 client workflows

Changes

  • Modified WorkflowConfigurationFactory.createDynamicHandshakeWorkflow() to include:
    • SendAction with close_notify alert after handshake completion
    • ReceiveTillAction to wait for server's close_notify response
  • Added comprehensive test testDynamicHandshakeWorkflowIncludesCloseNotify() to verify the fix

Test plan

  • Added unit test to verify close_notify alerts are properly included in workflow
  • Test passes for both TLS 1.2 and TLS 1.3 configurations
  • All existing tests continue to pass
  • Code formatted with spotless

Fixes #185

Added close_notify alerts to dynamic handshake workflow to ensure proper TLS connection termination. This fixes the decode error that occurred when TLS-Attacker client didn't properly close connections with OpenSSL servers.

- Added SendAction with close_notify alert after handshake completion
- Added ReceiveTillAction to wait for server's close_notify response
- Applied to both TLS 1.2 and TLS 1.3 client workflows
- Added comprehensive test to verify close_notify alerts are included

Fixes #185
@ic0ns ic0ns changed the title Fix decode error by adding proper connection termination [AI] Fix decode error by adding proper connection termination Jun 26, 2025
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.

Decode error
1 participant