for your eyes only ! mq advanced message security · for your eyes only ! mq advanced message...

29
For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM Wednesday 10 th August Session # 9417

Upload: buianh

Post on 26-Apr-2018

224 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

For Your Eyes Only !MQ Advanced Message Security

Jon RumseyIBM

Wednesday 10th AugustSession # 9417

Page 2: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Agenda

• Message Level Security• Digital Cryptography 101 (Alice & Bob)• WebSphere MQ Advanced Message Security• Architecture• Administration• Availability

Page 3: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Why Message Level Security ?

• Messaging that does not involve humans• Command & control scenarios• Application to Application, no “human” checking

• Large MQ networks : difficult to prove security of messages• Against message injection / message modification / message

viewing

• Data subject to standards compliance (PCI, HIPAA, etc)• Credit card data protected by PCI• Confidential government data• Personal information e.g. healthcare• Data at rest, administrative privileges, etc

Page 4: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Message Level Protection

• Assurance that messages have not been altered in transit• When issuing payment information messages, ensure the

payment amount does not change before reaching the receiver

• Assurance that messages originated from the expected source • When processing control messages, validate the sender

• Assurance that messages can only be viewed by intended recipient(s)• When sending confidential information

Page 5: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Cryptography

• Symmetric Keys• Relatively fast• Poses key distribution challenges when faced with large

numbers of senders/receivers• The key has to be known by the sender and receiver

• Asymmetric Keys• Message encrypted with one key can only be decrypted by the

other one• Slower than symmetric key cryptography• Asymmetric Keys can be used to solve the key distribution

challenges associated with symmetric keys

Page 6: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Symmetric Key Crytography

DecryptionEncryption

plaintext

ciphertext plaintext

Page 7: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Asymmetric Key Cryptography

DecryptionEncryption

plaintext plaintextBob

Bob's Public Key Bob's Private Key

fdsfdfq

ciphertext

Page 8: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Hash Functions

Hash Function hhhhhhhhMessage of length nMessage of length n

Fixed Fixed length, length, short short numbernumber

Fixed Fixed length, length, short short numbernumber

Fixed Fixed length, length, short short numbernumber

Fixed Fixed length, length, short short numbernumber

• Hash Function• Computes the message MAC (Message Authentication Code)• Easy to compute• Very difficult to reverse• Computationally infeasible to find two messages that hash to

the same value

Page 9: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Digital Signatures

Alice Alice's plaintext

hhhhhhhhHashFunction hhhhhhhh

Alice "signs" the hash (encrypts the hash with her private key)

Bob

Bob decrypts the signed hash with Alice's public key

hhhhhhhh hhhhhhhh

hhhhhhhhHashFunction

Bob hashes the plaintext to derive the hash

If hashes match:ƒ Only Alice could

have signedƒ Plaintext didn't

change in transit

Page 10: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

SendingApp

ReceivingApp

MQ Msg

&@Ja^! &@Ja^!

MQ Msg

WebSphere MQ Advanced Message Security

Page 11: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

WebSphere MQ Advanced Message Security

• Provides additional security services over and above base MQ

• Application to Application protection for messages• Well suited to point to point, publish/subscribe limited• Have to know your authorized parties ahead of operation

• Asymmetric cryptography used to protect each message• Non-invasive

• No changes required to applications • Administrative interfaces for policy management

• Command line• MQ Explorer Plug-In (GUI)

Page 12: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

WMQ vs WMQ AMS Security

• AMS is a complimentary offering, not a replacement to WMQ security

• WebSphere MQ• Authentication (Local OS user id, SSL peer for clients)• Authorization (OAM on distributed, RACF on z/OS)• Integrity (SSL for channels)• Privacy (SSL for channels)

• WebSphere MQ Advanced Message Security• Integrity (Digital signing of messages)• Privacy (Message content encryption)

Page 13: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Certificates, Interceptors and Policies

• AMS uses X.509 digital certificates for digital signing and encryption

• Interceptors installed in the application process to sign, encrypt and decrypt message data• No code changes to the application

• Policies are defined to control the interceptors• Matched against queue names• What level of protection, none, integrity or privacy• Which certificates are involved (DN)

• Authorised signer(s)• Authorised recipient(s)

Page 14: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

WMQ + AMS v7.0.1 Architecture

MCAQueue

Manager

Object Authority Manager

OK?

y/n

MQ Client App

Client Intercept

MQ Svr App

API Intercept

MQ Java/JMS

AppJava Intercept

KeyStore

Page 15: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

AMS Interceptors

Server• API Exit

Client• Library

Replacement

JMS• JMQI Intercept

QMGRQMGR QMGR

Channel Agent Channel Agent

Application Application JMS Application

Replacement mqic lib

Renamed MQIC

JMS

JMQI

JMQI InterceptMQ API (mqm lib) API Exit

Page 16: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

AMS Policies

• Stored on SYSTEM.PROTECTION.POLICY.QUEUE

• Signature Algorithm• MD5 or SHA1

• Encryption Algorithm• RC2, DES, 3DES, AES128 or AES256

• Acceptable Signer(s)• Applicable when signing messages

• Message Recipient(s)• Applicable when signing and encrypting messages

Page 17: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Policy Administration• Command line tools

• setmqspl : Set message protection policy• -m QMGR• -p Policy_Name• -s Signing_Algorithm• -a Authorised Signers• -e Encryption_Algorithm• -r Message_Recipients

• dspmqspl : Display message protection policies• -m QMGR• [-export]• [-p Policy_Name]

Page 18: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Policy Administration

Page 19: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Securing an MQ Application

AMS_QMSending

AppReceiving

App

ALICE.QAlice Bob

Page 20: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Securing an MQ Application

AMS_QMSending

AppReceiving

App

ALICE.QAlice Bob

1.Install AMS Interceptor

Page 21: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Securing an MQ Application

AMS_QMSending

AppReceiving

App

ALICE.QAlice Bob

KeystoreAlice PrivAlice Pub

KeystoreBob PrivBob Pub

1.Install AMS Interceptor2.Create public / private key pairs

Page 22: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Securing an MQ Application

AMS_QMSending

AppReceiving

App

ALICE.QAlice Bob

KeystoreAlice PrivAlice Pub

Bob Pub

KeystoreBob PrivBob Pub

1.Install AMS Interceptor2.Create public / private key pairs3.Copy recipient's public key

Page 23: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

AMS_QMSending

AppReceiving

App

ALICE.QAlice Bob

KeystoreAlice PrivAlice Pub

Bob Pub

KeystoreBob PrivBob Pub

PolicyALICE.QPrivacyRecipient : Bob

1.Install AMS Interceptor2.Create public / private key pairs3.Copy recipient's public key4.Define protection policy for the queue

Securing an MQ Application

Page 24: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

WebSphere MQ AMS : Integrity Message Format

Message Data

Message Data

PDMQ Header

PKCS #7 Envelope

Signature

Original MQ Message AMS Signed Message

Message PropertiesMessage Properties

Page 25: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

WebSphere MQ AMS : Privacy Message Format

Message Data

Message Data

PDMQ Header

PKCS #7 Envelope

Signature

Original MQ Message AMS Encrypted Message

Message PropertiesMessage Properties

Key encrypted with certificate

Data encrypted with key

Page 26: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Availability

• MQ AMS dates : • Released : 8th Oct 2010• 7.0.1.1 Released : 14th April 2011

• Added support for crypto hardware to store keys• 90 day Trial version available to download

• Platform support• Same as MQ 7.0.1 (except IBM i)• Works with MQ 6 & MQ 7 queue managers (JMS

interceptor requires v7 jars)

Page 27: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Summary

• AMS provides message level security• Complements base MQ security, not a replacement• Can be applied selectively at a queue level• Each message protected with asymmetric key cryptography

• Application to application, end to end security• No code changes required• Well suited to point to point applications

Page 28: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Monday Tuesday Wednesday Thursday Friday

08:00 More than a buzzword: Extending the reach of your MQ messaging with Web 2.0

Batch, local, remote, and traditional MVS - file processing in Message Broker

Lyn's Story Time - Avoiding the MQ Problems Others have Hit

09:30 WebSphere MQ 101: Introduction to the world's leading messaging provider

The Do’s and Don’ts of Queue Manager Performance

So, what else can I do? - MQ API beyond the basics

MQ Project Planning Session

11:00 MQ Publish/Subscribe The Do’s and Don’ts of Message Broker Performance

Diagnosing problems for Message Broker

What's new for the MQ Family and Message Broker

12:15 MQ Freebies! Top 5 SupportPacs

The doctor is in. Hands-on lab and lots of help with the MQ family

Using the WMQ V7 Verbs in CICS Programs

01:30 Diagnosing problems for MQ

WebSphere Message Broker 101: The Swiss army knife for application integration

The Dark Side of Monitoring MQ - SMF 115 and 116 record reading and interpretation

Getting your MQ JMS applications running, with or without WAS

03:00 Keeping your eye on it all - Queue Manager Monitoring & Auditing

The MQ API for dummies - the basics

Under the hood of Message Broker on z/OS - WLM, SMF and more

Message Broker Patterns - Generate applications in an instant

04:30 Message Broker administration for dummies

All About WebSphere MQ File Transfer Edition

For your eyes only - WebSphere MQ Advanced Message Security

Keeping your MQ service up and running - Queue Manager clustering

06:00 Free MQ! - MQ Clients and what you can do with them

MQ Q-Box - Open Microphone to ask the experts questions

The rest of the week ……

Page 29: For Your Eyes Only ! MQ Advanced Message Security · For Your Eyes Only ! MQ Advanced Message Security Jon Rumsey IBM ... • AMS uses X.509 digital certificates for digital signing

Questions & Answers

Please fill out your evaluation formsSession # 9417