Docsity

Security: Understanding Attacks and Cryptography, Slides of Operating Systems

Partial preview of the text

Download Security: Understanding Attacks and Cryptography and more Slides Operating Systems in PDF only on Docsity!

Introduction to Security

  • • • • InterceptionInterruptionModificationFabrication Attacks
  • • Destruction of a piece of hardware, cutting of cable and disabling of a file Services or data become unavailableExamples: management systemInterruption (denial of service)
  • • Changing values in a file, altering a program so that it performs differently Unauthorized party changes the data or tampers with the serviceExamples: and changing the contents of messages that are sent over the networkModification

Cryptography

Given credit where it is due • • • Most slides are from B. A. Miller at Mount Allison UniversitySome slides are from Scott Shenker and Ion Stoica at University of California, BerkeleyI modified and added some slides

The Problem

Bob Private Message Eavesdropping Eve Alice

The Solution

Private Message Bob Encryption Scrambled Message Eavesdropping Eve Decryption Private MessageAlice

Using Keys

Plaintext

Encryption^ Ciphertext^ Decryption

Plaintext

Nonsense

The Shift Cipher • We “shift” each letter over by a certain amount

ILYH UHG EDOORRQV

five red balloons v + 3 = Y i + 3 = L f + 3 = I …^ Plaintext

Key = 3 Encryption Ciphertext docsity.com

What • • • Not enough keys!If we shift a letter 26 times, we get the same letter backEve just tries every key until she finds the right one • • A shift of 27 is the same as a shift of 1, etc.So we only have 25 keys (1 to 25)’s wrong with the shift cipher?

The Substitution Cipher • Rather than having a fixed shift, change every plaintext letter to an arbitrary ciphertext letter a b c GXN

Plaintext d e … z SD…QCiphertext

The Substitution Cipher cont. • To decrypt we just look up the ciphertext letter in the table and then write down the matching plaintext letter

  • • How many keys do we have now?What’s wrong with this substitution Cipher? • • A key is just a permutation of the letters of the alphabetThere are 26! permutations • 403291461126605635584000000

Frequency Analysis • • In English (or any language) certain letters are used more often than othersIf we look at a ciphertext, certain ciphertext letters

  • are going to appear more often than othersIt would be a good guess that the letters that occur most often in the ciphertext are actually the most common English letters