Top Banner
 Single Packet Authorization Increasing Security in SSH Leandro Almeida [email protected] III ENSOL Liberdade no Extremo João Pessoa-PB 19,20 e 21 de Junho de 2009
29

Single Packet Authorization - Slides English

Jul 14, 2015

Download

Technology

Leandro Almeida
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Single Packet Authorization - Slides English

   

Single Packet AuthorizationIncreasing Security in SSH

Leandro [email protected]

III ENSOL Liberdade no ExtremoJoão Pessoa­PB 19,20 e 21 de Junho de 2009

Page 2: Single Packet Authorization - Slides English

   

Who is this guy?

● Degree in Computer Network● Post­graduate in Information Security

● Security Analist

Page 3: Single Packet Authorization - Slides English

   

AGENDA

● SSH

● Firewall

● Port Knocking

● Single Packet Authorization

● FWKNOP

● Video

● Questions

Page 4: Single Packet Authorization - Slides English

   

Who here uses SSH?

Page 5: Single Packet Authorization - Slides English

   

Do you think the SSH secure?

Page 6: Single Packet Authorization - Slides English

   

● CERT® Advisory CA­2002­18 OpenSSH Vulnerabilities in Challenge Response Handling

● USN­649­1: OpenSSH vulnerabilities

● OpenSSH Security Advisory: cbc.adv ­ Plaintext Recovery Attack Against SSH CPNI­957037

● CPNI Vulnerability Advisory SSH – CPNI­957037

● openssh vulnerability CVE­2008­0166, http://www.ubuntu.com/usn/usn­612­1

● SSH is an application and have flaws

Page 7: Single Packet Authorization - Slides English

   

When someone comes and says...If you are not safe places a 

Firewall

Page 8: Single Packet Authorization - Slides English

   

Search / Design a solution to your problem

Page 9: Single Packet Authorization - Slides English

   

Otherwise an attacker can succeed!

Page 10: Single Packet Authorization - Slides English

   

There is a light at the end of the tunnel

Page 11: Single Packet Authorization - Slides English

   

● Port Knocking● Literally “door knocking”

● The technique is built on a sequence of packages pre­determined

● If the sequence is wrong, nothing (SSH access) will be released

● Use the fields reserved for the TCP/UDP

●  Does not use encryption

Page 12: Single Packet Authorization - Slides English

   

1º Moment: Blue2º Moment: Red3º Moment: green

Page 13: Single Packet Authorization - Slides English

   

Problems...

Page 14: Single Packet Authorization - Slides English

   

The encryption can not be used

Page 15: Single Packet Authorization - Slides English

   

Packets may arrive out of order, which breaks a string

An attacker may be sending packets to random ports, breaking  the sequence

Susceptible to attack by replay

Page 16: Single Packet Authorization - Slides English

   

And now? Who can save us...

Page 17: Single Packet Authorization - Slides English

   

Single Packet Authorization

Page 18: Single Packet Authorization - Slides English

   

It is a technique based a Port Knocking

● The SPA inherits the strengths and addresses the major flaws of Port Knocking

The application that implements the SPA is FWKNOP (FireWall KNock OPerator) 

The FWKNOP is Free Software maintained by Michael Rash

http://cipherdyne.org/fwknop/

Page 19: Single Packet Authorization - Slides English

   

Only one packet is sent

Correcting the problem of delivery out of order

Uses the field­related data of the package

Correcting the problem of encryption

● Creates a temporary rule in the firewall, allowing access only to client

There is not the possibility of using the same package in a range of pre­determined time (default 60s) 

– Correction of attacks on Replay

Page 20: Single Packet Authorization - Slides English

   

Ability to encrypt packets with keys

Symmetrical (Rijndael)

– Asymmetric (GPG + ElGamal)

Makes the deciphering of the packages to verify

IP  address  of  the  packet    with the IP address of the encrypted

● Addition  of  a  block  of  random  content generated  for  each  packet,  thus allowing the encryption single

Page 21: Single Packet Authorization - Slides English

   

Packet SPA

Page 22: Single Packet Authorization - Slides English

   

Scenario testing

Page 23: Single Packet Authorization - Slides English

   

1º Moment: Without SPA

Page 24: Single Packet Authorization - Slides English

   

2º Moment: With SPA

Page 25: Single Packet Authorization - Slides English

   

SSH Access Released \o/

Page 26: Single Packet Authorization - Slides English

   

Page 27: Single Packet Authorization - Slides English

   

Page 28: Single Packet Authorization - Slides English

   

Leandro AlmeidaBlog:leandro­cavalcanti.blogspot.comEmail:[email protected]

Thanks!

Page 29: Single Packet Authorization - Slides English

   

References● http://www.cipherdyne.org/fwknop/

● http://www.linuxjournal.com/article/9565

● http://www.linux.com/archive/feature/135100

● http://www.jsena.info/downloads/palestras/JansenSena_FISL9_Single_Packet_Authorization.pdf