Comment by sebazzz

1 month ago

I think HTTP web sockets would be an interesting tunneling protocol.

You don't need websockets, just Connection: Upgrade to anything you want. You can upgrade directly to ssh protocol and just pass on decrypted data from https socket to local port 22 from then on with no further processing.

  • Proper DPI can tell that wouldn't be acting like a typical HTTP stream, encrypted or not.

    • Hehe true, SSH traffic is so characteristically obvious that the packet size and timing can be used as a side channel to leak information about a session.

      Tangential: but I recall reading about a similar technique used on SRTP packets to guess the phonemes being uttered without needing to decrypt the traffic.

      1 reply →