Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Snif.ChannelBinding

Transport-agnostic channel-binding capability for Snif/Snip connections.

  A connection that runs over a cryptographically authenticated transport can
  expose that transport's channel-binding token - the value that uniquely and
  unforgeably identifies the established channel - through this interface. The
  Snif KAPA folds the token into its confirmation transcript so a fake server
  cannot relay an authentication across a different channel (design goal G2).
  This keeps the authentication layer transport-agnostic: it never reaches into
  SSH/TLS types, it only queries Supports(Conn, IsnifChannelBinding).

  Per transport the token is:
    - SSH : the session identifier (the first key-exchange exchange hash, bound
            to the host key) - see TsnipSSHOctetConnection.GetChannelBinding.
    - TLS : the RFC 9266 tls-exporter / RFC 5705 keying-material exporter
            (TsnipTLSOctetConnection - to be wired when needed).
    - in-memory (TsnipBufferOctetConnection): a per-pair token explicitly set by
            the test harness via SetChannelBinding - NOT a cryptographic binding;
            for testing the binding code path only.

  GetChannelBinding returns False (and an empty aBinding) when the connection
  provides no binding; a security-bearing consumer MUST then FAIL CLOSED.

Feature notes: Snif remoting framework (concepts)

Classes, interfaces and records

interfaceIsnifChannelBinding

function GetChannelBinding(out aBinding: tBytes): Boolean;