Ram Narula For presentation at APNIC 20 in Hanoi

Slides:



Advertisements
Similar presentations
Cryptography Chapter 7 Part 4 Pages 833 to 874. PKI Public Key Infrastructure Framework for Public Key Cryptography and for Secret key exchange.
Advertisements

Securing Bruce Maggs. Separate Suites of Protocols Protocols for retrieving POP, IMAP, MAPI (Microsoft Exchange) Protocols for sending
Topic 8: Secure communication in mobile devices. Choice of secure communication protocols, leveraging SSL for remote authentication and using HTTPS for.
1 Pertemuan 12 Authentication, Encryption, Digital Payments, and Digital Money Matakuliah: M0284/Teknologi & Infrastruktur E-Business Tahun: 2005 Versi:
Cunsheng Ding HKUST, Hong Kong, CHINA
Information Networking Security and Assurance Lab National Chung Cheng University Guidelines on Electronic Mail Security
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
TCP/IP - Security Perspective Upper Layers CS-431 Dick Steflik.
Introduction 1 Lecture 7 Application Layer (FTP, ) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
-I CS-3505 Wb_ -I.ppt. 4 The most useful feature of the internet 4 Lots of different programs, but most of them can talk to each.
SIMPLE MAIL TRANSFER PROTOCOL SECURITY Guided By Prof : Richard Sinn Bhavesh Jadav Mayur Mulani.
The Application Layer  application and application requirements  sample network applications and protocols  SMTP, POP3  WWW: http1.1  teleconferencing.
Introduction 1-1 Chapter 2 FTP & Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 IC322 Fall.
2: Application Layer1 Chapter 2 Application Layer These slides derived from Computer Networking: A Top Down Approach, 6 th edition. Jim Kurose, Keith Ross.
Chapter 14 Encryption: A Matter Of Trust. Awad –Electronic Commerce 2/e © 2004 Pearson Prentice Hall 2 OBJECTIVES What is Encryption? Basic Cryptographic.
By Ram Narula Trivial Internet weaknesses with solutions proposal (“A global initiative” Part 1: Focusing on ) Ram Narula
SMTP, POP3, IMAP.
Chapter 7: Using Windows Servers to Share Information.
Mail Services.
SMTP PROTOCOL CONFIGURATION AND MANAGEMENT Chapter 8.
Networking Basics TCP/IP TRANSPORT and APPLICATION LAYER Version 3.0 Cisco Regional Networking Academy.
Network Protocols. Why Protocols?  Rules and procedures to govern communication Some for transferring data Some for transferring data Some for route.
Securing Data at the Application Layer Planning Authenticity and Integrity of Transmitted Data Planning Encryption of Transmitted Data.
Sending and Receiving Mails
FTP (File Transfer Protocol) & Telnet
Ladd Van Tol Senior Software Engineer Security on the Web Part One - Vulnerabilities.
Prof. John A. Copeland fax Office: Klaus
File Transfer Protocol (FTP)
18-jan-962. ETH-W4 (ra)1 security on the Web l security l authentication l privacy.
1 Chapter 5 Electronic mail security. 2 Outline Pretty good privacy S/MIME Recommended web sites.
1 SMTP - Simple Mail Transfer Protocol –RFC 821 POP - Post Office Protocol –RFC 1939 Also: –RFC 822 Standard for the Format of ARPA Internet Text.
Internet Security. 2 PGP is a security technology which allows us to send that is authenticated and/or encrypted. Authentication confirms the identity.
1 Security Protocols in the Internet Source: Chapter 31 Data Communications & Networking Forouzan Third Edition.
OV Copyright © 2005 Element K Content LLC. All rights reserved. Hardening Internetwork Devices and Services  Harden Internetwork Connection Devices.
CS2910 Week 7, Lab Today SMTP lab Tuesday (Either today or yesterday) Extra office hour at 11 am (right after lab) Friday Office hour cancelled SE-2811.
Slides based on Carey Williamson’s: FTP & SMTP1 File Transfer Protocol (FTP) r FTP client contacts FTP server at port 21, specifying TCP as transport protocol.
Application of the Internet 1998/12/09 KEIO University, JAPAN Mikiyo
Chapter 7 : Web Security Lecture #1-Week 12 Dr.Khalid Dr. Mohannad Information Security CIT 460 Information Security Dr.Khalid Dr. Mohannad 1.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
SSL: Secure Socket Layer By: Mike Weissert. Overview Definition History & Background SSL Assurances SSL Session Problems Attacks & Defenses.
Key management issues in PGP
Chapter 7: Using Windows Servers
Securing Bruce Maggs.
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Chapter 5 Network Security Protocols in Practice Part I
Electronic mail security
Public Key Infrastructure (PKI)
Level 2 Diploma Unit 10 Setting up an IT Network
Cryptography and Network Security
Secure Sockets Layer (SSL)
UNIT.4 IP Security.
S/MIME T ANANDHAN.
MAIL AND SECURITY PERTEMUAN 13
Packet Sniffing.
Secure File Transfer Protocol (SFTP)
Cryptography and Network Security
ELECTRONIC MAIL SECURITY
ELECTRONIC MAIL SECURITY
Protocol ap1.0: Alice says “I am Alice”
The Application Layer: SMTP, FTP
Protocol Application TCP/IP Layer Model
Unit 8 Network Security.
Advanced Computer Networks
Chapter 7 Network Applications
Module 4 System and Application Security
Slides Credit: Sogand Sadrhaghighi
Cryptography and Network Security
MESSAGE ACCESS AGENT: POP AND IMAP
Presentation transcript:

Ram Narula ram@pluslab.com For presentation at APNIC 20 in Hanoi Trivial Internet weaknesses with solutions proposal (“A global initiative” Part 1: Focusing on e-mail) Ram Narula ram@pluslab.com For presentation at APNIC 20 in Hanoi by Ram Narula ram@pluslab.com

Simple Mail Transfer Protocol (SMTP) “THE PROTOCOL” for email communication Generally performs everything in plain-text (no data encryption) for server to server communication Open to sniffing and Man-in-the-middle attacks Generally perform no authentication of sending server/receiving server by Ram Narula ram@pluslab.com

by Ram Narula ram@pluslab.com What did it all mean? When you send email to your SMTP server and your servers sends it to the designated SMTP server (of the recipient), the email is not encrypted. This allows anyone/router between them to view your message and alter your message (session hijack). Wanna see how many routers your message passes through? Try doing a “traceroute” from your SMTP server to recipient’s SMTP server (hidden router/firewall will not even show up!) by Ram Narula ram@pluslab.com

Sample ‘traceroute’ result from Bangkok to APNIC’s SMTP server $ traceroute kombu.apnic.net -q 1 traceroute to kombu.apnic.net (202.12.29.57) from 203.xxx.xxx.xxx, 30 hops max, 38 byte packets 1 203.xxx.xxx.xxx (203.xxx.xxx.xxx) 248.598 ms 2 203.xxx.xxx.xxx (203.xxx.xxx.xxx) 61.918 ms 3 202.47.xxx.xxx (202.47.xxx.xxx) 89.270 ms 4 202.47.253.134 (202.47.253.134) 46.515 ms 5 global.hgc.com.hk (218.189.12.241) 127.309 ms 6 global.hgc.com.hk (218.189.8.161) 96.762 ms 7 210.0.247.34 (210.0.247.34) 97.296 ms 8 210.0.247.42 (210.0.247.42) 115.330 ms 9 peer.hgc.com.hk (218.189.96.54) 137.293 ms 10 i-3-4.wwh-dist02.net.reach.com (202.84.155.74) 81.425 ms 11 i-5-1.wwh-core01.net.reach.com (202.84.155.125) 80.450 ms 12 i-7-1.syd-core01.net.reach.com (202.84.249.186) 245.951 ms 13 10GigabitEthernet5-0.pad-core4.Sydney.telstra.net (203.50.13.37) 320.919 ms 14 10GigabitEthernet9-0.chw-core2.Sydney.telstra.net (203.50.6.89) 335.737 ms 15 Pos2-0.cha-core4.Brisbane.telstra.net (203.50.6.226) 264.211 ms 16 GigabitEthernet5-1.cha23.Brisbane.telstra.net (203.50.51.33) 258.429 ms 17 apnic1-new.lnk.telstra.net (139.130.97.62) 262.345 ms !X 17 hops!! by Ram Narula ram@pluslab.com

by Ram Narula ram@pluslab.com Example of an attack by Ram Narula ram@pluslab.com

Another example of an attack by Ram Narula ram@pluslab.com

by Ram Narula ram@pluslab.com Not a new problem This is not a new problem, it is just being overlooked It needs more attention Solutions exists People will not understand or want to understand the problem until something bad happens SMIME, PGP and TLS (Transport Layer Security) implementation are not new by Ram Narula ram@pluslab.com

Solution for end-to-end encryption Use SMIME or PGP for encrypting email Problems Both sender and receiver must be ready to use SMIME or PGP (could be a problem for general use) Man in the middle issues: Jack the hacker will still be able to gather email headers including subject, time of email, internal corporate network information including software name and version information, etc. by Ram Narula ram@pluslab.com

Another Approach – TLS is not new Implement TLS (Transport Layer Security) in all SMTP servers (both sending and receiving sides) With TLS all SMTP communication between SMTP servers will be encrypted With proper digital certificates, SMTP servers will also be able to authenticate their identities. This will also help in reduction of spam as unregistered/unsigned SMTP servers will not be able to operate. SMIME and PGP users will not be affected Problem: New SMTP servers will be required to wait for certificate signing by Ram Narula ram@pluslab.com

by Ram Narula ram@pluslab.com Implementation An entity that will be responsible for registration and signing of SMTP server certificates will have to be established (could be similar to RIRs/NIRs/LIRs structure) (Small) Payment must be collected from SMTP server owners for registration and signing (to ensure seriousness in operating the SMTP server) A cut off date will have to be established, no fall-back to non-TLS should take place after a set date (e.g. Dec 1st 2006) by Ram Narula ram@pluslab.com

Technical implementation for UNIX/Linux platform Sendmail “STARTTLS” – by Claus Assmann http://www.sendmail.org/m4/starttls.html Postfix “Postfix TLS Support” - Lutz Janicke and Wietse Venema http://www.postfix.org/TLS_README.html Exim “Including TLS/SSL encryption support” by Exim team http://www.exim.org/exim-html-4.50/doc/html/spec_4.html#SECT4.6 by Ram Narula ram@pluslab.com

Technical implementation for Windows platform Microsoft Exchange “How to Help Protect SMTP Communication by Using the Transport Layer Security Protocol in Exchange Server” – Microsoft corporation http://support.microsoft.com/default.aspx?scid=kb;en-us;829721 by Ram Narula ram@pluslab.com

by Ram Narula ram@pluslab.com …:-)…… $ telnet maila.microsoft.com smtp Trying 131.107.3.125... Connected to maila.microsoft.com. Escape character is '^]'. 220 IGR-IMC-01.redmond.corp.microsoft.com <Inbound SMTP Virtual Server> Thu, 11 Aug 2005 00:xx:xx -0700 EHLO x 250-IGR-IMC-01.redmond.corp.microsoft.com Hello [203.xxx.xxx.xxx] 250-TURN 250-SIZE 10485760 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250-X-LINK2STATE 250-XEXCH50 250 OK STARTTLS 554 5.7.3 Unable to initialize security subsystem by Ram Narula ram@pluslab.com

by Ram Narula ram@pluslab.com Issues with TLS? The entity that signs the certificate must be trusted by all SMTP servers It does not provide end-to-end encryption (like SMIME or PGP) as it only secures SMTP communication Certificate revocation mechanism will have to exist & short lived certificate will have to be considered Additional cost for setting up and maintenance Requires additional processing power and bandwidth Could be illegal where encryption is prohibited by Ram Narula ram@pluslab.com

by Ram Narula ram@pluslab.com Cost vs. Benefit Similar view for cost vs. benefit for implementation of Web-based SSL(?) Security and privacy to the next level SMTP servers will have legal owners How much spam would admin of registered server be kind to tolerate? Comments? What do you think? by Ram Narula ram@pluslab.com

by Ram Narula ram@pluslab.com SMTP-TLS Summary Advantages/plus side for implementation Authenticity of SMTP servers could be confirmed Increased privacy and security for email users Spam reduction as all SMTP servers will have to be registered and will need a signed certificate Disadvantages/hurdles Entity that will take care of each region's registration will have to be formed for every regions (creating more jobs :-) More admin work to maintain the SMTP servers and certificates All SMTP servers will have to trust the signer Higher processing and bandwidth requirements SMTP server registration and certificate associated costs by Ram Narula ram@pluslab.com

Why should TLS be implemented on a global scale? Makes emailing a safer thing to do with more privacy without end-user involvement Makes email communication become traceable and more reliable Help in reducing spam by Ram Narula ram@pluslab.com

by Ram Narula ram@pluslab.com …:-)…… $ telnet kombu.apnic.net smtp Trying 202.12.29.57... Connected to kombu.apnic.net. Escape character is '^]'. 220 kombu.apnic.net ESMTP Postfix EHLO x 250-kombu.apnic.net 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250 8BITMIME STARTTLS 502 Error: command not implemented by Ram Narula ram@pluslab.com

Sample of TLS implementation by Ram Narula ram@pluslab.com

by Ram Narula ram@pluslab.com End of SMTP part by Ram Narula ram@pluslab.com

File Transfer Protocol (FTP) Widely used, implemented in web browsers Communicates in plain-text (no encryption) for everything including username, password, and files Vulnerable to sniffing and Man-in-the-middle attacks (session hijack) (Not as popular as email and web) by Ram Narula ram@pluslab.com

by Ram Narula ram@pluslab.com FTP Solution 2 major approaches FTP over TLS/SSL Secure but not popular yet SFTP (File transfer using SSH based protocol) Secure but not widely used except for SSH users (seems to be more popular than FTP over TLS/SSL) by Ram Narula ram@pluslab.com

Internet Explorer support for FTP Internet Explorer 6 (world’s most popular browser) accepts ftps:// and sftp:// type URLs but will just revert to ftp:// and shows “FTP does not encrypt or encode passwords or data before sending them to the server. To protect the security of your passwords and data, use Web Folders (WebDAV) instead” by Ram Narula ram@pluslab.com

Technical implementation General implementation with list of supported SSL/TLS FTP server/client http://www.ford-hutchinson.com/~fh-1-pfh/ftps-ext.html SFTP (SSH based) http://www.openssh.org http://www.ssh.com/support/documentation/online/ssh/winadminguide/32/SFTP_Server.html Microsoft IIS implementation There seem to be no direct support for this. Instead of SSL/TLS for FTP, WebDAV (World Wide Web Distributed Authoring and Versioning) seems to be preferred. by Ram Narula ram@pluslab.com

by Ram Narula ram@pluslab.com References “RFC2487 - SMTP Service Extension for Secure SMTP over TLS” http://ftp.apnic.net/ietf/ietf-mirror/rfc2487.txt “S/MIME and OpenPGP” Internet Mail Consortium http://www.imc.org/smime-pgpmime.html “Filling SMTP gaps -- The secrets to using e-mail standards” by Joel Snyder http://searchsecurity.techtarget.com/general/0,295582,sid14_gci1067499,00.html “SSL versus TLS versus STARTTLS” by Jeremy Mates http://sial.org/howto/openssl/tls-name/ “Browsers Statistics” by Refsnes Data http://www.w3schools.com/browsers/browsers_stats.asp by Ram Narula ram@pluslab.com

Supporter/Sponsorship This presentation has been created independently. Any supporter? Please email me at ram@pluslab.com by Ram Narula ram@pluslab.com