• No results found

Authentication & Digital Signature

N/A
N/A
Protected

Academic year: 2021

Share "Authentication & Digital Signature"

Copied!
35
0
0

Loading.... (view fulltext now)

Full text

(1)

Marc de Graauw

Authentication &

Digital Signature

(2)

Marc de Graauw [email protected]

(3)

Marc de Graauw [email protected]

Authentication

• Smartcard (UZI pass) with:

– private key (RSA)

– X.509 certificate (includes public key)

• PKI-Government • Personal pass

– guard safely – no sharing

(4)

Marc de Graauw [email protected] “Hello world” SHA-1 hash: 5llABaWYz xCrKIdjS...

RSA sig value:

c9fVK7vYAdv s2DRZVtS... Private key: shhhh... Public key: MIICHzCCAY ygAwIBAgI... “Hello world”

RSA sig value:

c9fVK7vYAdv s2DRZVtS...

OK

(5)
(6)

Marc de Graauw [email protected]

Security Services (X.800)

• Authentication • Authorization • Data Confidentiality • Data Integrity • Non-repudiation

(7)

Marc de Graauw

(8)

Marc de Graauw [email protected]

(9)

Marc de Graauw

Security services

Secure connection Authentica tion Token Digital Signature Authentication √ √ √ Authorization Confidentiality √ Integrity √ √ Non-repudiation √

(10)

Marc de Graauw [email protected]

(11)
(12)

Marc de Graauw [email protected]

(13)
(14)

Marc de Graauw [email protected]

Security with SSL

• Works well only in simple scenario‟s • There is no HL7v3 XML at the client • The client is (relatively) unsecure

• SSL lays an impenatrable tunnel across the instution‟s secure zone

• SSL from server to server is fine, but:

(15)

Marc de Graauw

Context: clients

• all hospitals, GP‟s, pharmacists, other healthcare pros

• clients: any kind of client • latest .NET / Java

• older dev environments (Delphi, BV, etc.) • thin client/browser

• XSLT heavy • XML / no XML • WS-* / no WS-* • HL7v3 / no HL7v3

(16)

Marc de Graauw [email protected]

Context: HL7v3

• no HL7v3 at client (HL7v2, OZIS, other) • not all data at client

– Act.id

– medication codes

– patient id (BSN) not yet, is reasonable demand

• destination not always known at client • either: require all data available at client • or: sign subset of data

(17)

Marc de Graauw

„Lightweight‟ authentication token

• X.509 style

– message id

• nonce

• provides unique identification of message

• (if duplicate removal has already taken place)

– time to live

• security semantics can expire • time to store & check nonce

– addressedParty

(18)

Marc de Graauw [email protected]

SSL security

• premises:

– healthcare pro keeps smartcard + pin safe

– software to establish SSL tunnel not corrupted – PKI, RSA etc. not broken

• assertion:

– healthcare pro sets up SSL tunnel

• assumption:

– messages going over SSL tunnel come from healthcare pro

• weakness:

– insertion of fake messages in SSL tunnel

• measures:

(19)

Marc de Graauw

Lightweight token security

• premises:

– healthcare pro keeps smartcard + pin safe – software to sign token not corrupted

– PKI, RSA etc. not broken

• assertion:

– healthcare pro signed auth token

• assumption:

– message and auth token belong together

• weakness:

(20)

Marc de Graauw [email protected]

Lightweight token security

• signedData: – message id – notBefore / notAfter – addressedParty • coSignedData – patient id (BSN)

– message type (HL7 trigger event id)

• only possible to retrieve same kind of data for same patient at same time from same destination

• weakness: tampering with other message parameters • for queries: acceptable (privacy not much more broken) • for prescription: use full digital signature

(21)

Marc de Graauw

Hospital workflow

• doctor makes round

• 360 seconds per patient • nurse has file ready

• retrieval times are not acceptable

• pre-signing tokens and pre-fetching data just in time

• possible with auth tokens, not (so much) with SSL

(22)

Marc de Graauw [email protected] SOAP Envelope SOAP Body

Authentication alternatives

HL7 payload SOAP Header Auth Token

(23)

Marc de Graauw SOAP Envelope SOAP Body

Authentication alternatives

HL7 payload SOAP Header Auth Token Auth Token Auth Token HL7 payload HL7 payload

(24)

Marc de Graauw [email protected]

HL7 Medical Application

HL7 Control Query Processing Application

HL7 Transmission Wrapper Adapter

HL7 Web Services Messaging Adapter

HTTP Client / Server SOAP Messages HL7v3 Messages HL7v3 Acts HL7v3 Medical Content

(25)

Marc de Graauw

Authentication alternatives

• Authentication tokens in SOAP Headers separate them from the content

• HL7 sometimes allows multiple payloads, making this problem worse

• The token has to travel across layers with the paylaod

(26)

Marc de Graauw [email protected]

WS-*

• WS-* is confused about whether it is a document format or a message format • document: relevant to the end user

• message: relevant to the mailman • keep metadata with the document

• putting document metadata in SOAP

(27)

Marc de Graauw

(28)

Marc de Graauw [email protected]

Some philosophy

• “The President of the United States is John McCain”

• “Karen believes „the President of the United States is John McCain‟ ”

• “John says that „the President of the United States is John McCain‟ ”

(29)

Marc de Graauw

(30)

Marc de Graauw [email protected] <code code=”27” codeSystem=”2.16.840.1.113883.2 .4.4.5” /> "Dissolve in water"

(31)

Marc de Graauw

(32)

Marc de Graauw [email protected]

(33)

Marc de Graauw

(34)

Marc de Graauw [email protected]

<ws:SecToken>

HL7v3 bericht

Token & XML Signature

HL7v3 bericht Certificate Digest Sig value XML Signature Getekende gegevens Prescription1 <ds:Signature> <ds:SignedInfo> <ds:KeyInfo> Certificate Digest Sig value Componenten Getekende gegevens Prescription 1 HL7v3 bericht Met WSS <ds:Signature> <ds:SignedInfo> <ds:KeyInfo> Certificate Digest Sig value Getekende gegevens Prescription 1 SOAP envelope body HL7v3 bericht Getekende gegevens Prescription 1 headers In SOAP Headers Reference <ws:SecToken> <ds:Signature> <ds:SignedInfo> <ds:KeyInfo> Certificate Digest Sig value Reference

(35)

Marc de Graauw

HL7v3 bericht

Meerdere Signatures, 1 certificaat

Bericht + handtekening <Signature1> <SignedInfo> Certificate A Digest 1 Sig value 1 Getekende gegevens 1 Prescription 1 Prescription 2 Getekende gegevens 2 <Signature2> <ds:SignedInfo> Digest 2 Sig value 2 Certificate Signature Getekende gegevens HL7v3 Prescription persisteren

References

Related documents

3. Collier County DRI Administrative Plan guidelines for determining applicant eligibility were not enforced. The audit observations reflect a lack of program oversight by prior

Select Encrypt Message or Add Digital Signature or both Select Security Settings:

To address these questions, the following goals were set: (a) to reproduce field explosions pertaining to primary blast injury as accurate as possible in a controlled

Boston partner Shayla Harlev was named an “Up and Coming” lawyer in Massachusetts for Private Equity: Buyouts &amp; Venture Capital Investment and Corporate/M&amp;A by Chambers USA

The table below provides a comparison of the cost per square foot for Menlo Park Fire District Station 2, located in East Palo Alto, bid and rebuilt starting in 2013, and Station

a Answer: False. The paragraph talks about drivers and the opinion they have of themselves, not their opinion of other matters or people. The text then goes on to talk about

The exact estimation of quantization effects requires numerical simulation and is not amenable to exact analytical methods.. But an approach that has proven useful is to treat

In memory of Harold Taub, beloved husband of Paula Taub by: Karen &amp; Charles Rosen.. Honouring Maria Belenkova-Buford on her marriage by: Karen &amp;