1 / 10

Investigations into BIND Dynamic Update with OpenSSL

Investigations into BIND Dynamic Update with OpenSSL. by David Wilkinson. Overview of DDOS attack. compromised.net. vigilant.net. incompetent.net. . . . . A. A. A. A. A. A. A. A. reflecting networks. DNS. DNS. R. DNS. R. reflecting networks. R. R. R. R. R. R. R.

anais
Download Presentation

Investigations into BIND Dynamic Update with OpenSSL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Investigations into BIND Dynamic Update with OpenSSL by David Wilkinson

  2. Overview of DDOS attack compromised.net vigilant.net incompetent.net ... ... ... ... A A A A A A A A reflecting networks DNS DNS R DNS R reflecting networks R R R R R R R A = Agent R = Router Victim

  3. Stopping attack with the Secure Collective Defense (SCOD) compromised.net vigilant.net incompetent.net ... ... ... ... A A A A A A A A reflecting networks DNS DNS R DNS R reflecting networks proxy proxy R proxy proxy R blocked by IDS blocked by IDS R blocked R R R blocked blocked A = Agent R = Router Victim reroute “Could I get some help here?”

  4. This project: focus on sending the reroute message to the servers of authority (soa) of preferred clientele Potential roadblocks/snafus: • How to authenticate machine sending the reroute command to the various DNS servers, and visa versa? • How to change DNS software to accept this new command and reroute clients accordingly?

  5. Using OpenSSL for Authentication • BIND9’s transaction signatures (TSIG) use shared keys for verification; not practical for verifying any machine on Internet • BIND9’S DNS Security Extensions (DNSSEC) utilize public key cryptography to allow the client to authenticate the server, but not the other way around • A secure socket layer (SSL) on the other hand, enables any client and server on the Internet to verify the legitimacy of each other using public key cryptography. Use OpenSSL here because it’s free.

  6. Combine OpenSSL with a modified version of ‘nsupdate’ to create ‘reroute’ • In BIND9, the nsupdate command allows an authorized machine to change the zone data in a DNS server • Mostly used by ISPs and large companies to assign IP addresses to dialup and cable modem customers dynamically ex: #nsupdate >prereq nxdomain mib.fx.movie.edu. >update add mib.fx.movie.edu. 300 A 192.253.253.16 > result: host mib.fx.movie.edu with IP address 192.253.253.16 is added to server’s zone file!

  7. reroute is different from nsupdate in the following ways: • reroute does not update the zone data for its own network’s (i.e., the victim’s) server of authority (soa). Instead it needs to add a new temporary zone file (that maps the victim host to the IP address of a proxy server in the SCOD schema) in the soa of every preferred client it has in its database. Dynamic updates cannot add new zones, period. (Or, in an alternate solution, reroute may add the preferred clients to a new ‘view’ in the victim’s DNS server. This view maps the victim host to the IP address of a proxy server. nsupdate cannot add new views nor add clients to the view list. However, during a DDOS attack, the victim’s DNS server may become unavailable, so the first option may be preferable.) • Mutual authentication between server and client with SSL

  8. Progress on adding SSL to nsupdate • Learned how to configure OpenSSL to create a certificate for a trusted root CA. Changed configuration file to create client and server certs signed by this CA. Set up a simple client and server that authenticated each other and communicated through an encrypted channel. • Traced the flow of nsupdate with GDB with the TCP option (-v) set. nsupdate.c and request.c must be modified on client (i.e., nsupdate) side; interfacemgr.c and client.c must be modified on server (i.e., named) side. • Adding code to client side not without trials and tribulations; not enough time for server side.

  9. Work Ahead • Get nsupdate and named to actually authenticate each other • Make new command, reroute, from nsupdate that adds temp. zone files to foreign DNS servers or, alternatively, adds a new view to the victim DNS server with a match-list of preferred customers. This view routes the clients to the victim through proxy servers.

  10. References • DNS and BIND. Paul Albitz and Cricket Liu, O’Reilly & Associates, Inc., 2001. • Network Security with OpenSSL. John Viega, Matt Messier & Pravir Chandra, O’Reilly, 2002. • “The ‘stacheldraht’ distributed denial of service attack tool.” David Dittrich, University of Washington, Dec. 31, 1999. • “DRDoS: Distributed Reflection Denial of Service.” Steve Gibson, grc.com, Feb. 22, 2002.

More Related