The monkey in the middle attacks

Denis Ducamp

12 february 2001

1. The monkey in the middle attacks

against SSH and HTTPS

Monkey In The Middle (tm) Dug Song

by Denis Ducamp Denis.Ducamp@hsc.fr Denis.Ducamp@groar.org http://www.groar.org/ ducamp/

2. Introduction

3. dsniff, the tool box

4. Dug Song

5. sshmitm

6. webmitm

7. dsniff

8. Other tools

9. Libraries

10. Why does this work ?

11. SSHv1

12. SSHv2

13. HTTPS

14. Signs of an attack ?

15. SSH

$ ssh -p 2222 groar @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. Please contact your system administrator. Add correct host key in /home/ducamp/.ssh/known_hosts to get rid of this message.

16. HTTPS

17. HTTPS (bad certificate 1/2)

This certificate has been get accessing to www.groar.org ...

18. HTTPS (bad certificate 2/2)

... whereas it has been generated for sos.groar.org

19. HTTPS (unknown authority 1/2)

The certificate is signed by an unknown authority...

20. HTTPS (unknown authority 2/2)

...and risks of fraud are indicated by Netscape.

21. How to protect himself ?

22. SSH

23. What doesn't work against sshmitm

24. HTTPS

25. What doesn't work against webmitm

26. Conclusion

27. References

28. Thanks for your attention

You may ask your questions...

and make know your remarks...

then discretely wake up those sleeping ;-)

Bye, bye...

(c) 02/2001 Denis de service :) [tm]