Introduction: The Protocols of Trust
In Lessons 4.1 and 4.2, we established the mathematical foundations of cryptography and examined the critical role of key management and Public Key Infrastructure (PKI) in financial institutions. We explored symmetric-key cryptography (AES), asymmetric-key cryptography (RSA, ECC), cryptographic hash functions (SHA-256), and the complete key management lifecycle. We also analyzed PKI components including Certificate Authorities, Registration Authorities, Certificate Revocation Lists, and Online Certificate Status Protocol. Each of these cryptographic primitives and key management frameworks provides the building blocks for secure communication.
However, cryptographic algorithms and key management systems are not used in isolation. They are integrated intoΒ cryptographic protocolsΒ that govern how parties communicate securely over networks. These protocols orchestrate the use of encryption, authentication, integrity checking, and key exchange to ensure that communications between financial systems, customers, partners, and regulators remain confidential, authentic, and tamper-proof.
Cryptographic protocols are the lifeblood of modern financial services. Every online banking transaction, every wire transfer, every ATM withdrawal, every stock trade, and every secure communication between financial institutions relies on cryptographic protocols to protect sensitive information from interception, tampering, and forgery. The security of the global financial system depends critically on the correct implementation and operation of these protocols.
This lesson provides a comprehensive analysis of cryptographic protocols used in financial institutions. We begin by examiningΒ Transport Layer Security (TLS)Β , the most widely deployed cryptographic protocol for securing communications over the internet. We analyze theΒ TLS Handshake ProtocolΒ that establishes secure connections between clients and servers, theΒ TLS Record ProtocolΒ that protects data in transit, and theΒ TLS Key ExchangeΒ mechanisms. We derive theΒ TLS Security Model:Β TLS={Confidentiality,Integrity,Authentication,ForwardΒ Secrecy}. We analyze theΒ TLS VersionsΒ (TLS 1.2 and TLS 1.3) and their security properties.
We then examineΒ IPsec (Internet Protocol Security)Β , which provides security at the network layer, protecting all IP traffic between hosts or networks. We analyze theΒ IPsec Protocols: Authentication Header (AH) and Encapsulating Security Payload (ESP). We derive theΒ IPsec Security Model:Β IPsec={Confidentiality,Integrity,Authentication,ReplayΒ Protection}. We analyze theΒ IPsec Modes: Transport Mode and Tunnel Mode, and their applications in financial institutions.
We also examineΒ SSH (Secure Shell)Β , which provides secure remote access to financial systems. We analyze theΒ SSH Protocol: Transport Layer Protocol, User Authentication Protocol, and Connection Protocol. We derive theΒ SSH Security Model:Β SSH={Confidentiality,Integrity,Authentication,SessionΒ Management}.
Finally, we examine theΒ SWIFT Security Protocols, including the SWIFT Customer Security Programme (CSP) and the SWIFT Inter-Act Protocol. We analyze theΒ SWIFT Security ControlsΒ and their application to financial messaging.
By the end, you will have a complete understanding of cryptographic protocols used in financial institutions, and be able to analyze their security properties and implementation requirements.
Learning Objectives
Upon completion of this lesson, you will be able to:
-
AnalyzeΒ Transport Layer Security (TLS)Β , including the TLS Handshake Protocol, TLS Record Protocol, and TLS Key Exchange mechanisms.
-
DeriveΒ theΒ TLS Security Model:Β TLS={Confidentiality,Integrity,Authentication,ForwardΒ Secrecy}.
-
AnalyzeΒ IPsec (Internet Protocol Security)Β , including AH and ESP protocols, and Transport and Tunnel modes.
-
DeriveΒ theΒ IPsec Security Model:Β IPsec={Confidentiality,Integrity,Authentication,ReplayΒ Protection}.
-
AnalyzeΒ SSH (Secure Shell)Β , including the Transport Layer Protocol, User Authentication Protocol, and Connection Protocol.
-
DeriveΒ theΒ SSH Security Model:Β SSH={Confidentiality,Integrity,Authentication,SessionΒ Management}.
-
AnalyzeΒ SWIFT Security Protocols, including the SWIFT Customer Security Programme (CSP) and SWIFT Inter-Act Protocol.
-
ApplyΒ cryptographic protocol best practices to financial institutions.
Part 1: Transport Layer Security (TLS)
1.1 The TLS Definition
Transport Layer Security (TLS) is a cryptographic protocol that provides secure communication over a computer network. It is the successor to SSL (Secure Sockets Layer) and is the most widely deployed security protocol on the internet.
TLS={HandshakeΒ Protocol,RecordΒ Protocol,AlertΒ Protocol}
1.2 The TLS Protocol Architecture
| Protocol | Function | Description |
|---|---|---|
| Handshake Protocol | Establishes secure connection | Negotiates ciphersuites, authenticates parties, exchanges keys |
| Record Protocol | Protects data in transit | Encrypts and authenticates application data |
| Alert Protocol | Handles error conditions | Reports errors, closes connections |
1.3 The TLS Handshake Protocol
The TLS handshake establishes a secure connection between a client and a server:
Handshake={ClientHello,ServerHello,Certificate,KeyΒ Exchange,Finished}
Handshake Steps:
| Step | Direction | Message | Purpose |
|---|---|---|---|
| 1 | Client β Server | ClientHello | Supported TLS versions, ciphersuites, random nonce |
| 2 | Server β Client | ServerHello | Chosen TLS version, ciphersuite, random nonce |
| 3 | Server β Client | Certificate | Server’s public key certificate (PKI) |
| 4 | Server β Client | ServerKeyExchange | Additional key exchange data |
| 5 | Server β Client | ServerHelloDone | Indicates server is done |
| 6 | Client β Server | ClientKeyExchange | Client’s key exchange data |
| 7 | Client β Server | ChangeCipherSpec | Switch to negotiated encryption |
| 8 | Client β Server | Finished | Verify handshake integrity |
| 9 | Server β Client | ChangeCipherSpec | Switch to negotiated encryption |
| 10 | Server β Client | Finished | Verify handshake integrity |
1.4 The TLS Security Model
TLS={Confidentiality,Integrity,Authentication,ForwardΒ Secrecy}
| Property | Description | Implementation |
|---|---|---|
| Confidentiality | Data is protected from unauthorized access | Symmetric encryption (AES-GCM) |
| Integrity | Data is protected from tampering | Message Authentication Codes (MAC) |
| Authentication | Identity of parties is verified | Digital certificates (X.509) |
| Forward Secrecy | Past sessions protected if keys compromised | Ephemeral Diffie-Hellman (ECDHE) |
1.5 TLS Versions
| Version | Released | Status | Security Features |
|---|---|---|---|
| TLS 1.2 | 2008 | Widely used | AES-GCM, SHA-256, ECDHE |
| TLS 1.3 | 2018 | Modern standard | Improved security, faster handshake, forward secrecy required |
TLS 1.3 Key Improvements:
| Improvement | Description | Benefit |
|---|---|---|
| Reduced Handshake Latency | 1-RTT handshake | Faster connection establishment |
| Forward Secrecy Required | ECDHE mandatory | Protects past sessions |
| Removed Weak Ciphers | Removed outdated algorithms | Increased security |
| Zero-RTT (0-RTT) | Early data transmission | Faster resume |
1.6 TLS in Financial Institutions
| Use Case | TLS Version | Ciphersuite |
|---|---|---|
| Online Banking | TLS 1.3 | TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 |
| Mobile Banking | TLS 1.3 | TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 |
| Payment Processing | TLS 1.3 | TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 |
| Inter-Bank Communication | TLS 1.3 | TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 |
TLS Handshake (Visual): βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | | | Client β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | β 1. ClientHello β β | β β’ TLS 1.3 β β | β β’ Supported Ciphersuites β β | β β’ Random Nonce β β | ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ β | β | | βΌ | | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | β 2. ServerHello β β | β β’ TLS 1.3 β β | β β’ Selected Ciphersuite β β | β β’ Random Nonce β β | β 3. Certificate β β | β β’ Server's Public Key Certificate β β | β 4. ServerKeyExchange β β | β β’ ECDHE Parameters β β | β 5. ServerHelloDone β β | ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ β | β | | βΌ | | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | β 6. ClientKeyExchange β β | β β’ Client's ECDHE Public Key β β | β 7. ChangeCipherSpec β β | β 8. Finished β β | ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ β | β | | βΌ | | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | β 9. ChangeCipherSpec β β | β 10. Finished β β | ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ β | β | | βΌ | | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | β Secure Data Exchange β β | β β’ Application Data Encrypted with AES-GCM β β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Part 2: Internet Protocol Security (IPsec)
2.1 The IPsec Definition
IPsec is a suite of protocols that provides security at the network layer, protecting all IP traffic between hosts or networks.
IPsec={AH,ESP,IKE}
2.2 IPsec Protocols
| Protocol | Description | Function |
|---|---|---|
| Authentication Header (AH) | Provides authentication and integrity | Protects against tampering |
| Encapsulating Security Payload (ESP) | Provides encryption, authentication, and integrity | Protects data confidentiality |
| Internet Key Exchange (IKE) | Establishes security associations | Key management and negotiation |
2.3 The IPsec Security Model
IPsec={Confidentiality,Integrity,Authentication,ReplayΒ Protection}
| Property | Description | Implementation |
|---|---|---|
| Confidentiality | Data is protected from unauthorized access | ESP encryption (AES) |
| Integrity | Data is protected from tampering | AH/ESP integrity checks (SHA) |
| Authentication | Identity of parties is verified | IKE authentication (PSK, certificates) |
| Replay Protection | Prevents replay attacks | Sequence numbers, sliding windows |
2.4 IPsec Modes
Transport Mode:
TransportΒ Mode={EncryptsΒ Payload,OriginalΒ IPΒ Header}
-
Used for host-to-host communications
-
Only the payload (and ESP/AH headers) is protected
-
Original IP header remains visible
Tunnel Mode:
TunnelΒ Mode={EncryptsΒ EntireΒ Packet,NewΒ IPΒ Header}
-
Used for network-to-network communications
-
Entire original packet is protected
-
New IP header with gateway addresses
2.5 IPsec in Financial Institutions
| Use Case | Mode | Protocol | Security |
|---|---|---|---|
| Site-to-Site VPN | Tunnel Mode | ESP | AES-256, SHA-256 |
| Remote Access VPN | Transport Mode | ESP | AES-256, SHA-256 |
| Cloud Connect | Tunnel Mode | ESP | AES-256, SHA-256 |
| Data Center Connect | Tunnel Mode | ESP | AES-256, SHA-256 |
IPsec Modes (Visual): βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | | | Transport Mode β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | β Original IP Header β TCP/UDP Header β Data β β | β ββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββ β β | β β IP Header β ESP Header β TCP/UDP Header β Data β ESP Tail β β | β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β | β β’ Encrypted: TCP/UDP Header + Data β β | β β’ Visible: Original IP Header β β | β β’ Use Case: Host-to-host communications β β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | | | Tunnel Mode β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | β Original IP Header β TCP/UDP Header β Data β β | β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β | β β New IP Header β ESP Header β Original IP Packet β ESP Tail β β β | β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β | β β’ Encrypted: Entire Original IP Packet β β | β β’ Visible: New IP Header β β | β β’ Use Case: Network-to-network communications β β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Part 3: SSH (Secure Shell)
3.1 The SSH Definition
SSH is a cryptographic protocol for secure remote access to systems, providing secure command execution, file transfer, and other network services.
SSH={TransportΒ Layer,UserΒ Authentication,Connection}
3.2 SSH Protocols
| Protocol | Description | Function |
|---|---|---|
| Transport Layer Protocol | Establishes secure connection | Server authentication, key exchange, encryption |
| User Authentication Protocol | Authenticates the user | Password, public key, keyboard-interactive |
| Connection Protocol | Multiplexes secure channels | Shell, file transfer, port forwarding |
3.3 The SSH Security Model
SSH={Confidentiality,Integrity,Authentication,SessionΒ Management}
| Property | Description | Implementation |
|---|---|---|
| Confidentiality | Data is protected from unauthorized access | Symmetric encryption (AES) |
| Integrity | Data is protected from tampering | MAC (HMAC) |
| Authentication | Identity of parties is verified | Public key, password |
| Session Management | Secure session handling | Session keys, rekeying |
3.4 SSH Key Exchange
KeyΒ Exchange={DHΒ KeyΒ Exchange,SessionΒ KeyΒ Generation,ServerΒ Authentication}
3.5 SSH in Financial Institutions
| Use Case | Authentication | Encryption | Application |
|---|---|---|---|
| System Administration | Public key | AES-256 | Secure remote access |
| File Transfer | Public key | AES-256 | SFTP |
| Automation | Public key | AES-256 | Scripted operations |
| Audit Logging | Public key | AES-256 | Secure command logging |
SSH Protocol Architecture (Visual): βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | | | Transport Layer Protocol β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | β β’ TCP connection establishment β β | β β’ Version negotiation β β | β β’ Key exchange (DH, ECDH) β β | β β’ Server authentication (host key) β β | β β’ Encryption setup (AES-GCM) β β | ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ β | β | | βΌ | | User Authentication Protocol β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | β β’ Authentication methods: β β | β β’ Password β β | β β’ Public key β β | β β’ Keyboard-interactive β β | β β’ Multiple authentication β β | ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ β | β | | βΌ | | Connection Protocol β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | β β’ Multiplexing: β β | β β’ Shell sessions β β | β β’ File transfer (SFTP) β β | β β’ Port forwarding β β | β β’ X11 forwarding β β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Part 4: SWIFT Security Protocols
4.1 SWIFT Customer Security Programme (CSP)
Overview:Β The SWIFT Customer Security Programme (CSP) is a mandatory security framework for SWIFT customers, designed to protect the integrity of the SWIFT network.
SWIFTΒ CSP={SecurityΒ Controls,SecurityΒ Assessment,Compliance}
4.2 SWIFT Security Controls
| Control Group | Control | Description |
|---|---|---|
| Protect | 1.1 | Restrict internet access to SWIFT infrastructure |
| Β | 2.1 | Restrict access to SWIFT systems |
| Β | 2.2 | Segregate SWIFT operations from other environments |
| Β | 2.3 | Implement strong authentication |
| Β | 2.4 | Protect SWIFT data |
| Detect | 3.1 | Detect anomalous activity |
| Β | 3.2 | Implement incident response |
| Respond | 3.3 | Ensure business continuity |
| Β | 3.4 | Test and update resilience capabilities |
4.3 SWIFT Inter-Act Protocol
Overview:Β SWIFT Inter-Act is a protocol for secure financial messaging between financial institutions.
SWIFTΒ Inter-Act={MessageΒ Types,Authentication,Encryption,Non-Repudiation}
Message Types:
| Type | Description | Examples |
|---|---|---|
| MT 1xx | Customer payments | MT 103 (Single Customer Credit Transfer) |
| MT 2xx | Financial institution transfers | MT 202 (General Financial Institution Transfer) |
| MT 3xx | Treasury markets | MT 300 (Foreign Exchange Confirmation) |
| MT 4xx | Collection and cash letters | MT 400 (Collection Instruction) |
| MT 5xx | Securities markets | MT 540 (Receive Free) |
| MT 7xx | Documentary credits | MT 700 (Issue of a Documentary Credit) |
| MT 9xx | Messages | MT 999 (Free Format) |
SWIFT Security Architecture (Visual): βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | | | SWIFT Network β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | β SWIFT Inter-Act Protocol β β | β β’ Message encryption (AES) β β | β β’ Authentication (Digital signatures) β β | β β’ Non-repudiation (Audit trails) β β | ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ β | β | | βΌ | | Customer Security Programme (CSP) β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | β Protect: β β | β β’ Restrict internet access β β | β β’ Restrict access to SWIFT systems β β | β β’ Segregate SWIFT operations β β | β β’ Strong authentication β β | β β’ Protect SWIFT data β β | β Detect: β β | β β’ Anomalous activity detection β β | β β’ Incident response β β | β Respond: β β | β β’ Business continuity β β | β β’ Resilience testing β β | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β | | βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Summary and Bridge to Lesson 4.4
We have now completed the comprehensive analysis of cryptographic protocols for financial transactions. You have learned:
-
Transport Layer Security (TLS):Β Handshake Protocol, Record Protocol, and the TLS Security ModelΒ TLS={Confidentiality,Integrity,Authentication,ForwardΒ Secrecy}.
-
IPsec:Β AH, ESP, IKE, Transport Mode, Tunnel Mode, and the IPsec Security ModelΒ IPsec={Confidentiality,Integrity,Authentication,ReplayΒ Protection}.
-
SSH:Β Transport Layer, User Authentication, Connection Protocol, and the SSH Security ModelΒ SSH={Confidentiality,Integrity,Authentication,SessionΒ Management}.
-
SWIFT Security:Β Customer Security Programme (CSP) and SWIFT Inter-Act Protocol.
InΒ Lesson 4.4, we will exploreΒ Digital Signatures and Authentication in Financial Systems, analyzing the role of digital signatures in financial transactions and the various authentication mechanism