demo bgp path hijacking
play

Demo: BGP Path Hijacking Vimal Stanford University August - PowerPoint PPT Presentation

Demo: BGP Path Hijacking Vimal Stanford University August 18 th 2014 Goals of the Assignment Understand how BGP path hijacking aGacks might happen in


  1. Demo: ¡BGP ¡Path ¡Hijacking ¡ Vimal ¡ Stanford ¡University ¡ August ¡18 th ¡2014 ¡

  2. Goals ¡of ¡the ¡Assignment ¡ • Understand ¡how ¡BGP ¡path ¡hijacking ¡aGacks ¡ might ¡happen ¡in ¡the ¡real ¡world. ¡ • Give ¡students ¡a ¡hands-­‑on ¡experience, ¡and ¡a ¡ plaLorm ¡to ¡explore ¡beyond ¡the ¡primary ¡goal. ¡ ¡ August ¡18, ¡2014 ¡ 2 ¡

  3. Outline ¡ • Why ¡is ¡Mininet ¡helpful? ¡ • Assignment ¡walk ¡through ¡ • Behind ¡the ¡scenes ¡ August ¡18, ¡2014 ¡ 3 ¡

  4. Why ¡is ¡Mininet ¡helpful? ¡ • Easy ¡to ¡setup ¡the ¡environment ¡ – No ¡need ¡for ¡expensive ¡routers ¡or ¡VMs. ¡ – No ¡need ¡to ¡simulate ¡BGP ¡protocol. ¡ ¡Use ¡ producUon-­‑quality ¡soWware! ¡ – Explore ¡various ¡parameter ¡tweaks ¡readily. ¡ • Easy ¡to ¡access ¡state ¡informaUon ¡ – cat ¡/path/to/logfiles ¡ – tcpdump ¡ • Easy ¡to ¡distribute ¡the ¡assignment ¡ – git ¡clone ¡ssh://git@bitbucket.org/jvimal/bgp.git ¡ August ¡18, ¡2014 ¡ 4 ¡

  5. Assignment ¡Walk ¡Through ¡ • Step ¡1: ¡Set ¡up ¡the ¡environment ¡on ¡Mininet ¡ AS1 AS2 AS3 11.0.0.0/8 12.0.0.0/8 13.0.0.0/8 R1 R2 R3 AS4 13.0.0.0/8 R4 August ¡18, ¡2014 ¡ 5 ¡

  6. Assignment ¡Walk ¡Through ¡ • Step ¡2: ¡Start ¡R1, ¡R2, ¡R3. ¡ ¡Log ¡into ¡R1’s ¡rouUng ¡ daemon. ¡ August ¡18, ¡2014 ¡ 6 ¡

  7. Assignment ¡Walk ¡Through ¡ • Step ¡3: ¡Peek ¡into ¡R1’s ¡rouUng ¡entries. ¡ • Step ¡4: ¡Start ¡browsing ¡a ¡13.0.0.0/8 ¡website ¡at ¡ AS1 ¡in ¡a ¡loop. ¡ August ¡18, ¡2014 ¡ 7 ¡

  8. Assignment ¡Walk ¡Through ¡ • Step ¡5: ¡Start ¡the ¡rogue ¡AS. ¡ – Wait ¡for ¡convergence. ¡ – Watch ¡what ¡happens ¡to ¡website ¡browsing ¡loop. ¡ – Check ¡the ¡rouUng ¡informaUon ¡base ¡in ¡R1. ¡ • Step ¡6: ¡Stop ¡the ¡rogue ¡AS. ¡ August ¡18, ¡2014 ¡ 8 ¡

  9. Behind ¡the ¡Scenes: ¡ Network ¡Namespace ¡(IsolaUon) ¡ Container : ¡Encapsulates ¡the ¡ curl 13.0.1.1 processes ¡into ¡its ¡own ¡network ¡ h1-1 h1-2 h1-3 namespace. ¡ AS1 AS2 AS3 h3-1 13.0.1.1 python webserver.py 11.0.0.0/8 12.0.0.0/8 13.0.0.0/8 h3-2 R1 R2 R3 h3-3 AS4 h4-1 13.0.1.1: python webserver.py 13.0.0.0/8 h4-2 R4 h4-3 August ¡18, ¡2014 ¡ 9 ¡

  10. Behind ¡the ¡Scenes: ¡ Quagga ¡RouUng ¡Suite ¡ AS1’s ¡Network ¡Namespace ¡ AS2’s ¡netns ¡ AS1 11.0.0.0/8 Namespaced ¡RouUng ¡Table ¡ R1 Prefix ¡ Interface ¡ Prefix ¡ Interfac H1-­‑1 ¡ netlink ¡socket ¡interface ¡ H1-­‑2 ¡ zebra ¡ bgpd ¡ bgpd ¡ H1-­‑3 ¡ BGPv4 ¡protocol ¡ • Configure ¡staUc ¡IP ¡addresses ¡for ¡AS1, ¡AS2, ¡etc. ¡and ¡set ¡up ¡staUc ¡rouUng ¡entries. ¡ • Configure ¡bgpd’s ¡peers ¡inside ¡each ¡AS. ¡ • Set ¡up ¡zebra ¡to ¡program ¡Linux ¡Kernel’s ¡rouUng ¡entries ¡(no ¡need ¡for ¡OpenV Switch ). ¡ August ¡18, ¡2014 ¡ 10 ¡

  11. Things ¡to ¡try ¡out ¡ • Try ¡tcpdump ¡on ¡BGPv4 ¡messages ¡ • Try ¡larger ¡topologies ¡and ¡plot ¡BGP ¡ convergence ¡Umes ¡ • Replay ¡BGP ¡updates ¡in ¡Internet ¡(RIPE ¡data) ¡ and ¡the ¡enUre ¡Internet2 ¡(dataset ¡available ¡ online) ¡ • Try ¡other ¡kinds ¡of ¡aGacks ¡(announcing ¡more ¡ specific ¡prefix ¡with ¡a ¡larger ¡path) ¡ August ¡18, ¡2014 ¡ 11 ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend