Decrypting RDP Traffic with Message Analyzer Bryan S. Burgin Sr. Escalation Engineer, Developer Support, Open Specs Microsoft Corporation



Similar documents
Spirent Abacus. SIP over TLS Test 编 号 版 本 修 改 时 间 说 明

Einführung in SSL mit Wireshark

Whitepaper : Using Unsniff Network Analyzer to analyze SSL / TLS

Lab Exercise SSL/TLS. Objective. Step 1: Open a Trace. Step 2: Inspect the Trace

Implementing and Managing Security for Network Communications

Virtual Private Networks

Using etoken for SSL Web Authentication. SSL V3.0 Overview

3.2: Transport Layer: SSL/TLS Secure Socket Layer (SSL) Transport Layer Security (TLS) Protocol

Deploying F5 with Microsoft Remote Desktop Services

7.1. Remote Access Connection

Chapter 17. Transport-Level Security

Chapter 7 Transport-Level Security

Security Protocols HTTPS/ DNSSEC TLS. Internet (IPSEC) Network (802.1x) Application (HTTP,DNS) Transport (TCP/UDP) Transport (TCP/UDP) Internet (IP)

USB attacks need physical access right? Not any more...

INF3510 Information Security University of Oslo Spring Lecture 9 Communication Security. Audun Jøsang

Using IPSec in Windows 2000 and XP, Part 2

Network Security Part II: Standards

Computer Networks. Secure Systems

Secure Sockets Layer (SSL ) / Transport Layer Security (TLS) Network Security Products S31213

Release Notes for Epilog for Windows Release Notes for Epilog for Windows v1.7/v1.8

Real-Time Communication Security: SSL/TLS. Guevara Noubir CSU610

Security White Paper The Goverlan Solution

Application Note: Onsight Device VPN Configuration V1.1

SSL SSL VPN

Secure Socket Layer (SSL) and Trnasport Layer Security (TLS)

Network Security [2] Plain text Encryption algorithm Public and private key pair Cipher text Decryption algorithm. See next slide

DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP LTM with the Zimbra Open Source and Collaboration Suite

Oracle Database Security and Audit

Joe Davies Principal Writer Windows Server Documentation

Deploying Personal Virtual Desktops by Using RemoteApp and Desktop Connection Step-by-Step Guide

, SNMP, Securing the Web: SSL

SECUR IN MIRTH CONNECT. Best Practices and Vulnerabilities of Mirth Connect. Author: Jeff Campbell Technical Consultant, Galen Healthcare Solutions

Optimization of Citrix ICA with Steelhead Appliances and RiOS 6.0 WHITE PAPER

2014 IBM Corporation

Configuring Security Features of Session Recording

How to Optimize MS Outlook Exchange Traffic Over SSL

Lab Exercise SSL/TLS. Objective. Requirements. Step 1: Capture a Trace

HTTPS is Fast and Hassle-free with CloudFlare

VPN. Date: 4/15/2004 By: Heena Patel

Implementing and Administering Security in a Microsoft Windows Server 2003 Network

TLS and SRTP for Skype Connect. Technical Datasheet

, ) I Transport Layer Security

RSA Security Analytics

Web Security Considerations

Microsoft Windows Server 2012 R2 Remote Desktop Services - How to Set Up (Mostly) Seamless Logon for RDP Connections

Security Protocols/Standards

Unifying Information Security. Implementing TLS on the CLEARSWIFT SECURE Gateway

Security. Contents. S Wireless Personal, Local, Metropolitan, and Wide Area Networks 1

Overview. Author: Seth Scardefield Updated 11/11/2013

Windows Firewall Configuration with Group Policy for SyAM System Client Installation

Astaro Security Gateway V8. Remote Access via SSL Configuring ASG and Client

Network Security Essentials Chapter 5

Table of Contents. Introduction. Audience. At Course Completion

Windows Embedded Compact 7: RemoteFX and Remote Experience Thin Client Integration

Managing the SSL Certificate for the ESRS HTTPS Listener Service Technical Notes P/N REV A01 January 14, 2011

Deploying Remote Desktop Web Access with Remote Desktop Connection Broker Step-by- Step Guide

Overview. SSL Cryptography Overview CHAPTER 1

Secure Socket Layer (SSL) and Transport Layer Security (TLS)

QUIC. Quick UDP Internet Connections. Multiplexed Stream Transport over UDP. IETF-88 TSV Area Presentation

Aspera Connect User Guide

Configuring RemoteFX on Windows Server 2012 R2

Certificates and SSL

Securing Remote Desktop Services in Windows Server 2008

Monitoring Android Apps using the logcat and iperf tools. 22 May 2015

Deploy Remote Desktop Gateway on the AWS Cloud

[MS-SSTP]: Secure Socket Tunneling Protocol (SSTP) Intellectual Property Rights Notice for Open Specifications Documentation

AD Image Encryption. Format Version 1.2

Sophos UTM. Remote Access via SSL. Configuring UTM and Client

Carillon eshop User s Guide

OPC Unified Architecture - Connectivity Guide

IDIS Product Security

SSL DOES NOT MEAN SOL What if you don t have the server keys?

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

ReadyNAS Remote White Paper. NETGEAR May 2010

Laboratory Exercises V: IP Security Protocol (IPSec)

SSL Handshake Analysis

ERserver. iseries. Securing applications with SSL

Announcement. Final exam: Wed, June 9, 9:30-11:18 Scope: materials after RSA (but you need to know RSA) Open books, open notes. Calculators allowed.

Appendix A: Configuring Firewalls for a VPN Server Running Windows Server 2003

Scan Report Executive Summary. Part 2. Component Compliance Summary IP Address :

Instructions on TLS/SSL Certificates on Yealink Phones

We will give some overview of firewalls. Figure 1 explains the position of a firewall. Figure 1: A Firewall

Solution of Exercise Sheet 5

Ciphermail for BlackBerry Quick Start Guide

Analyzing SMB/SMB2 with Network Monitor 3. Storage Developer Conference Insert Copyright information here. All rights reserved.

A host-based firewall can be used in addition to a network-based firewall to provide multiple layers of protection.

Microsoft Message Analyzer Packet Analysis at a Higher Level. Neil B Martin Test Manager WSSC- Interop and Tools Microsoft Corporation

How To Set Up A Vpn Tunnel Between Winxp And Zwall On A Pc 2 And Winxp On A Windows Xp 2 On A Microsoft Gbk2 (Windows) On A Macbook 2 (Windows 2) On An Ip

Three attacks in SSL protocol and their solutions

Cleaning Encrypted Traffic

Deployment Guide Microsoft IIS 7.0

Configuring ADFS 3.0 to Communicate with WhosOnLocation SAML

introducing The BlackBerry Collaboration Service

Installing and Configuring vcenter Multi-Hypervisor Manager

TCP Packet Tracing Part 1

11.1. Performance Monitoring

Veeam Cloud Connect. Version 8.0. Administrator Guide

Transcription:

Decrypting RDP Traffic with Message Analyzer Bryan S. Burgin Sr. Escalation Engineer, Developer Support, Open Specs Microsoft Corporation

Sr. EE, Developer Support, Protocols/Open Specifications/Interop 13 years at Microsoft: Primary duties: www.microsoft.com/protocols www.microsoft.com/openspecifications

May 2012 (Taipei): Whiteboard discussion: May/July 2012: Hitchhiker s Guide to Debugging RDP protocols blog posts: April 2013 (Taipei): March 2014 (Taipei):

Viewing unencrypted, uncompressed RDP traffic Windows-to-Windows in both directions is difficult. Viewing unencrypted traffic:

To share a technique to observe Windows-to-Windows RDP traffic using Message Analyzer

Network Monitor/NmDecrypt advantages Network Monitor/NmDecrypt disadvantages Message Analyzer advantages Message Analyzer disadvantages

Make and export a certificate Server-side preparation Client-side preparation Installing Message Analyzer Capturing and analyzing traffic What s next Close

Make and export a certificate Server-side preparation Client-side preparation Installing Message Analyzer Capturing and analyzing traffic What s next Close Demo References Getting help

Only needs to be done once in a lifetime. Can be made on any machine. Make a certificate using MAKECERT. Export the cert to a Personal Informational Exchange (.PFX) file Import/copy the certificate (via PFX) wherever it will be used:

Make and export a certificate Server-side preparation Client-side preparation Installing Message Analyzer Capturing and analyzing traffic What s next Close Demo References Getting help

Note: Do NOT check Network Level Authentication

Import certificate via Microsoft Management Console (MMC):

Double-click.PFX file

Run MMC, use Certificate plug-in for Local Computer Find certificate in the local store Right-click, All-Tasks, Manage Private Keys Add NETWORK SERVICE

To use the certificate, RDP needs to know the certificate s SSL SHA1 HASH (a.k.a. Thumbprint): For any given certificate, the HASH is always the same

Identify certificate s SHA1 HASH to RDP The RDP server will now use this certificate for encryption

Windows 7 ONLY; Windows 8 defaults are okay Set HKLM\System\CCS\Control\Terminal Server\Winstations\RDP-Tcp:

Disable server-side compression (server-to-client packets): Run GPEDIT, find:»local Computer Policy»Computer Configuration»Administrative Templates»Windows Components»Remote Desktop Services»Remote Desktop Session Host»Remote Session Environment»Configure compression for RemoteFX data Enable the policy Set to Do not use a compression algorithm

RDP8 will send/receive ~3000 frames to detect network conditions (bandwidth) at initial connect (RTT, Kb/sec): Disabling bandwidth detection reduces overhead, yields smaller and faster traces Solution: disable network bandwidth detection; via GPEdit»Local Computer Policy»Computer Configuration»Administrative Templates»Windows Components»Remote Desktop Services»Remote Desktop Session Host» Connections» Select network detection on the server Turn off Connect Time & Continuous NW Detect

Make and export a certificate Server-side preparation Client-side preparation Installing Message Analyzer Capturing and analyzing traffic What s next Close Demo References Getting help

If you want the client to use a specific compression algorithm:

Windows 8 uses TLS 1.2 by default Message Analyzer does not decrypt TLS 1.2 frames (yet?) Solution: downgrade to TLS 1.1 or 1.0 Consequence: Windows Update will stop working

RDP 8 uses both TCP and UDP Message Analyzer does not decrypt UDP/DTLS frames (yet) Solution: Disable UDP; force TCP only

Make and export a certificate Server-side preparation Client-side preparation Installing Message Analyzer Capturing and analyzing traffic What s next Close Demo References Getting help

Make and export a certificate Server-side preparation Client-side preparation Installing Message Analyzer Capturing and analyzing traffic What s next Close Demo References Getting help

Make and export a certificate Server-side preparation Client-side preparation Installing Message Analyzer Capturing and analyzing traffic What s next Close Demo References Getting help

Work on improving the parsers: Add support to decrypt TLS 1.2 Add support to decrypt DTLS and RDP over UDP Traffic

Escalation Engineer Developer Support Protocols/Open Specifications/Interoperability 8 years at Microsoft:

MS-RDPEUDP is a new protocol in RDP8 which use UDP as a transport and operates in 2 modes: Reliable (RDP-UDP-R) Best Effort/Lossy (RDP-UDP-L). RDP-UDP-R use TLS and RDP-UDP-L DTLS. Unique sockets for each instance. MS-RDPBCGR\MS-RDPEMT\MS-RDPEUDP FEC PDUs Optional. Safe to ignore and not generate. No capability to turn on/ off.!fec - Recovery from packet loss will be compromised. RDPEUDP is preferred by default if both endpoints are RDP8 capable. This can be turned-off through Group policy Server : Computer Configuration, Administrative Templates, Windows Components, Remote Desktop Services, Remote Desktop Session Host: Select RDP Transport Protocols to Use both UDP and TCP, Use only TCP and Use Either TCP or UDP Client : Computer Configuration, Administrative Templates, Windows Components, Remote Desktop Services, Remote Desktop Connection Client: Turn off UDP On Client Minencryption level (http://technet.microsoft.com/en-us/library/cc785662(v=ws.10).aspx ) MUST be set to 3 (TS_ENCRYPTION_LEVEL_HIGH) and Securitylayer to 2 (TS_SECURITY_LAYER_SSL) for RDPEUDP. Key differentiator from TLS over TCP TLS\DTLS packets over UDP are enveloped by RDPEUDP header.

Apply filter as TLS Unencrypted handshake and encrypted data PDUs. NMDecrypt decrypts encrypted data PDUs.

Apply filter as TLS, profile windows No data. Apply filter as RDPEUDP Enveloped handshake and encrypted data PDUs. NMDecrypt can t decrypt RDPEUDP data.

16 03 01 or 16 03 02 as starting bytes then it s a packet. 16 FE FF as starting bytes then it s a packet.

Make and export a certificate Server-side preparation Client-side preparation Installing Message Analyzer Capturing and analyzing traffic What s next Close Demo References Getting help

www.microsoft.com/protocols Raising protocol specification questions dochelp@microsoft.com Open Specifications Team Blog http://blogs.msdn.com/b/openspecification Channel9.MSDN.com

How to get Message Analyzer http://www.microsoft.com/en-us/download/details.aspx?id=40308

E-mail dochelp@microsoft.com 1:1, private Monitored by support 24x7 Issues acknowledged with in 24 hours Post to a Microsoft Open Specifications Forum 1:many, public Community of industry implementers Moderated by Microsoft Issues become support cases for tracking Open Specifications Support is free

Clear problem description Document short name (e.g. [MS-RDPEUSB]) Section (e.g. 2.2.4.1 Add Virtual Channel) Doc version (e.g. v20110609) Impact to your project (Blocking? Just feedback?) Multiple issues: Provide priorities Include sample files, traces, notes

Problems NOT related to the Open Specifications documentation: If in doubt, ask.

Blog: http://blogs.technet.com/b/messageanalyzer/ Operating Guide http://blogs.technet.com/b/messageanalyzer/ Technet Forum: Message Analyzer is NOT supported via Dochelp

Q&A dochelp@microsoft.com http://www.microsoft.com/protocols