• No results found

Web Services Security

N/A
N/A
Protected

Academic year: 2021

Share "Web Services Security"

Copied!
22
0
0

Loading.... (view fulltext now)

Full text

(1)

i

SP RE

Web Services Security

Attacking & Defending Web

Services

Pete Lindstrom

(2)

Fiction

This “behind the firewall” stuff is a

bunch of hooey.

Web Services Security isn’t scary if

you break an implementation down

into its component parts.

Truth: You will never be completely

(3)

Torn From the Headlines!

<?xml version="1.0"?>

<?xml-stylesheet type="text/xsl" href="#?m$ux" ?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:script> <![CDATA[ x=new ActiveXObject("WScript.Shell"); x.Run("%systemroot%\\SYSTEM32\\CMD.EXE /C DIR C:\\ /a /p /s"); ]]> </xsl:script> <msux> msux

written by georgi guninski </msux>

</xsl:stylesheet>

(4)

Web Services Components

XML –EXtensible Markup Language creates a way to define many different data formats so that platforms can interoperate. XML documents and transactions are made up of elements within a multi-level hierarchical structure.

UDDI – The Universal Description, Discovery, and Integration specification provides a registry for Web Services that can be searched for services and allows for dynamic updates.

WSDL – The Web Services Description Language provides a way to describe interfaces for Web Services.

SOAP – The Simple Object Access Protocol that provides a network protocol for transport of Web Services documents.

(5)

Web Services

Opportunities & Risks

Multiple data sources provide many alternatives and opportunities for business.

o How do we ensure that the data sources are legitimate?

Real-time transactions can be submitted just-in-time.

o How do we validate the data prior to its use?

Contextual data makes integration easy.

o Who else may intercept the data?

Directories allow for dynamic lookups and immediate gratification.

(6)

Transaction Security

Cr eate D o cume nt Re cei ve D o cumen t

(7)

Transaction Attack Methods

Resubmit real transaction. Replay

Submit fake transaction. Spoof

Intercept and read data in a transaction.

Sniff

Change data within a transaction.

Modify

Description

Attack

(8)

Transaction Security

Cr eate D o cume nt Re cei ve D o cumen t

Sniff

Replay

Spoof

Modify

Within Control

(9)

Data Protection Goals

Confidentiality – protect data from being seen by inappropriate people/entities.

Integrity – protect data from being modified inappropriately.

Authenticity – ensure the data and its source are legitimate.

Availability – ensure the data is accessible by appropriate entities.

(10)

Basic Confidentiality

Encryption:

Encrypt data with symmetric key

Securely transfer key to recipient

(e.g. encrypt symmetric key with recipient’s public key)

Decryption:

Securely receive key

(e.g. decrypt symmetric key with recipient’s private key)

(11)

XML Encryption

<EncryptedData> <EncryptionProperties> <ds:KeyInfo> </ds:KeyInfo> <EncryptedKey> <Agreement Method> <ds:KeyName> <ds:RetrievalMethod> <ds:*> <CipherData> </CipherData> <CipherValue> <CipherReference URI> <EncryptionMethod/> Container Container Algorithm Algorithm Key Key Management Management Encrypted Encrypted Data Data

(12)

XML Encryption

Encryption:

Use <EncryptionMethod> to create <CipherValue> described by <CipherData> elements.

Securely transfer key to recipient using <KeyInfo> or out of band method.

Decryption:

Retrieve key using <KeyInfo>.

Take <CipherValue> and identify

(13)

XML Encryption Roundup

The goal is confidentiality (privacy).

The key is the key – key management.

Must be able to retain keys over time.

Must be able to protect the keys.

Must keep the key and the cipherdata

separate.

(14)

What about SSL?

SSL begins and terminates in concert with a

communications session; there is no

persistent security.

SSL is point-to-point; it breaks down in a

multi-point environment.

SSL is not data-aware; it just encrypts

everything that is there.

(15)

Integrity & Authenticity

Sign:

Process data through one way hash

Sign hash with source private key

Transmit data

Validate:

Validate signature with source public key

Re-hash data and compare

(16)

XML Signature

<Signature> <SignedInfo> </SignedInfo> <Reference> </Reference> <Transforms> <DigestMethod> <DigestValue> <KeyInfo /> <CanonicalizationMethod /> <SignatureMethod /> <SignatureValue /> Container Container Format Data Format Data Signature Algorithm Signature Algorithm Hash Algorithm Hash Algorithm

Signed Hash Info

Signed Hash Info

Hash Value

Hash Value

Key Information

(17)

XML Signature

Sign:

Canonicalize data (<CanonicalizationMethod>)

Process data through one way hash (<DigestMethod>; <DigestValue>)

Sign hash with source private key (<SignatureMethod>; <SignatureValue>)

Transmit data

Validate:

Validate signature with source public key

(18)

XML Signature Roundup

Always include dynamic

information in signed data.

o

Protect against replay attacks.

Retrieve key info out-of-band.

o

Segregation for validation.

(19)

Transaction Attack Methods

Validate/Audit Resubmit real transaction.

Replay

Validate Submit fake transaction.

Spoof

Encrypt Intercept and read data in a

transaction. Sniff

Sign Change data within a

transaction. Modify

Solution

Description

(20)
(21)

Security Roundup

Harden the hosts

Authenticate the components

Access Control

o

Limit usage to specific entities

o

Validate inputs (user and application)

Secure the transaction

(22)

i

SP RE

Pete Lindstrom

[email protected]

www.spiresecurity.com

Agree?

Disagree?

Thank You

References

Related documents

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;

s-process p-process Mass known Half-life known

Strong evidence indicates that, as well as changes in global average conditions such as temperature and precipitation, projected climate change is likely to be accompanied by

In polar coordinates, iris boundaries are horizontal edge points, non-iris boundary that caused by iris textures, eyelashes, eyelids, and lamp-house are not horizontal edge points..

“ the seven words of our LORD on

Volume (2018), Issue 1 Spring 2018 Wildlife Sightings Newsletter of the Iowa Chapter of The Wildlife Society. Make TWS Journals Your Publishing Choice

Advantage: Tungsten carbide, TSP, and diamond enhanced inserts provide extra protection to the gauge. Benefit: In-gauge hole and longer bit life;

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