SlideShare ist ein Scribd-Unternehmen logo
1 von 73
Downloaden Sie, um offline zu lesen
MARET Consulting | Boulevard Georges Favon 43 | CH 1204 Geneva | Tél +41 22 575 30 35 | info@maret-consulting.ch | www.maret-consulting.ch




Strong Authentication in Web Application




              Sylvain Maret / Digital Security Expert / OpenID Switzerland
                                ConFoo.ca / 2011-03-10


                                                                                                                                               Conseil en technologies
Agenda




www.maret-consulting.ch     Conseil en technologies
Who am I?




                         Security Expert
                              17 years of experience in ICT Security
                              Principal Consultant at MARET Consulting
                              Expert at Engineer School of Yverdon & Geneva University
                              Swiss French Area delegate at OpenID Switzerland
                              Co-founder Geneva Application Security Forum
                              OWASP Member
                              Author of the blog: la Citadelle Electronique
                              http://ch.linkedin.com/in/smaret or @smaret


                         Chosen field
                              AppSec & Digital Identity Security


www.maret-consulting.ch                                                                   Conseil en technologies
Protection of digital identities: a topical issue…




                                             Strong Authentication




www.maret-consulting.ch                                                 Conseil en technologies
Multi-factor Authentication-101: Talk by Philippe Gamache




                                                                  2011-03-08 Montréal
  2011-03-09 Montréal                                               OWASP Meeting




www.maret-consulting.ch                                                                 Conseil en technologies
«Digital identity is the cornerstone of trust»




                            http://fr.wikipedia.org/wiki/Authentification_forte
www.maret-consulting.ch                                                           Conseil en technologies
MARET Consulting | Boulevard Georges Favon 43 | CH 1204 Geneva | Tél +41 22 575 30 35 | info@maret-consulting.ch | www.maret-consulting.ch




Strong Authentication

 A new paradigm !

                                                                                                                                                Conseil en technologies
Which Strong Authentication technology ?

                     Legacy Token / Old Model ? / Open Source Solution ?




www.maret-consulting.ch                                                    Conseil en technologies
www.maret-consulting.ch   Conseil en technologies
OTP                  PKI (HW)   Biometry
            Strong                                                               *
         authentication
                Encryption

    Digital signature

     Non repudiation

       Strong link with
           the user

                             * Biometry type Fingerprinting
www.maret-consulting.ch                                                       Conseil en technologies
Strong Authentication
               with PKI




www.maret-consulting.ch      Conseil en technologies
PKI: Digital Certificate

                                                    Hardware Token (Crypto PKI)
                                                       Strong Authentication
                Software Certificate
                  (PKCS#12;PFX)




                                              TPM
www.maret-consulting.ch                                                      Conseil en technologies
SSL/TLS Mutual Athentication : how does it work?

                                         Validation
                                         Authority




                    OCSP request

                                         Valid
                                         Invalid
                                         Unknown




                                       SSL / TLS Mutual Authentication
                                                                         Alice
                          Web Server
www.maret-consulting.ch                                                          Conseil en technologies
Demo #1: OpenID and Software Certificate using Clavid.ch




                             http://www.clavid.com/
www.maret-consulting.ch                                                       Conseil en technologies
Strong Authentication with Biometry (Match on Card technology)




                         A reader
                             Biometry
                             SmartCard




                         A card with chip
                             Technology MOC
                             Crypto Processor
                                  PC/SC
                                  PKCS#11
                                  Digital certificate X509
www.maret-consulting.ch                                                             Conseil en technologies
Strong Authentication


                           With


(O)ne (T)ime (P)assword
 www.maret-consulting.ch          Conseil en technologies
(O)ne (T)ime (P)assword




                         OTP Time Based        Others:

                         OTP Event Based           OTP via SMS
                                                    OTP via email
                                                    Biometry and OTP
                         OTP Challenge
                                                    Bingo Card
                          Response Based
                                                    Etc.


www.maret-consulting.ch                                           Conseil en technologies
OTP T-B?
                          OTP E-B?
                          OTP C-R-B?


www.maret-consulting.ch   Crypto - 101 Conseil en technologies
Crypto-101 / Time Based OTP




                                                   HASH Function

K=Secret Key / Seed


                                                                   OTP
 T=UTC Time




                            ie = OTP(K,T) = Truncate(HMAC-SHA-1(K,T))
  www.maret-consulting.ch                                           Conseil en technologies
Crypto-101 / Event Based OTP




                                                    HASH Function

K=Secret Key / Seed


                                                                    OTP
  C = Counter




                            ie = OTP(K,C) = Truncate(HMAC-SHA-1(K,C))
  www.maret-consulting.ch                                            Conseil en technologies
Crypto-101 / OTP Challenge Response Based




                                                  HASH Function

K=Secret Key / Seed

                                                                    OTP
                                                                  Challenge
                            nonce




  www.maret-consulting.ch                                            Conseil en technologies
Others OTP technologies…




              OTP Via SMS




                                              “Flicker code” Generator Software
                                                    that converts already
                                                     encrypted data into
                                                   optical screen animation

                          By Elcard
www.maret-consulting.ch                                               Conseil en technologies
Demo #2: Protect WordPress (OTP Via SMS)




www.maret-consulting.ch                                       Conseil en technologies
How to Store
my Secret Key ?

                          A Token !
www.maret-consulting.ch               Conseil en technologies
OTP Token: Software vs Hardware ?




www.maret-consulting.ch                                Conseil en technologies
Software OTP for Smartphone




                          http://itunes.apple.com/us/app/iotp/id328973960
www.maret-consulting.ch                                                     Conseil en technologies
New Standards
      &
 Open Source


www.maret-consulting.ch   Conseil en technologies
Technologies accessible to everyone 




                         Initiative for Open AuTHentication (OATH)
                             HOTP
                             TOTP
                             OCRA
                             Etc.


                         Mobile OTP
                             (Use MD5 …..)


www.maret-consulting.ch                                               Conseil en technologies
OATH Reference Architecture, Release 2.0




                                http://www.openauthentication.org/
www.maret-consulting.ch                                              Conseil en technologies
Initiative for Open AuTHentication (OATH)




                         HOTP                                OCRA
                             Event Based OTP                     Challenge/Response
                             RFC 4226                             OTP
                                                                  Draft IETF Version 13

                         TOTP
                             Time Based OTP
                                                              Token Identifier
                             Draft IETF Version 8
                                                               Specification


www.maret-consulting.ch
                                                              Etc.              Conseil en technologies
(R)isk

                          (B)ased

                          (A)uthentication
www.maret-consulting.ch                      Conseil en technologies
RBA (Risk-Based Authentication) = Behavior Model




www.maret-consulting.ch                                               Conseil en technologies
2 Step Verification from Google !




Use OATH-HOTP & TOTP

http://code.google.com/p/google-authenticator/


  www.maret-consulting.ch                                Conseil en technologies
Integration with
                          web application
www.maret-consulting.ch                       Conseil en technologies
Web application: basic authentication model




www.maret-consulting.ch                                          Conseil en technologies
Web application: Strong Authentication model




www.maret-consulting.ch                                           Conseil en technologies
“Shielding" approach: perimetric authentication using WAF




www.maret-consulting.ch                                                        Conseil en technologies
Module/Agent-based approach (example)




www.maret-consulting.ch                                    Conseil en technologies
API/SDK based approach (example)




www.maret-consulting.ch                               Conseil en technologies
Demo 3#: PHP Integration for phpmyadmin




www.maret-consulting.ch                                      Conseil en technologies
Multi OTP PHP Class by André Liechti (Switzerland)




                          Source Code will be publish soon:
                          http://www.citadelle-electronique.net/
                          http://www.multiotp.net/
www.maret-consulting.ch                                                 Conseil en technologies
Proof of Concept Code by
                        Anne Gosselin, Antonio Fontes !

if (! empty($_REQUEST['pma_username'])) {
        // The user just logged in
        $GLOBALS['PHP_AUTH_USER'] = $_REQUEST['pma_username'];

             // we combine both OTP + PIN code for the token verification
             $fooPass = empty($_REQUEST['pma_password']) ? '' : $_REQUEST['pma_password'];
             $fooOtp = empty($_REQUEST['pma_otp']) ? '' : $_REQUEST['pma_otp'];
             $GLOBALS['PHP_AUTH_PW'] = $fooPass.''.$fooOtp;

             // OTP CHECK
             require_once('./libraries/multiotp.class.php');
             $multiotp = new Multiotp();
             $multiotp->SetUser($GLOBALS['PHP_AUTH_USER']);
             $multiotp->SetEncryptionKey('DefaultCliEncryptionKey');
             $multiotp->SetUsersFolder('./libraries/users/');
             $multiotp->SetLogFolder('./libraries/log/');
             $multiotp->EnableVerboseLog();

             $otpCheckResult = $multiotp->CheckToken($GLOBALS['PHP_AUTH_PW']);
             // the PIN code use kept for accessing the database
             $GLOBALS['PHP_AUTH_PW'] = substr($GLOBALS['PHP_AUTH_PW'], 0, strlen($GLOBALS['PHP_AUTH_PW']

             if($otpCheckResult == 0)
                     return true;
             else
                     die("auth failed.");
     www.maret-consulting.ch                                                                 Conseil en technologies
Think about Software Security !




                                                                   Cf Talk Antonio Fontes




                                        Cf Talk Philippe Gamache




Cf Talk Sébastien Giora
www.maret-consulting.ch                                                              Conseil en technologies
Federated identities:

                 a changing paradigm

                          on authentication
www.maret-consulting.ch                       Conseil en technologies
Federation of identity approach a change of paradigm:
                   using IDP for Authentication and Strong Authentication


                                                           Identity Provider




                                                                                  Web App X




                                                                               Web App Y




www.maret-consulting.ch                                                           Conseil en technologies
SECTION 2
                          OpenID
                          > What is it?
                          > How does it work?
                          > How to integrate?



www.maret-consulting.ch                         Conseil en technologies
OpenID - What is it?




>      Internet SingleSignOn                  >   Free Choice of Identity Provider
>      Relatively Simple Protocol             >   No License Fee
>      User-Centric Identity Management       >   Independent of Identification Methods
>      Internet Scalable                      >   Non-Profit Organization



    www.maret-consulting.ch                                                   Conseil en technologies
OpenID - How does it work?




                             User Hans Muster

                                                            3

                                                           4, 4a                              Identity Provider
                                                                                              e.g. clavid.com
                          hans.muster.clavid.com       5                6

                                                   1                         2 Identity URL
                          Caption                                              https://hans.muster.clavid.com
                          1. User enters OpenID
                          2. Discovery
                          3. Authentication
                          4. Approval
                          4a. Change Attributes
                          5. Send Attributes
                          6. Validation                            Enabled Service




www.maret-consulting.ch                                                                                           Conseil en technologies
Demo #4: Apache and Mod_OpenID (Using Biometry / OTP)




www.maret-consulting.ch                                                    Conseil en technologies
Demo #4: Challenge / Response OTP with Biometry




www.maret-consulting.ch                                              Conseil en technologies
Surprise! You may already
                              have an OpenID !




www.maret-consulting.ch                          Conseil en technologies
Other Well Known
                                 &
                          Simple Providers




                                http://en.wikipedia.org/wiki/List_of_OpenID_providers


www.maret-consulting.ch                                                   Conseil en technologies
Get an OpenID with Strong Authentication for free !




www.maret-consulting.ch                                                  Conseil en technologies
SECTION 1
                          SAML
                          >What is it?
                          >How does it work?




www.maret-consulting.ch                        Conseil en technologies
Using SAML for Authentication and Strong Authentication




                                                                                (Assertion
                                                                             Consumer Service)




www.maret-consulting.ch                                                              Conseil en technologies
SAML – What is it?


  SAML (Security Assertion Markup Language):
  > Defined by the Oasis Group
  > Well and Academically Designed Specification
  > Uses XML Syntax
  > Used for Authentication & Authorization

  > SAML Assertions
            >         Statements: Authentication, Attribute, Authorization

  > SAML Protocols
            >         Queries: Authentication, Artifact, Name Identifier Mapping, etc.

  > SAML Bindings
            >         SOAP, Reverse-SOAP, HTTP-Get, HTTP-Post, HTTP-Artifact

  > SAML Profiles
            >         Web Browser SingleSignOn Profile, Identity Provider Discovery Profile, Assertion Query
                      / Request Profile, Attribute Profile




www.maret-consulting.ch                                                                                        Conseil en technologies
SAML – How does it work?




                          User Hans Muster

                                                       3
                                                       2
                                                       4                              Identity Provider
                                                                                      e.g. clavid.ch

                                                   4
                                               2
                                           1
                                       6




                                                           Enabled Service

                                                                   e.g. Google Apps
                                                                   for Business




www.maret-consulting.ch                                                                                   Conseil en technologies
Example with HTTP POST Binding

                                                               Access Resource
                                  Browser                                              Web App SAML Ready

                                                                1
                                                                                     AuthN

                                                                                 2
                                                    <AuthnRequest>
                                              3
                          + PIN                       Redirect 302



                                                                                      ACS
                                                  POST
                                               <Response> 7

                                                                                 Ressource
                                                          Ressource    8

                                               <Response>
                                              in HTML Form       6

                                                                                 Single Sign On
                                                                                    Service

                                            <AuthnRequest>      4


                                                  Credential
                                                  Challenge     5a


www.maret-consulting.ch                      User Login                                      IDP MC         Conseil en technologies
                                                               5b
Questions ?




 www.maret-consulting.ch   Conseil en technologies
Resources on Internet 1/2




                         http://motp.sourceforge.net/
                         http://www.clavid.ch/otp
                         http://code.google.com/p/mod-authn-otp/
                         http://www.multiotp.net/
                         http://www.openauthentication.org/
                         http://wiki.openid.net/
                         http://www.citadelle-electronique.net/
                         http://code.google.com/p/mod-authn-otp/




www.maret-consulting.ch                                             Conseil en technologies
Resources on Internet 2/2




                         http://rcdevs.com/products/openotp/
                         https://github.com/adulau/paper-token
                         http://www.yubico.com/yubikey
                         http://code.google.com/p/mod-authn-otp/
                         http://www.nongnu.org/oath-toolkit/
                         http://www.nongnu.org/oath-toolkit/
                         http://www.gpaterno.com/publications/2010/dublin_oss
                          barcamp_2010_otp_with_oss.pdf

www.maret-consulting.ch                                                Conseil en technologies
"Le conseil et l'expertise pour le choix et la mise

            en oeuvre des technologies innovantes dans la sécurité

                  des systèmes d'information et de l'identité numérique"




www.maret-consulting.ch                                                         Conseil en technologies
Une conviction forte !




Authentification forte
www.maret-consulting.ch                            Conseil en technologies
A major event in the world of strong authentication




                         12 October 2005: the Federal Financial Institutions Examination
                          Council (FFIEC) issues a directive

                              « Single Factor Authentication » is not enough for the web financial
                               applications
                              Before end 2006 it is compulsory to implement a strong
                               authentication system
                              http://www.ffiec.gov/press/pr101205.htm

                         And the PCI DSS norm
                              Compulsory strong authentication for distant accesses

                         And now European regulations
                              Payment Services (2007/64/CE) for banks

                         Social Networks, Open Source
www.maret-consulting.ch                                                                      Conseil en technologies
Out of Band Authentication




www.maret-consulting.ch                         Conseil en technologies
Phone Factor




www.maret-consulting.ch           Conseil en technologies
SAML




www.maret-consulting.ch   Conseil en technologies
SAML AuthnRequst Transfer via Browser


                   Redirect-Binding




                  POST-Binding




www.maret-consulting.ch                                    Conseil en technologies
A SAML AuthnRequest (no magic, just XML)



                   <?xml version="1.0" encoding="UTF-8"?>

                   <samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol“
                        ID="glcmfhikbbhohichialilnnpjakbeljekmkhppkb“
                        Version="2.0”
                        IssueInstant="2008-10-14T00:57:14Z”
                        ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST”
                        ProviderName="google.com”
                        ForceAuthn="false”
                        IsPassive="false”
                        AssertionConsumerServiceURL="https://www.google.com/a/unopass.net/acs">

                          <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
                              google.com
                          </saml:Issuer>

                          <samlp:NameIDPolicy AllowCreate="true"
                             Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" />

                   </samlp:AuthnRequest>




www.maret-consulting.ch                                                                           Conseil en technologies
SAML Assertion Transfer via Browser




                     POST-Binding




www.maret-consulting.ch                                  Conseil en technologies
A SAML Assertion Response (no magic, just XML)
                    <samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
                         ID="s247893b2ec90665dfd5d9bd4a092f5e3a7194fef4"
                         InResponseTo="hkcmljnccpheoobdofbjcngjbadmgcfhaapdbnni"
                         Version="2.0"
                         IssueInstant="2008-10-15T17:24:46Z"
                         Destination="https://www.google.com/a/unopass.net/acs">

                          <saml:Issuer>
                              http://idp.unopass.net:80/opensso
                          </saml:Issuer>

                          <samlp:Status>
                             <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
                          </samlp:Status>

                          <saml:Assertion
                            ID="s295c56ccd7872209ae336b934d1eed5be52a8e6ec"
                            IssueInstant="2008-10-15T17:24:46Z"
                            Version="2.0">
                            <saml:Issuer>http://idp.unopass.net:80/opensso</saml:Issuer>
                            <Signature>
                              … A DIGITAL SIGNATURE …
                            </Signature>


                            ...


www.maret-consulting.ch                                                                               Conseil en technologies
A SAML Assertion Response (no magic, just XML)



                          ...

                          <saml:Subject>
                             <saml:NameID
                                NameQualifier="http://idp.unopass.net:80/opensso">
                                sylvain.maret
                             </saml:NameID>
                             <saml:SubjectConfirmation Method="urn:oasis:...:bearer">
                                <saml:SubjectConfirmationData
                                  InResponseTo="hkcmljnccpheoobdofbjcngjbadmgcfhaapdbnni"
                                  NotOnOrAfter="2008-10-15T17:34:46Z"
                                  Recipient="https://www.google.com/a/unopass.net/acs"/>
                             </saml:SubjectConfirmation>
                          </saml:Subject>

                          ...




www.maret-consulting.ch                                                                     Conseil en technologies
A SAML Assertion Response (no magic, just XML)



                          ...


                         <saml:Conditions NotBefore="2008-10-15T17:14:46Z"
                                    NotOnOrAfter="2008-10-15T17:34:46Z">
                            <saml:AudienceRestriction>
                               <saml:Audience>google.com</saml:Audience>
                            </saml:AudienceRestriction>
                         </saml:Conditions>
                         <saml:AuthnStatement AuthnInstant="2008-10-15T17:24:46Z“
                                    SessionIndex="s2bb816b5a8852dcc29f3301784c1640f245a9ec01">
                            <saml:AuthnContext>
                               <saml:AuthnContextClassRef>
                                 urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
                               </saml:AuthnContextClassRef>
                            </saml:AuthnContext>
                         </saml:AuthnStatement>
                      </saml:Assertion>
                    </samlp:Response>




www.maret-consulting.ch                                                                              Conseil en technologies

Weitere ähnliche Inhalte

Andere mochten auch

Flemming Ulvang CV 2016
Flemming Ulvang CV 2016 Flemming Ulvang CV 2016
Flemming Ulvang CV 2016
Flemming Ulvang
 
Cool Logistics Global 2015 programme
Cool Logistics Global 2015 programmeCool Logistics Global 2015 programme
Cool Logistics Global 2015 programme
Alexander von Stempel
 
Manual del autoradio jvc
Manual del autoradio jvcManual del autoradio jvc
Manual del autoradio jvc
Jeferson Gomez
 
Aniversariantedezembro guilherme-hellen tarde
Aniversariantedezembro guilherme-hellen tardeAniversariantedezembro guilherme-hellen tarde
Aniversariantedezembro guilherme-hellen tarde
reporteresboasaude
 

Andere mochten auch (20)

TrustBearer - CTST 2009 - OpenID & Strong Authentication
TrustBearer - CTST 2009 - OpenID & Strong AuthenticationTrustBearer - CTST 2009 - OpenID & Strong Authentication
TrustBearer - CTST 2009 - OpenID & Strong Authentication
 
The wonderful story of Web Authentication and Single-Sign On
The wonderful story of Web Authentication and Single-Sign OnThe wonderful story of Web Authentication and Single-Sign On
The wonderful story of Web Authentication and Single-Sign On
 
SSL TSL;& SET
SSL TSL;& SETSSL TSL;& SET
SSL TSL;& SET
 
Tecnica n°084 desecha el apego al cuerpo
Tecnica n°084 desecha el apego al cuerpoTecnica n°084 desecha el apego al cuerpo
Tecnica n°084 desecha el apego al cuerpo
 
Experto en Internalización Empresarial
Experto en Internalización EmpresarialExperto en Internalización Empresarial
Experto en Internalización Empresarial
 
(1) Curso sobre el software estadístico R. Introducción al entorno R
(1) Curso sobre el software estadístico R. Introducción al entorno R(1) Curso sobre el software estadístico R. Introducción al entorno R
(1) Curso sobre el software estadístico R. Introducción al entorno R
 
Flemming Ulvang CV 2016
Flemming Ulvang CV 2016 Flemming Ulvang CV 2016
Flemming Ulvang CV 2016
 
Cool Logistics Global 2015 programme
Cool Logistics Global 2015 programmeCool Logistics Global 2015 programme
Cool Logistics Global 2015 programme
 
Scalable Content Strategy: Nice Thought or Viable Vision? with Colleen Jones
Scalable Content Strategy: Nice Thought or Viable Vision? with Colleen JonesScalable Content Strategy: Nice Thought or Viable Vision? with Colleen Jones
Scalable Content Strategy: Nice Thought or Viable Vision? with Colleen Jones
 
RETAIL TRENDSWATCH
RETAIL TRENDSWATCHRETAIL TRENDSWATCH
RETAIL TRENDSWATCH
 
(Iii) de las bastardas conductas de las taifas políticas y financieras que ...
(Iii)   de las bastardas conductas de las taifas políticas y financieras que ...(Iii)   de las bastardas conductas de las taifas políticas y financieras que ...
(Iii) de las bastardas conductas de las taifas políticas y financieras que ...
 
Monitoring photovoltaique GANTNER INSTRUMENTS FRANCE
Monitoring photovoltaique GANTNER INSTRUMENTS FRANCEMonitoring photovoltaique GANTNER INSTRUMENTS FRANCE
Monitoring photovoltaique GANTNER INSTRUMENTS FRANCE
 
Calidad de vida saludable (y responsable).
Calidad de vida saludable (y responsable).Calidad de vida saludable (y responsable).
Calidad de vida saludable (y responsable).
 
Manual del autoradio jvc
Manual del autoradio jvcManual del autoradio jvc
Manual del autoradio jvc
 
Aniversariantedezembro guilherme-hellen tarde
Aniversariantedezembro guilherme-hellen tardeAniversariantedezembro guilherme-hellen tarde
Aniversariantedezembro guilherme-hellen tarde
 
Desigualdad de la mujer beatriz moreno 1 º bach c
Desigualdad de la mujer beatriz moreno 1 º bach cDesigualdad de la mujer beatriz moreno 1 º bach c
Desigualdad de la mujer beatriz moreno 1 º bach c
 
The Science of Games at IST
The Science of Games at ISTThe Science of Games at IST
The Science of Games at IST
 
NOTA DE PRENSA: EL 70% DEL FRAUDE AL SEGURO DEL MÓVIL CORRESPONDE A DENUNCIAS...
NOTA DE PRENSA: EL 70% DEL FRAUDE AL SEGURO DEL MÓVIL CORRESPONDE A DENUNCIAS...NOTA DE PRENSA: EL 70% DEL FRAUDE AL SEGURO DEL MÓVIL CORRESPONDE A DENUNCIAS...
NOTA DE PRENSA: EL 70% DEL FRAUDE AL SEGURO DEL MÓVIL CORRESPONDE A DENUNCIAS...
 
Overcoming geny perspective
Overcoming geny perspectiveOvercoming geny perspective
Overcoming geny perspective
 
First E-magazine of FBIL , NB.!!
First E-magazine of FBIL , NB.!!First E-magazine of FBIL , NB.!!
First E-magazine of FBIL , NB.!!
 

Ähnlich wie Strong Authentication in Web Application / ConFoo.ca 2011

Strong Authentication State of the Art 2012 / Sarajevo CSO
Strong Authentication State of the Art 2012 / Sarajevo CSOStrong Authentication State of the Art 2012 / Sarajevo CSO
Strong Authentication State of the Art 2012 / Sarajevo CSO
Sylvain Maret
 
SmartCard Forum 2010 - Secured Access for enterprise
SmartCard Forum 2010 - Secured Access for enterpriseSmartCard Forum 2010 - Secured Access for enterprise
SmartCard Forum 2010 - Secured Access for enterprise
OKsystem
 
I Minds2009 Secure And Distributed Software Prof Wouter Joosen (Ibbt Distri...
I Minds2009 Secure And Distributed Software  Prof  Wouter Joosen (Ibbt Distri...I Minds2009 Secure And Distributed Software  Prof  Wouter Joosen (Ibbt Distri...
I Minds2009 Secure And Distributed Software Prof Wouter Joosen (Ibbt Distri...
imec.archive
 

Ähnlich wie Strong Authentication in Web Application / ConFoo.ca 2011 (20)

Implementation of a Biometric Solution Providing Strong Authentication To Gai...
Implementation of a Biometric Solution Providing Strong Authentication To Gai...Implementation of a Biometric Solution Providing Strong Authentication To Gai...
Implementation of a Biometric Solution Providing Strong Authentication To Gai...
 
Strong Authentication State of the Art 2012 / Sarajevo CSO
Strong Authentication State of the Art 2012 / Sarajevo CSOStrong Authentication State of the Art 2012 / Sarajevo CSO
Strong Authentication State of the Art 2012 / Sarajevo CSO
 
Crypto Wallet Development Services
Crypto Wallet Development ServicesCrypto Wallet Development Services
Crypto Wallet Development Services
 
SMS Passcode - Vcw Sales Presentation
SMS Passcode - Vcw Sales PresentationSMS Passcode - Vcw Sales Presentation
SMS Passcode - Vcw Sales Presentation
 
CEH
CEHCEH
CEH
 
SmartCard Forum 2010 - Secured Access for enterprise
SmartCard Forum 2010 - Secured Access for enterpriseSmartCard Forum 2010 - Secured Access for enterprise
SmartCard Forum 2010 - Secured Access for enterprise
 
Secure E-Banking with KOBIL technologies
Secure E-Banking with KOBIL technologiesSecure E-Banking with KOBIL technologies
Secure E-Banking with KOBIL technologies
 
Threat Modeling / iPad
Threat Modeling / iPadThreat Modeling / iPad
Threat Modeling / iPad
 
Matic/Polygon Blockchain Development
Matic/Polygon Blockchain DevelopmentMatic/Polygon Blockchain Development
Matic/Polygon Blockchain Development
 
Why is the Blockchain Technology Important?
Why is the Blockchain Technology Important?Why is the Blockchain Technology Important?
Why is the Blockchain Technology Important?
 
Best Blockchain Development Company - Blockchaindevelopments
Best Blockchain Development Company - BlockchaindevelopmentsBest Blockchain Development Company - Blockchaindevelopments
Best Blockchain Development Company - Blockchaindevelopments
 
Ynamono Hs Lecture
Ynamono Hs LectureYnamono Hs Lecture
Ynamono Hs Lecture
 
B Hkorba
B HkorbaB Hkorba
B Hkorba
 
Improving privacy in blockchain using homomorphic encryption
Improving privacy in blockchain using homomorphic encryption Improving privacy in blockchain using homomorphic encryption
Improving privacy in blockchain using homomorphic encryption
 
AUTM_WRM_Blockchain FINAL.pptx
AUTM_WRM_Blockchain FINAL.pptxAUTM_WRM_Blockchain FINAL.pptx
AUTM_WRM_Blockchain FINAL.pptx
 
I Minds2009 Secure And Distributed Software Prof Wouter Joosen (Ibbt Distri...
I Minds2009 Secure And Distributed Software  Prof  Wouter Joosen (Ibbt Distri...I Minds2009 Secure And Distributed Software  Prof  Wouter Joosen (Ibbt Distri...
I Minds2009 Secure And Distributed Software Prof Wouter Joosen (Ibbt Distri...
 
Introduction to Blockchain and BitCoin New Business Opportunties
Introduction to Blockchain and BitCoin New Business OpportuntiesIntroduction to Blockchain and BitCoin New Business Opportunties
Introduction to Blockchain and BitCoin New Business Opportunties
 
Blockchain 2Gether - EthEDU Training & Education
Blockchain 2Gether - EthEDU Training & EducationBlockchain 2Gether - EthEDU Training & Education
Blockchain 2Gether - EthEDU Training & Education
 
Jarmo van de Seijp
Jarmo van de SeijpJarmo van de Seijp
Jarmo van de Seijp
 
Crypto Wallet Development Solutions
Crypto Wallet Development SolutionsCrypto Wallet Development Solutions
Crypto Wallet Development Solutions
 

Mehr von Sylvain Maret

Air Navigation Service Providers - Unsecurity on Voice over IP Radion
Air Navigation Service Providers - Unsecurity on Voice over IP RadionAir Navigation Service Providers - Unsecurity on Voice over IP Radion
Air Navigation Service Providers - Unsecurity on Voice over IP Radion
Sylvain Maret
 
factsheet_4g_critical_comm_en_vl
factsheet_4g_critical_comm_en_vlfactsheet_4g_critical_comm_en_vl
factsheet_4g_critical_comm_en_vl
Sylvain Maret
 
Securite des Web Services (SOAP vs REST) / OWASP Geneva dec. 2012
Securite des Web Services (SOAP vs REST) / OWASP Geneva dec. 2012Securite des Web Services (SOAP vs REST) / OWASP Geneva dec. 2012
Securite des Web Services (SOAP vs REST) / OWASP Geneva dec. 2012
Sylvain Maret
 
Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...
Sylvain Maret
 
Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...
Sylvain Maret
 
Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...
Sylvain Maret
 
Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...
Sylvain Maret
 
Phishing Facebook Attack
Phishing Facebook AttackPhishing Facebook Attack
Phishing Facebook Attack
Sylvain Maret
 

Mehr von Sylvain Maret (20)

Air Navigation Service Providers - Unsecurity on Voice over IP Radion
Air Navigation Service Providers - Unsecurity on Voice over IP RadionAir Navigation Service Providers - Unsecurity on Voice over IP Radion
Air Navigation Service Providers - Unsecurity on Voice over IP Radion
 
factsheet_4g_critical_comm_en_vl
factsheet_4g_critical_comm_en_vlfactsheet_4g_critical_comm_en_vl
factsheet_4g_critical_comm_en_vl
 
INA Volume 1/3 Version 1.02 Released / Digital Identity and Authentication
INA Volume 1/3 Version 1.02 Released / Digital Identity and AuthenticationINA Volume 1/3 Version 1.02 Released / Digital Identity and Authentication
INA Volume 1/3 Version 1.02 Released / Digital Identity and Authentication
 
INA Volume 1/3 Version 1.0 Released / Digital Identity and Authentication
INA Volume 1/3 Version 1.0 Released / Digital Identity and AuthenticationINA Volume 1/3 Version 1.0 Released / Digital Identity and Authentication
INA Volume 1/3 Version 1.0 Released / Digital Identity and Authentication
 
INA Volume 1/3 Version 1.0 RC / Digital Identity and Authentication
INA Volume 1/3 Version 1.0 RC / Digital Identity and AuthenticationINA Volume 1/3 Version 1.0 RC / Digital Identity and Authentication
INA Volume 1/3 Version 1.0 RC / Digital Identity and Authentication
 
Securite des Web Services (SOAP vs REST) / OWASP Geneva dec. 2012
Securite des Web Services (SOAP vs REST) / OWASP Geneva dec. 2012Securite des Web Services (SOAP vs REST) / OWASP Geneva dec. 2012
Securite des Web Services (SOAP vs REST) / OWASP Geneva dec. 2012
 
ASFWS 2012 / Initiation à la sécurité des Web Services par Sylvain Maret
ASFWS 2012 / Initiation à la sécurité des Web Services par Sylvain MaretASFWS 2012 / Initiation à la sécurité des Web Services par Sylvain Maret
ASFWS 2012 / Initiation à la sécurité des Web Services par Sylvain Maret
 
Geneva Application Security Forum 2010
Geneva Application Security Forum 2010Geneva Application Security Forum 2010
Geneva Application Security Forum 2010
 
Final conclusions of Working Group 3 at Workshop Münchenwiler 20-21 of May 20...
Final conclusions of Working Group 3 at Workshop Münchenwiler 20-21 of May 20...Final conclusions of Working Group 3 at Workshop Münchenwiler 20-21 of May 20...
Final conclusions of Working Group 3 at Workshop Münchenwiler 20-21 of May 20...
 
Comment protéger de façon efficace son/ses identité(s) numérique(s) sur le We...
Comment protéger de façon efficace son/ses identité(s) numérique(s) sur le We...Comment protéger de façon efficace son/ses identité(s) numérique(s) sur le We...
Comment protéger de façon efficace son/ses identité(s) numérique(s) sur le We...
 
Digital identity trust & confidence
Digital identity trust & confidenceDigital identity trust & confidence
Digital identity trust & confidence
 
Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...
 
Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...
 
Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...
 
Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...Geneva Application Security Forum: Vers une authentification plus forte dans ...
Geneva Application Security Forum: Vers une authentification plus forte dans ...
 
Corrélation d'évènements dans un environnement VoIP avec ExaProtect
Corrélation d'évènements dans un environnement VoIP avec ExaProtectCorrélation d'évènements dans un environnement VoIP avec ExaProtect
Corrélation d'évènements dans un environnement VoIP avec ExaProtect
 
Protection Des Données avec la Biométrie Match On Card
Protection Des Données avec la Biométrie Match On CardProtection Des Données avec la Biométrie Match On Card
Protection Des Données avec la Biométrie Match On Card
 
Retour d'expérience sur le déploiement de biométrie à grande échelle
Retour d'expérience sur le déploiement de biométrie à grande échelleRetour d'expérience sur le déploiement de biométrie à grande échelle
Retour d'expérience sur le déploiement de biométrie à grande échelle
 
Etude de cas Biométrie
Etude de cas BiométrieEtude de cas Biométrie
Etude de cas Biométrie
 
Phishing Facebook Attack
Phishing Facebook AttackPhishing Facebook Attack
Phishing Facebook Attack
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

Strong Authentication in Web Application / ConFoo.ca 2011

  • 1. MARET Consulting | Boulevard Georges Favon 43 | CH 1204 Geneva | Tél +41 22 575 30 35 | info@maret-consulting.ch | www.maret-consulting.ch Strong Authentication in Web Application Sylvain Maret / Digital Security Expert / OpenID Switzerland ConFoo.ca / 2011-03-10 Conseil en technologies
  • 2. Agenda www.maret-consulting.ch Conseil en technologies
  • 3. Who am I?  Security Expert  17 years of experience in ICT Security  Principal Consultant at MARET Consulting  Expert at Engineer School of Yverdon & Geneva University  Swiss French Area delegate at OpenID Switzerland  Co-founder Geneva Application Security Forum  OWASP Member  Author of the blog: la Citadelle Electronique  http://ch.linkedin.com/in/smaret or @smaret  Chosen field  AppSec & Digital Identity Security www.maret-consulting.ch Conseil en technologies
  • 4. Protection of digital identities: a topical issue… Strong Authentication www.maret-consulting.ch Conseil en technologies
  • 5. Multi-factor Authentication-101: Talk by Philippe Gamache 2011-03-08 Montréal 2011-03-09 Montréal OWASP Meeting www.maret-consulting.ch Conseil en technologies
  • 6. «Digital identity is the cornerstone of trust» http://fr.wikipedia.org/wiki/Authentification_forte www.maret-consulting.ch Conseil en technologies
  • 7. MARET Consulting | Boulevard Georges Favon 43 | CH 1204 Geneva | Tél +41 22 575 30 35 | info@maret-consulting.ch | www.maret-consulting.ch Strong Authentication A new paradigm ! Conseil en technologies
  • 8. Which Strong Authentication technology ? Legacy Token / Old Model ? / Open Source Solution ? www.maret-consulting.ch Conseil en technologies
  • 9. www.maret-consulting.ch Conseil en technologies
  • 10. OTP PKI (HW) Biometry Strong * authentication Encryption Digital signature Non repudiation Strong link with the user * Biometry type Fingerprinting www.maret-consulting.ch Conseil en technologies
  • 11. Strong Authentication with PKI www.maret-consulting.ch Conseil en technologies
  • 12. PKI: Digital Certificate Hardware Token (Crypto PKI) Strong Authentication Software Certificate (PKCS#12;PFX) TPM www.maret-consulting.ch Conseil en technologies
  • 13. SSL/TLS Mutual Athentication : how does it work? Validation Authority OCSP request Valid Invalid Unknown SSL / TLS Mutual Authentication Alice Web Server www.maret-consulting.ch Conseil en technologies
  • 14. Demo #1: OpenID and Software Certificate using Clavid.ch http://www.clavid.com/ www.maret-consulting.ch Conseil en technologies
  • 15. Strong Authentication with Biometry (Match on Card technology)  A reader  Biometry  SmartCard  A card with chip  Technology MOC  Crypto Processor  PC/SC  PKCS#11  Digital certificate X509 www.maret-consulting.ch Conseil en technologies
  • 16. Strong Authentication With (O)ne (T)ime (P)assword www.maret-consulting.ch Conseil en technologies
  • 17. (O)ne (T)ime (P)assword  OTP Time Based  Others:  OTP Event Based  OTP via SMS  OTP via email  Biometry and OTP  OTP Challenge  Bingo Card Response Based  Etc. www.maret-consulting.ch Conseil en technologies
  • 18. OTP T-B? OTP E-B? OTP C-R-B? www.maret-consulting.ch Crypto - 101 Conseil en technologies
  • 19. Crypto-101 / Time Based OTP HASH Function K=Secret Key / Seed OTP T=UTC Time ie = OTP(K,T) = Truncate(HMAC-SHA-1(K,T)) www.maret-consulting.ch Conseil en technologies
  • 20. Crypto-101 / Event Based OTP HASH Function K=Secret Key / Seed OTP C = Counter ie = OTP(K,C) = Truncate(HMAC-SHA-1(K,C)) www.maret-consulting.ch Conseil en technologies
  • 21. Crypto-101 / OTP Challenge Response Based HASH Function K=Secret Key / Seed OTP Challenge nonce www.maret-consulting.ch Conseil en technologies
  • 22. Others OTP technologies… OTP Via SMS “Flicker code” Generator Software that converts already encrypted data into optical screen animation By Elcard www.maret-consulting.ch Conseil en technologies
  • 23. Demo #2: Protect WordPress (OTP Via SMS) www.maret-consulting.ch Conseil en technologies
  • 24. How to Store my Secret Key ? A Token ! www.maret-consulting.ch Conseil en technologies
  • 25. OTP Token: Software vs Hardware ? www.maret-consulting.ch Conseil en technologies
  • 26. Software OTP for Smartphone http://itunes.apple.com/us/app/iotp/id328973960 www.maret-consulting.ch Conseil en technologies
  • 27. New Standards & Open Source www.maret-consulting.ch Conseil en technologies
  • 28. Technologies accessible to everyone   Initiative for Open AuTHentication (OATH)  HOTP  TOTP  OCRA  Etc.  Mobile OTP  (Use MD5 …..) www.maret-consulting.ch Conseil en technologies
  • 29. OATH Reference Architecture, Release 2.0 http://www.openauthentication.org/ www.maret-consulting.ch Conseil en technologies
  • 30. Initiative for Open AuTHentication (OATH)  HOTP  OCRA  Event Based OTP  Challenge/Response  RFC 4226 OTP  Draft IETF Version 13  TOTP  Time Based OTP  Token Identifier  Draft IETF Version 8 Specification www.maret-consulting.ch  Etc. Conseil en technologies
  • 31. (R)isk (B)ased (A)uthentication www.maret-consulting.ch Conseil en technologies
  • 32. RBA (Risk-Based Authentication) = Behavior Model www.maret-consulting.ch Conseil en technologies
  • 33. 2 Step Verification from Google ! Use OATH-HOTP & TOTP http://code.google.com/p/google-authenticator/ www.maret-consulting.ch Conseil en technologies
  • 34. Integration with web application www.maret-consulting.ch Conseil en technologies
  • 35. Web application: basic authentication model www.maret-consulting.ch Conseil en technologies
  • 36. Web application: Strong Authentication model www.maret-consulting.ch Conseil en technologies
  • 37. “Shielding" approach: perimetric authentication using WAF www.maret-consulting.ch Conseil en technologies
  • 39. API/SDK based approach (example) www.maret-consulting.ch Conseil en technologies
  • 40. Demo 3#: PHP Integration for phpmyadmin www.maret-consulting.ch Conseil en technologies
  • 41. Multi OTP PHP Class by André Liechti (Switzerland) Source Code will be publish soon: http://www.citadelle-electronique.net/ http://www.multiotp.net/ www.maret-consulting.ch Conseil en technologies
  • 42. Proof of Concept Code by Anne Gosselin, Antonio Fontes ! if (! empty($_REQUEST['pma_username'])) { // The user just logged in $GLOBALS['PHP_AUTH_USER'] = $_REQUEST['pma_username']; // we combine both OTP + PIN code for the token verification $fooPass = empty($_REQUEST['pma_password']) ? '' : $_REQUEST['pma_password']; $fooOtp = empty($_REQUEST['pma_otp']) ? '' : $_REQUEST['pma_otp']; $GLOBALS['PHP_AUTH_PW'] = $fooPass.''.$fooOtp; // OTP CHECK require_once('./libraries/multiotp.class.php'); $multiotp = new Multiotp(); $multiotp->SetUser($GLOBALS['PHP_AUTH_USER']); $multiotp->SetEncryptionKey('DefaultCliEncryptionKey'); $multiotp->SetUsersFolder('./libraries/users/'); $multiotp->SetLogFolder('./libraries/log/'); $multiotp->EnableVerboseLog(); $otpCheckResult = $multiotp->CheckToken($GLOBALS['PHP_AUTH_PW']); // the PIN code use kept for accessing the database $GLOBALS['PHP_AUTH_PW'] = substr($GLOBALS['PHP_AUTH_PW'], 0, strlen($GLOBALS['PHP_AUTH_PW'] if($otpCheckResult == 0) return true; else die("auth failed."); www.maret-consulting.ch Conseil en technologies
  • 43. Think about Software Security ! Cf Talk Antonio Fontes Cf Talk Philippe Gamache Cf Talk Sébastien Giora www.maret-consulting.ch Conseil en technologies
  • 44. Federated identities: a changing paradigm on authentication www.maret-consulting.ch Conseil en technologies
  • 45. Federation of identity approach a change of paradigm: using IDP for Authentication and Strong Authentication Identity Provider Web App X Web App Y www.maret-consulting.ch Conseil en technologies
  • 46. SECTION 2 OpenID > What is it? > How does it work? > How to integrate? www.maret-consulting.ch Conseil en technologies
  • 47. OpenID - What is it? > Internet SingleSignOn > Free Choice of Identity Provider > Relatively Simple Protocol > No License Fee > User-Centric Identity Management > Independent of Identification Methods > Internet Scalable > Non-Profit Organization www.maret-consulting.ch Conseil en technologies
  • 48. OpenID - How does it work? User Hans Muster 3 4, 4a Identity Provider e.g. clavid.com hans.muster.clavid.com 5 6 1 2 Identity URL Caption https://hans.muster.clavid.com 1. User enters OpenID 2. Discovery 3. Authentication 4. Approval 4a. Change Attributes 5. Send Attributes 6. Validation Enabled Service www.maret-consulting.ch Conseil en technologies
  • 49. Demo #4: Apache and Mod_OpenID (Using Biometry / OTP) www.maret-consulting.ch Conseil en technologies
  • 50. Demo #4: Challenge / Response OTP with Biometry www.maret-consulting.ch Conseil en technologies
  • 51. Surprise! You may already have an OpenID ! www.maret-consulting.ch Conseil en technologies
  • 52. Other Well Known & Simple Providers http://en.wikipedia.org/wiki/List_of_OpenID_providers www.maret-consulting.ch Conseil en technologies
  • 53. Get an OpenID with Strong Authentication for free ! www.maret-consulting.ch Conseil en technologies
  • 54. SECTION 1 SAML >What is it? >How does it work? www.maret-consulting.ch Conseil en technologies
  • 55. Using SAML for Authentication and Strong Authentication (Assertion Consumer Service) www.maret-consulting.ch Conseil en technologies
  • 56. SAML – What is it? SAML (Security Assertion Markup Language): > Defined by the Oasis Group > Well and Academically Designed Specification > Uses XML Syntax > Used for Authentication & Authorization > SAML Assertions > Statements: Authentication, Attribute, Authorization > SAML Protocols > Queries: Authentication, Artifact, Name Identifier Mapping, etc. > SAML Bindings > SOAP, Reverse-SOAP, HTTP-Get, HTTP-Post, HTTP-Artifact > SAML Profiles > Web Browser SingleSignOn Profile, Identity Provider Discovery Profile, Assertion Query / Request Profile, Attribute Profile www.maret-consulting.ch Conseil en technologies
  • 57. SAML – How does it work? User Hans Muster 3 2 4 Identity Provider e.g. clavid.ch 4 2 1 6 Enabled Service e.g. Google Apps for Business www.maret-consulting.ch Conseil en technologies
  • 58. Example with HTTP POST Binding Access Resource Browser Web App SAML Ready 1 AuthN 2 <AuthnRequest> 3 + PIN Redirect 302 ACS POST <Response> 7 Ressource Ressource 8 <Response> in HTML Form 6 Single Sign On Service <AuthnRequest> 4 Credential Challenge 5a www.maret-consulting.ch User Login IDP MC Conseil en technologies 5b
  • 59. Questions ? www.maret-consulting.ch Conseil en technologies
  • 60. Resources on Internet 1/2  http://motp.sourceforge.net/  http://www.clavid.ch/otp  http://code.google.com/p/mod-authn-otp/  http://www.multiotp.net/  http://www.openauthentication.org/  http://wiki.openid.net/  http://www.citadelle-electronique.net/  http://code.google.com/p/mod-authn-otp/ www.maret-consulting.ch Conseil en technologies
  • 61. Resources on Internet 2/2  http://rcdevs.com/products/openotp/  https://github.com/adulau/paper-token  http://www.yubico.com/yubikey  http://code.google.com/p/mod-authn-otp/  http://www.nongnu.org/oath-toolkit/  http://www.nongnu.org/oath-toolkit/  http://www.gpaterno.com/publications/2010/dublin_oss barcamp_2010_otp_with_oss.pdf www.maret-consulting.ch Conseil en technologies
  • 62. "Le conseil et l'expertise pour le choix et la mise en oeuvre des technologies innovantes dans la sécurité des systèmes d'information et de l'identité numérique" www.maret-consulting.ch Conseil en technologies
  • 63. Une conviction forte ! Authentification forte www.maret-consulting.ch Conseil en technologies
  • 64. A major event in the world of strong authentication  12 October 2005: the Federal Financial Institutions Examination Council (FFIEC) issues a directive  « Single Factor Authentication » is not enough for the web financial applications  Before end 2006 it is compulsory to implement a strong authentication system  http://www.ffiec.gov/press/pr101205.htm  And the PCI DSS norm  Compulsory strong authentication for distant accesses  And now European regulations  Payment Services (2007/64/CE) for banks  Social Networks, Open Source www.maret-consulting.ch Conseil en technologies
  • 65. Out of Band Authentication www.maret-consulting.ch Conseil en technologies
  • 66. Phone Factor www.maret-consulting.ch Conseil en technologies
  • 67. SAML www.maret-consulting.ch Conseil en technologies
  • 68. SAML AuthnRequst Transfer via Browser Redirect-Binding POST-Binding www.maret-consulting.ch Conseil en technologies
  • 69. A SAML AuthnRequest (no magic, just XML) <?xml version="1.0" encoding="UTF-8"?> <samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol“ ID="glcmfhikbbhohichialilnnpjakbeljekmkhppkb“ Version="2.0” IssueInstant="2008-10-14T00:57:14Z” ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST” ProviderName="google.com” ForceAuthn="false” IsPassive="false” AssertionConsumerServiceURL="https://www.google.com/a/unopass.net/acs"> <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"> google.com </saml:Issuer> <samlp:NameIDPolicy AllowCreate="true" Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" /> </samlp:AuthnRequest> www.maret-consulting.ch Conseil en technologies
  • 70. SAML Assertion Transfer via Browser POST-Binding www.maret-consulting.ch Conseil en technologies
  • 71. A SAML Assertion Response (no magic, just XML) <samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="s247893b2ec90665dfd5d9bd4a092f5e3a7194fef4" InResponseTo="hkcmljnccpheoobdofbjcngjbadmgcfhaapdbnni" Version="2.0" IssueInstant="2008-10-15T17:24:46Z" Destination="https://www.google.com/a/unopass.net/acs"> <saml:Issuer> http://idp.unopass.net:80/opensso </saml:Issuer> <samlp:Status> <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/> </samlp:Status> <saml:Assertion ID="s295c56ccd7872209ae336b934d1eed5be52a8e6ec" IssueInstant="2008-10-15T17:24:46Z" Version="2.0"> <saml:Issuer>http://idp.unopass.net:80/opensso</saml:Issuer> <Signature> … A DIGITAL SIGNATURE … </Signature> ... www.maret-consulting.ch Conseil en technologies
  • 72. A SAML Assertion Response (no magic, just XML) ... <saml:Subject> <saml:NameID NameQualifier="http://idp.unopass.net:80/opensso"> sylvain.maret </saml:NameID> <saml:SubjectConfirmation Method="urn:oasis:...:bearer"> <saml:SubjectConfirmationData InResponseTo="hkcmljnccpheoobdofbjcngjbadmgcfhaapdbnni" NotOnOrAfter="2008-10-15T17:34:46Z" Recipient="https://www.google.com/a/unopass.net/acs"/> </saml:SubjectConfirmation> </saml:Subject> ... www.maret-consulting.ch Conseil en technologies
  • 73. A SAML Assertion Response (no magic, just XML) ... <saml:Conditions NotBefore="2008-10-15T17:14:46Z" NotOnOrAfter="2008-10-15T17:34:46Z"> <saml:AudienceRestriction> <saml:Audience>google.com</saml:Audience> </saml:AudienceRestriction> </saml:Conditions> <saml:AuthnStatement AuthnInstant="2008-10-15T17:24:46Z“ SessionIndex="s2bb816b5a8852dcc29f3301784c1640f245a9ec01"> <saml:AuthnContext> <saml:AuthnContextClassRef> urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport </saml:AuthnContextClassRef> </saml:AuthnContext> </saml:AuthnStatement> </saml:Assertion> </samlp:Response> www.maret-consulting.ch Conseil en technologies