SlideShare una empresa de Scribd logo
1 de 45
Hacking The Trading Floor Gyan Chawdhary Session ID: HT2-304 Session Classification: Intermediate
Agenda 2 BRIEF HISTORY OF ECONOMIC HACKS APPLICATION ISSUES FIX ATTACKS
3 Brief History of Economic Hacks
Brief History Of Security Compromises in the Banking Sector 4
More Recently … (2008-2010) Sergey Aleynikov, former Goldman Sachs computer programmer/prop trader indicted and prosecuted on charges of HFT algorithm theft. UBS filed a lawsuit against three former quants alleging to have stolen proprietary algorithmic trading software with the intent of using it at their new employer. Ukrainian hacker Oleksandr Dorozhko charged for insider trading by SEC. Mr Dorozhko traded option contracts on information gained by accessing earnings data from a staging server prior to their release date. 5
Even More Recently … (Dec 2010 - Jan 2011) Romanian Registry (Carbon Trading Platform) 1.6 million CO2 certificated from Holcim Cement account were stolen. Credits were transferred to hacker controlled accounts in EU states. Czech / Austrian Registry (Carbon Trading Platform) Two million credits worth 2.8 million were stolen and transferred to other registries and / or sold to other market participants. 6
Even More Recently … (Dec 2010 - Jan 2011) NASDAQ Director’s Desk Application Currently being investigated for a potential breach, the Directors Desk application is an EMS application that allows executives to share sensitive documents including earnings data, board minutes etc. 7
Common Theme / Trends  Attackers are still leveraging the low hanging fruit in terms of security issues used to compromise these systems. As of 2011, the threats are increasing both in scale and sophistication. Outsider threat is increasing 8
Application Security 9
Case Studies Trade Optimized Strategy Engine Issues OTC Trading Platforms Issues Thick Client Trading Platforms Issues Reconciliation Platform Issues Indices Application Insecurities Computational Grid Attacks 10
Trade Optimized Strategy Engine WHAT Class of applications used for submission and analysis of investment/trading strategies. WHO  Used mainly by Funds/Banks/Investment Management firms employing Global Macro/Event driven trading strategies  HOW Third party Brokers, Analysts, Economists access the application to upload trading strategies/ideas. The application uses both statistical and/or proprietary algorithms to index/rate submitted strategies Traders trade the most optimum strategy  11
Case Study - Trade Optimized Strategy Engine Issues (Weak Input Validation) 12
Problems Infrastructure Issues Application Issues Governance 13
OTC Trading Platforms WHAT Predominantly dealer applications for trading over-the-counter derivatives.  WHO  Used by almost all banks dealing in credit derivatives markets - CDO, CDS, IRS etc  Mainly used for structuring instruments, based on client requirements which are then traded directly or through a dealer. Mainly used by front office quants/traders HOW Trades are executed using commercial and/or bespoke platforms etc Post Trade processing can be carried in-house or outsourced. 14
Case Study – Bank OTC Trading Platform Issues (Trade Data / Client Discovery Attack) 15
Problems Application Issues Governance 16
Thick Client Trading Platforms WHAT Any front, middle or back office trading application. Often developed for business/analyst staff and/or used to extend trading services to third-party clients. 17
Case Study - Thick Client Trading Platform Issues (Forex Broker-Dealer Application) 18
Problems Application Issues 19
Case Study - Reconciliation Platform Issues
Indices Applications Definition Index - A basket/collection/group of securities to track the performance of a market/sector/asset. Can be traded as Futures/Options contracts or used as the underlying for other products. WHO Mostly developed and managed by Exchanges, Rating agencies and Banks. HOW A committee or bespoke methods / benchmarks are used to rebalance indices.  21
Case Study - Index Rebalancing/Turnover Attacks 22
Computational Grids WHAT  High performance computing grids used for running solvers, simulations and analysis of financial time series data. (Monitcarlo, Volatility, OP etc) WHO  Mostly institutions and departments involved with financial modeling. Users tend to be quants, traders and analysts.  HOW Models are submitted to the grid environment using Web services, custom APIs and/or remote access. 23
Case Study - Computational Grid Attacks
Problems Infrastructure Issues Application Issues . Governance 25
FIX Protocol Weaknesses 26
What is FIX Protocol ? The Financial Information eXchange (FIX) protocol is an electronic communications protocol initiated in 1992 for international real-time exchange of information related to the securities transactions and markets – Wikipeda In other words, the protocol facilitates the buying and selling of securities electronically. 27
Who Uses FIX FIX is widely used by both the buy side (institutions) as well as the sell side (brokers/dealers) in the financial markets.  Amongst its users are hedge funds, mutual funds, investment banks, brokers and stock exchanges Transaction types supported: Pretty much all asset classes i.e Equities, Bond, Derivatives and Forex. 28
Who Uses FIX 29
Why Investigate FIX ? FIX security is often overlooked in favor of Operating System and Host Security To demonstrate that FIX based front running is possible and not difficult to exploit  To identify mitigating factors and strategies for some of the existing issues within FIX protocol 30
 Algorithmic Trading Architecture 31
High Frequency Trading Architecture 32
Order Front Running (Demo) Demo Environment: Algorithmic Trading Environment – A simulated algorithmic/high frequency trading environment  Brokerage Account – Hacker Controlled brokerage account to reply orders. Order Sniffer -  Note The following examples used during this demonstration are not intended to suggest any insecurities or weaknesses in the third party applications and are only to be seen as a case study to demonstrate FIX protocol insecurities.  33
Algorithmic Trading Environment 34
Brokerage Account 35
Order Front Running 1 2 3 36
LibPcap FIX Sniffing (Slow) symbol = re.compile('55=[A-Z]*')     # Symbol (APPL, GOOG .. ) buy = re.compile('54=1')             # BUY Order sell = re.compile('54=2')            # SELL Order order_qty = re.compile('38=[0-9]*')  # Order quantity price = re.compile('44=[0-9]*')      # Equity Price  37
Fix Virus 38
Cont 39
Binary Tree _ 40
Fast FIX walker (C++) 41
Order Builder 42
Hedgefund Example - Weak Wifi + FIX sniffer  43
IbPy Server Side Code	- Contract Builder def build_stock_contract(symbol, quantity, oid):     stock.m_symbol = symbol     stock.m_secType = 'STK'     stock.m_exchange = 'SMART'     stock.m_currency = 'USD'     Order.m_orderId = oid     Order.m_clientId = 0     Order.m_permid = 0     Order.m_action = 'BUY'     Order.m_lmtPrice = 0     Order.m_auxPrice = 0     Order.m_tif = 'DAY'     Order.m_transmit = False     Order.m_orderType = 'MKT'     Order.m_totalQuantity = quantit 44
Order Sniffer (Excel plugin) – order encoding  45

Más contenido relacionado

La actualidad más candente

Algorithmic Trading and FIX Protocol
Algorithmic Trading and FIX ProtocolAlgorithmic Trading and FIX Protocol
Algorithmic Trading and FIX ProtocolEXANTE
 
Quant insti webinar on algorithmic trading for technocrats!
Quant insti webinar on algorithmic trading for technocrats!Quant insti webinar on algorithmic trading for technocrats!
Quant insti webinar on algorithmic trading for technocrats!QuantInsti
 
Algorithmic & quantitative trading webinar
Algorithmic & quantitative trading webinarAlgorithmic & quantitative trading webinar
Algorithmic & quantitative trading webinarQuantInsti
 
Algorithmic Trading in Different Landscapes
Algorithmic Trading in Different LandscapesAlgorithmic Trading in Different Landscapes
Algorithmic Trading in Different LandscapesQuantInsti
 
Extent 2013 Obninsk Cross-Asset Portfolio Margin Risk Calculation for HFT
Extent 2013 Obninsk Cross-Asset Portfolio Margin Risk Calculation for HFTExtent 2013 Obninsk Cross-Asset Portfolio Margin Risk Calculation for HFT
Extent 2013 Obninsk Cross-Asset Portfolio Margin Risk Calculation for HFTextentconf Tsoy
 
Managing an Option Portfolio and how Automated Trading makes it easier
Managing an Option Portfolio and how Automated Trading makes it easierManaging an Option Portfolio and how Automated Trading makes it easier
Managing an Option Portfolio and how Automated Trading makes it easierQuantInsti
 
Paradigms of trading strategies formulation
Paradigms of trading strategies formulationParadigms of trading strategies formulation
Paradigms of trading strategies formulationQuantInsti
 
Exante algotrading
Exante algotradingExante algotrading
Exante algotradingEXANTE
 
Market Surveillance
Market SurveillanceMarket Surveillance
Market SurveillanceRaja Das
 
Latency war the present & the future
Latency war   the present & the futureLatency war   the present & the future
Latency war the present & the futureQuantInsti
 
Trading and Mobile Computing based on FIX protocol
Trading and Mobile Computing based on FIX protocolTrading and Mobile Computing based on FIX protocol
Trading and Mobile Computing based on FIX protocolDeepak Singhvi
 
Tlc presenatation
Tlc presenatationTlc presenatation
Tlc presenatationmanishmsk
 
Algorithmic & High-Frequency Trading
Algorithmic & High-Frequency TradingAlgorithmic & High-Frequency Trading
Algorithmic & High-Frequency TradingRyan Hendricks
 
Fix protocol an introduction (r motie)
Fix protocol   an introduction (r motie)Fix protocol   an introduction (r motie)
Fix protocol an introduction (r motie)Dr Richard Motie
 
Trade life cycle
Trade life cycleTrade life cycle
Trade life cycleAyush0734
 
Pwc High Frequency Trading Dark Pools
Pwc High Frequency Trading Dark PoolsPwc High Frequency Trading Dark Pools
Pwc High Frequency Trading Dark PoolsPwC
 

La actualidad más candente (20)

Algorithmic Trading and FIX Protocol
Algorithmic Trading and FIX ProtocolAlgorithmic Trading and FIX Protocol
Algorithmic Trading and FIX Protocol
 
Quant insti webinar on algorithmic trading for technocrats!
Quant insti webinar on algorithmic trading for technocrats!Quant insti webinar on algorithmic trading for technocrats!
Quant insti webinar on algorithmic trading for technocrats!
 
Algorithmic & quantitative trading webinar
Algorithmic & quantitative trading webinarAlgorithmic & quantitative trading webinar
Algorithmic & quantitative trading webinar
 
Algorithmic Trading in Different Landscapes
Algorithmic Trading in Different LandscapesAlgorithmic Trading in Different Landscapes
Algorithmic Trading in Different Landscapes
 
Extent 2013 Obninsk Cross-Asset Portfolio Margin Risk Calculation for HFT
Extent 2013 Obninsk Cross-Asset Portfolio Margin Risk Calculation for HFTExtent 2013 Obninsk Cross-Asset Portfolio Margin Risk Calculation for HFT
Extent 2013 Obninsk Cross-Asset Portfolio Margin Risk Calculation for HFT
 
Managing an Option Portfolio and how Automated Trading makes it easier
Managing an Option Portfolio and how Automated Trading makes it easierManaging an Option Portfolio and how Automated Trading makes it easier
Managing an Option Portfolio and how Automated Trading makes it easier
 
Paradigms of trading strategies formulation
Paradigms of trading strategies formulationParadigms of trading strategies formulation
Paradigms of trading strategies formulation
 
Fix
FixFix
Fix
 
Algorithmic trading
Algorithmic tradingAlgorithmic trading
Algorithmic trading
 
Exante algotrading
Exante algotradingExante algotrading
Exante algotrading
 
Market Surveillance
Market SurveillanceMarket Surveillance
Market Surveillance
 
Trade life cycle 1
Trade life cycle 1Trade life cycle 1
Trade life cycle 1
 
Latency war the present & the future
Latency war   the present & the futureLatency war   the present & the future
Latency war the present & the future
 
Trading and Mobile Computing based on FIX protocol
Trading and Mobile Computing based on FIX protocolTrading and Mobile Computing based on FIX protocol
Trading and Mobile Computing based on FIX protocol
 
Tlc presenatation
Tlc presenatationTlc presenatation
Tlc presenatation
 
Algorithmic Trading
Algorithmic TradingAlgorithmic Trading
Algorithmic Trading
 
Algorithmic & High-Frequency Trading
Algorithmic & High-Frequency TradingAlgorithmic & High-Frequency Trading
Algorithmic & High-Frequency Trading
 
Fix protocol an introduction (r motie)
Fix protocol   an introduction (r motie)Fix protocol   an introduction (r motie)
Fix protocol an introduction (r motie)
 
Trade life cycle
Trade life cycleTrade life cycle
Trade life cycle
 
Pwc High Frequency Trading Dark Pools
Pwc High Frequency Trading Dark PoolsPwc High Frequency Trading Dark Pools
Pwc High Frequency Trading Dark Pools
 

Destacado

GPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
GPU Accelerated Backtesting and Machine Learning for Quant Trading StrategiesGPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
GPU Accelerated Backtesting and Machine Learning for Quant Trading StrategiesDaniel Egloff
 
The Electronic Marketplace for OTC Cleared Derivatives
The Electronic Marketplace for OTC Cleared DerivativesThe Electronic Marketplace for OTC Cleared Derivatives
The Electronic Marketplace for OTC Cleared DerivativesCleartrade
 
Trading Systems
Trading SystemsTrading Systems
Trading Systemsapimec
 
Email Social Media 4 Tactics 2010 Nor Cal Dma 11.18.09
Email Social Media 4 Tactics 2010 Nor Cal Dma 11.18.09Email Social Media 4 Tactics 2010 Nor Cal Dma 11.18.09
Email Social Media 4 Tactics 2010 Nor Cal Dma 11.18.09Silverpop
 
Sascon 20/05 Room 1 Introduction
Sascon 20/05 Room 1 IntroductionSascon 20/05 Room 1 Introduction
Sascon 20/05 Room 1 Introductionsascon
 
Sdkff core
Sdkff coreSdkff core
Sdkff corejwony
 
КГТУ Лаб 1: Stocks / FIX / FAST
КГТУ Лаб 1: Stocks / FIX / FASTКГТУ Лаб 1: Stocks / FIX / FAST
КГТУ Лаб 1: Stocks / FIX / FASTIosif Itkin
 
2014 holiday online shopping mobile trends silverpop
2014 holiday online shopping mobile trends silverpop2014 holiday online shopping mobile trends silverpop
2014 holiday online shopping mobile trends silverpopSilverpop
 
A lei dos gráficos
A lei dos gráficosA lei dos gráficos
A lei dos gráficosErnani Dias
 
Probability Forecasting - a Machine Learning Perspective
Probability Forecasting - a Machine Learning PerspectiveProbability Forecasting - a Machine Learning Perspective
Probability Forecasting - a Machine Learning Perspectivebutest
 
Order book dynamics in high frequency trading
Order book dynamics in high frequency tradingOrder book dynamics in high frequency trading
Order book dynamics in high frequency tradingQuantInsti
 
SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...
SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...
SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...Chester Chen
 
Why You Need FPGA In Your High-Frequency Trading Business
Why You Need FPGA In Your High-Frequency Trading BusinessWhy You Need FPGA In Your High-Frequency Trading Business
Why You Need FPGA In Your High-Frequency Trading Businessjeffjohnsonau
 
Backtesting Trading Strategies with R
Backtesting Trading Strategies with RBacktesting Trading Strategies with R
Backtesting Trading Strategies with Reraviv
 

Destacado (20)

GPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
GPU Accelerated Backtesting and Machine Learning for Quant Trading StrategiesGPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
GPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
 
The Electronic Marketplace for OTC Cleared Derivatives
The Electronic Marketplace for OTC Cleared DerivativesThe Electronic Marketplace for OTC Cleared Derivatives
The Electronic Marketplace for OTC Cleared Derivatives
 
The day trader's bible, wyckoff
The day trader's bible, wyckoffThe day trader's bible, wyckoff
The day trader's bible, wyckoff
 
The composite man
The composite manThe composite man
The composite man
 
Trading Systems
Trading SystemsTrading Systems
Trading Systems
 
Email Social Media 4 Tactics 2010 Nor Cal Dma 11.18.09
Email Social Media 4 Tactics 2010 Nor Cal Dma 11.18.09Email Social Media 4 Tactics 2010 Nor Cal Dma 11.18.09
Email Social Media 4 Tactics 2010 Nor Cal Dma 11.18.09
 
Sascon 20/05 Room 1 Introduction
Sascon 20/05 Room 1 IntroductionSascon 20/05 Room 1 Introduction
Sascon 20/05 Room 1 Introduction
 
Too fast for Scrum? | AgilePT 2015
Too fast for Scrum? | AgilePT 2015Too fast for Scrum? | AgilePT 2015
Too fast for Scrum? | AgilePT 2015
 
Sdkff core
Sdkff coreSdkff core
Sdkff core
 
Clase 24/04/09
Clase 24/04/09Clase 24/04/09
Clase 24/04/09
 
КГТУ Лаб 1: Stocks / FIX / FAST
КГТУ Лаб 1: Stocks / FIX / FASTКГТУ Лаб 1: Stocks / FIX / FAST
КГТУ Лаб 1: Stocks / FIX / FAST
 
2014 holiday online shopping mobile trends silverpop
2014 holiday online shopping mobile trends silverpop2014 holiday online shopping mobile trends silverpop
2014 holiday online shopping mobile trends silverpop
 
Fix Bindings for Java
Fix Bindings for JavaFix Bindings for Java
Fix Bindings for Java
 
A lei dos gráficos
A lei dos gráficosA lei dos gráficos
A lei dos gráficos
 
Probability Forecasting - a Machine Learning Perspective
Probability Forecasting - a Machine Learning PerspectiveProbability Forecasting - a Machine Learning Perspective
Probability Forecasting - a Machine Learning Perspective
 
Order book dynamics in high frequency trading
Order book dynamics in high frequency tradingOrder book dynamics in high frequency trading
Order book dynamics in high frequency trading
 
SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...
SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...
SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...
 
Why You Need FPGA In Your High-Frequency Trading Business
Why You Need FPGA In Your High-Frequency Trading BusinessWhy You Need FPGA In Your High-Frequency Trading Business
Why You Need FPGA In Your High-Frequency Trading Business
 
Pairs trading using R
Pairs trading using R Pairs trading using R
Pairs trading using R
 
Backtesting Trading Strategies with R
Backtesting Trading Strategies with RBacktesting Trading Strategies with R
Backtesting Trading Strategies with R
 

Similar a Hacking The Trading Floor

Investors Europe, The World's Greatest Online Trading portal with the Greates...
Investors Europe, The World's Greatest Online Trading portal with the Greates...Investors Europe, The World's Greatest Online Trading portal with the Greates...
Investors Europe, The World's Greatest Online Trading portal with the Greates...Investors Europe (Mauritius) Limited
 
Case study commodity value chain banking luxoft for one of the largest global...
Case study commodity value chain banking luxoft for one of the largest global...Case study commodity value chain banking luxoft for one of the largest global...
Case study commodity value chain banking luxoft for one of the largest global...Luxoft
 
E - BUSINESS AND ACCOUNTING.
E - BUSINESS AND ACCOUNTING.E - BUSINESS AND ACCOUNTING.
E - BUSINESS AND ACCOUNTING.Abhishek Kulkarni
 
Impact 2013: How Technology is used for real-time monitoring of Dodd-Frank Tr...
Impact 2013: How Technology is used for real-time monitoring of Dodd-Frank Tr...Impact 2013: How Technology is used for real-time monitoring of Dodd-Frank Tr...
Impact 2013: How Technology is used for real-time monitoring of Dodd-Frank Tr...jKool
 
Market Abuse Detection
Market Abuse DetectionMarket Abuse Detection
Market Abuse DetectionRaja Das
 
OpenText EIM Day - Richard Baker
OpenText EIM Day - Richard BakerOpenText EIM Day - Richard Baker
OpenText EIM Day - Richard BakerCleartrade
 
mindtree-trade-reporting-control-framework
mindtree-trade-reporting-control-frameworkmindtree-trade-reporting-control-framework
mindtree-trade-reporting-control-frameworkAbhishek Dasgupta
 
Parallel Trading Systems business proposition
Parallel Trading Systems business propositionParallel Trading Systems business proposition
Parallel Trading Systems business propositionDavide Zari
 
High-Frequency Trading in Stock Market
High-Frequency Trading in Stock MarketHigh-Frequency Trading in Stock Market
High-Frequency Trading in Stock MarketIRJET Journal
 
BigDataCloud Sept 8 2011 Meetup - Big Data Analytics for DoddFrank Regulation...
BigDataCloud Sept 8 2011 Meetup - Big Data Analytics for DoddFrank Regulation...BigDataCloud Sept 8 2011 Meetup - Big Data Analytics for DoddFrank Regulation...
BigDataCloud Sept 8 2011 Meetup - Big Data Analytics for DoddFrank Regulation...BigDataCloud
 
How tech-is-used-real-time-monitoring-dodd-frank-trade-reporting
How tech-is-used-real-time-monitoring-dodd-frank-trade-reportingHow tech-is-used-real-time-monitoring-dodd-frank-trade-reporting
How tech-is-used-real-time-monitoring-dodd-frank-trade-reportingjKool
 
FinfraG: Opportunities & Challenges for Global Trading Platforms
FinfraG: Opportunities & Challenges for Global Trading PlatformsFinfraG: Opportunities & Challenges for Global Trading Platforms
FinfraG: Opportunities & Challenges for Global Trading PlatformsCognizant
 
How to compete with Banks in 32 countries
How to compete with Banks in 32 countriesHow to compete with Banks in 32 countries
How to compete with Banks in 32 countriesLuis Rivera
 
EXTENT-2015: Prognoz Market Surveillance
EXTENT-2015: Prognoz  Market SurveillanceEXTENT-2015: Prognoz  Market Surveillance
EXTENT-2015: Prognoz Market SurveillanceIosif Itkin
 
Big data in Private Banking
Big data in Private BankingBig data in Private Banking
Big data in Private BankingJérôme Kehrli
 
Order Routing System for Stock Brokers connected to multiple exchanges
Order Routing System for Stock Brokers connected to multiple exchangesOrder Routing System for Stock Brokers connected to multiple exchanges
Order Routing System for Stock Brokers connected to multiple exchangesIRJET Journal
 
EXTENT-2016: MiFID 2 Compliant Fixed Income SOR System
EXTENT-2016: MiFID 2 Compliant Fixed Income SOR SystemEXTENT-2016: MiFID 2 Compliant Fixed Income SOR System
EXTENT-2016: MiFID 2 Compliant Fixed Income SOR SystemIosif Itkin
 
Blockchain and international trade, trade finance, and supply chain (1)
Blockchain and international trade, trade finance, and supply chain (1)Blockchain and international trade, trade finance, and supply chain (1)
Blockchain and international trade, trade finance, and supply chain (1)Sunny Sian
 

Similar a Hacking The Trading Floor (20)

Investors Europe, The World's Greatest Online Trading portal with the Greates...
Investors Europe, The World's Greatest Online Trading portal with the Greates...Investors Europe, The World's Greatest Online Trading portal with the Greates...
Investors Europe, The World's Greatest Online Trading portal with the Greates...
 
TALEO_Reporting_Global_VF
TALEO_Reporting_Global_VFTALEO_Reporting_Global_VF
TALEO_Reporting_Global_VF
 
Case study commodity value chain banking luxoft for one of the largest global...
Case study commodity value chain banking luxoft for one of the largest global...Case study commodity value chain banking luxoft for one of the largest global...
Case study commodity value chain banking luxoft for one of the largest global...
 
E - BUSINESS AND ACCOUNTING.
E - BUSINESS AND ACCOUNTING.E - BUSINESS AND ACCOUNTING.
E - BUSINESS AND ACCOUNTING.
 
Impact 2013: How Technology is used for real-time monitoring of Dodd-Frank Tr...
Impact 2013: How Technology is used for real-time monitoring of Dodd-Frank Tr...Impact 2013: How Technology is used for real-time monitoring of Dodd-Frank Tr...
Impact 2013: How Technology is used for real-time monitoring of Dodd-Frank Tr...
 
AIOTrade_V4
AIOTrade_V4AIOTrade_V4
AIOTrade_V4
 
Market Abuse Detection
Market Abuse DetectionMarket Abuse Detection
Market Abuse Detection
 
OpenText EIM Day - Richard Baker
OpenText EIM Day - Richard BakerOpenText EIM Day - Richard Baker
OpenText EIM Day - Richard Baker
 
mindtree-trade-reporting-control-framework
mindtree-trade-reporting-control-frameworkmindtree-trade-reporting-control-framework
mindtree-trade-reporting-control-framework
 
Parallel Trading Systems business proposition
Parallel Trading Systems business propositionParallel Trading Systems business proposition
Parallel Trading Systems business proposition
 
High-Frequency Trading in Stock Market
High-Frequency Trading in Stock MarketHigh-Frequency Trading in Stock Market
High-Frequency Trading in Stock Market
 
BigDataCloud Sept 8 2011 Meetup - Big Data Analytics for DoddFrank Regulation...
BigDataCloud Sept 8 2011 Meetup - Big Data Analytics for DoddFrank Regulation...BigDataCloud Sept 8 2011 Meetup - Big Data Analytics for DoddFrank Regulation...
BigDataCloud Sept 8 2011 Meetup - Big Data Analytics for DoddFrank Regulation...
 
How tech-is-used-real-time-monitoring-dodd-frank-trade-reporting
How tech-is-used-real-time-monitoring-dodd-frank-trade-reportingHow tech-is-used-real-time-monitoring-dodd-frank-trade-reporting
How tech-is-used-real-time-monitoring-dodd-frank-trade-reporting
 
FinfraG: Opportunities & Challenges for Global Trading Platforms
FinfraG: Opportunities & Challenges for Global Trading PlatformsFinfraG: Opportunities & Challenges for Global Trading Platforms
FinfraG: Opportunities & Challenges for Global Trading Platforms
 
How to compete with Banks in 32 countries
How to compete with Banks in 32 countriesHow to compete with Banks in 32 countries
How to compete with Banks in 32 countries
 
EXTENT-2015: Prognoz Market Surveillance
EXTENT-2015: Prognoz  Market SurveillanceEXTENT-2015: Prognoz  Market Surveillance
EXTENT-2015: Prognoz Market Surveillance
 
Big data in Private Banking
Big data in Private BankingBig data in Private Banking
Big data in Private Banking
 
Order Routing System for Stock Brokers connected to multiple exchanges
Order Routing System for Stock Brokers connected to multiple exchangesOrder Routing System for Stock Brokers connected to multiple exchanges
Order Routing System for Stock Brokers connected to multiple exchanges
 
EXTENT-2016: MiFID 2 Compliant Fixed Income SOR System
EXTENT-2016: MiFID 2 Compliant Fixed Income SOR SystemEXTENT-2016: MiFID 2 Compliant Fixed Income SOR System
EXTENT-2016: MiFID 2 Compliant Fixed Income SOR System
 
Blockchain and international trade, trade finance, and supply chain (1)
Blockchain and international trade, trade finance, and supply chain (1)Blockchain and international trade, trade finance, and supply chain (1)
Blockchain and international trade, trade finance, and supply chain (1)
 

Hacking The Trading Floor

  • 1. Hacking The Trading Floor Gyan Chawdhary Session ID: HT2-304 Session Classification: Intermediate
  • 2. Agenda 2 BRIEF HISTORY OF ECONOMIC HACKS APPLICATION ISSUES FIX ATTACKS
  • 3. 3 Brief History of Economic Hacks
  • 4. Brief History Of Security Compromises in the Banking Sector 4
  • 5. More Recently … (2008-2010) Sergey Aleynikov, former Goldman Sachs computer programmer/prop trader indicted and prosecuted on charges of HFT algorithm theft. UBS filed a lawsuit against three former quants alleging to have stolen proprietary algorithmic trading software with the intent of using it at their new employer. Ukrainian hacker Oleksandr Dorozhko charged for insider trading by SEC. Mr Dorozhko traded option contracts on information gained by accessing earnings data from a staging server prior to their release date. 5
  • 6. Even More Recently … (Dec 2010 - Jan 2011) Romanian Registry (Carbon Trading Platform) 1.6 million CO2 certificated from Holcim Cement account were stolen. Credits were transferred to hacker controlled accounts in EU states. Czech / Austrian Registry (Carbon Trading Platform) Two million credits worth 2.8 million were stolen and transferred to other registries and / or sold to other market participants. 6
  • 7. Even More Recently … (Dec 2010 - Jan 2011) NASDAQ Director’s Desk Application Currently being investigated for a potential breach, the Directors Desk application is an EMS application that allows executives to share sensitive documents including earnings data, board minutes etc. 7
  • 8. Common Theme / Trends Attackers are still leveraging the low hanging fruit in terms of security issues used to compromise these systems. As of 2011, the threats are increasing both in scale and sophistication. Outsider threat is increasing 8
  • 10. Case Studies Trade Optimized Strategy Engine Issues OTC Trading Platforms Issues Thick Client Trading Platforms Issues Reconciliation Platform Issues Indices Application Insecurities Computational Grid Attacks 10
  • 11. Trade Optimized Strategy Engine WHAT Class of applications used for submission and analysis of investment/trading strategies. WHO Used mainly by Funds/Banks/Investment Management firms employing Global Macro/Event driven trading strategies HOW Third party Brokers, Analysts, Economists access the application to upload trading strategies/ideas. The application uses both statistical and/or proprietary algorithms to index/rate submitted strategies Traders trade the most optimum strategy 11
  • 12. Case Study - Trade Optimized Strategy Engine Issues (Weak Input Validation) 12
  • 13. Problems Infrastructure Issues Application Issues Governance 13
  • 14. OTC Trading Platforms WHAT Predominantly dealer applications for trading over-the-counter derivatives. WHO Used by almost all banks dealing in credit derivatives markets - CDO, CDS, IRS etc Mainly used for structuring instruments, based on client requirements which are then traded directly or through a dealer. Mainly used by front office quants/traders HOW Trades are executed using commercial and/or bespoke platforms etc Post Trade processing can be carried in-house or outsourced. 14
  • 15. Case Study – Bank OTC Trading Platform Issues (Trade Data / Client Discovery Attack) 15
  • 17. Thick Client Trading Platforms WHAT Any front, middle or back office trading application. Often developed for business/analyst staff and/or used to extend trading services to third-party clients. 17
  • 18. Case Study - Thick Client Trading Platform Issues (Forex Broker-Dealer Application) 18
  • 20. Case Study - Reconciliation Platform Issues
  • 21. Indices Applications Definition Index - A basket/collection/group of securities to track the performance of a market/sector/asset. Can be traded as Futures/Options contracts or used as the underlying for other products. WHO Mostly developed and managed by Exchanges, Rating agencies and Banks. HOW A committee or bespoke methods / benchmarks are used to rebalance indices. 21
  • 22. Case Study - Index Rebalancing/Turnover Attacks 22
  • 23. Computational Grids WHAT High performance computing grids used for running solvers, simulations and analysis of financial time series data. (Monitcarlo, Volatility, OP etc) WHO Mostly institutions and departments involved with financial modeling. Users tend to be quants, traders and analysts. HOW Models are submitted to the grid environment using Web services, custom APIs and/or remote access. 23
  • 24. Case Study - Computational Grid Attacks
  • 25. Problems Infrastructure Issues Application Issues . Governance 25
  • 27. What is FIX Protocol ? The Financial Information eXchange (FIX) protocol is an electronic communications protocol initiated in 1992 for international real-time exchange of information related to the securities transactions and markets – Wikipeda In other words, the protocol facilitates the buying and selling of securities electronically. 27
  • 28. Who Uses FIX FIX is widely used by both the buy side (institutions) as well as the sell side (brokers/dealers) in the financial markets. Amongst its users are hedge funds, mutual funds, investment banks, brokers and stock exchanges Transaction types supported: Pretty much all asset classes i.e Equities, Bond, Derivatives and Forex. 28
  • 30. Why Investigate FIX ? FIX security is often overlooked in favor of Operating System and Host Security To demonstrate that FIX based front running is possible and not difficult to exploit To identify mitigating factors and strategies for some of the existing issues within FIX protocol 30
  • 31. Algorithmic Trading Architecture 31
  • 32. High Frequency Trading Architecture 32
  • 33. Order Front Running (Demo) Demo Environment: Algorithmic Trading Environment – A simulated algorithmic/high frequency trading environment Brokerage Account – Hacker Controlled brokerage account to reply orders. Order Sniffer - Note The following examples used during this demonstration are not intended to suggest any insecurities or weaknesses in the third party applications and are only to be seen as a case study to demonstrate FIX protocol insecurities. 33
  • 37. LibPcap FIX Sniffing (Slow) symbol = re.compile('55=[A-Z]*') # Symbol (APPL, GOOG .. ) buy = re.compile('54=1') # BUY Order sell = re.compile('54=2') # SELL Order order_qty = re.compile('38=[0-9]*') # Order quantity price = re.compile('44=[0-9]*') # Equity Price 37
  • 41. Fast FIX walker (C++) 41
  • 43. Hedgefund Example - Weak Wifi + FIX sniffer 43
  • 44. IbPy Server Side Code - Contract Builder def build_stock_contract(symbol, quantity, oid): stock.m_symbol = symbol stock.m_secType = 'STK' stock.m_exchange = 'SMART' stock.m_currency = 'USD' Order.m_orderId = oid Order.m_clientId = 0 Order.m_permid = 0 Order.m_action = 'BUY' Order.m_lmtPrice = 0 Order.m_auxPrice = 0 Order.m_tif = 'DAY' Order.m_transmit = False Order.m_orderType = 'MKT' Order.m_totalQuantity = quantit 44
  • 45. Order Sniffer (Excel plugin) – order encoding 45