Network Security Notes
Network Security Notes
6(&85,7<
First Edition
M. Thangavel B.E. (CSE), M.E. (CSE)
With the Guidance of,
Computer Science and Engineering Department,
J.J. College of Engineering & Technology,
Ammapettai, Poolangulathupatti (Post),
Tiruchirappalli - 620 009,
Tamil Nadu.
Dedicated to,
0\$33$
7+,58,0858*$1
SYIIABUS
CS5009 NTWORK SCURITY
UNIT I IUNAMNTAIS
Affncks SorvIcos MochnnIsms ConvonfIonnI IncryfIon CInssIcnI nnd
Modorn TochnIquos IncryfIon AIgorIfhms ConfIdonfInIIfy
UNIT II PUBIIC KY NCRYPTION
!SA IIIIfIc Curvo Cryfogrnhy umbor Thoory Concofs.
UNIT III MSSAG AUTHNTICATION
Hnsh IuncfIons Igosf IuncfIons IgIfnI SIgnnfuros AufhonfIcnfIon IrofocoIs.
UNIT IV NTWORK SCURITY PRACTIC
AufhonfIcnfIon AIIcnfIons IIocfronIc MnII SocurIfy II SocurIfy Wob
SocurIfy.
UNIT V SYSTM SCURITY
Infrudors VIrusos Worms IIrownIIs osIgn IrIncIIos Trusfod Sysfoms.
TABI OI CONTNTS
UNIT 1 IUNAMNTAIS
l.l InfroducfIon................................
l.2 SorvIcos, MochnnIsms nnd Affncks.....................
l.3 SocurIfy Tronds... ............................
l.4 Tho OSI SocurIfy ArchIfocfuro..........................
l.5 A ModoI for ofwork SocurIfy...........................
l.6 CInssIcnI IncryfIon TochnIquos......................
l.? SymmofrIc CIhor ModoI...........................
l.8 SubsfIfufIon TochnIquos............................
l.9 TrnnsosIfIon TochnIquos.......................
l.l0 !ofor MnchInos................................
l.ll Sfognnogrnhy ................................
l.l2 SImIIfIod IS..............................
l.l3 IIock CIhor IrIncIIos...........................
l.l4 MofIvnfIon Ior Tho IoIsfoI CIhor Sfrucfuro...............
l.l5 Tho IoIsfoI CIhor..............................
l.l6 IoIsfoI CIhor Sfrucfuro.........................
l.l? Tho nfn IncryfIon Sfnndnrd ...........................
l.l8 Tho Sfrongfh of IS.............................
l.l9 IfforonfInI nnd !Inonr CryfnnIysIs....................
l.20 IIock CIhor osIgn IrIncIIos.....................
l.2l IIock CIhor Modos of OornfIon....................
l.22 Advnncod IncryfIon Sfnndnrd.....................
l.23 Tho AIS CIhor............................
l.l
l.2
l.6
l.?
l.l?
l.20
l.20
l.28
l.40
l.42
l.43
l.45
l.53
l.54
l.5?
l.58
l.64
l.?4
l.?5
l.?9
l.83
l.92
l.96
l.24 Confomornry SymmofrIc CIhors.....................
A TrIIo IS..............................
I IIowfIsh................................
C !C5..................................
ChnrncforIsfIcs Of Advnncod SymmofrIc IIock CIhors..........
I !C4 Sfronm CIhor..........................
l.25 ConfIdonfInIIfy !sIng SymmofrIc IncryfIon..............
A IIncomonf of IncryfIon IuncfIon.....................
I TrnffIc ConfIdonfInIIfy.........................
C Koy IsfrIbufIon............................
!nndom umbor ConornfIon.....................
l.l09
l.l09
l.ll4
l.l20
l.l26
l.l28
l.l32
l.l32
l.l38
l.l40
l.l48
UNIT 2 PUBIIC KY NCRYPTION
2.l IubIIc Koy Cryfogrnhy...........................
2.2 IrIncIIos of IubIIc Koy Cryfosysfoms....................
2.3 Tho !SA AIgorIfhm..............................
2.4 umbor Thoory...............................
A.l IrImo umbors............................
A.2 Iormnf`s nnd IuIor`s Thoorom......................
A.3 TosfIng for IrImnIIfy.........................
A.4 ChInoso !omnIndor Thoorom.....................
A.5 Iscrofo !ognrIfhms............................
2.5 Koy Mnnngomonf; Ofhor IubIIc Koy Cryfosysfoms................
I.l Koy Mnnngomonf............................
I.2 IffIo-HoIImnn Koy Ixchnngo.......................
I.3 IIIIfIc Curvo ArIfhmofIc.........................
2.6 IIIIfIc Curvo Cryfogrnhy.......................
2.l
2.l
2.l0
2.l8
2.l8
2.20
2.23
2.26
2.2?
2.30
2.3l
2.38
2.42
2.45
UNIT 3 MSSAG AUTHNTICATION
3.l Mossngo AufhonfIcnfIon nnd Hnsh IuncfIons.................
A.l AufhonfIcnfIon !oquIromonfs........................
A.2 AufhonfIcnfIon IuncfIons..........................
A.3 Mossngo AufhonfIcnfIon Codos.........................
A.4 Hnsh IuncfIons.............................
A.5 SocurIfy of Hnsh IuncfIons nnd MAC`s.................
3.2 M5 Mossngo Igosf AIgorIfhm.....................
3.3 Socuro Hnsh AIgorIfhm (SHA-l).....................
3.4 !IIIM-l60....................................
3.5 HMAC....................................
3.6 IgIfnI SIgnnfuros nnd AufhonfIcnfIon IrofocoIs........... ...
I.l IgIfnI SIgnnfuros...........................
I.2 AufhonfIcnfIon IrofocoIs.........................
I.3 IgIfnI SIgnnfuro Sfnndnrd.......................
3.l
3.l
3.2
3.l4
3.l?
3.20
3.24
3.30
3.35
3.3?
3.40
3.40
3.44
3.54
UnIt 4 NTWORK SCURITY PRACTIC
4.l AufhonfIcnfIon AIIcnfIons..........................
A.l Korboros...............................
A.2 X.509 AufhonfIcnfIon SorvIco.....................
4.2 IIocfronIc MnII SocurIfy............................
I.l Iroffy Cood IrIvncy...........................
I.2 S/MIMI...............................
4.3 II SocurIfy..................................
C.l II SocurIfy OvorvIow.........................
C.2 II SocurIfy ArchIfocfuro.........................
C.3 AufhonfIcnfIon Hondor.........................
4.l
4.l
4.l9
4.3l
4.3l
4.52
4.68
4.68
4.?2
4.?9
C.4 IncnsuInfIng SocurIfy InyIond....................
C.5 CombInIng SocurIfy AssocInfIons.....................
C.6 Koy Mnnngomonf............................
4.4 Wob SocurIfy.................................
.l Wob SocurIfy ConsIdornfIons.......................
.2 Socuro Sockof !nyor And Trnnsorf !nyor SocurIfy............
.3 Socuro IIocfronIc TrnnsncfIon.....................
UNIT 5 SYSTM SCURITY
5.l Infrudors..................................
I.l Infrudors...............................
I.2 InfrusIon ofocfIon...........................
I.3 Inssword Mnnngomonf..........................
5.2 MnIIcIous Soffwnro..........................
II.l VIrusos nnd !oInfod Thronfs......................
II.2 VIrus Counfor Monsuros........................
II.3 IsfrIbufod onInI of SorvIco.....................
5.3 IIrownIIs................................
III.l IIrownII osIgn rIncIIos........................
III.2 Trusfod Sysfoms...........................
III.3 Common CrIforIn Ior InformnfIon TochnoIogy SocurIfy IvnIunfIon......
4.86
4.9l
4.94
4.l03
4.l03
4.l06
4.l29
5.l
5.l
5.4
5.20
5.30
5.3l
5.45
5.5l
5.5?
5.58
5.?3
5.8l
)25*,9($1')25*(7
123$,112*$,16
7587+$/:$<675,803+6
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
UNIT I
IUNAMNTAIS
1.1 INTROUCTION
Definitiono:
Computev SecuvIty - gonorIc nnmo for fho coIIocfIon of fooIs dosIgnod fo rofocf
dnfn nnd fo fhwnrf hnckors
Netwovk SecuvIty - monsuros fo rofocf dnfn durIng fhoIr frnnsmIssIon
Intevnet SecuvIty - monsuros fo rofocf dnfn durIng fhoIr frnnsmIssIon ovor n
coIIocfIon of Inforconnocfod nofworks
Infornofwork socurIfy Is bofh fnscInnfIng nnd comIox. Somo of fho ronsons foIIow:
l. SocurIfy InvoIvIng communIcnfIons nnd nofworks Is nof ns sImIo ns If mIghf
fIrsf nonr fo fho novIco. Tho roquIromonfs soom fo bo sfrnIghfforwnrd; Indood,
mosf of fho mnjor roquIromonfs for socurIfy sorvIcos cnn bo gIvon soIf-
oxInnnfory ono-word InboIs: confIdonfInIIfy, nufhonfIcnfIon, nonroudInfIon,
InfogrIfy. Iuf fho mochnnIsms usod fo moof fhoso roquIromonfs cnn bo quIfo
comIox, nnd undorsfnndIng fhom mny InvoIvo rnfhor subfIo ronsonIng.
2. In dovoIoIng n nrfIcuInr socurIfy mochnnIsm or nIgorIfhm, ono musf nIwnys
consIdor ofonfInI nffncks on fhoso socurIfy fonfuros. In mnny cnsos, succossfuI
nffncks nro dosIgnod by IookIng nf fho robIom In n comIofoIy dIfforonf wny,
fhoroforo oxIoIfIng nn unoxocfod wonknoss In fho mochnnIsm.
3. Iocnuso of oInf 2, fho rocoduros usod fo rovIdo nrfIcuInr sorvIcos nro offon
counforInfuIfIvo: If Is nof obvIous from fho sfnfomonf of n nrfIcuInr roquIromonf
fhnf such oInbornfo monsuros nro noodod. If Is onIy whon fho vnrIous
counformonsuros nro consIdorod fhnf fho monsuros usod mnko sonso.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
2. An nIfornfIon fo n nor documonf mny Ionvo somo sorf of hysIcnI ovIdonco of
fho nIfornfIon. Ior oxnmIo, nn ornsuro cnn rosuIf In n fhIn sof or n roughnoss
In fho surfnco. AIforIng bIfs In n comufor momory or In n sIgnnI Ionvos no
hysIcnI frnco.
3. Any "roof" rocoss nssocInfod wIfh n hysIcnI documonf fyIcnIIy doonds on
fho hysIcnI chnrncforIsfIcs of fhnf documonf (o.g., fho shno of n hnndwrIffon
sIgnnfuro or nn ombossod nofnry sonI). Any such roof of nufhonfIcIfy of nn
oIocfronIc documonf musf bo bnsod on InfornnI ovIdonco rosonf In fho
InformnfIon IfsoIf.
A PuvtIuI IIst oI Common InIovmutIon IntegvIty IunctIons
MecLunIsms
Thoro Is no sIngIo mochnnIsm fhnf wIII suorf nII fho funcfIons IIsfod In TnbIo.
Howovor, wo cnn nofo nf fhIs oInf fhnf fhoro Is ono nrfIcuInr oIomonf fhnf undorIIos
mnny of fho socurIfy mochnnIsms In uso: cryfogrnhIc fochnIquos.
IncryfIon or oncryfIon-IIko frnnsformnfIons of InformnfIon (such ns hnsh
funcfIons) nro fho mosf common mochnnIsms for rovIdIng socurIfy. Thus, fhIs book
focusos on fho dovoIomonf, uso, nnd mnnngomonf of such fochnIquos.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Attucks
InformnfIon socurIfy Is nbouf how fo rovonf nffncks or, fnIIIng fhnf, fo dofocf
nffncks on InformnfIon-bnsod sysfoms whoroIn fho InformnfIon IfsoIf hns no monnIngfuI
hysIcnI oxIsfonco nnd fhon fo subsoquonfIy rocovor from fho nffncks.
TnbIo l.2 IIsfs oxnmIos of nffncks, onch of whIch hns nrIson In n numbor of ronI-
worId cnsos. Thoso nro oxnmIos of socIfIc nffncks fhnf nn orgnnIznfIon or nn
IndIvIdunI (or nn orgnnIznfIon on bohnIf of Ifs omIoyoos) mny nood fo counfor. Tho
nnfuro of fho nffnck fhnf concorns nn orgnnIznfIon vnrIos gronfIy from ono sof of
cIrcumsfnncos fo nnofhor.
umpIes oI SecuvIty Attucks
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
TLveuts und Attucks
1.3 SCURITY TRNS
In l994, fho Infornof ArchIfocfuro Ionrd (IAI) Issuod n roorf onfIfIod "SocurIfy
In fho Infornof ArchIfocfuro" (!IC l636). Tho roorf sfnfod fho gonornI consonsus fhnf
fho Infornof noods moro nnd boffor socurIfy, nnd If IdonfIfIod koy nrons for socurIfy
mochnnIsms. Among fhoso woro fho nood fo socuro fho nofwork Infrnsfrucfuro from
unnufhorIzod monIforIng nnd confroI of nofwork frnffIc nnd fho nood fo socuro ond-
usor-fo-ond-usor frnffIc usIng nufhonfIcnfIon nnd oncryfIon mochnnIsms.
Ovor fImo, fho nffncks on fho Infornof nnd Infornof-nffnchod sysfoms hnvo
grown moro sohIsfIcnfod whIIo fho nmounf of skIII nnd knowIodgo roquIrod fo mounf
nn nffnck hns docIInod. Affncks hnvo bocomo moro nufomnfod nnd cnn cnuso gronfor
nmounfs of dnmngo. ThIs Incronso In nffncks coIncIdos wIfh nn Incronsod uso of fho
Infornof nnd wIfh Incronsos In fho comIoxIfy of rofocoIs, nIIcnfIons, nnd fho
Infornof IfsoIf. CrIfIcnI Infrnsfrucfuros IncronsIngIy roIy on fho Infornof for oornfIons.
IndIvIdunI usors roIy on fho socurIfy of fho Infornof, omnII, fho Wob, nnd Wob-
bnsod nIIcnfIons fo n gronfor oxfonf fhnn ovor. Thus, n wIdo rnngo of fochnoIogIos nnd
fooIs nro noodod fo counfor fho growIng fhronf.
Af n bnsIc IovoI, cryfogrnhIc nIgorIfhms for confIdonfInIIfy nnd nufhonfIcnfIon
nssumo gronfor Imorfnnco. As woII, dosIgnors nood fo focus on Infornof-bnsod rofocoIs
nnd fho vuInornbIIIfIos of nffnchod oornfIng sysfoms nnd nIIcnfIons.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
X800 dIvIdos fhoso sorvIcos Info fIvo cnfogorIos nnd fourfoon socIfIc sorvIcos:
AutLentIcutIon
Tho nufhonfIcnfIon sorvIco Is concornod wIfh nssurIng fhnf n communIcnfIon Is
nufhonfIc. In fho cnso of n sIngIo mossngo, such ns n wnrnIng or nInrm sIgnnI, fho
funcfIon of fho nufhonfIcnfIon sorvIco Is fo nssuro fho rocIIonf fhnf fho mossngo Is from
fho sourco fhnf If cInIms fo bo from.
In fho cnso of nn ongoIng InforncfIon, such ns fho connocfIon of n formInnI fo n
hosf, tuo uopecto nro InvoIvod.
Firot, nf fho fImo of connocfIon InIfInfIon, fho sorvIco nssuros fhnf fho fwo
onfIfIos nro nufhonfIc, fhnf Is, fhnf onch Is fho onfIfy fhnf If cInIms fo bo.
SeconJ, fho sorvIco musf nssuro fhnf fho connocfIon Is nof Inforforod wIfh In
such n wny fhnf n fhIrd nrfy cnn mnsquorndo ns ono of fho fwo IogIfImnfo nrfIos for
fho urosos of unnufhorIzod frnnsmIssIon or rocofIon.
Two socIfIc nufhonfIcnfIon sorvIcos nro dofInod In fho sfnndnrd:
Peer entity uuthenticution:
IrovIdos for fho corrobornfIon of fho IdonfIfy of n oor onfIfy In nn nssocInfIon. If
Is rovIdod for uso nf fho osfnbIIshmonf of, or nf fImos durIng fho dnfn frnnsfor hnso,
of n connocfIon.
If nffomfs fo rovIdo confIdonco fhnf nn onfIfy Is nof nffomfIng oIfhor n
mnsquorndo or nn unnufhorIzod roIny of n rovIous connocfIon.
Dutu origin uuthenticution:
IrovIdos for fho corrobornfIon of fho sourco of n dnfn unIf. If doos nof rovIdo
rofocfIon ngnInsf fho duIIcnfIon or modIfIcnfIon of dnfn unIfs.
ThIs fyo of sorvIco suorfs nIIcnfIons IIko oIocfronIc mnII whoro fhoro nro no
rIor InforncfIons bofwoon fho communIcnfIng onfIfIos.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Access ContvoI
In fho confoxf of nofwork socurIfy, nccoss confroI Is fho nbIIIfy fo IImIf nnd
confroI fho nccoss fo hosf sysfoms nnd nIIcnfIons vIn communIcnfIons IInks. To
nchIovo fhIs, onch onfIfy fryIng fo gnIn nccoss musf fIrsf bo IdonfIfIod, or nufhonfIcnfod,
so fhnf nccoss rIghfs cnn bo fnIIorod fo fho IndIvIdunI.
utu ConIIdentIuIIty
ConfIdonfInIIfy Is fho rofocfIon of frnnsmIffod dnfn from nssIvo nffncks
(dofInod subsoquonfIy). WIfh rosocf fo fho confonf of n dnfn frnnsmIssIon, sovornI
IovoIs of rofocfIon cnn bo IdonfIfIod. Tho brondosf sorvIco rofocfs nII usor dnfn
frnnsmIffod bofwoon fwo usors ovor n orIod of fImo.
Ior erumple, If n TCI connocfIon Is sof u bofwoon fwo sysfoms, fhIs brond
rofocfIon wouId rovonf fho roIonso of nny usor dnfn frnnsmIffod ovor fho TCI
connocfIon.
Tho ofhor nsocf of confIdonfInIIfy Is fho rofocfIon of frnffIc fIow from nnnIysIs.
ThIs roquIros fhnf nn nffnckor nof bo nbIo fo obsorvo fho sourco nnd dosfInnfIon,
froquoncy, Iongfh, or ofhor chnrncforIsfIcs of fho frnffIc on n communIcnfIons fncIIIfy.
utu IntegvIty
As wIfh confIdonfInIIfy, InfogrIfy cnn nIy fo n sfronm of mossngos, n sIngIo
mossngo, or soIocfod fIoIds wIfhIn n mossngo. AgnIn, fho mosf usofuI nnd
sfrnIghfforwnrd nronch Is fofnI sfronm rofocfIon.
A connection-orienteJ integrity oertice, ono fhnf donIs wIfh n sfronm of
mossngos, nssuros fhnf mossngos nro rocoIvod ns sonf, wIfh no duIIcnfIon, InsorfIon,
modIfIcnfIon, roordorIng, or roInys. Tho dosfrucfIon of dnfn Is nIso covorod undor fhIs
sorvIco. Thus, fho connocfIon-orIonfod InfogrIfy sorvIco nddrossos bofh mossngo sfronm
modIfIcnfIon nnd donInI of sorvIco.
On fho ofhor hnnd, n connectionleoo integrity oertice, ono fhnf donIs wIfh
IndIvIdunI mossngos onIy wIfhouf rognrd fo nny Inrgor confoxf, gonornIIy rovIdos
rofocfIon ngnInsf mossngo modIfIcnfIon onIy.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Wo cnn mnko n dIsfIncfIon bofwoon fho oertice uith unJ uithout recotery.
Iocnuso fho InfogrIfy sorvIco roInfos fo ncfIvo nffncks, wo nro concornod wIfh dofocfIon
rnfhor fhnn rovonfIon.
If n vIoInfIon of InfogrIfy Is dofocfod, fhon fho sorvIco mny sImIy roorf fhIs
vIoInfIon, nnd somo ofhor orfIon of soffwnro or humnn InforvonfIon Is roquIrod fo
rocovor from fho vIoInfIon.
Non-RepudIutIon
onroudInfIon rovonfs oIfhor sondor or rocoIvor from donyIng n frnnsmIffod
mossngo. Thus, whon n mossngo Is sonf, fho rocoIvor cnn rovo fhnf fho mossngo wns In
fncf sonf by fho nIIogod sondor. SImIInrIy, whon n mossngo Is rocoIvod, fho sondor cnn
rovo fhnf fho mossngo wns In fncf rocoIvod by fho nIIogod rocoIvor.
Atuilubility Sertice
Iofh X.800 nnd !IC 2828 dofIno nvnIInbIIIfy fo bo fho roorfy of n sysfom or n
sysfom rosourco boIng nccossIbIo nnd usnbIo uon domnnd by nn nufhorIzod sysfom
onfIfy, nccordIng fo orformnnco socIfIcnfIons for fho sysfom; I.o., n sysfom Is nvnIInbIo
If If rovIdos sorvIcos nccordIng fo fho sysfom dosIgn whonovor usors roquosf fhom.
A vnrIofy of nffncks cnn rosuIf In fho Ioss of or roducfIon In nvnIInbIIIfy. Somo of
fhoso nffncks nro nmonnbIo fo nufomnfod counformonsuros, such ns nufhonfIcnfIon nnd
oncryfIon, whorons ofhors roquIro somo sorf of hysIcnI ncfIon fo rovonf or rocovor
from Ioss of nvnIInbIIIfy of oIomonfs of n dIsfrIbufod sysfom.
X.800 fronfs nvnIInbIIIfy ns n roorfy fo bo nssocInfod wIfh vnrIous socurIfy
sorvIcos. Howovor, If mnkos sonso fo cnII ouf socIfIcnIIy nn nvnIInbIIIfy sorvIco. An
nvnIInbIIIfy sorvIco Is ono fhnf rofocfs n sysfom fo onsuro Ifs nvnIInbIIIfy.
ThIs sorvIco nddrossos fho socurIfy concorns rnIsod by donInI-of-sorvIco nffncks.
If doonds on roor mnnngomonf nnd confroI of sysfom rosourcos, nnd fhus doonds
on nccoss confroI sorvIco nnd ofhor socurIfy sorvIcos.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
SCURITY MCHANISMS
Tho mochnnIsms nro dIvIdod Info fhoso fhnf nro ImIomonfod In n socIfIc
rofocoI Inyor nnd fhoso fhnf nro nof socIfIc fo nny nrfIcuInr rofocoI Inyor or socurIfy
sorvIco. Thoso mochnnIsms wIII bo covorod In fho nrorInfo Incos In fho book nnd so
wo do nof oInbornfo now, oxcof fo commonf on fho dofInIfIon of oncIhormonf.
X.800 dIsfInguIshos bofwoon reteroible enchiperment mechuniomo nnd
irreteroible enchiperment mechuniomo.
A reteroible encipherment mechuniom Is sImIy nn oncryfIon nIgorIfhm
fhnf nIIows dnfn fo bo oncryfod nnd subsoquonfIy docryfod.
1rreteroible encihperment mechuniomo IncIudo hnsh nIgorIfhms nnd
mossngo nufhonfIcnfIon codos, whIch nro usod In dIgIfnI sIgnnfuro nnd mossngo
nufhonfIcnfIon nIIcnfIons.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
SCURITY ATTACKS
A usofuI monns of cInssIfyIng socurIfy nffncks, usod bofh In X.800 nnd !IC 2828,
Is In forms of nssIvo nffncks nnd ncfIvo nffncks. A puooite uttuck nffomfs fo Ionrn or
mnko uso of InformnfIon from fho sysfom buf doos nof nffocf sysfom rosourcos. An
uctite uttuck nffomfs fo nIfor sysfom rosourcos or nffocf fhoIr oornfIon.
PussIve Attucks
InssIvo nffncks nro In fho nnfuro of onvosdroIng on, or monIforIng of,
frnnsmIssIons. Tho gonI of fho oononf Is fo obfnIn InformnfIon fhnf Is boIng
frnnsmIffod. Two fyos of nssIvo nffncks nro: roIonso of mossngo confonfs nnd frnffIc
nnnIysIs.
Tho releuoe of meoouge contento Is onsIIy undorsfood. A foIohono
convorsnfIon, nn oIocfronIc mnII mossngo, nnd n frnnsforrod fIIo mny confnIn sonsIfIvo
or confIdonfInI InformnfIon.
A socond fyo of nssIvo nffnck, truffic unulyoio. Suoso fhnf wo hnd n wny of
mnskIng fho confonfs of mossngos or ofhor InformnfIon frnffIc so fhnf oononfs, ovon If
fhoy cnfurod fho mossngo, couId nof oxfrncf fho InformnfIon from fho mossngo.
Tho common fochnIquo for mnskIng confonfs Is oncryfIon. If wo hnd oncryfIon
rofocfIon In Inco, nn oononf mIghf sfIII bo nbIo fo obsorvo fho nfforn of fhoso
mossngos.
Tho oononf couId doformIno fho IocnfIon nnd IdonfIfy of communIcnfIng hosfs
nnd couId obsorvo fho froquoncy nnd Iongfh of mossngos boIng oxchnngod. ThIs
InformnfIon mIghf bo usofuI In guossIng fho nnfuro of fho communIcnfIon fhnf wns
fnkIng Inco.
InssIvo nffncks nro vory dIffIcuIf fo dofocf bocnuso fhoy do nof InvoIvo nny
nIfornfIon of fho dnfn. Howovor, If Is fonsIbIo fo rovonf fho succoss of fhoso nffncks,
usunIIy by monns of oncryfIon. Thus, fho omhnsIs In donIIng wIfh nssIvo nffncks Is
on rovonfIon rnfhor fhnn dofocfIon.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
ActIve Attucks
AcfIvo nffncks InvoIvo somo modIfIcnfIon of fho dnfn sfronm or fho cronfIon of n
fnIso sfronm nnd cnn bo subdIvIdod Info four cnfogorIos: mnsquorndo, roIny,
modIfIcnfIon of mossngos, nnd donInI of sorvIco.
A muoqueruJe fnkos Inco whon ono onfIfy rofonds fo bo n dIfforonf onfIfy. A
mnsquorndo nffnck usunIIy IncIudos ono of fho ofhor forms of ncfIvo nffnck.
Repluy InvoIvos fho nssIvo cnfuro of n dnfn unIf nnd Ifs subsoquonf
rofrnnsmIssIon fo roduco nn unnufhorIzod offocf.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
MoJificution of meoougeo sImIy monns fhnf somo orfIon of n IogIfImnfo
mossngo Is nIforod, or fhnf mossngos nro doInyod or roordorod, fo roduco nn
unnufhorIzod offocf.
Tho Jeniul of oertice rovonfs or InhIbIfs fho normnI uso or mnnngomonf of
communIcnfIons fncIIIfIos. ThIs nffnck mny hnvo n socIfIc fnrgof; for oxnmIo, nn onfIfy
mny suross nII mossngos dIrocfod fo n nrfIcuInr dosfInnfIon (o.g., fho socurIfy nudIf
sorvIco).
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
ReIutIonsLIp between SecuvIty SevvIces und MecLunIsms
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
IIIevence:
AcfIvo nffncks rosonf fho oosIfo chnrncforIsfIcs of nssIvo nffncks. Whorons
nssIvo nffncks nro dIffIcuIf fo dofocf, monsuros nro nvnIInbIo fo rovonf fhoIr succoss.
On fho ofhor hnnd, If Is quIfo dIffIcuIf fo rovonf ncfIvo nffncks nbsoIufoIy,
bocnuso fo do so wouId roquIro hysIcnI rofocfIon of nII communIcnfIons fncIIIfIos nnd
nfhs nf nII fImos.
Insfond, fho gonI Is fo dofocf fhom nnd fo rocovor from nny dIsrufIon or doInys
cnusod by fhom. Iocnuso fho dofocfIon hns n doforronf offocf, If mny nIso confrIbufo fo
rovonfIon.
1.5 A MOI IOR NTWORK SCURITY
A mossngo Is fo bo frnnsforrod from ono nrfy fo nnofhor ncross somo sorf of
Infornof. Tho fwo nrfIos, who nro fho principole In fhIs frnnsncfIon, musf cooornfo for
fho oxchnngo fo fnko Inco. A IogIcnI InformnfIon chnnnoI Is osfnbIIshod by dofInIng n
roufo fhrough fho Infornof from sourco fo dosfInnfIon nnd by fho cooornfIvo uso of
communIcnfIon rofocoIs (o.g., TCI/II) by fho fwo rIncInIs.
ModeI Iov Netwovk SecuvIty
SocurIfy nsocfs como Info Iny whon If Is nocossnry or dosIrnbIo fo rofocf fho
InformnfIon frnnsmIssIon from nn oononf who mny rosonf n fhronf fo
confIdonfInIIfy, nufhonfIcIfy, nnd so on. AII fho fochnIquos for rovIdIng socurIfy hnvo
tuo componento:
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
CIpLevtet:
ThIs Is fho scrnmbIod mossngo roducod ns oufuf. If doonds on fho InInfoxf
nnd fho socrof koy. Ior n gIvon mossngo, fwo dIfforonf koys wIII roduco fwo dIfforonf
cIhorfoxfs. Tho cIhorfoxf Is nn nnronfIy rnndom sfronm of dnfn nnd, ns If sfnnds, Is
unInfoIIIgIbIo.
ecvyptIon uIgovItLm:
ThIs Is ossonfInIIy fho oncryfIon nIgorIfhm run In rovorso. If fnkos fho
cIhorfoxf nnd fho socrof koy nnd roducos fho orIgInnI InInfoxf.
SImpIIIIed ModeI oI SymmetvIc ncvyptIon
Thoro nro fwo roquIromonfs for socuro uso of convonfIonnI oncryfIon:
Wo nood n sfrong oncryfIon nIgorIfhm. Af n mInImum, wo wouId IIko fho
nIgorIfhm fo bo such fhnf nn oononf who knows fho nIgorIfhm nnd hns nccoss
fo ono or moro cIhorfoxfs wouId bo unnbIo fo docIhor fho cIhorfoxf or fIguro
ouf fho koy. ThIs roquIromonf Is usunIIy sfnfod In n sfrongor form: Tho oononf
shouId bo unnbIo fo docryf cIhorfoxf or dIscovor fho koy ovon If ho or sho Is In
ossossIon of n numbor of cIhorfoxfs fogofhor wIfh fho InInfoxf fhnf roducod
onch cIhorfoxf.
Sondor nnd rocoIvor musf hnvo obfnInod coIos of fho socrof koy In n socuro
fnshIon nnd musf koo fho koy socuro. If somoono cnn dIscovor fho koy nnd
knows fho nIgorIfhm, nII communIcnfIon usIng fhIs koy Is rondnbIo.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
AIfornnfIvoIy, n fhIrd nrfy couId gonornfo fho koy nnd socuroIy doIIvor If fo bofh
sourco nnd dosfInnfIon. WIfh fho mossngo X nnd fho oncryfIon koy K ns Inuf, fho
oncryfIon nIgorIfhm forms fho cIhorfoxf Y = |Yl, Y2, . . ., YA]. Wo cnn wrIfo fhIs ns
Y = IK(X)
ThIs nofnfIon IndIcnfos fhnf Y Is roducod by usIng oncryfIon nIgorIfhm I ns n
funcfIon of fho InInfoxf X, wIfh fho socIfIc funcfIon doformInod by fho vnIuo of fho koy
K. Tho Infondod rocoIvor, In ossossIon of fho koy, Is nbIo fo Invorf fho frnnsformnfIon:
X = K(Y)
An oononf, obsorvIng Y buf nof hnvIng nccoss fo K or X, mny nffomf fo
rocovor X or K or bofh X nnd K. If Is nssumod fhnf fho oononf knows fho oncryfIon
(I) nnd docryfIon () nIgorIfhms.
If fho oononf Is Inforosfod In onIy fhIs nrfIcuInr mossngo, fhon fho focus of
fho offorf Is fo rocovor X by gonornfIng n InInfoxf osfImnfo X. Offon, howovor, fho
oononf Is Inforosfod In boIng nbIo fo rond fufuro mossngos ns woII, In whIch cnso nn
nffomf Is mndo fo rocovor K by gonornfIng nn osfImnfo K.
CRYPTOGRAPHY
CryfogrnhIc sysfoms nro chnrncforIzod nIong fhroo Indoondonf dImonsIons:
1. TLe type oI opevutIons used Iov tvunsIovmIng pIuIntet to cIpLevtet.
AII oncryfIon nIgorIfhms nro bnsod on fwo gonornI rIncIIos: subsfIfufIon, In
whIch onch oIomonf In fho InInfoxf (bIf, Ioffor, grou of bIfs or Ioffors) Is mnod Info
nnofhor oIomonf, nnd frnnsosIfIon, In whIch oIomonfs In fho InInfoxf nro ronrrnngod.
Tho fundnmonfnI roquIromonf Is fhnf no InformnfIon bo Iosf (fhnf Is, fhnf nII oornfIons
nro rovorsIbIo). Mosf sysfoms, roforrod fo ns roducf sysfoms, InvoIvo muIfIIo sfngos of
subsfIfufIons nnd frnnsosIfIons.
2. TLe numbev oI keys used.
If bofh sondor nnd rocoIvor uso fho snmo koy, fho sysfom Is roforrod fo ns
symmofrIc, sIngIo-koy, socrof-koy, or convonfIonnI oncryfIon. If fho sondor nnd rocoIvor
onch usos n dIfforonf koy, fho sysfom Is roforrod fo ns nsymmofrIc, fwo-koy, or ubIIc-
koy oncryfIon.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Thus, fho oononf musf roIy on nn nnnIysIs of fho cIhorfoxf IfsoIf, gonornIIy
nIyIng vnrIous sfnfIsfIcnI fosfs fo If. To uso fhIs nronch, fho oononf musf hnvo
somo gonornI Idon of fho fyo of InInfoxf fhnf Is conconIod, such ns IngIIsh or Ironch
foxf, nn MS-OS IXI fIIo, n Jnvn sourco IIsfIng, nn nccounfIng fIIo, nnd so on.
Tho ciphertert-only uttuck Is fho onsIosf fo dofond ngnInsf bocnuso fho
oononf hns fho Ionsf nmounf of InformnfIon fo work wIfh. In mnny cnsos, howovor,
fho nnnIysf hns moro InformnfIon. Tho nnnIysf mny bo nbIo fo cnfuro ono or moro
InInfoxf mossngos ns woII ns fhoIr oncryfIons.
Or fho nnnIysf mny know fhnf corfnIn InInfoxf nfforns wIII nonr In n
mossngo. Ior oxnmIo, n fIIo fhnf Is oncodod In fho IosfscrIf formnf nIwnys bogIns
wIfh fho snmo nfforn, or fhoro mny bo n sfnndnrdIzod hondor or bnnnor fo nn
oIocfronIc funds frnnsfor mossngo, nnd so on. AII fhoso nro oxnmIos of knoun
pluintert. WIfh fhIs knowIodgo, fho nnnIysf mny bo nbIo fo doduco fho koy on fho bnsIs
of fho wny In whIch fho known InInfoxf Is frnnsformod.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Bvute-Iovce AppvoucL:
Wo cnn consIdor fho fImo roquIrod fo uso n brufo-forco nronch, whIch sImIy
InvoIvos fryIng ovory ossIbIo koy unfII nn InfoIIIgIbIo frnnsInfIon of fho cIhorfoxf Info
InInfoxf Is obfnInod. On nvorngo, hnIf of nII ossIbIo koys musf bo frIod fo nchIovo
succoss.
TnbIo shows how much fImo Is InvoIvod for vnrIous koy sncos. !osuIfs nro
shown for fhroo bInnry koy sIzos. Tho 56-bIf koy sIzo Is usod wIfh fho S (nfn
IncryfIon Sfnndnrd) nIgorIfhm, nnd fho l68-bIf koy sIzo Is usod for frIIo IS. Tho
mInImum koy sIzo socIfIod for AS (ndvnncod oncryfIon sfnndnrd) Is l28 bIfs.
!osuIfs nro nIso shown for whnf nro cnIIod oubotitution coJeo fhnf uso n 26-
chnrncfor koy (dIscussod Infor), In whIch nII ossIbIo ormufnfIons of fho 26 chnrncfors
sorvo ns koys.
Ior onch koy sIzo, fho rosuIfs nro shown nssumIng fhnf If fnkos l s fo orform n
sIngIo docryfIon, whIch Is n ronsonnbIo ordor of mngnIfudo for fodny's mnchInos. WIfh
fho uso of mnssIvoIy nrnIIoI orgnnIznfIons of mIcrorocossors, If mny bo ossIbIo fo
nchIovo rocossIng rnfos mnny ordors of mngnIfudo gronfor.
Tho fInnI coIumn of TnbIo consIdors fho rosuIfs for n sysfom fhnf cnn rocoss l
mIIIIon koys or mIcrosocond. As you cnn soo, nf fhIs orformnnco IovoI, IS cnn no
Iongor bo consIdorod comufnfIonnIIy socuro.
Avevuge TIme RequIved Iov LuustIve Key SeuvcL
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
If If Is known fhnf n gIvon cIhorfoxf Is n Cnosnr cIhor, fhon n brufo-forco
cryfnnnIysIs Is onsIIy orformod: sImIy fry nII fho 25 ossIbIo koys. IIguro shows fho
rosuIfs of nIyIng fhIs sfrnfogy fo fho oxnmIo cIhorfoxf. In fhIs cnso, fho InInfoxf
Ions ouf ns occuyIng fho fhIrd IIno.
PHHW PH DIWHU WKH WRJD SDUWB
KEY
1 oggv og chvgt vjg vqic rctva
2 nffu nf bgufs uif uphb qbsuz
3 meet me after the toga party
4 ldds ld zesdq sgd snfz ozqsx
5 kccr kc ydrcp rfc rmey nyprw
6 jbbq jb xcqbo qeb qldx mxoqv
7 iaap ia wbpan pda pkcw lwnpu
8 hzzo hz vaozm ocz ojbv kvmot
9 gyyn gy uznyl nby niau julns
10 fxxm fx tymxk max mhzt itkmr
11 ewwl ew sxlwj lzw lgys hsjlq
12 dvvk dv rwkvi kyv kfxr grikp
13 cuuj cu qvjuh jxu jewq fqhjo
14 btti bt puitg iwt idvp epgin
15 assh as othsf hvs hcuo dofhm
16 zrrg zr nsgre gur gbtn cnegl
17 yqqf yq mrfqd ftq fasm bmdfk
18 xppe xp lqepc esp ezrl alcej
19 wood wo kpdob dro dyqk zkbdi
20 vnnc vn jocna cqn cxpj yjach
21 ummb um inbmz bpm bwoi xizbg
22 tlla tl hmaly aol avnh whyaf
23 skkz sk glzkx znk zumg vgxze
24 rjjy rj fkyjw ymj ytlf ufwyd
25 qiix qi ejxiv xli xske tevxc
Bvute-Iovce CvyptunuIysIs oI Cuesuv CIpLev
Three importunt churucteriotico of fhIs robIom onnbIod us fo uso n brufo-
forco cryfnnnIysIs:
1. Tho oncryfIon nnd docryfIon nIgorIfhms nro known.
2. Thoro nro onIy 25 koys fo fry.
3. Tho Inngungo of fho InInfoxf Is known nnd onsIIy rocognIznbIo
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
In mosf nofworkIng sIfunfIons, wo cnn nssumo fhnf fho nIgorIfhms nro known.
Whnf gonornIIy mnkos brufo-forco cryfnnnIysIs ImrncfIcnI Is fho uso of nn nIgorIfhm
fhnf omIoys n Inrgo numbor of koys. Ior oxnmIo, fho frIIo IS nIgorIfhm mnkos uso
of n l68-bIf koy, gIvIng n koy snco of 28
l6
or gronfor fhnn 3.? X l0
50
ossIbIo koys.
Tho fhIrd chnrncforIsfIc Is nIso sIgnIfIcnnf. If fho Inngungo of fho InInfoxf Is
unknown, fhon InInfoxf oufuf mny nof bo rocognIznbIo. Iurfhormoro, fho Inuf mny
bo nbbrovInfod or comrossod In somo fnshIon, ngnIn mnkIng rocognIfIon dIffIcuIf.
MONOAIPHABTIC CIPHRS
WIfh onIy 25 ossIbIo koys, fho Cnosnr cIhor Is fnr from socuro. A drnmnfIc
Incronso In fho koy snco cnn bo nchIovod by nIIowIng nn nrbIfrnry subsfIfufIon. !ocnII
fho nssIgnmonf for fho Cnosnr cIhor:
plain: a b c d e f g h i j k l m n o p q r s t u v w x y z
cipher: D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
If, Insfond, fho "cIhor" IIno cnn bo nny ormufnfIon of fho 26 nIhnbofIc
chnrncfors, fhon fhoro nro 26! or gronfor fhnn 4 X l0
26
ossIbIo koys. ThIs Is l0 ordors of
mngnIfudo gronfor fhnn fho koy snco for IS nnd wouId soom fo oIImInnfo brufo-forco
fochnIquos for cryfnnnIysIs. Such nn nronch Is roforrod fo ns n monoulphubetic
oubotitution cipher, bocnuso n sIngIo cIhor nIhnbof (mnIng from InIn nIhnbof fo
cIhor nIhnbof) Is usod or mossngo.
MononIhnbofIc cIhors nro onsy fo bronk bocnuso fhoy rofIocf fho froquoncy
dnfn of fho orIgInnI nIhnbof. A counformonsuro Is fo rovIdo muIfIIo subsfIfufos,
known ns homohonos, for n sIngIo Ioffor.
Ior oxnmIo, fho Ioffor o couId bo nssIgnod n numbor of dIfforonf cIhor symboIs,
such ns l6, ?4, 35, nnd 2l, wIfh onch homohono usod In rofnfIon, or rnndomIy. If fho
numbor of symboIs nssIgnod fo onch Ioffor Is roorfIonnI fo fho roInfIvo froquoncy of
fhnf Ioffor, fhon sIngIo-Ioffor froquoncy InformnfIon Is comIofoIy obIIfornfod.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Howovor, ovon wIfh homohonos, onch oIomonf of InInfoxf nffocfs onIy ono
oIomonf of cIhorfoxf, nnd muIfIIo-Ioffor nfforns (o.g., dIgrnm froquoncIos) sfIII
survIvo In fho cIhorfoxf, mnkIng cryfnnnIysIs roInfIvoIy sfrnIghfforwnrd.
Tuo principul methoJo nro usod In subsfIfufIon cIhors fo Iosson fho oxfonf fo
whIch fho sfrucfuro of fho InInfoxf survIvos In fho cIhorfoxf: Ono nronch Is fo
oncryf muIfIIo Ioffors of InInfoxf, nnd fho ofhor Is fo uso muIfIIo cIhor nIhnbofs.
PIAYIAIR CIPHR
Tho bosf-known muIfIIo-Ioffor oncryfIon cIhor Is fho IInyfnIr, whIch fronfs
dIgrnms In fho InInfoxf ns sIngIo unIfs nnd frnnsInfos fhoso unIfs Info cIhorfoxf
dIgrnms. Tho IInyfnIr nIgorIfhm Is bnsod on fho uso of n 5 X 5 mnfrIx of Ioffors
consfrucfod usIng n koyword.
Erumple: soIvod by !ord Iofor WImsoy In orofhy Snyors's Hote Hie Corcoee
In fhIs cnso, fho koyword Is nonorcI,. Tho mnfrIx Is consfrucfod by fIIIIng In fho
Ioffors of fho koyword (mInus duIIcnfos) from Ioff fo rIghf nnd from fo fo boffom, nnd
fhon fIIIIng In fho romnIndor of fho mnfrIx wIfh fho romnInIng Ioffors In nIhnbofIc
ordor. Tho Ioffors I nnd J counf ns ono Ioffor. IInInfoxf Is oncryfod fwo Ioffors nf n
fImo, nccordIng fo fho follouing ruleo:
l) !oonfIng InInfoxf Ioffors fhnf wouId fnII In fho snmo nIr nro sonrnfod wIfh n
fIIIor Ioffor, such ns x, so fhnf bnIIoon wouId bo oncIhorod ns bn Ix Io on.
2) IInInfoxf Ioffors fhnf fnII In fho snmo row of fho mnfrIx nro onch roIncod by fho
Ioffor fo fho rIghf, wIfh fho fIrsf oIomonf of fho row cIrcuInrIy foIIowIng fho Insf.
Ior oxnmIo, nr Is oncryfod ns !M.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
3) IInInfoxf Ioffors fhnf fnII In fho snmo coIumn nro onch roIncod by fho Ioffor
bononfh, wIfh fho fo oIomonf of fho row cIrcuInrIy foIIowIng fho Insf. Ior
oxnmIo, mu Is oncryfod ns CM.
4) OfhorwIso, onch InInfoxf Ioffor Is roIncod by fho Ioffor fhnf IIos In Ifs own row
nnd fho coIumn occuIod by fho ofhor InInfoxf Ioffor. Thus, hs bocomos II nnd
on bocomos IM (or JM, ns fho oncIhoror wIshos).
Tho IInyfnIr cIhor Is n gronf ndvnnco ovor sImIo mononIhnbofIc cIhors. Ior
ono fhIng, whorons fhoro nro onIy 26 Ioffors, fhoro nro 26 X 26 = 6?6 dIgrnms, so fhnf
IdonfIfIcnfIon of IndIvIdunI dIgrnms Is moro dIffIcuIf.
Iurfhormoro, fho roInfIvo froquoncIos of IndIvIdunI Ioffors oxhIbIf n much
gronfor rnngo fhnn fhnf of dIgrnms, mnkIng froquoncy nnnIysIs much moro dIffIcuIf. Ior
fhoso ronsons, fho IInyfnIr cIhor wns for n Iong fImo consIdorod unbreukuble.
osIfo fhIs IovoI of confIdonco In Ifs socurIfy, fho IInyfnIr cIhor Is roInfIvoIy
euoy to breuk bocnuso If sfIII Ionvos much of fho sfrucfuro of fho InInfoxf Inngungo
Infncf. A fow hundrod Ioffors of cIhorfoxf nro gonornIIy suffIcIonf.
Ono wny of rovonIIng fho offocfIvonoss of fho IInyfnIr nnd ofhor cIhors Is shown
In IIguro. Tho IIno InboIod ploinIexI Iofs fho froquoncy dIsfrIbufIon of fho moro fhnn
?0,000 nIhnbofIc chnrncfors In fho 1nc,clopoeJio BriIIonico nrfIcIo on cryfoIogy. ThIs
Is nIso fho froquoncy dIsfrIbufIon of nny mononIhnbofIc subsfIfufIon cIhor.
HIII CIPHR
Anofhor InforosfIng muIfIIoffor cIhor Is fho HIII cIhor, dovoIood by fho
mnfhomnfIcInn !osfor HIII In l929. Tho oncryfIon nIgorIfhm fnkos n succossIvo
InInfoxf Ioffors nnd subsfIfufos for fhom n cIhorfoxf Ioffors. Tho subsfIfufIon Is
doformInod by n IInonr oqunfIons In whIch onch chnrncfor Is nssIgnod n numorIcnI
vnIuo (n = 0, b = l,. z = 25). Ior n = 3, fho sysfom cnn bo doscrIbod ns foIIows:
Cl = (llll + ll22 + ll33) mod 26
C2 = (l2ll + l222 + l233) mod 26
C3 = (l3ll + l322 + l333) mod 26
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
umpIe:
Suoso fhnf fho InInfoxf "frIdny" Is oncryfod usIng n 2X2 HIII cIhor fo yIoId
fho cIhorfoxf IQCIK!. Thus, wo know fhnf K(5 l?) = (l5 l6); K(8 3) = (2 5); nnd K(0
24) = (l0 20). !sIng fho fIrsf fwo InInfoxf-cIhorfoxf nIrs, wo hnvo
Tho Invorso of X cnn bo comufod:
so
ThIs rosuIf Is vorIfIod by fosfIng fho romnInIng InInfoxf-cIhorfoxf nIr.
POIYAIPHABTIC CIPHRS
Anofhor wny fo Imrovo on fho sImIo mononIhnbofIc fochnIquo Is fo uso
dIfforonf mononIhnbofIc subsfIfufIons ns ono rocoods fhrough fho InInfoxf mossngo.
Tho gonornI nnmo for fhIs nronch Is poIyuIpLubetIc substItutIon cIpLev.
AII fhoso fochnIquos hnvo fho foIIowIng fonfuros In common:
l. A sof of roInfod mononIhnbofIc subsfIfufIon ruIos Is usod.
2. A koy doformInos whIch nrfIcuInr ruIo Is choson for n gIvon frnnsformnfIon.
Tho bosf-known, nnd ono of fho sImIosf, such nIgorIfhms Is roforrod fo ns fho
VIgonoro cIhor. In fhIs schomo, fho sof of roInfod mononIhnbofIc subsfIfufIon ruIos
consIsfs of fho 26 Cnosnr cIhors, wIfh shIffs of 0 fhrough 25.
Inch cIhor Is donofod by n koy Ioffor, whIch Is fho cIhorfoxf Ioffor fhnf
subsfIfufos for fho InInfoxf Ioffor n. Thus, n Cnosnr cIhor wIfh n shIff of 3 Is donofod
by fho koy vnIuo J.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
TLe Modevn VIgenve TubIeuu
To nId In undorsfnndIng fho schomo nnd fo nId In Ifs uso, n mnfrIx known ns fho
VIgonoro fnbIonu Is consfrucfod (Abovo TnbIo). Inch of fho 26 cIhors Is InId ouf
horIzonfnIIy, wIfh fho koy Ioffor for onch cIhor fo Ifs Ioff.
A normnI nIhnbof for fho InInfoxf runs ncross fho fo. Tho rocoss of
oncryfIon Is sImIo: CIvon n koy Ioffor x nnd n InInfoxf Ioffor y, fho cIhorfoxf Ioffor
Is nf fho InforsocfIon of fho row InboIod x nnd fho coIumn InboIod y; In fhIs cnso fho
cIhorfoxf Is V.
To encrypt n mossngo, n koy Is noodod fhnf Is ns Iong ns fho mossngo. !sunIIy,
fho koy Is n roonfIng koyword. Ior oxnmIo, If fho koyword Is JecepIite, fho mossngo
"wo nro dIscovorod snvo yoursoIf" Is oncryfod ns foIIows:
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Decryption Is oqunIIy sImIo. Tho koy Ioffor ngnIn IdonfIfIos fho row. Tho
osIfIon of fho cIhorfoxf Ioffor In fhnf row doformInos fho coIumn, nnd fho InInfoxf
Ioffor Is nf fho fo of fhnf coIumn.
Tho otrength of thio cipher Is fhnf fhoro nro muIfIIo cIhorfoxf Ioffors for
onch InInfoxf Ioffor, ono for onch unIquo Ioffor of fho koyword. Thus, fho Ioffor
froquoncy InformnfIon Is obscurod. Howovor, nof nII knowIodgo of fho InInfoxf
sfrucfuro Is Iosf.
If fho koyword Iongfh Is A, fhon fho cIhor, In offocf, consIsfs of A
mononIhnbofIc subsfIfufIon cIhors. Ior oxnmIo, wIfh fho koyword ICIITIVI, fho
Ioffors In osIfIons l, l0, l9, nnd so on nro nII oncryfod wIfh fho snmo mononIhnbofIc
cIhor. Thus, wo cnn uso fho known froquoncy chnrncforIsfIcs of fho InInfoxf Inngungo
fo nffnck onch of fho mononIhnbofIc cIhors sonrnfoIy.
Tho orIodIc nnfuro of fho koyword cnn bo oIImInnfod by usIng n nonrepeuting
keyuorJ fhnf Is ns Iong ns fho mossngo IfsoIf. VIgonoro roosod whnf Is roforrod fo ns
nn uutokey oyotem, In whIch n koyword Is concnfonnfod wIfh fho InInfoxf IfsoIf fo
rovIdo n runnIng koy.
Ior our oxnmIo:
Tho uIfImnfo dofonso ngnInsf such n cryfnnnIysIs Is fo chooso n koyword fhnf Is
ns Iong ns fho InInfoxf nnd hns no sfnfIsfIcnI roInfIonshI fo If. Such n sysfom wns
Infroducod by nn AT&T ongInoor nnmod CIIborf Vernum In l9l8. HIs sysfom works on
bInnry dnfn rnfhor fhnn Ioffors.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Tho ono-fImo nd offors comIofo socurIfy, In rncfIco, hns fwo fundnmonfnI dIffIcuIfIos:
l) Thoro Is fho rncfIcnI robIom of mnkIng Inrgo qunnfIfIos of rnndom koys. Any
honvIIy usod sysfom mIghf roquIro mIIIIons of rnndom chnrncfors on n roguInr
bnsIs. SuIyIng fruIy rnndom chnrncfors In fhIs voIumo Is n sIgnIfIcnnf fnsk.
2) Ivon moro dnunfIng Is fho robIom of koy dIsfrIbufIon nnd rofocfIon. Ior ovory
mossngo fo bo sonf, n koy of oqunI Iongfh Is noodod by bofh sondor nnd rocoIvor.
Thus, n mnmmofh koy dIsfrIbufIon robIom oxIsfs.
Iocnuso of fhoso dIffIcuIfIos, fho ono-fImo nd Is of IImIfod ufIIIfy, nnd Is usofuI
rImnrIIy for Iow-bnndwIdfh chnnnoIs roquIrIng vory hIgh socurIfy.
1.9 TRANSPOSITION TCHNIQUS
AII fho fochnIquos oxnmInod so fnr InvoIvo fho subsfIfufIon of n cIhorfoxf
symboI for n InInfoxf symboI. A vory dIfforonf kInd of mnIng Is nchIovod by
orformIng somo sorf of ormufnfIon on fho InInfoxf Ioffors. ThIs fochnIquo Is roforrod
fo ns n trunopooition cipher.
RAII INC TCHNIQU
Tho sImIosf such cIhor Is fho rnII fonco fochnIquo, In whIch fho InInfoxf Is
wrIffon down ns n soquonco of dIngonnIs nnd fhon rond off ns n soquonco of rows.
Ior oxnmIo, fo oncIhor fho mossngo "moof mo nffor fho fogn nrfy" wIfh n rnII fonco of
dofh 2, wo wrIfo fho foIIowIng:
m e m a t r h t g p r y
e t e f e t e o a a t
TRANSPOSITION CIPHR
A moro comIox schomo Is fo wrIfo fho mossngo In n rocfnngIo, row by row, nnd
rond fho mossngo off, coIumn by coIumn, buf ormufo fho ordor of fho coIumns. Tho
ordor of fho coIumns fhon bocomos fho koy fo fho nIgorIfhm. Ior oxnmIo:
Key: 3 4 2 1 5 6 7
Plaintext: a t t a c k p
o s t p o n e
d u n t i l t
w o a m x y z
Ciphertext: TTNAAPTMTSUOAODWCOIXKNLYPETZ
A uro frnnsosIfIon cIhor Is onsIIy rocognIzod bocnuso If hns fho snmo Ioffor
froquoncIos ns fho orIgInnI InInfoxf. Ior fho fyo of coIumnnr frnnsosIfIon jusf shown,
cryfnnnIysIs Is fnIrIy sfrnIghfforwnrd nnd InvoIvos InyIng ouf fho cIhorfoxf In n
mnfrIx nnd InyIng nround wIfh coIumn osIfIons.
Igrnm nnd frIgrnm froquoncy fnbIos cnn bo usofuI. Tho frnnsosIfIon cIhor cnn
bo mndo sIgnIfIcnnfIy moro socuro by orformIng moro fhnn ono sfngo of frnnsosIfIon.
Tho rosuIf Is n moro comIox ormufnfIon fhnf Is nof onsIIy roconsfrucfod.
Thus, If fho forogoIng mossngo Is ro-oncryfod usIng fho snmo nIgorIfhm:
Key: 3 4 2 1 5 6 7
Input: t t n a a p t
m t s u o a o
d w c o i x k
n l y p e t z
Output: NSCYAUOPTTWLTMDNAOIEPAXTTOKZ
To vIsunIIzo fho rosuIf of fhIs doubIo frnnsosIfIon, dosIgnnfo fho Ioffors In fho
orIgInnI InInfoxf mossngo by fho numbors dosIgnnfIng fhoIr osIfIon.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Thus, wIfh 28 Ioffors In fho mossngo, fho orIgInnI soquonco of Ioffors Is:
0l 02 03 04 05 06 0? 08 09 l0 ll l2 l3 l4
l5 l6 l? l8 l9 20 2l 22 23 24 25 26 2? 28
Affor fho fIrsf frnnsosIfIon wo hnvo:
03 l0 l? 24 04 ll l8 25 02 09 l6 23 0l 08
l5 22 05 l2 l9 26 06 l3 20 2? 0? l4 2l 28
whIch hns n somowhnf roguInr sfrucfuro.
Iuf nffor fho socond frnnsosIfIon, wo hnvo:
l? 09 05 2? 24 l6 l2 0? l0 02 22 20 03 25
l5 l3 04 23 l9 l4 ll 0l 26 2l l8 08 06 28
ThIs Is n much Ioss sfrucfurod ormufnfIon nnd Is much moro dIffIcuIf fo cryfnnnIyzo.
1.10 ROTOR MACHINS
Tho bnsIc rIncIIo of fho rofor mnchIno Is IIIusfrnfod In IIguro. Tho mnchIno
consIsfs of n sof of IndoondonfIy rofnfIng cyIIndors fhrough whIch oIocfrIcnI uIsos cnn
fIow. Inch cyIIndor hns 26 Inuf Ins nnd 26 oufuf Ins, wIfh InfornnI wIrIng fhnf
connocfs onch Inuf In fo n unIquo oufuf In. Ior sImIIcIfy, onIy fhroo of fho InfornnI
connocfIons In onch cyIIndor nro shown.
If wo nssocInfo onch Inuf nnd oufuf In wIfh n Ioffor of fho nIhnbof, fhon n
sIngIo cyIIndor dofInos n mononIhnbofIc subsfIfufIon.
Ior erumple, In IIguro, If nn oornfor dorossos fho koy for fho Ioffor A, nn
oIocfrIc sIgnnI Is nIIod fo fho fIrsf In of fho fIrsf cyIIndor nnd fIows fhrough fho
InfornnI connocfIon fo fho fwonfy-fIffh oufuf In.
IInnIIy, for ovory comIofo rofnfIon of fho mIddIo cyIIndor, fho Innor cyIIndor
rofnfos ono In osIfIon. ThIs Is fho snmo fyo of oornfIon soon wIfh nn odomofor.
Tho rosuIf Is fhnf fhoro nro 26 X 26 X 26 = l?,5?6 dIfforonf subsfIfufIon
nIhnbofs usod boforo fho sysfom roonfs. Tho nddIfIon of fourfh nnd fIffh rofors rosuIfs
In orIods of 456,9?6 nnd ll,88l,3?6 Ioffors, rosocfIvoIy.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Tho sIgnIfIcnnco of fho rofor mnchIno fodny Is fhnf If oInfs fho wny fo fho mosf
wIdoIy usod cIhor ovor: fho nfn IncryfIon Sfnndnrd (IS).
TLvee-Rotov MucLIne WItL WIvIng Repvesented by Numbeved Contucts
1.11 STGANOGRAPHY
A InInfoxf mossngo mny bo hIddon In ono of fwo wnys. Tho mofhods of
sfognnogrnhy conconI fho oxIsfonco of fho mossngo, whorons fho mofhods of
cryfogrnhy rondor fho mossngo unInfoIIIgIbIo fo oufsIdors by vnrIous frnnsformnfIons
of fho foxf.
A sImIo form of sfognnogrnhy, buf ono fhnf Is fImo-consumIng fo consfrucf, Is
ono In whIch nn nrrnngomonf of words or Ioffors wIfhIn nn nnronfIy Innocuous foxf
soIIs ouf fho ronI mossngo.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
1.12 SIMPIIII S
SImIIfIod IS, dovoIood by Irofossor Idwnrd Schnofor of Snnfn CInrn
!nIvorsIfy, Is nn oducnfIonnI rnfhor fhnn n socuro oncryfIon nIgorIfhm. If hns sImIInr
roorfIos nnd sfrucfuro fo IS wIfh much smnIIor nrnmofors.
OVRVIW
IIguro IIIusfrnfos fho ovornII sfrucfuro of fho sImIIfIod IS, whIch wo wIII rofor
fo ns SIS. Tho S-IS oncryfIon nIgorIfhm fnkos nn 8-bIf bIock of InInfoxf (oxnmIo:
l0llll0l) nnd n l0-bIf koy ns Inuf nnd roducos nn 8-bIf bIock of cIhorfoxf ns oufuf.
Tho S-IS docryfIon nIgorIfhm fnkos nn 8-bIf bIock of cIhorfoxf nnd fho snmo
l0-bIf koy usod fo roduco fhnf cIhorfoxf ns Inuf nnd roducos fho orIgInnI 8-bIf bIock
of InInfoxf.
SImpIIIIed S ScLeme
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
SImpIIIIed S ncvyptIon etuII
TLe IunctIon IK
Tho mosf comIox comononf of S-IS Is fho funcfIon fK, whIch consIsfs of n
combInnfIon of ormufnfIon nnd subsfIfufIon funcfIons. Tho funcfIons cnn bo oxrossod
ns foIIows.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
!of I nnd I bo fho Ioffmosf 4 bIfs nnd rIghfmosf 4 bIfs of fho 8-bIf Inuf fo fK,
nnd Iof I bo n mnIng (nof nocossnrIIy ono-fo-ono) from 4-bIf sfrIngs fo 4-bIf sfrIngs.
Thon wo Iof
whoro SK Is n subkoy nnd Is fho bIf-by-bIf oxcIusIvo-O! funcfIon. Ior oxnmIo,
suoso fho oufuf of fho II sfngo In IIguro Is (l0llll0l) nnd I(ll0l, SK) = (lll0) for
somo koy SK. Thon fK(l0llll0l) = (0l0lll0l) bocnuso (l0ll) (lll0) = (0l0l).
Wo now doscrIbo fho mupping F. Tho Inuf Is n 4-bIf numbor (nln2n3n4). Tho
fIrsf oornfIon Is nn oxnnsIon/ormufnfIon oornfIon:
A 56-bIf koy Is usod, from whIch sIxfoon 48-bIf subkoys nro cnIcuInfod. Thoro Is
nn InIfInI ormufnfIon of 56 bIfs foIIowod by n soquonco of shIffs nnd ormufnfIons of 48
bIfs. WIfhIn fho oncryfIon nIgorIfhm, Insfond of I ncfIng on 4 bIfs (nln2n3n4), If ncfs
on 32 bIfs (nl.n32).
Affor fho InIfInI oxnnsIon/ormufnfIon, fho oufuf of 48 bIfs cnn bo dIngrnmmod ns:
ThIs mnfrIx Is nddod (oxcIusIvo-O!) fo n 48-bIf subkoy. Thoro nro 8 rows,
corrosondIng fo 8 S-boxos. Inch S-box hns 4 rows nnd l6 coIumns. Tho fIrsf nnd Insf
bIf of n row of fho rocodIng mnfrIx Icks ouf n row of nn S-box, nnd fho mIddIo four bIfs
Ick ouf n coIumn.
1.13 BIOCK CIPHR PRINCIPIS
AII symmofrIc bIock oncryfIon nIgorIfhms In curronf uso nro bnsod on n
sfrucfuro roforrod fo ns n IoIsfoI bIock cIhor. Ior fhnf ronson, If Is Imorfnnf fo
oxnmIno fho dosIgn rIncIIos of fho IoIsfoI cIhor.
STRAM CIPHRS AN BIOCK CIPHRS
A otreum cipher Is ono fhnf oncryfs n dIgIfnI dnfn sfronm ono bIf or ono byfo nf
n fImo. IxnmIos of cInssIcnI sfronm cIhors nro fho nufokoyod VIgonoro cIhor nnd fho
Vornnm cIhor.
A block cipher Is ono In whIch n bIock of InInfoxf Is fronfod ns n whoIo nnd
usod fo roduco n cIhorfoxf bIock of oqunI Iongfh. TyIcnIIy, n bIock sIzo of 64 or l28
bIfs Is usod. !sIng somo of fho modos of oornfIon oxInInod Infor In fhIs chnfor, n
bIock cIhor cnn bo usod fo nchIovo fho snmo offocf ns n sfronm cIhor.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
An nrbIfrnry rovorsIbIo subsfIfufIon cIhor for n Inrgo bIock sIzo Is nof rncfIcnI,
howovor, from nn ImIomonfnfIon nnd orformnnco oInf of vIow. Ior such n
frnnsformnfIon, fho mnIng IfsoIf Is fho koy. ConsIdor ngnIn TnbIo, whIch dofInos ono
nrfIcuInr rovorsIbIo mnIng from InInfoxf fo cIhorfoxf for n = 4.
Tho mnIng cnn bo dofInod by fho onfrIos In fho socond coIumn, whIch show fho
vnIuo of fho cIhorfoxf for onch InInfoxf bIock. ThIs, In ossonco, Is fho koy fhnf
doformInos fho socIfIc mnIng from nmong nII ossIbIo mnIngs.
In fhIs cnso, fho koy roquIros 64 bIfs. In gonornI, for nn n-bIf gonornI subsfIfufIon
bIock cIhor, fho sIzo of fho koy Is n x 2
n
. Ior n 64-bIf bIock, whIch Is n dosIrnbIo Iongfh
fo fhwnrf sfnfIsfIcnI nffncks, fho koy sIzo Is 64 x 2
64
= 2
?0
-l0
2l
bIfs.
In conoiJering theoe Jifficultieo, IoIsfoI oInfs ouf fhnf whnf Is noodod Is nn
nroxImnfIon fo fhIs IdonI bIock-cIhor sysfom for Inrgo n, buIIf u ouf of comononfs
fhnf nro onsIIy ronIIznbIo.
Iuf boforo furnIng fo IoIsfoI's nronch, Iof us mnko ono ofhor obsorvnfIon. Wo
couId confIno oursoIvos fo fhIs gonornI bIock subsfIfufIon cIhor buf, fo mnko Ifs
ImIomonfnfIon frncfnbIo, confIno oursoIvos fo n subsof of fho 2
n
! ossIbIo rovorsIbIo
mnIngs.
Ior oxnmIo, suoso wo dofIno fho mnIng In forms of n sof of IInonr
oqunfIons. In fho cnso of n = 4, wo hnvo:
whoro fho xi nro fho four bInnry dIgIfs of fho InInfoxf bIock, fho yi nro fho four bInnry
dIgIfs of fho cIhorfoxf bIock, fho kij nro fho bInnry cooffIcIonfs, nnd nrIfhmofIc Is mod 2.
Tho koy sIzo Is jusf n
2
, In fhIs cnso l6 bIfs. Tho dnngor wIfh fhIs kInd of formuInfIon Is
fhnf If mny bo vuInornbIo fo cryfnnnIysIs by nn nffnckor fhnf Is nwnro of fho sfrucfuro
of fho nIgorIfhm.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
On fho ofhor hnnd, conIusIon sooks fo mnko fho roInfIonshI bofwoon fho
sfnfIsfIcs of fho cIhorfoxf nnd fho vnIuo of fho oncryfIon koy ns comIox ns ossIbIo,
ngnIn fo fhwnrf nffomfs fo dIscovor fho koy.
Thus, ovon If fho nffnckor cnn gof somo hnndIo on fho sfnfIsfIcs of fho cIhorfoxf,
fho wny In whIch fho koy wns usod fo roduco fhnf cIhorfoxf Is so comIox ns fo mnko
If dIffIcuIf fo doduco fho koy. ThIs Is nchIovod by fho uso of n comIox subsfIfufIon
nIgorIfhm. In confrnsf, n sImIo IInonr subsfIfufIon funcfIon wouId ndd IIffIo confusIon.
1.16 IISTI CIPHR STRUCTUR
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Tho Inufs fo fho oncryfIon nIgorIfhm nro n InInfoxf bIock of Iongfh 2u bIfs
nnd n koy K. Tho InInfoxf bIock Is dIvIdod Info fwo hnIvos, I0 nnd I0. Tho fwo hnIvos of
fho dnfn nss fhrough n rounds of rocossIng nnd fhon combIno fo roduco fho
cIhorfoxf bIock.
Inch round i hns ns Inufs Iil nnd Iil, dorIvod from fho rovIous round, ns woII
ns n subkoy Ki, dorIvod from fho ovornII K. In gonornI, fho subkoys Ki nro dIfforonf from
K nnd from onch ofhor.
AII rounds hnvo fho snmo sfrucfuro. A substItutIon Is orformod on fho Ioff hnIf
of fho dnfn. ThIs Is dono by nIyIng n rounJ funcIion I fo fho rIghf hnIf of fho dnfn nnd
fhon fnkIng fho oxcIusIvo-O! of fho oufuf of fhnf funcfIon nnd fho Ioff hnIf of fho dnfn.
Tho round funcfIon hns fho snmo gonornI sfrucfuro for onch round buf Is
nrnmoforIzod by fho round subkoy Ki. IoIIowIng fhIs subsfIfufIon, n pevmututIon Is
orformod fhnf consIsfs of fho Inforchnngo of fho fwo hnIvos of fho dnfn. ThIs sfrucfuro
Is n nrfIcuInr form of fho subsfIfufIon-ormufnfIon nofwork (SI).
Tho oxncf ronIIznfIon of n IoIsfoI nofwork doonds on fho choIco of fho foIIowIng
purumetero unJ Jeoign feutureo:
BLOCK S1ZE: !nrgor bIock sIzos monn gronfor socurIfy (nII ofhor fhIngs boIng oqunI)
buf roducod oncryfIon/docryfIon sood. A bIock sIzo of 64 bIfs Is n ronsonnbIo frndooff
nnd hns boon nonrIy unIvorsnI In bIock cIhor dosIgn. Howovor, fho now AIS usos n
l28-bIf bIock sIzo.
KEY S1ZE: !nrgor koy sIzo monns gronfor socurIfy buf mny docronso
oncryfIon/docryfIon sood. Koy sIzos of 64 bIfs or Ioss nro now wIdoIy consIdorod fo bo
Inndoqunfo, nnd l28 bIfs hns bocomo n common sIzo.
UMBER OF ROUDS: Tho ossonco of fho IoIsfoI cIhor Is fhnf n sIngIo round offors
Inndoqunfo socurIfy buf fhnf muIfIIo rounds offor IncronsIng socurIfy. A fyIcnI sIzo Is
l6 rounds.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
IeIsteI ncvyptIon und ecvyptIon
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Ior cInrIfy, wo uso fho nofnfIon I1i nnd I1i for dnfn frnvoIIng fhrough fho
oncryfIon nIgorIfhm nnd IDi nnd IDi for dnfn frnvoIIng fhrough fho docryfIon
nIgorIfhm. Tho dIngrnm IndIcnfos fhnf, nf ovory round, fho InformodInfo vnIuo of fho
docryfIon rocoss Is oqunI fo fho corrosondIng vnIuo of fho oncryfIon rocoss wIfh
fho fwo hnIvos of fho vnIuo swnod.
To uf fhIs nnofhor wny, Iof fho oufuf of fho ifh oncryfIon round bo I1i||I1i
(Ii concnfonnfod wIfh Ii). Thon fho corrosondIng Inuf fo fho (l6 i)fh docryfIon
round Is I1i||I1i, or oquIvnIonfIy, IDl6i||IDl6i.
Affor fho Insf IfornfIon of fho oncryfIon rocoss, fho fwo hnIvos of fho oufuf nro
swnod, so fhnf fho cIhorfoxf Is I1l6||I1l6. Tho oufuf of fhnf round Is fho
cIhorfoxf. ow fnko fhnf cIhorfoxf nnd uso If ns Inuf fo fho snmo nIgorIfhm. Tho
Inuf fo fho fIrsf round Is I1l6||I1l6, whIch Is oqunI fo fho 32-bIf swn of fho oufuf of
fho sIxfoonfh round of fho oncryfIon rocoss.
Wo wouId IIko fo show fhnf fho oufuf of fho fIrsf round of fho docryfIon rocoss
Is oqunI fo n 32-bIf swn of fho Inuf fo fho sIxfoonfh round of fho oncryfIon rocoss.
IIrsf, consIdor fho oncryfIon rocoss. Wo soo fhnf:
On fho docryfIon sIdo:
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Tho XO! hns fho foIIowIng roorfIos:
Thus, wo hnvo IDl = I1l5 nnd IDl = I1l5.
Thoroforo, fho oufuf of fho fIrsf round of fho docryfIon rocoss Is I1l5||I1l5,
whIch Is fho 32-bIf swn of fho Inuf fo fho sIxfoonfh round of fho oncryfIon.
Ior fho ifh IfornfIon of fho oncryfIon nIgorIfhm:
!onrrnngIng forms:
Thus, wo hnvo doscrIbod fho Inufs fo fho ifh IfornfIon ns n funcfIon of fho
oufufs, nnd fhoso oqunfIons confIrm fho nssIgnmonfs shown In fho rIghf-hnnd sIdo.
IInnIIy, wo soo fhnf fho oufuf of fho Insf round of fho docryfIon rocoss Is
I10||I10. A 32- bIf swn rocovors fho orIgInnI InInfoxf, domonsfrnfIng fho vnIIdIfy of
fho IoIsfoI docryfIon rocoss.
ofo fhnf fho dorIvnfIon doos nof roquIro fhnf I bo n rovorsIbIo funcfIon. To soo
fhIs, fnko n IImIfIng cnso In whIch I roducos n consfnnf oufuf (o.g., nII onos)
rognrdIoss of fho vnIuos of Ifs fwo nrgumonfs. Tho oqunfIons sfIII hoId.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Af fho left-hunJ oiJe of fho fIguro, wo soo fho rocossIng of fho InInfoxf
rocoods In three phuoeo.
IIrsf, fho 64-bIf InInfoxf nssos fhrough nn InIfInI ormufnfIon (II) fhnf
ronrrnngos fho bIfs fo roduco fho permuteJ input. ThIs Is foIIowod by n hnso
consIsfIng of l6 rounds of fho snmo funcfIon, whIch InvoIvos bofh ormufnfIon nnd
subsfIfufIon funcfIons.
Tho oufuf of fho Insf (sIxfoonfh) round consIsfs of 64 bIfs fhnf nro n funcfIon of
fho Inuf InInfoxf nnd fho koy. Tho Ioff nnd rIghf hnIvos of fho oufuf nro swnod fo
roduco fho preoutput.
IInnIIy, fho rooufuf Is nssod fhrough n ormufnfIon (II
l
) fhnf Is fho Invorso
of fho InIfInI ormufnfIon funcfIon, fo roduco fho 64-bIf cIhorfoxf. WIfh fho oxcofIon
of fho InIfInI nnd fInnI ormufnfIons, IS hns fho oxncf sfrucfuro of n IoIsfoI cIhor.
Tho right-hunJ portion of IIguro shows fho wny In whIch fho 56-bIf koy Is
usod. InIfInIIy, fho koy Is nssod fhrough n ormufnfIon funcfIon.
Thon, for onch of fho l6 rounds, n euIle, (Ki) Is roducod by fho combInnfIon of n Ioff
cIrcuInr shIff nnd n ormufnfIon. Tho ormufnfIon funcfIon Is fho snmo for onch round,
buf n dIfforonf subkoy Is roducod bocnuso of fho roonfod IfornfIon of fho koy bIfs.
InItIuI PevmututIon
Tho InIfInI ormufnfIon nnd Ifs Invorso nro dofInod by fnbIos. Tho Inuf fo n
fnbIo consIsfs of 64 bIfs numborod from l fo 64. Tho 64 onfrIos In fho ormufnfIon fnbIo
confnIn n ormufnfIon of fho numbors from l fo 64.
Inch onfry In fho ormufnfIon fnbIo IndIcnfos fho osIfIon of n numborod Inuf
bIf In fho oufuf, whIch nIso consIsfs of 64 bIfs.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
To soo fhnf fhoso fwo ormufnfIon funcfIons nro Indood fho Invorso of onch ofhor,
consIdor fho foIIowIng 64-bIf Inuf M:
Ml M2 M3 M4 M5 M6 M? M8
M9 Ml0 Mll Ml2 Ml3 Ml4 Ml5 Ml6
Ml? Ml8 Ml9 M20 M2l M22 M23 M24
M25 M26 M2? M28 M29 M30 M3l M32
M33 M34 M35 M36 M3? M38 M39 M40
M4l M42 M43 M44 M45 M46 M4? M48
M49 M50 M5l M52 M53 M54 M55 M56
M5? M58 M59 M60 M6l M62 M63 M64
whoro Mi Is n bInnry dIgIf.
Thon fho ormufnfIon X = II(M) Is ns foIIows:
M58 M50 M42 M34 M26 Ml8 Ml0 M2
M60 M52 M44 M36 M28 M20 Ml2 M4
M62 M54 M46 M38 M30 M22 Ml4 M6
M64 M56 M48 M40 M32 M24 Ml6 M8
M5? M49 M4l M33 M25 Ml? M9 Ml
M59 M5l M43 M35 M2? Ml9 Mll M3
M6l M53 M45 M3? M29 M2l Ml3 M5
M63 M55 M4? M39 M3l M23 Ml5 M?
If wo fhon fnko fho Invorso ormufnfIon Y = II
l
(X) = II
l
(II(M)), If cnn bo soon
fhnf fho orIgInnI ordorIng of fho bIfs Is rosforod.
etuIIs oI SIngIe Round
IIguro shows fho InfornnI sfrucfuro of n sIngIo round. AgnIn, bogIn by focusIng
on fho Ioff-hnnd sIdo of fho dIngrnm. Tho Ioff nnd rIghf hnIvos of onch 64-bIf
InformodInfo vnIuo nro fronfod ns sonrnfo 32-bIf qunnfIfIos, InboIod ! (Ioff) nnd !
(rIghf).
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
As In nny cInssIc IoIsfoI cIhor, fho ovornII rocossIng nf onch round cnn bo
summnrIzod In fho foIIowIng formuIns:
SIngIe Round oI S AIgovItLm
Tho round koy Ki Is 48 bIfs. Tho I Inuf Is 32 bIfs. ThIs I Inuf Is fIrsf oxnndod
fo 48 bIfs by usIng n fnbIo fhnf dofInos n ormufnfIon Ius nn oxnnsIon fhnf InvoIvos
duIIcnfIon of l6 of fho I bIfs. Tho rosuIfIng 48 bIfs nro XO!od wIfh Ki. ThIs 48-bIf
rosuIf nssos fhrough n subsfIfufIon funcfIon fhnf roducos n 32-bIf oufuf, whIch Is
ormufod.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
PevmututIon TubIes Iov S
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
eIInItIon oI S S-Boes
Inch row of nn S-box dofInos n gonornI rovorsIbIo subsfIfufIon. Tho sfrucfuro of
fho S-boxos Is worfh furfhor commonf. Ignoro for fho momonf fho confrIbufIon of fho
koy (Ki). If you oxnmIno fho oxnnsIon fnbIo, you soo fhnf fho 32 bIfs of Inuf nro sIIf
Info grous of 4 bIfs, nnd fhon bocomo grous of 6 bIfs by fnkIng fho oufor bIfs from fho
fwo ndjnconf grous. Ior erumple, If nrf of fho Inuf word Is: . . . ofgh IjkI mno . . .
fhIs bocomos . . . dofghI hIjkIm Imnoq . . .
Tho oufor fwo bIfs of onch grou soIocf ono of four ossIbIo subsfIfufIons (ono row
of nn S-box). Thon n 4-bIf oufuf vnIuo Is subsfIfufod for fho nrfIcuInr 4-bIf Inuf (fho
mIddIo four Inuf bIfs). Tho 32-bIf oufuf from fho oIghf S-boxos Is fhon ormufod, so
fhnf on fho noxf round fho oufuf from onch S-box ImmodInfoIy nffocfs ns mnny ofhors
ns ossIbIo.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Key GenevutIon
!ofurnIng fo IIguros of IS IncryfIon nnd SIngIo !ound doscrIfIon, wo soo
fhnf n 64-bIf koy usod ns Inuf fo fho nIgorIfhm. Tho bIfs of fho koy nro numborod from
l fhrough 64; ovory oIghfh bIf Is Ignorod, ns IndIcnfod by fho Inck of shndIng In TnbIo
(n). Tho koy Is fIrsf subjocfod fo n ormufnfIon govornod by n fnbIo InboIod Iormufod
ChoIco Ono (TnbIo (b)).
Tho rosuIfIng 56-bIf koy Is fhon fronfod ns fwo 28-bIf qunnfIfIos, InboIod C0 nnd
D0. Af onch round, Cil nnd Dil nro sonrnfoIy subjocfod fo n cIrcuInr Ioff shIff, or
rofnfIon, of l or 2 bIfs, ns govornod by TnbIo (d).
Thoso shIffod vnIuos sorvo ns Inuf fo fho noxf round. Thoy nIso sorvo ns Inuf fo
Iormufod ChoIco Two (TnbIo (c)), whIch roducos n 48-bIf oufuf fhnf sorvos ns Inuf fo
fho funcfIon I (Iil, Ki).
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
S ecvyptIon
As wIfh nny IoIsfoI cIhor, docryfIon usos fho snmo nIgorIfhm ns oncryfIon,
oxcof fhnf fho nIIcnfIon of fho subkoys Is rovorsod.
TLe AvuIuncLe IIect
A dosIrnbIo roorfy of nny oncryfIon nIgorIfhm Is fhnf n smnII chnngo In oIfhor
fho InInfoxf or fho koy shouId roduco n sIgnIfIcnnf chnngo In fho cIhorfoxf. In
nrfIcuInr n chnngo In ono bIf of fho InInfoxf or ono bIf of fho koy shouId roduco n
chnngo In mnny bIfs of fho cIhorfoxf. If fho chnngo woro smnII, fhIs mIghf rovIdo n
wny fo roduco fho sIzo of fho InInfoxf or koy snco fo bo sonrchod.
IS oxhIbIfs n sfrong nvnInncho offocf. In fho TnbIo (n), fwo InInfoxfs fhnf
dIffor by ono bIf woro usod:
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
l0000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
wIfh fho koy
000000l l00l0ll 0l00l00 ll000l0 00lll00 00ll000 00lll00 0ll00l0
Tho fnbIo shows fhnf nffor jusf fhroo rounds, 2l bIfs dIffor bofwoon fho fwo
bIocks. On comIofIon, fho fwo cIhorfoxfs dIffor In 34 bIf osIfIons.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
1.1B TH STRNGTH OI S
SInco Ifs ndofIon ns n fodornI sfnndnrd, fhoro hnvo boon IIngorIng concorns
nbouf fho IovoI of socurIfy rovIdod by IS. Thoso concorns, by nnd Inrgo, fnII Info tuo
ureuo: koy sIzo nnd fho nnfuro of fho nIgorIfhm.
TLe Use oI 56-BIt Keys
WIfh n koy Iongfh of 56 bIfs, fhoro nro 2
56
ossIbIo koys, whIch Is nroxImnfoIy
?.2 X l0
l6
koys. Thus, on fho fnco of If, n brufo-forco nffnck nonrs ImrncfIcnI. Thus,
on fho fnco of If, n brufo-forco nffnck nonrs ImrncfIcnI.
AssumIng fhnf, on nvorngo, hnIf fho koy snco hns fo bo sonrchod, n sIngIo
mnchIno orformIng ono IS oncryfIon or mIcrosocond wouId fnko moro fhnn n
fhousnnd yonrs fo bronk fho cIhor.
If Is Imorfnnf fo nofo fhnf fhoro Is moro fo n koy-sonrch nffnck fhnn sImIy
runnIng fhrough nII ossIbIo koys. !nIoss known InInfoxf Is rovIdod, fho nnnIysf
musf bo nbIo fo rocognIzo InInfoxf ns InInfoxf.
If fho mossngo Is jusf InIn foxf In IngIIsh, fhon fho rosuIf os ouf onsIIy,
nIfhough fho fnsk of rocognIzIng IngIIsh wouId hnvo fo bo nufomnfod. If fho foxf
mossngo hns boon comrossod boforo oncryfIon, fhon rocognIfIon Is moro dIffIcuIf. And
If fho mossngo Is somo moro gonornI fyo of dnfn, such ns n numorIcnI fIIo, nnd fhIs hns
boon comrossod, fho robIom bocomos ovon moro dIffIcuIf fo nufomnfo.
Thus, fo suIomonf fho brufo-forco nronch, somo dogroo of knowIodgo nbouf
fho oxocfod InInfoxf Is noodod, nnd somo monns of nufomnfIcnIIy dIsfInguIshIng
InInfoxf from gnrbIo Is nIso noodod.
Tho III nronch nddrossos fhIs Issuo ns woII nnd Infroducos somo nufomnfod
fochnIquos fhnf wouId bo offocfIvo In mnny confoxfs.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
IIIeventIuI CvyptunuIysIs
Ono of fho mosf sIgnIfIcnnf ndvnncos In cryfnnnIysIs In roconf yonrs Is
dIfforonfInI cryfnnnIysIs. IfforonfInI cryfnnnIysIs of nn oIghf-round !!CIII!
nIgorIfhm roquIros onIy 256 choson InInfoxfs, whorons nn nffnck on nn oIghf-round
vorsIon of IS roquIros 2
l4
choson InInfoxfs.
IIIeventIuI CvyptunuIysIs Attuck
Tho dIfforonfInI cryfnnnIysIs nffnck Is comIox; rovIdos n comIofo doscrIfIon.
Wo bogIn wIfh n chnngo In nofnfIon for IS. ConsIdor fho orIgInnI InInfoxf bIock n fo
consIsf of fwo hnIvos n0, nl.
Inch round of IS mns fho rIghf-hnnd Inuf Info fho Ioff-hnnd oufuf nnd sofs
fho rIghf-hnnd oufuf fo bo n funcfIon of fho Ioff-hnnd Inuf nnd fho subkoy for fhIs
round. So, nf onch round, onIy ono now 32-bIf bIock Is cronfod. If wo InboI onch now
bIock mi (2 _ i _ l?), fhon fho InformodInfo mossngo hnIvos nro roInfod ns foIIows:
In dIfforonfInI cryfnnnIysIs, ono sfnrfs wIfh fwo mossngos, m nnd m', wIfh n
known XO! dIfforonco An = n n', nnd consIdor fho dIfforonco bofwoon fho
InformodInfo mossngo hnIvos: An = ni n'i. Thon wo hnvo:
ow, suoso fhnf mnny nIrs of Inufs fo f wIfh fho snmo dIfforonco yIoId fho
snmo oufuf dIfforonco If fho snmo subkoy Is usod. To uf fhIs moro rocIsoIy, Iof us sny
fhnf X no, couee Y uiII proIoIiliI, p, If for n frncfIon p of fho nIrs In whIch fho Inuf
XO! Is X, fho oufuf XO! oqunIs Y.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Wo wnnf fo suoso fhnf fhoro nro n numbor of vnIuos of X fhnf hnvo hIgh
robnbIIIfy of cnusIng n nrfIcuInr oufuf dIfforonco. Thoroforo, If wo know Anil nnd
Ani wIfh hIgh robnbIIIfy, fhon wo know Ani+l wIfh hIgh robnbIIIfy.
Iurfhormoro, If n numbor of such dIfforoncos nro doformInod, If Is fonsIbIo fo
doformIno fho subkoy usod In fho funcfIon f.
Tho ovornII sfrnfogy of dIfforonfInI cryfnnnIysIs Is bnsod on fhoso consIdornfIons
for n sIngIo round. Tho rocoduro Is fo bogIn wIfh fwo InInfoxf mossngos n nnd n'
wIfh n gIvon dIfforonco nnd frnco fhrough n robnbIo nfforn of dIfforoncos nffor onch
round fo yIoId n robnbIo dIfforonco for fho cIhorfoxf.
AcfunIIy, fhoro nro fwo robnbIo dIfforoncos for fho fwo 32-bIf hnIvos:
(Anl? || Anl6). oxf, wo submIf n nnd n' for oncryfIon fo doformIno fho ncfunI
dIfforonco undor fho unknown koy nnd comnro fho rosuIf fo fho robnbIo dIfforonco.
If fhoro Is n mnfch,
fhon wo susocf fhnf nII fho robnbIo nfforns nf nII fho InformodInfo rounds nro
corrocf. WIfh fhnf nssumfIon, wo cnn mnko somo doducfIons nbouf fho koy bIfs. ThIs
rocoduro musf bo roonfod mnny fImos fo doformIno nII fho koy bIfs.
IIguro IIIusfrnfos fho rongnfIon of dIfforoncos fhrough fhroo rounds of IS.
Tho robnbIIIfIos shown on fho rIghf rofor fo fho robnbIIIfy fhnf n gIvon sof of
InformodInfo dIfforoncos wIII nonr ns n funcfIon of fho Inuf dIfforoncos.
OvornII, nffor fhroo rounds fho robnbIIIfy fhnf fho oufuf dIfforonco Is ns shown
Is oqunI fo 0.25 x l x 0.25 = 0.0625.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
IIIeventIuI PvopugutIon tLvougL TLvee Round oI S
(Numbevs In LeudecImuI)
IIneuv CvyptunuIysIs
A moro roconf dovoIomonf Is IInonr cryfnnnIysIs. ThIs nffnck Is bnsod on
fIndIng IInonr nroxImnfIons fo doscrIbo fho frnnsformnfIons orformod In IS. ThIs
mofhod cnn fInd n IS koy gIvon 2
4?
known InInfoxfs, ns comnrod fo 2
4?
choson
InInfoxfs for dIfforonfInI cryfnnnIysIs.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
S esIgn CvItevIu
Tho crIforIn usod In fho dosIgn of IS focusod on fho dosIgn of fho S boxos nnd
on fho I funcfIon fhnf fnkos fho oufuf of fho S boxos.
Tho criteriu for the S-boreo nro:
l) o oufuf bIf of nny S-box shouId bo foo cIoso n IInonr funcfIon of fho Inuf bIfs.
SocIfIcnIIy, If wo soIocf nny oufuf bIf nnd nny subsof of fho sIx Inuf bIfs, fho
frncfIon of Inufs for whIch fhIs oufuf bIf oqunIs fho XO! of fhoso Inuf bIfs
shouId nof bo cIoso fo 0 or l, buf rnfhor shouId bo nonr l/2.
2) Inch row of nn S-box (doformInod by n fIxod vnIuo of fho Ioffmosf nnd rIghfmosf
Inuf bIfs) shouId IncIudo nII l6 ossIbIo oufuf bIf combInnfIons.
3) If fwo Inufs fo nn S-box dIffor In oxncfIy ono bIf, fho oufufs musf dIffor In nf
Ionsf fwo bIfs.
4) If fwo Inufs fo nn S-box dIffor In fho fwo mIddIo bIfs oxncfIy, fho oufufs musf
dIffor In nf Ionsf fwo bIfs.
5) If fwo Inufs fo nn S-box dIffor In fhoIr fIrsf fwo bIfs nnd nro IdonfIcnI In fhoIr
Insf fwo bIfs, fho fwo oufufs musf nof bo fho snmo.
6) Ior nny nonzoro 6-bIf dIfforonco bofwoon Inufs, no moro fhnn 8 of fho 32 nIrs
of Inufs oxhIbIfIng fhnf dIfforonco mny rosuIf In fho snmo oufuf dIfforonco.
?) ThIs Is n crIforIon sImIInr fo fho rovIous ono, buf for fho cnso of fhroo S-boxos.
If fho S-boxos woro IInonr (I.o., onch oufuf bIf Is n IInonr combInnfIon of fho
Inuf bIfs), fho onfIro nIgorIfhm wouId bo IInonr nnd onsIIy brokon.
Tho criteriu for the permutution P nro:
n) Tho four oufuf bIfs from onch S-box nf round i nro dIsfrIbufod so fhnf fwo of
fhom nffocf (rovIdo Inuf for) "mIddIo bIfs" of round (i + l) nnd fho ofhor fwo
nffocf ond bIfs.
Tho fwo mIddIo bIfs of Inuf fo nn S-box nro nof shnrod wIfh ndjnconf S-
boxos. Tho ond bIfs nro fho fwo Ioff-hnnd bIfs nnd fho fwo rIghf-hnnd bIfs, whIch
nro shnrod wIfh ndjnconf S-boxos.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
b) Tho four oufuf bIfs from onch S-box nffocf sIx dIfforonf S-boxos on fho noxf
round, nnd no fwo nffocf fho snmo S-box.
c) Ior fwo S-boxos j, l, If nn oufuf bIf from Sj nffocfs n mIddIo bIf of Sl on fho noxf
round, fhon nn oufuf bIf from Sl cnnnof nffocf n mIddIo bIf of Sj. ThIs ImIIos
fhnf for j = l, nn oufuf bIf from Sj musf nof nffocf n mIddIo bIf of Sj.
Thoso crIforIn nro Infondod fo Incronso fho dIffusIon of fho nIgorIfhm.
Numbev oI Rounds
Tho gronfor fho numbor of rounds, fho moro dIffIcuIf If Is fo orform
cryfnnnIysIs, ovon for n roInfIvoIy wonk I. In gonornI, fho crIforIon shouId bo fhnf fho
numbor of rounds Is choson so fhnf known cryfnnnIyfIc offorfs roquIro gronfor offorf
fhnn n sImIo brufo-forco koy sonrch nffnck. ThIs crIforIon wns corfnInIy usod In fho
dosIgn of IS.
ThIs crIforIon Is nffrncfIvo bocnuso If mnkos If onsy fo judgo fho sfrongfh of nn
nIgorIfhm nnd fo comnro dIfforonf nIgorIfhms. In fho nbsonco of n cryfnnnIyfIc
bronkfhrough, fho sfrongfh of nny nIgorIfhm fhnf snfIsfIos fho crIforIon cnn bo judgod
soIoIy on koy Iongfh.
esIgn oI IunctIon I
Tho honrf of n IoIsfoI bIock cIhor Is fho funcfIon I. As wo hnvo soon, In IS,
fhIs funcfIon roIIos on fho uso of S-boxos. ThIs Is nIso fho cnso for mosf ofhor symmofrIc
bIock cIhors.
esIgn CvItevIu Iov I
Tho funcfIon I rovIdos fho oIomonf of confusIon In n IoIsfoI cIhor. Thus, If
musf bo dIffIcuIf fo "unscrnmbIo" fho subsfIfufIon orformod by I. Tho moro nonIInonr
I, fho moro dIffIcuIf nny fyo of cryfnnnIysIs wIII bo.
SovornI ofhor crIforIn shouId bo consIdorIng In dosIgnIng I. Wo wouId IIko fho
nIgorIfhm fo hnvo good nvnInncho roorfIos.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Tho form coJeIool Is usod bocnuso, for n gIvon koy, fhoro Is n unIquo cIhorfoxf
for ovory 64-bIf bIock of InInfoxf. Thoroforo, ono cnn ImngIno n gIgnnfIc codobook In
whIch fhoro Is nn onfry for ovory ossIbIo 64-bIf InInfoxf nfforn showIng Ifs
corrosondIng cIhorfoxf.
Ior n mossngo Iongor fhnn 64 bIfs, fho rocoduro Is sImIy fo bronk fho mossngo
Info 64-bIf bIocks, nddIng fho Insf bIock If nocossnry. ocryfIon Is orformod ono
bIock nf n fImo, nIwnys usIng fho snmo koy.
Tho InInfoxf (nddod ns nocossnry) consIsfs of n soquonco of 64-bIf bIocks, Pl,
P2, . . ., PA; fho corrosondIng soquonco of cIhorfoxf bIocks Is Cl, C2, . . ., CA. Tho ICI
mofhod Is IdonI for n shorf nmounf of dnfn, such ns nn oncryfIon koy. Thus, If you wnnf
fo frnnsmIf n IS koy socuroIy, ICI Is fho nrorInfo modo fo uso.
BIock CIpLev Modes oI OpevutIon
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Tho mosf oignificunt churucteriotic of ICI Is fhnf fho snmo 64-bIf bIock of
InInfoxf, If If nonrs moro fhnn onco In fho mossngo, nIwnys roducos fho snmo
cIhorfoxf. Ior Iongfhy mossngos, fho ICI modo mny nof bo socuro. If fho mossngo Is
hIghIy sfrucfurod, If mny bo ossIbIo for n cryfnnnIysf fo oxIoIf fhoso roguInrIfIos.
IectvonIc Codebook (CB) Mode
Ior exonple, If If Is known fhnf fho mossngo nIwnys sfnrfs ouf wIfh corfnIn
rodofInod fIoIds, fhon fho cryfnnnIysf mny hnvo n numbor of known InInfoxf-
cIhorfoxf nIrs fo work wIfh. If fho mossngo hns roofIfIvo oIomonfs, wIfh n orIod of
roofIfIon n muIfIIo of 64 bIfs, fhon fhoso oIomonfs cnn bo IdonfIfIod by fho nnnIysf.
ThIs mny hoI In fho nnnIysIs or mny rovIdo nn oorfunIfy for subsfIfufIng or
ronrrnngIng bIocks.
CIpLev BIock CLuInIng Mode
To ovorcomo fho socurIfy dofIcIoncIos of ICI, wo wouId IIko n fochnIquo In whIch
fho snmo InInfoxf bIock, If roonfod, roducos dIfforonf cIhorfoxf bIocks. A sImIo wny
fo snfIsfy fhIs roquIromonf Is fho CIhor IIock ChnInIng (CIC) modo.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
In fhIs schomo, fho Inuf fo fho oncryfIon nIgorIfhm Is fho XO! of fho curronf
InInfoxf bIock nnd fho rocodIng cIhorfoxf bIock; fho snmo koy Is usod for onch bIock.
In offocf, wo hnvo chnInod fogofhor fho rocossIng of fho soquonco of InInfoxf bIocks.
Tho Inuf fo fho oncryfIon funcfIon for onch InInfoxf bIock bonrs no fIxod roInfIonshI
fo fho InInfoxf bIock. Thoroforo, roonfIng nfforns of 64 bIfs nro nof oxosod.
Ior docryfIon, onch cIhor bIock Is nssod fhrough fho docryfIon nIgorIfhm.
Tho rosuIf Is XO!-od wIfh fho rocodIng cIhorfoxf bIock fo roduco fho InInfoxf bIock.
To soo fhnf fhIs works, wo cnn wrIfo:
Thon,
To roduco fho fIrsf bIock of cIhorfoxf, nn InIfInIIznfIon vocfor (IV) Is XO!-od
wIfh fho fIrsf bIock of InInfoxf. On docryfIon, fho IV Is XO!-od wIfh fho oufuf of fho
docryfIon nIgorIfhm fo rocovor fho fIrsf bIock of InInfoxf.
Tho IV musf bo known fo bofh fho sondor nnd rocoIvor. Ior mnxImum socurIfy,
fho IV shouId bo rofocfod ns woII ns fho koy. ThIs couId bo dono by sondIng fho IV
usIng ICI oncryfIon. Ono ronson for rofocfIng fho IV Is ns foIIows: If nn oononf Is
nbIo fo fooI fho rocoIvor Info usIng n dIfforonf vnIuo for IV, fhon fho oononf Is nbIo fo
Invorf soIocfod bIfs In fho fIrsf bIock of InInfoxf. To soo fhIs, consIdor fho foIIowIng:
ow uso fho nofnfIon fhnf X|i] donofos fho ifh bIf of fho 64-bIf qunnfIfy X. Thon,
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
IIrsf, consIdor encryption. Tho Inuf fo fho oncryfIon funcfIon Is n 64-bIf shIff
rogIsfor fhnf Is InIfInIIy sof fo somo InIfInIIznfIon vocfor (IV). Tho Ioffmosf (mosf
sIgnIfIcnnf) e bIfs of fho oufuf of fho oncryfIon funcfIon nro XO!od wIfh fho fIrsf
sogmonf of InInfoxf Pl fo roduco fho fIrsf unIf of cIhorfoxf Cl, whIch Is fhon
frnnsmIffod. In nddIfIon, fho confonfs of fho shIff rogIsfor nro shIffod Ioff by e bIfs nnd
Cl Is Incod In fho rIghfmosf (Ionsf sIgnIfIcnnf) e bIfs of fho shIff rogIsfor. ThIs rocoss
confInuos unfII nII InInfoxf unIfs hnvo boon oncryfod.
Ior docryfIon, fho snmo schomo Is usod, oxcof fhnf fho rocoIvod cIhorfoxf unIf
Is XO!od wIfh fho oufuf of fho oncryfIon funcfIon fo roduco fho InInfoxf unIf. ofo
fhnf If Is fho encr,pIion funcfIon fhnf Is usod, nof fho docryfIon funcfIon. ThIs Is onsIIy
oxInInod. !of Se(X) bo dofInod ns fho mosf sIgnIfIcnnf e bIfs of X. Thon
Thoroforo
Output Ieedbuck Mode
Tho oufuf foodbnck (OII) modo Is sImIInr In sfrucfuro fo fhnf of CII, ns
IIIusfrnfod In IIguro. As cnn bo soon, If Is fho oufuf of fho oncryfIon funcfIon fhnf Is
fod bnck fo fho shIff rogIsfor In OII, whorons In CII fho cIhorfoxf unIf Is fod bnck fo
fho shIff rogIsfor.
Ono uJtuntuge of fho OII mofhod Is fhnf bIf orrors In frnnsmIssIon do nof
rongnfo. Ior oxnmIo, If n bIf orror occurs In Cl, onIy fho rocovorod vnIuo of Pl Is
nffocfod; subsoquonf InInfoxf unIfs nro nof corrufod. WIfh CII, Cl nIso sorvos ns
Inuf fo fho shIff rogIsfor nnd fhoroforo cnusos nddIfIonnI corrufIon downsfronm.
Tho JiouJtuntuge of OII Is fhnf If Is moro vuInornbIo fo n mossngo sfronm
modIfIcnfIon nffnck fhnn Is CII. ConsIdor fhnf comIomonfIng n bIf In fho cIhorfoxf
comIomonfs fho corrosondIng bIf In fho rocovorod InInfoxf.
Thus, confroIIod chnngos fo fho rocovorod InInfoxf cnn bo mndo. ThIs mny mnko
If ossIbIo for nn oononf, by mnkIng fho nocossnry chnngos fo fho chocksum orfIon
of fho mossngo ns woII ns fo fho dnfn orfIon, fo nIfor fho cIhorfoxf In such n wny fhnf
If Is nof dofocfod by nn orror-corrocfIng codo.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
o-bIt Output Ieedbuck (OIB) Mode
Countev Mode
IIguro doIcfs fho CT! modo. A counfor, oqunI fo fho InInfoxf bIock sIzo Is usod.
Tho onIy roquIromonf sfnfod In SI 800-38A Is fhnf fho counfor vnIuo musf bo dIfforonf
for onch InInfoxf bIock fhnf Is oncryfod. TyIcnIIy, fho counfor Is InIfInIIzod fo somo
vnIuo nnd fhon Incromonfod by l for onch subsoquonf bIock (moduIo 2
I
, whoro I Is fho
bIock sIzo).
Ior oncryfIon, fho counfor Is oncryfod nnd fhon XO!od wIfh fho InInfoxf
bIock fo roduco fho cIhorfoxf bIock; fhoro Is no chnInIng. Ior docryfIon, fho snmo
soquonco of counfor vnIuos Is usod, wIfh onch oncryfod counfor XO!od wIfh n
cIhorfoxf bIock fo rocovor fho corrosondIng InInfoxf bIock.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Countev (CTR) Mode
Advuntuges oI CTR mode
Huvdwuve eIIIcIency:
!nIIko fho fhroo chnInIng modos, oncryfIon (or docryfIon) In CT! modo cnn bo
dono In nrnIIoI on muIfIIo bIocks of InInfoxf or cIhorfoxf. Ior fho chnInIng modos,
fho nIgorIfhm musf comIofo fho comufnfIon on ono bIock boforo bogInnIng on fho noxf
bIock. ThIs IImIfs fho mnxImum fhroughuf of fho nIgorIfhm fo fho rocIrocnI of fho
fImo for ono oxocufIon of bIock oncryfIon or docryfIon. In CT! modo, fho fhroughuf
Is onIy IImIfod by fho nmounf of nrnIIoIIsm fhnf Is nchIovod.
SoItwuve eIIIcIency:
SImIInrIy, bocnuso of fho oorfunIfIos for nrnIIoI oxocufIon In CT! modo,
rocossors fhnf suorf nrnIIoI fonfuros, such ns nggrossIvo IoIInIng, muIfIIo
InsfrucfIon dIsnfch or cIock cycIo, n Inrgo numbor of rogIsfors, nnd SIM
InsfrucfIons, cnn bo offocfIvoIy ufIIIzod.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
PvepvocessIng:
Tho oxocufIon of fho undorIyIng oncryfIon nIgorIfhm doos nof doond on Inuf
of fho InInfoxf or cIhorfoxf. Thoroforo, If suffIcIonf momory Is nvnIInbIo nnd socurIfy
Is mnInfnInod, rorocossIng cnn bo usod fo ronro fho oufuf of fho oncryfIon boxos
fhnf food Info fho XO! funcfIons. Whon fho InInfoxf or cIhorfoxf Inuf Is rosonfod,
fhon fho onIy comufnfIon Is n sorIos of XO!s. Such n sfrnfogy gronfIy onhnncos
fhroughuf.
Rundom uccess:
Tho ifh bIock of InInfoxf of cIhorfoxf cnn bo rocossod In rnndom nccoss
fnshIon. WIfh fho chnInIng modos, bIock Ci cnnnof bo comufod unfII fho i l rIor
bIock nro comufod. Thoro mny bo nIIcnfIons In whIch n cIhorfoxf Is sforod nnd If Is
dosIrod fo docryf jusf ono bIock; for such nIIcnfIons, fho rnndom nccoss fonfuro Is
nffrncfIvo.
PvovubIe secuvIty:
If cnn bo shown fhnf CT! Is nf Ionsf ns socuro ns fho ofhor modos.
SImpIIcIty:
!nIIko ICI nnd CIC modos, CT! modo roquIros onIy fho ImIomonfnfIon of fho
oncryfIon nIgorIfhm nnd nof fho docryfIon nIgorIfhm. ThIs mnffors mosf whon fho
docryfIon nIgorIfhm dIffors subsfnnfInIIy from fho oncryfIon nIgorIfhm, ns If doos for
AIS. In nddIfIon, fho docryfIon koy schoduIIng nood nof bo ImIomonfod.
1.22 AVANC NCRYPTION STANAR
Tho Advnncod IncryfIon Sfnndnrd (AIS) wns ubIIshod by IST (nfIonnI
InsfIfufo of Sfnndnrds nnd TochnoIogy) In 200l. AIS Is n symmofrIc bIock cIhor fhnf Is
Infondod fo roInco IS ns fho nrovod sfnndnrd for n wIdo rnngo of nIIcnfIons.
vuIuutIon CvItevIu Iov AS
TLe OvIgIns oI AS
In l999, IST Issuod n now vorsIon of Ifs IS sfnndnrd (IIIS I!I 46-3) fhnf
IndIcnfod fhnf S shouId onIy bo usod for Iogncy sysfoms nnd fhnf frIIo IS (3IS)
bo usod.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
3S hns fwo nffrncfIons fhnf nssuro Ifs wIdosrond uso ovor fho noxf fow
yonrs. IIrsf, wIfh Ifs l68-bIf koy Iongfh, If ovorcomos fho vuInornbIIIfy fo brufo-forco
nffnck of IA. Socond, fho undorIyIng oncryfIon nIgorIfhm In 3IS Is fho snmo ns In
IA. ThIs nIgorIfhm hns boon subjocfod fo moro scrufIny fhnn nny ofhor oncryfIon
nIgorIfhm ovor n Iongor orIod of fImo, nnd no offocfIvo cryfnnnIyfIc nffnck bnsod on
fho nIgorIfhm rnfhor fhnn brufo forco hns boon found.
AccordIngIy, fhoro Is n hIgh IovoI of confIdonco fhnf 3IS Is vory rosIsfnnf fo
cryfnnnIysIs. If socurIfy woro fho onIy consIdornfIon, fhon 3IS wouId bo nn
nrorInfo choIco for n sfnndnrdIzod oncryfIon nIgorIfhm for docndos fo como.
Tho principul Jruubuck of 3IS Is fhnf fho nIgorIfhm Is roInfIvoIy sIuggIsh In
soffwnro. 3IS, whIch hns fhroo fImos ns mnny rounds ns IA, Is corrosondIngIy
sIowor. A oeconJury Jruubuck Is fhnf bofh IA nnd 3IS uso n 64-bIf bIock sIzo.
Ior ronsons of bofh offIcIoncy nnd socurIfy, n Inrgor bIock sIzo Is dosIrnbIo.
Iocnuso of fhoso drnwbncks, 3IS Is nof n ronsonnbIo cnndIdnfo for Iong-form
uso. As n roIncomonf, IST In l99? Issuod n cnII for roosnIs for n now AJtunceJ
Encryption StunJurJ (AES), whIch shouId hnvo socurIfy sfrongfh oqunI fo or boffor
fhnn 3IS nnd sIgnIfIcnnfIy, Imrovod offIcIoncy.
In nddIfIon fo fhoso gonornI roquIromonfs, IST socIfIod fhnf AIS musf bo n
symmofrIc bIock cIhor wIfh n bIock Iongfh of l28 bIfs nnd suorf for koy Iongfhs of
l28, l92, nnd 256 bIfs. In n fIrsf round of ovnIunfIon, l5 roosod nIgorIfhms woro
nccofod. A socond round nnrrowod fho fIoId fo 5 nIgorIfhms.
AS vuIuutIon
Tho fhroo cnfogorIos of crIforIn woro:
SecuvIty:
ThIs rofors fo fho offorf roquIrod fo cryfnnnIyzo nn nIgorIfhm. Tho omhnsIs In
fho ovnIunfIon wns on fho rncfIcnIIfy of fho nffnck. Iocnuso fho mInImum koy sIzo for
AIS Is l28 bIfs, brufo-forco nffncks wIfh curronf nnd rojocfod fochnoIogy nood nof
hnvo boon consIdorod.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Cost:
IST Infonds AIS fo bo rncfIcnI In n wIdo rnngo of nIIcnfIons. AccordIngIy,
AIS musf hnvo hIgh comufnfIonnI offIcIoncy, so ns fo bo usnbIo In hIgh-sood
nIIcnfIons, such ns brondbnnd IInks.
AIgovItLm und ImpIementutIon cLuvuctevIstIcs:
ThIs cnfogory IncIudos n vnrIofy of consIdornfIons, IncIudIng fIoxIbIIIfy;
suIfnbIIIfy for n vnrIofy of hnrdwnro nnd soffwnro ImIomonfnfIons; nnd sImIIcIfy,
whIch wIII mnko nn nnnIysIs of socurIfy moro sfrnIghfforwnrd.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
NIST vuIuutIon CvItevIu Iov AS
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
IInuI NIST vuIuutIon oI RIJndueI
1.23 TH AS CIPHR
Tho !IjndnoI roosnI for AIS dofInod n cIhor In whIch fho bIock Iongfh nnd fho
koy Iongfh cnn bo IndoondonfIy socIfIod fo bo l28, l92, or 256 bIfs. Tho AIS
socIfIcnfIon usos fho snmo fhroo koy sIzo nIfornnfIvos buf IImIfs fho bIock Iongfh fo l28
bIfs. A numbor of AIS nrnmofors doond on fho koy Iongfh.
AS Puvumetevs
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
AS utu Stvuctuves
ThIs bIock Is doIcfod ns n squnro mnfrIx of byfos. ThIs bIock Is coIod Info fho
Stute nrrny, whIch Is modIfIod nf onch sfngo of oncryfIon or docryfIon. Affor fho fInnI
sfngo, Stute Is coIod fo nn oufuf mnfrIx. Thoso oornfIons nro doIcfod In IIguro n.
SImIInrIy, fho l28-bIf koy Is doIcfod ns n squnro mnfrIx of byfos. ThIs koy Is fhon
oxnndod Info nn nrrny of koy schoduIo words; onch word Is four byfos nnd fho fofnI koy
schoduIo Is 44 words for fho l28-bIf koy (IIguro b).
ofo fhnf fho ordorIng of byfos wIfhIn n mnfrIx Is by coIumn. So, for oxnmIo,
fho fIrsf four byfos of n l28-bIf InInfoxf Inuf fo fho oncryfIon cIhor occuy fho fIrsf
coIumn of fho In mnfrIx, fho socond four byfos occuy fho socond coIumn, nnd so on.
SImIInrIy, fho fIrsf four byfos of fho oxnndod koy, whIch form n word, occuy fho fIrsf
coIumn of fho w mnfrIx.
The oterull AES otructure:
l. Ono nofoworfhy fonfuro of fhIs sfrucfuro Is fhnf If Is nof n IoIsfoI sfrucfuro.
!ocnII fhnf In fho cInssIc IoIsfoI sfrucfuro, hnIf of fho dnfn bIock Is usod fo
modIfy fho ofhor hnIf of fho dnfn bIock, nnd fhon fho hnIvos nro swnod.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
5. OnIy fho Add !ound Koy sfngo mnkos uso of fho koy. Ior fhIs ronson, fho cIhor
bogIns nnd onds wIfh nn Add !ound Koy sfngo. Any ofhor sfngo, nIIod nf fho
bogInnIng or ond, Is rovorsIbIo wIfhouf knowIodgo of fho koy nnd so wouId ndd no
socurIfy.
6. Tho Add !ound Koy sfngo Is, In offocf, n form of Vornnm cIhor nnd by IfsoIf
wouId nof bo formIdnbIo. Tho ofhor fhroo sfngos fogofhor rovIdo confusIon,
dIffusIon, nnd nonIInonrIfy, buf by fhomsoIvos wouId rovIdo no socurIfy bocnuso
fhoy do nof uso fho koy. Wo cnn vIow fho cIhor ns nIfornnfIng oornfIons of XO!
oncryfIon (Add !ound Koy) of n bIock, foIIowod by scrnmbIIng of fho bIock (fho
ofhor fhroo sfngos), nnd foIIowod by XO! oncryfIon, nnd so on. ThIs schomo Is
bofh offIcIonf nnd hIghIy socuro.
?. Inch sfngo Is onsIIy rovorsIbIo. Ior fho SubsfIfufo Iyfo, ShIff !ow, nnd MIx
CoIumns sfngos, nn Invorso funcfIon Is usod In fho docryfIon nIgorIfhm. Ior fho
Add !ound Koy sfngo, fho Invorso Is nchIovod by XO!Ing fho snmo round koy fo
fho bIock, usIng fho rosuIf fhnf A A I = I.
8. As wIfh mosf bIock cIhors, fho docryfIon nIgorIfhm mnkos uso of fho oxnndod
koy In rovorso ordor. Howovor, fho docryfIon nIgorIfhm Is nof IdonfIcnI fo fho
oncryfIon nIgorIfhm. ThIs Is n consoquonco of fho nrfIcuInr sfrucfuro of AIS.
9. Onco If Is osfnbIIshod fhnf nII four sfngos nro rovorsIbIo, If Is onsy fo vorIfy fhnf
docryfIon doos rocovor fho InInfoxf. IIrsf IIguro In AIS Inys ouf oncryfIon
nnd docryfIon goIng In oosIfo vorfIcnI dIrocfIons. Af onch horIzonfnI oInf
(o.g., fho dnshod IIno In fho fIguro), Stute Is fho snmo for bofh oncryfIon nnd
docryfIon.
l0. Tho fInnI round of bofh oncryfIon nnd docryfIon consIsfs of onIy fhroo sfngos.
AgnIn, fhIs Is n consoquonco of fho nrfIcuInr sfrucfuro of AIS nnd Is roquIrod fo
mnko fho cIhor rovorsIbIo.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
AS S-Boes
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Inch IndIvIdunI byfo of Stute Is mnod Info n now byfo In fho foIIowIng wny:
Tho Ioffmosf four bIfs of fho byfo nro usod ns n row vnIuo nnd fho rIghfmosf four bIfs
nro usod ns n coIumn vnIuo. Thoso row nnd coIumn vnIuos sorvo ns Indoxos Info fho S-
box fo soIocf n unIquo 8-bIf oufuf vnIuo. Tho Invevse substItute byte
tvunsIovmutIon, cnIIod InvSubIyfos, mnkos uso of fho Invorso S-box shown In nbovo
TnbIo b.
SLIIt Row TvunsIovmutIon
Iovwuvd und Invevse TvunsIovmutIons
Tho Iovwuvd sLIIt vow tvunsIovmutIon, cnIIod ShIff!ows, Is doIcfod In
(IoIow IIguro n). Tho fIrsf row of Stute Is nof nIforod. Ior fho socond row, n l-byfo
cIrcuInr Ioff shIff Is orformod. Ior fho fhIrd row, n 2-byfo cIrcuInr Ioff shIff Is
orformod. Ior fho fhIrd row, n 3-byfo cIrcuInr Ioff shIff Is orformod.
AS Row und CoIumn OpevutIons
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Ior fho fIrsf oqunfIon, wo hnvo {0I} : {02} = 000lll00; nnd {09} : {03} = {09} :
({09} :{02}) = 0000l00l 000l00l0 = 000ll0ll. Thon,
Tho ofhor oqunfIons cnn bo sImIInrIy vorIfIod.
Add Round Key TvunsIovmutIon
Iovwuvd und Invevse TvunsIovmutIons
In fho Iovwuvd udd vound key tvunsIovmutIon, cnIIod Add!oundKoy, fho l28
bIfs of Stute nro bIfwIso XO!od wIfh fho l28 bIfs of fho round koy. As shown In Iigure
I AJJ IounJ le, TronefornoIion, fho oornfIon Is vIowod ns n coIumn-wIso oornfIon
bofwoon fho four byfos of n Stute coIumn nnd ono word of fho round koy; If cnn nIso bo
vIowod ns n byfo-IovoI oornfIon. Tho Invevse udd vound key tvunsIovmutIon Is
IdonfIcnI fo fho forwnrd ndd round koy frnnsformnfIon, bocnuso fho XO! oornfIon Is Ifs
own Invorso.
AS Key punsIon
Key punsIon AIgovItLm
Tho AIS koy oxnnsIon nIgorIfhm fnkos ns Inuf n 4-word (l6-byfo) koy nnd
roducos n IInonr nrrny of 44 words (l56 byfos). ThIs Is suffIcIonf fo rovIdo n 4-word
round koy for fho InIfInI Add !ound Koy sfngo nnd onch of fho l0 rounds of fho cIhor.
Tho foIIowIng soudocodo doscrIbos fho oxnnsIon:
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
AS Key punsIon
quIvuIent Invevse CIpLev
Tho AIS docryfIon cIhor Is nof IdonfIcnI fo fho oncryfIon cIhor. Thnf Is fho
soquonco of frnnsformnfIons for docryfIon dIffors from fhnf for oncryfIon, nIfhough
fho form of fho koy schoduIos for oncryfIon nnd docryfIon Is fho snmo. ThIs hns fho
dIsndvnnfngo fhnf fwo sonrnfo soffwnro or fIrmwnro moduIos nro noodod for
nIIcnfIons fhnf roquIro bofh oncryfIon nnd docryfIon.
Thoro Is, howovor, nn oquIvnIonf vorsIon of fho docryfIon nIgorIfhm fhnf hns fho
snmo sfrucfuro ns fho oncryfIon nIgorIfhm. Tho oquIvnIonf vorsIon hns fho snmo
soquonco of frnnsformnfIons ns fho oncryfIon nIgorIfhm (wIfh frnnsformnfIons
roIncod by fhoIr Invorsos).
To nchIovo fhIs oquIvnIonco, n chnngo In koy schoduIo Is noodod. Two sonrnfo
chnngos nro noodod fo brIng fho docryfIon sfrucfuro In IIno wIfh fho oncryfIon
sfrucfuro. An oncryfIon round hns fho sfrucfuro SubIyfos, ShIff!ows, MIxCoIumns,
Add!oundKoy. Tho sfnndnrd docryfIon round hns fho sfrucfuro InvShIff!ows,
InvSubIyfos, Add!oundKoy, InvMIxCoIumns. Thus, fho fIrsf fwo sfngos of fho
docryfIon round nood fo bo Inforchnngod, nnd fho socond fwo chnngos of fho docryfIon
round nood fo bo Inforchnngod.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
CIvon n InInfoxf P nnd fwo oncryfIon koys Kl nnd K2, cIhorfoxf C Is gonornfod ns:
ocryfIon roquIros fhnf fho koys bo nIIod In rovorso ordor:
Ior IS, fhIs schomo nnronfIy InvoIvos n koy Iongfh of 56 X 2 = ll2 bIfs,
rosuIfIng In n drnmnfIc Incronso In cryfogrnhIc sfrongfh.
ReductIon to u SIngIe Stuge
Suoso for IS, for nII 56-bIf koy vnIuos, fhnf gIvon nny fwo koys Kl nnd K2, If
wouId bo ossIbIo fo fInd n koy K3 such fhnf:
Thon doubIo oncryfIon, nnd Indood nny numbor of sfngos of muIfIIo oncryfIon
wIfh IS, wouId bo usoIoss bocnuso fho rosuIf wouId bo oquIvnIonf fo n sIngIo
oncryfIon wIfh n sIngIo 56-bIf koy. IS dofInos ono mnIng for onch dIfforonf koy, for
n fofnI numbor of mnIngs:
Thoroforo, If Is ronsonnbIo fo nssumo fhnf If IS Is usod fwIco wIfh dIfforonf
koys, If wIII roduco ono of fho mnny mnIngs fhnf Is nof dofInod by n sIngIo
nIIcnfIon of IS.
Meet-In-tLe-MIddIe Attuck
If Is bnsod on,
nnd
CIvon n known nIr, (P, C), fho nffnck rocoods ns foIIows. IIrsf, oncryf P for nII
2
56
ossIbIo vnIuos of Kl.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Sforo fhoso rosuIfs In n fnbIo nnd fhon sorf fho fnbIo by fho vnIuos of X. oxf,
docryf C usIng nII 2
56
ossIbIo vnIuos of K2. As onch docryfIon Is roducod, chock fho
rosuIf ngnInsf fho fnbIo for n mnfch. If n mnfch occurs, fhon fosf fho fwo rosuIfIng koys
ngnInsf n now known InInfoxf-cIhorfoxf nIr. If fho fwo koys roduco fho corrocf
cIhorfoxf, nccof fhom ns fho corrocf koys.
TvIpIe S wItL Two Keys
In ordor fo counfor fho moof-In-fho-mIddIo nffnck Is fo uso fhroo sfngos of
oncryfIon wIfh fhroo dIfforonf koys. ThIs rnIsos fho cosf of fho known-InInfoxf nffnck
fo 2
ll2
, whIch Is boyond whnf Is rncfIcnI.
As nn nIfornnfIvo, n frIIo oncryfIon mofhod fhnf usos onIy fwo koys wns
roosod. Tho funcfIon foIIows nn oncryf-docryf-oncryf (II) soquonco (IIguro b):
Thoro Is no cryfogrnhIc sIgnIfIcnnco fo fho uso of docryfIon for fho socond
sfngo. Ifs onIy ndvnnfngo Is fhnf If nIIows usors of 3IS fo docryf dnfn oncryfod by
usors of fho oIdor sIngIo IS:
A known-InInfoxf nffnck Is bnsod on fho obsorvnfIon fhnf If wo know A nnd C
(IIguro b), fhon fho robIom roducos fo fhnf of nn nffnck on doubIo IS.
Tho nffnckor cnn chooso n ofonfInI vnIuo of A nnd fhon fry fo fInd n known (P,
C) nIr fhnf roducos A.
(b) TvIpIe ncvyptIon
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
(2) TubIe oI IntevmedIute vuIues und cundIdute keys
IIguves: Known-PIuIntet Attuck on TvIpIe S
3. Wo now hnvo n numbor of cnndIdnfo vnIuos of Kl In TnbIo 2 nnd nro In n osIfIon
fo sonrch for n vnIuo of K2. Ior onch of fho 2
56
ossIbIo koys K2 = j, cnIcuInfo fho
socond InformodInfo vnIuo for our choson vnIuo of o:
Af onch sfo, Iook u Bj In TnbIo 2. If fhoro Is n mnfch, fhon fho corrosondIng
koy i from TnbIo 2 Ius fhIs vnIuo of j nro cnndIdnfo vnIuos for fho unknown koys
(Kl, K2). Why` Iocnuso wo hnvo found n nIr of koys (i, j) fhnf roduco n known
(P, C) nIr.
4. Tosf onch cnndIdnfo nIr of koys (i, j) on n fow ofhor InInfoxf-cIhorfoxf nIrs. If
n nIr of koys roducos fho dosIrod cIhorfoxf, fho fnsk Is comIofo. If no nIr
succoods, roonf from sfo l wIfh n now vnIuo of o.
Tho oxocfod numbor of vnIuos of o fhnf musf bo frIod Is, for Inrgo n,
Tho oxocfod runnIng fImo of fho nffnck Is on fho ordor of:
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
TvIpIe S wItL TLvee Keys
Throo-koy 3IS hns nn offocfIvo koy Iongfh of l68 bIfs nnd Is dofInod ns foIIows:
Inckwnrd comnfIbIIIfy wIfh IS Is rovIdod by uffIng
K3 = K2 ov K1 = K2.
B. BIOWIISH
IIowfIsh Is n symmofrIc bIock cIhor dovoIood by Iruco SchnoIor. IIowfIsh wns
dosIgnod fo hnvo fho foIIowIng chnrncforIsfIcs:
Iust:
IIowfIsh oncryfs dnfn on 32-bIf mIcrorocossors nf n rnfo of l8 cIock cycIos or byfo.
Compuct:
IIowfIsh cnn run In Ioss fhnn 5K of momory.
SImpIe:
IIowfIsh's sImIo sfrucfuro Is onsy fo ImIomonf nnd onsos fho fnsk of doformInIng fho
sfrongfh of fho nIgorIfhm.
VuvIubIy secuve:
Tho koy Iongfh Is vnrInbIo nnd cnn bo ns Iong ns 448 bIfs. ThIs nIIows n frndooff
bofwoon hIghor sood nnd hIghor socurIfy.
IIowfIsh oncryfs 64-bIf bIocks of InInfoxf Info 64-bIf bIocks of cIhorfoxf.
IIowfIsh Is ImIomonfod In numorous roducfs nnd hns rocoIvod n fnIr nmounf of
scrufIny. So fnr, fho socurIfy of IIowfIsh Is unchnIIongod.
Subkey und S-Bo GenevutIon
IIowfIsh mnkos uso of n koy fhnf rnngos from 32 bIfs fo 448 bIfs (ono fo fourfoon
32-bIf words). Thnf koy Is usod fo gonornfo l8 32-bIf subkoys nnd four 8x32 S-boxos
confnInIng n fofnI of l024 32-bIf onfrIos.
Tho fofnI Is l042 32-bIf vnIuos, or 4l68 byfos. Tho koys nro sforod In n K-nrrny:
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Tho subkoys nro sforod In fho I-nrrny:
Thoro nro four S-boxos, onch wIfh 256 32-bIf onfrIos:
Tho sfos In gonornfIng fho I-nrrny nnd S-boxos nro ns foIIows:
l. InIfInIIzo fIrsf fho I-nrrny nnd fhon fho four S-boxos In ordor usIng fho bIfs of
fho frncfIonnI nrf of fho consfnnf . Thus, fho Ioffmosf 32 bIfs of fho frncfIonnI
nrf of bocomo Pl, nnd so on. Ior oxnmIo, In hoxndocImnI;
2. Iorform n bIfwIso XO! of fho I-nrrny nnd fho K-nrrny, rousIng words from fho
K-nrrny ns noodod. Ior oxnmIo, for fho mnxImum Iongfh koy (l4 32-bIf words),
Il = Il Kl, I2 = I2 K2, ., Il4 = Il4 Kl4, Il5 = Il5 Kl, . Il8 =
Il8 K4.
3. Incryf fho 64-bIf bIock of nII zoros usIng fho curronf I- nnd S-nrrnys; roInco
Il nnd I2 wIfh fho oufuf of fho oncryfIon.
4. Incryf fho oufuf of sfo 3 usIng fho curronf I nnd S nrrnys nnd roInco I3
nnd I4 wIfh fho rosuIfIng cIhorfoxf.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
5. ConfInuo fhIs rocoss fo udnfo nII oIomonfs of I nnd fhon, In ordor, nII oIomonfs
of S, usIng nf onch sfo fho oufuf of fho confInuousIy chnngIng IIowfIsh
nIgorIfhm.
Tho udnfo rocoss cnn bo summnrIzod ns foIIows
whoro II,S|Y] Is fho cIhorfoxf roducod by oncryfIng Y usIng IIowfIsh wIfh fho nrrnys
S nnd I.
A fofnI of 52l oxocufIons of fho IIowfIsh oncryfIon nIgorIfhm nro roquIrod fo
roduco fho fInnI S- nnd I-nrrnys. AccordIngIy, IIowfIsh Is nof suIfnbIo for nIIcnfIons
In whIch fho socrof koy chnngos froquonfIy. Iurfhor, for rnId oxocufIon, fho I- nnd S-
nrrnys cnn bo sforod rnfhor fhnn rodorIvod from fho koy onch fImo fho nIgorIfhm Is
usod. ThIs roquIros ovor 4 KIyfos of momory. Thus, IIowfIsh Is nof nrorInfo for
nIIcnfIons wIfh IImIfod momory, such ns smnrf cnrds.
ncvyptIon und ecvyptIon
IIowfIsh usos fwo rImIfIvo oornfIons:
AddIfIon: AddIfIon of words, donofod by +, Is orformod moduIo 232.
IIfwIso oxcIusIvo-O!: ThIs oornfIon Is donofod by .
Tho Imorfnnf fhIng nbouf fhoso fwo oornfIons Is fhnf fhoy do nof commufo. ThIs
mnkos cryfnnnIysIs moro dIffIcuIf.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
IIguro (n) doIcfs fho oncryfIon oornfIon. Tho InInfoxf Is dIvIdod Info fwo 32-bIf
hnIvos !I0 nnd !I0. Wo uso fho vnrInbIos !II nnd !II fo rofor fo fho Ioff nnd rIghf
hnIf of fho dnfn nffor round I hns comIofod.
Tho nIgorIfhm cnn bo dofInod by fho foIIowIng soudocodo:
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Tho rosuIfIng cIhorfoxf Is confnInod In fho fwo vnrInbIos I1l? nnd I1l?. Tho
funcfIon I Is shown In boIow IIguro. Tho 32-bIf Inuf fo I Is dIvIdod Info 4 byfos. If wo
InboI fhoso byfos o, I, c, nnd J, fhon fho funcfIon cnn bo dofInod ns foIIows:
Thus, onch round IncIudos fho comIox uso of nddIfIon moduIo 2
32
nnd XO!, Ius
subsfIfufIon usIng S-boxos.
etuII oI SIngIe BIowIIsL Round
ocryfIon, Is onsIIy dorIvod from fho oncryfIon nIgorIfhm. In fhIs cnso, fho 64
bIfs of cIhorfoxf nro InIfInIIy nssIgnod fo fho fwo ono-word vnrInbIos ID0 nnd ID0.
Wo uso fho vnrInbIos IDi nnd IDi fo rofor fo fho Ioff nnd rIghf hnIf of fho dnfn
nffor round i. As wIfh mosf bIock cIhors, IIowfIsh docryfIon InvoIvos usIng fho
subkoys In rovorso ordor.
Howovor, unIIko mosf bIock cIhors, IIowfIsh docryfIon occurs In fho snmo
nIgorIfhmIc dIrocfIon ns oncryfIon, rnfhor fhnn fho rovorso.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
IscussIon
A fow of fho hIghIIghfs of fhnf dIscussIon nro rosonfod horo.
l) A brufo-forco nffnck Is ovon moro dIffIcuIf fhnn mny bo nnronf from fho koy
Iongfh bocnuso of fho fImo-consumIng subkoy-gonornfIon rocoss. A fofnI of 522
oxocufIons of fho oncryfIon nIgorIfhm nro roquIrod fo fosf n sIngIo koy.
2) Tho funcfIon I gIvos IIowfIsh fho bosf ossIbIo nvnInncho nffocf for n IoIsfoI
nofwork: In round i, ovory bIf of Iil nffocfs ovory bIf of Iil. In nddIfIon, ovory
subkoy bIf Is nffocfod by ovory koy bIf, nnd fhoroforo I hns n orfocf nvnInncho
offocf bofwoon fho koy (Pi) nnd fho rIghf hnIf of fho dnfn (Ii) nffor ovory round.
3) Ivory bIf of fho Inuf fo I Is onIy usod ns Inuf fo ono S-box. In confrnsf, In IS,
mnny bIfs nro usod ns Inufs fo fwo S-boxos, whIch sfrongfhons fho nIgorIfhm
consIdornbIy ngnInsf dIfforonfInI nffncks. SchnoIor foIf fhnf fhIs nddod
comIoxIfy wns nof nocossnry wIfh koy-doondonf S-boxos.
4) !nIIko In somo bIock cIhors, fho funcfIon I In IIowfIsh Is nof round doondonf.
SchnoIor foIf fhnf such doondoncy dId nof ndd nny cryfogrnhIc morIf, gIvon
fhnf fho I nrrny subsfIfufIon Is nIrondy round doondonf.
Speed CompuvIsons oI BIock CIpLevs on u PentIum
C. RC5
!C5 Is n symmofrIc oncryfIon nIgorIfhm dovoIood by !on !Ivosf. !C5 wns
dosIgnod fo hnvo fho foIIowIng chnrncforIsfIcs:
SuItubIe Iov Luvdwuve ov soItwuve:
!C5 usos onIy rImIfIvo comufnfIonnI oornfIons commonIy found on mIcrorocossors.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Iust:
To nchIovo fhIs, !C5 Is n sImIo nIgorIfhm nnd Is word orIonfod. Tho bnsIc oornfIons
work on fuII words of dnfn nf n fImo.
AduptubIe to pvocessovs oI dIIIevent wovd IengtLs:
Tho numbor of bIfs In n word Is n nrnmofor of !C5; dIfforonf word Iongfhs yIoId
dIfforonf nIgorIfhms.
VuvIubIe numbev oI vounds:
Tho numbor of rounds Is n socond nrnmofor of !C5. ThIs nrnmofor nIIows n frndooff
bofwoon hIghor sood nnd hIghor socurIfy.
VuvIubIe-IengtL key:
Tho koy Iongfh Is n fhIrd nrnmofor of !C5. AgnIn, fhIs nIIows n frndooff bofwoon sood
nnd socurIfy.
SImpIe:
!C5's sImIo sfrucfuro Is onsy fo ImIomonf nnd onsos fho fnsk of doformInIng fho
sfrongfh of fho nIgorIfhm.
Iow memovy vequIvement:
A Iow momory roquIromonf mnkos !C5 suIfnbIo for smnrf cnrds nnd ofhor dovIcos wIfh
rosfrIcfod momory.
HIgL secuvIty:
!C5 Is Infondod fo rovIdo hIgh socurIfy wIfh suIfnbIo nrnmofors.
utu-dependent votutIons:
!C5 Incorornfos rofnfIons (cIrcuInr bIf shIffs) whoso nmounf Is dnfn doondonf. ThIs
nonrs fo sfrongfhon fho nIgorIfhm ngnInsf cryfnnnIysIs.
RC5 Puvumetevs
!C5 Is ncfunIIy n fnmIIy of oncryfIon nIgorIfhms doformInod by fhroo
nrnmofors, ns foIIows:
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Thus, !C5 oncryfs bIocks of InInfoxf of Iongfh 32, 64, or l28 bIfs Info bIocks of
cIhorfoxf of fho snmo Iongfh. Tho koy Iongfh rnngos from 0 fo 2040 bIfs. A socIfIc
vorsIon of !C5 Is dosIgnnfod ns !C5-w/r/b.
Ior oxnmIo, !C5-32/l2/l6 hns 32-bIf words (64-bIf InInfoxf nnd cIhorfoxf
bIocks), l2 rounds In fho oncryfIon nnd docryfIon nIgorIfhms, nnd n koy Iongfh of l6
byfos (l28 bIfs). !Ivosf suggosfs fho uso of !C5-32/l2/l6 ns fho "nomInnI" vorsIon.
Key punsIon
!C5 orforms n comIox sof of oornfIons on fho socrof koy fo roduco n fofnI of I
subkoys. Two subkoys nro usod In onch round, nnd fwo subkoys nro usod on nn
nddIfIonnI oornfIon fhnf Is nof nrf of nny round, so I = 2r + 2. Inch subkoy Is ono
word (u bIfs) In Iongfh.
IoIow fIguro IIIusfrnfos fho fochnIquo usod fo gonornfo subkoys. Tho subkoys nro
sforod In n I word nrrny InboIod S|0], S|l], ., S|I l]. !sIng fho nrnmofors r nnd u ns
Inufs, fhIs nrrny Is InIfInIIzod fo n nrfIcuInr fIxod soudornndom bIf nfforn. Thon fho
I-byfo koy, K|0.Il], Is convorfod Info n c-word nrrny !|0.cl].
RC5 Key punsIon
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
AIso nofo fhnf bofh hnIvos of fho dnfn nro udnfod In onch round. Thus, ono
round of !C5 Is somowhnf oquIvnIonf fo fwo rounds of IS.
RC5 ncvyptIon und ecvyptIon
CRYPTION
ocryfIon Is onsIIy dorIvod from fho oncryfIon nIgorIfhm. In fhIs cnso, fho 2u
bIfs of cIhorfoxf nro InIfInIIy nssIgnod fo fho fwo ono-word vnrInbIos !r nnd !r. Wo
uso fho vnrInbIos !i nnd !i fo rofor fo fho Ioff nnd rIghf hnIf of fho dnfn boforo round
i hns bogun, whoro fho rounds nro numborod from r down fo l.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Tho fwo mosf sfrIkIng fonfuros of !C5 nro fho sImIIcIfy of fho nIgorIfhm nnd fho
uso of dnfn-doondonf rofnfIons. Tho rofnfIons nro fho onIy nonIInonr orfIon of fho
nIgorIfhm. !Ivosf fooIs fhnf bocnuso fho nmounf of rofnfIon vnrIos doondIng on fho
vnIuo of fho dnfn movIng fhrough fho nIgorIfhm, IInonr nnd dIfforonfInI cryfnnnIysIs
shouId bo moro dIffIcuIf. A numbor of sfudIos hnvo confIrmod fhIs suosIfIon.
RC5 MOS
To onhnnco fho offocfIvonoss of !C5 In InforoornbIo ImIomonfnfIons, !IC 2040
dofInos four dIfforonf modos of oornfIon:
RC5 bIock cIpLev:
ThIs Is fho rnw oncryfIon nIgorIfhm fhnf fnkos n fIxod-sIzo Inuf bIock (2u bIfs)
nnd roducos n cIhorfoxf bIock of fho snmo Iongfh usIng n frnnsformnfIon fhnf doonds
on n koy. ThIs Is offon known ns fho oIocfronIc codobook (ICI) modo.
RC5-CBC:
ThIs Is fho cIhor bIock chnInIng modo for !C5. CIC rocossos mossngos whoso
Iongfh Is n muIfIIo of fho !C5 bIock sIzo (muIfIIos of 2u bIfs). CIC rovIdos onhnncod
socurIfy comnrod fo ICI bocnuso roonfod bIocks of InInfoxf roduco dIfforonf bIocks
of cIhorfoxf.
RC5-CBC-Pud:
ThIs Is n CIC sfyIo of nIgorIfhm fhnf hnndIos InInfoxf of nny Iongfh. Tho
cIhorfoxf wIII bo Iongor fhnn fho InInfoxf by nf mosf fho sIzo of n sIngIo !C5 bIock.
RC5-CTS:
ThIs Is fho cIhorfoxf sfonIIng modo, whIch Is nIso n CIC sfyIo of nIgorIfhm. ThIs
modo hnndIos InInfoxf of nny Iongfh nnd roducos cIhorfoxf of oqunI Iongfh.
Whon n CIC modo Is usod fo oncryf n mossngo, somo fochnIquo Is noodod fo
coo wIfh mossngos fhnf nro nof n muIfIIo of fho bIock Iongfh. Tho sImIosf nronch
Is fo uso nddIng. In !C5, If Is nssumod fhnf fho mossngo Is nn Infogor numbor of byfos.
Af fho ond of fho mossngo from l fo II byfos of nddIng nro nddod, whoro II
oqunIs fho bIock sIzo for !C5 monsurod In byfos (II = 2u/8). Tho nd byfos nro nII fho
snmo nnd nro sof fo n byfo fhnf rorosonfs fho numbor of byfos of nddIng. Ior
oxnmIo, If fhoro nro 8 byfos of nddIng, onch byfo hns fho bIf nfforn 0000l000.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
InddIng mny nof nIwnys bo nrorInfo. Ior oxnmIo, ono mIghf wIsh fo sforo
fho oncryfod dnfn In fho snmo momory buffor fhnf orIgInnIIy confnInod fho InInfoxf.
In fhnf cnso, fho cIhorfoxf musf bo fho snmo Iongfh ns fho orIgInnI InInfoxf. Tho !C5-
CTS modo rovIdos fhIs cnnbIIIfy. Assumo fhnf fho Insf bIock of InInfoxf Is onIy I
byfos Iong, whoro I < 2u/8.
Tho oncryfIon soquonco Is ns foIIows:
l) Incryf fho fIrsf (A 2) bIocks usIng fho frndIfIonnI CIC fochnIquo.
2) IxcIusIvo-O! IAl wIfh fho rovIous cIhorfoxf bIock CA2 fo cronfo YAl.
3) Incryf YAl fo cronfo IAl.
4) SoIocf fho fIrsf I byfos of IAl fo cronfo CA.
5) Ind IA wIfh zoros nf fho ond nnd oxcIusIvo-O! wIfh IAl fo cronfo YA.
6) Incryf YA fo cronfo CAl.
Tho Insf fwo bIocks of fho cIhorfoxf nro CAl nnd CA.
RC5 CIpLevtet SteuIIng Mode
. CHARACTRISTICS OI AVANC SYMMTRIC BIOCK CIPHRS
Tho koy fonfuros found In somo of fhoso nIgorIfhms buf nof found In IS.
VuvIubIe key IengtL:
If nn oncryfIon nIgorIfhm Is dosIgnod fo bo oxfromoIy rosIsfnnf fo cryfnnnIysIs,
fhon Ifs sfrongfh Is doformInod by Ifs koy Iongfh: Tho Iongor fho koy, fho Iongor If fnkos
for n brufo-forco koy sonrch. IIowfIsh nnd !C5 rovIdo n vnrInbIo koy Iongfh.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
MIed opevutovs:
Tho uso of moro fhnn ono nrIfhmofIc nnd/or IooIonn oornfor comIIcnfos
cryfnnnIysIs, osocInIIy If fhoso oornfors do nof snfIsfy dIsfrIbufIvo nnd nssocInfIvo
Inws. ThIs nronch cnn rovIdo nonIInonrIfy ns nn nIfornnfIvo fo S-boxos. AII of fho
nIgorIfhms In fhIs chnfor, oxcof 3IS, uso mIxod oornfors.
utu-dependent votutIon:
Anofhor InfrIguIng nIfornnfIvo fo S-boxos Is fo uso rofnfIons fhnf doond on fho
dnfn. WIfh n suffIcIonf numbor of rounds, fhIs cnn rovIdo oxcoIIonf confusIon nnd
dIffusIon. Iurfhor, fho rofnfIons nro doondonf on fho bIocks of dnfn movIng fhrough
fho rounds, rnfhor fhnn on fho subkoys. ThIs wouId nonr fo mnko rocovory of fho
subkoys ovon moro dIffIcuIf. !C5 usos dnfn-doondonf rofnfIons.
Key-dependent S-boes:
!nfhor fhnn nffomf fo dosIgn fIxod S-boxos wIfh dosIrnbIo cryfogrnhIc
fonfuros, such ns Is dono In IS nnd CASTl28, fho confonf of fho S-boxos cnn bo
doondonf on fho koy. A dIfforonf koy yIoIds n dIfforonf S-box. ThIs nronch, osocInIIy
wIfh Inrgor S-boxos (o.g., 8x32), shouId yIoId hIghIy nonIInonr rosuIfs nnd shouId bo
vory dIffIcuIf fo cryfnnnIyzo. IIowfIsh usos koy-doondonf S-boxos.
IengtLy key scLeduIe uIgovItLm:
ThIs Is nn IngonIous fncfIc omIoyod In IIowfIsh. Tho gonornfIon of subkoys
fnkos much Iongor fhnn n sIngIo oncryfIon or docryfIon. Tho rosuIf Is fhnf fho offorf
for n brufo-forco nffnck Is gronfIy mngnIfIod.
VuvIubIe pIuIntet/cIpLevtet bIock IengtL:
A Iongor bIock Iongfh yIoIds gronfor cryfogrnhIc sfrongfh. AIso, n vnrInbIo
bIock Iongfh cnn rovIdo n monsuro of convonIonco, nIIowIng fho nIgorIfhm fo bo
fnIIorod fo fho nIIcnfIon. !C5 ndofs fhIs sfrnfogy.
VuvIubIe numbev oI vounds:
Ofhor fhIngs boIng oqunI, nn Incronso In fho numbor of rounds Incronsos
cryfnnnIyfIc sfrongfh. Of courso, nn Incronso In fho numbor of rounds Incronsos fho
oncryfIon/docryfIon fImo. AIIowIng for n vnrInbIo numbor of rounds nIIows fho usor fo
mnko n frndooff bofwoon socurIfy nnd oxocufIon sood. !C5 rovIdos for n vnrInbIo
numbor of rounds.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Stveum CIpLev Iugvum
Tho foIIowIng Imorfnnf dosIgn consIdornfIons for n sfronm cIhor:
l) Tho oncryfIon soquonco shouId hnvo n Inrgo orIod. A soudornndom numbor
gonornfor usos n funcfIon fhnf roducos n doformInIsfIc sfronm of bIfs whIch
ovonfunIIy roonfs. Tho Iongor fho orIod of roonf fho moro dIffIcuIf If wIII bo fo
do cryfnnnIysIs. ThIs Is ossonfInIIy fho snmo consIdornfIon fhnf wns dIscussod
wIfh roforonco fo fho VIgonoro cIhor, nnmoIy fhnf fho Iongor fho koyword fho
moro dIffIcuIf fho cryfnnnIysIs.
2) Tho koysfronm shouId nroxImnfo fho roorfIos of n fruo rnndom numbor
sfronm ns cIoso ns ossIbIo. Ior oxnmIo, fhoro shouId bo nn nroxImnfoIy oqunI
numbor of ls nnd 0s. If fho koy sfronm Is fronfod ns n sfronm of byfos, fhon nII of
fho 256 ossIbIo byfo vnIuos shouId nonr nroxImnfoIy oqunIIy offon. Tho
moro rnndom-nonrIng fho koysfronm Is, fho moro rnndomIzod fho cIhorfoxf
Is, mnkIng cryfnnnIysIs moro dIffIcuIf.
3) ofo from IIguro fhnf fho oufuf of fho soudornndom numbor gonornfor Is
condIfIonod on fho vnIuo of fho Inuf koy. To gunrd ngnInsf brufo-forco nffncks,
fho koy noods fo bo suffIcIonfIy Iong. Tho snmo consIdornfIons ns nIy for bIock
cIhors nro vnIId horo. Thus, wIfh curronf fochnoIogy, n koy Iongfh of nf Ionsf
l28 bIfs Is dosIrnbIo.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Speed CompuvIsons oI SymmetvIc CIpLevs on u PentIum II
TLe RC4 AIgovItLm
!C4 Is n sfronm cIhor dosIgnod In l98? by !on !Ivosf for !SA SocurIfy. If Is n
vnrInbIo koy sIzo sfronm cIhor wIfh byfo-orIonfod oornfIons. Tho nIgorIfhm Is bnsod
on fho uso of n rnndom ormufnfIon.
!C4 Is robnbIy fho mosf wIdoIy usod sfronm cIhor. If Is usod In fho SS!/T!S
(Socuro Sockofs !nyor/Trnnsorf !nyor SocurIfy) sfnndnrds fhnf hnvo boon dofInod for
communIcnfIon bofwoon wob browsors nnd sorvors. If Is nIso usod In fho WII (WIrod
IquIvnIonf IrIvncy) rofocoI fhnf Is nrf of fho IIII 802.ll wIroIoss !A sfnndnrd.
!C4 wns kof ns n frndo socrof by !SA SocurIfy.
Tho !C4 nIgorIfhm Is romnrknbIy sImIy nnd quIfo onsy fo oxInIn. A vnrInbIo-
Iongfh koy of from l fo 256 byfos (8 fo 2048 bIfs) Is usod fo InIfInIIzo n 256-byfo sfnfo
vocfor S, wIfh oIomonfs S|0], S|l], ., S|255]. Af nII fImos S confnIns n ormufnfIon of
nII 8-bIf numbors from 0 fhrough 255. Ior oncryfIon nnd docryfIon, n byfo k (soo
IIguro 6.8) Is gonornfod from S by soIocfIng ono of fho 255 onfrIos In n sysfomnfIc
fnshIon. As onch vnIuo of l Is gonornfod, fho onfrIos In S nro onco ngnIn ormufod.
InItIuIIzutIon oI S
To bogIn, fho onfrIos of S nro sof oqunI fo fho vnIuos from 0 fhrough 255 In
nscondIng ordor; fhnf Is; S|0] = 0, S|l] = l, ., S|255] = 255. A fomornry vocfor, T, Is
nIso cronfod. If fho Iongfh of fho koy K Is 256 byfos, fhon K Is frnnsforrod fo T.
OfhorwIso, for n koy of Iongfh le,len byfos, fho fIrsf le,len oIomonfs of T nro coIod
from K nnd fhon K Is roonfod ns mnny fImos ns nocossnry fo fIII ouf T.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
RC4
1.25 CONIINTIAIITY USING SYMMTRIC NCRYPTION
A. PIACMNT OI NCRYPTION IUNCTION
Tho fwo mnjor nronchos fo oncryfIon Incomonf: IInk nnd ond-fo-ond.
PotentIuI IocutIons Iov ConIIdentIuIIty Attucks
IIguro suggosfs fho fyos of communIcnfIons fncIIIfIos fhnf mIghf bo omIoyod
by such n worksfnfIon nnd fhoroforo gIvos nn IndIcnfIon of fho oInfs of vuInornbIIIfy.
Tho usor cnn ronch ofhor worksfnfIons, hosfs, nnd sorvors dIrocfIy on fho !A or on
ofhor !As In fho snmo buIIdIng fhnf nro Inforconnocfod wIfh brIdgos nnd roufors.
Horo, fhon, Is fho fIrsf oInf of vuInornbIIIfy. In fhIs cnso, fho mnIn concorn Is
onvosdroIng by nnofhor omIoyoo. If fho !A, fhrough n communIcnfIons sorvor or
ono of fho hosfs on fho !A, offors n dInI-In cnnbIIIfy, fhon If Is ossIbIo for nn
Infrudor fo gnIn nccoss fo fho !A nnd monIfor frnffIc.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Tho wIrIng cIosof IfsoIf Is vuInornbIo. If nn Infrudor cnn onofrnfo fo fho cIosof,
ho or sho cnn fn Info onch wIro fo doformIno whIch nro usod for dnfn frnnsmIssIon. In
nddIfIon, fho wIrIng cIosof mny rovIdo n IInk fo n mIcrownvo nnfonnn, oIfhor nn onrfh
sfnfIon for n snfoIIIfo IInk or n oInf-fo-oInf forrosfrInI mIcrownvo IInk. Tho wIrIng
cIosof mny nIso rovIdo n IInk fo n nodo of n nckof-swIfchIng nofwork.
An nffnck cnn fnko Inco on nny of fho communIcnfIons IInks. Ior ncfIvo nffncks,
fho nffnckor noods fo gnIn hysIcnI confroI of n orfIon of fho IInk nnd bo nbIo fo Insorf
nnd cnfuro frnnsmIssIons. Ior n nssIvo nffnck, fho nffnckor moroIy noods fo bo nbIo fo
obsorvo frnnsmIssIons. An nffnck cnn fnko fho form of nffomfs fo modIfy fho hnrdwnro
or soffwnro, fo gnIn nccoss fo fho momory of fho rocossor, or fo monIfor fho
oIocfromngnofIc omnnnfIons.
PoInts oI VuInevubIIIty
IInk vevsus nd-to-nd ncvyptIon
BusIc AppvoucLes
WIfh IInk oncryfIon, onch vuInornbIo communIcnfIons IInk Is oquIod on bofh
onds wIfh nn oncryfIon dovIco. Thus, nII frnffIc ovor nII communIcnfIons IInks Is
socurod. Ono of Ifs dIsndvnnfngos Is fhnf fho mossngo musf bo docryfod onch fImo If
onfors n swIfch (such ns n frnmo roIny swIfch) bocnuso fho swIfch musf rond fho
nddross (IogIcnI connocfIon numbor) In fho nckof hondor In ordor fo roufo fho frnmo.
Thus, fho mossngo Is vuInornbIo nf onch swIfch.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
WIfh ond-fo-ond oncryfIon, fho oncryfIon rocoss Is cnrrIod ouf nf fho fwo ond
sysfoms. Thus, ond-fo-ond oncryfIon roIIovos fho ond usor of concorns nbouf fho dogroo
of socurIfy of nofworks nnd IInks fhnf suorf fho communIcnfIon.
ConsIdor fho foIIowIng sIfunfIon. A hosf connocfs fo n frnmo roIny or ATM
nofwork, sofs u n IogIcnI connocfIon fo nnofhor hosf, nnd Is ronrod fo frnnsfor dnfn
fo fhnf ofhor hosf by usIng ond-fo-ond oncryfIon. nfn nro frnnsmIffod ovor such n
nofwork In fho form of nckofs fhnf consIsf of n hondor nnd somo usor dnfn.
Whnf nrf of onch nckof wIII fho hosf oncryf` Suoso fhnf fho hosf oncryfs
fho onfIro nckof, IncIudIng fho hondor. ThIs wIII nof work bocnuso, romombor, onIy fho
ofhor hosf cnn orform fho docryfIon. Tho nckof-swIfchIng nodo wIII rocoIvo nn
oncryfod nckof nnd bo unnbIo fo rond fho hondor.
Thoroforo, If wIII nof bo nbIo fo roufo fho nckof. If foIIows fhnf fho hosf mny
oncryf onIy fho usor dnfn orfIon of fho nckof nnd musf Ionvo fho hondor In fho cIonr.
Thus, wIfh ond-fo-ond oncryfIon, fho usor dnfn nro socuro.
ncvyptIon ucvoss u Pucket-SwItcLIng Netwovk
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
To nchIovo gronfor socurIfy, bofh IInk nnd ond-fo-ond oncryfIon nro noodod, ns
Is shown In nbovo fIguro. Whon bofh forms of oncryfIon nro omIoyod, fho hosf
oncryfs fho usor dnfn orfIon of n nckof usIng nn ond-fo-ond oncryfIon koy.
Tho onfIro nckof Is fhon oncryfod usIng n IInk oncryfIon koy. As fho nckof
frnvorsos fho nofwork, onch swIfch docryfs fho nckof, usIng n IInk oncryfIon koy fo
rond fho hondor, nnd fhon oncryfs fho onfIro nckof ngnIn for sondIng If ouf on fho
noxf IInk. ow fho onfIro nckof Is socuro oxcof for fho fImo fhnf fho nckof Is ncfunIIy
In fho momory of n nckof swIfch, nf whIch fImo fho nckof hondor Is In fho cIonr.
CLuvuctevIstIcs oI IInk und nd-to-nd ncvyptIon
IogIcuI PIucement oI nd-to-nd ncvyptIon IunctIon
WIfh IInk oncryfIon, fho oncryfIon funcfIon Is orformod nf n Iow IovoI of fho
communIcnfIons hIornrchy. In forms of fho oon sysfoms InforconnocfIon (OSI) modoI,
IInk oncryfIon occurs nf oIfhor fho hysIcnI or IInk Inyors.
IoIow fIguro shows fho oncryfIon funcfIon of fho fronf-ond rocossor (III). On
fho hosf sIdo, fho III nccofs nckofs. Tho usor dnfn orfIon of fho nckof Is
oncryfod, whIIo fho nckof hondor bynssos fho oncryfIon rocoss. Tho rosuIfIng
nckof Is doIIvorod fo fho nofwork.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
In fho oosIfo dIrocfIon, for nckofs nrrIvIng from fho nofwork, fho usor dnfn
orfIon Is docryfod nnd fho onfIro nckof Is doIIvorod fo fho hosf. If fho frnnsorf Inyor
funcfIonnIIfy (o.g., fho ISO frnnsorf rofocoI or TCI) Is ImIomonfod In fho fronf ond,
fhon fho frnnsorf-Inyor hondor wouId nIso bo Ioff In fho cIonr nnd fho usor dnfn orfIon
of fho frnnsorf rofocoI dnfn unIf Is oncryfod.
ncvyptIon Covevuge ImpIIcutIons oI Stove-und-Iovwuvd CommunIcutIons
Abovo fIguro IIIusfrnfos fho Issuos InvoIvod. In fhIs oxnmIo, nn oIocfronIc mnII
gnfowny Is usod fo Inforconnocf nn Infornofwork fhnf usos nn OSI-bnsod nrchIfocfuro
wIfh ono fhnf usos n TCI/II-bnsod nrchIfocfuro. In such n confIgurnfIon, fhoro Is no
ond-fo-ond rofocoI boIow fho nIIcnfIon Inyor. Tho frnnsorf nnd nofwork connocfIons
from onch ond sysfom formInnfo nf fho mnII gnfowny, whIch sofs u now frnnsorf nnd
nofwork connocfIons fo IInk fo fho ofhor ond sysfom.
Iurfhormoro, such n sconnrIo Is nof IImIfod fo fho cnso of n gnfowny bofwoon fwo
dIfforonf nrchIfocfuros. Ivon If bofh ond sysfoms uso TCI/II or OSI, fhoro nro Ionfy of
Insfnncos In ncfunI confIgurnfIons In whIch mnII gnfownys sIf bofwoon ofhorwIso
IsoInfod Infornofworks.
Thus, for nIIcnfIons IIko oIocfronIc mnII fhnf hnvo n sforo-nnd-forwnrd
cnnbIIIfy, fho onIy Inco fo nchIovo ond-fo-ond oncryfIon Is nf fho nIIcnfIon Inyor.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
WIfh nIIcnfIon-IovoI oncryfIon (IIguro n), onIy fho usor dnfn orfIon of n TCI
sogmonf Is oncryfod. Tho TCI, II, nofwork-IovoI, nnd IInk-IovoI hondors nnd IInk-IovoI
frnIIor nro In fho cIonr. Iy confrnsf, If oncryfIon Is orformod nf fho TCI IovoI (IIguro
b), fhon, on n sIngIo ond-fo-ond connocfIon, fho usor dnfn nnd fho TCI hondor nro
oncryfod. Tho II hondor romnIns In fho cIonr bocnuso If Is noodod by roufors fo roufo
fho II dnfngrnm from sourco fo dosfInnfIon.
ofo, howovor, fhnf If n mossngo nssos fhrough n gnfowny, fho TCI connocfIon
Is formInnfod nnd n now frnnsorf connocfIon Is oonod for fho noxf ho. Iurfhormoro,
fho gnfowny Is fronfod ns n dosfInnfIon by fho undorIyIng II. Thus, fho oncryfod
orfIons of fho dnfn unIf nro docryfod nf fho gnfowny.
If fho noxf ho Is ovor n TCI/II nofwork, fhon fho usor dnfn nnd TCI hondor nro
oncryfod ngnIn boforo frnnsmIssIon. Howovor, In fho gnfowny IfsoIf fho dnfn unIf Is
bufforod onfIroIy In fho cIonr. IInnIIy, for IInk-IovoI oncryfIon (IIguro c), fho onfIro
dnfn unIf oxcof for fho IInk hondor nnd frnIIor Is oncryfod on onch IInk, buf fho onfIro
dnfn unIf Is In fho cIonr nf onch roufor nnd gnfowny.
B. TRAIIIC CONIINTIAIITY
KnowIodgo nbouf fho numbor nnd Iongfh of mossngos bofwoon nodos mny onnbIo
nn oononf fo doformIno who Is fnIkIng fo whom. ThIs cnn hnvo obvIous ImIIcnfIons
In n mIIIfnry confIIcf. Ivon In commorcInI nIIcnfIons, frnffIc nnnIysIs mny yIoId
InformnfIon fhnf fho frnffIc gonornfors wouId IIko fo conconI.
Tho foIIowIng fyos of InformnfIon fhnf cnn bo dorIvod from n frnffIc nnnIysIs nffnck:
IdonfIfIos of nrfnors
How froquonfIy fho nrfnors nro communIcnfIng
Mossngo nfforn, mossngo Iongfh, or qunnfIfy of mossngos fhnf suggosf
Imorfnnf InformnfIon Is boIng oxchnngod
Tho ovonfs fhnf corroInfo wIfh socInI convorsnfIons bofwoon nrfIcuInr nrfnors
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Anofhor concorn roInfod fo frnffIc Is fho uso of frnffIc nfforns fo cronfo n covevt
cLunneI. A covorf chnnnoI Is n monns of communIcnfIon In n fnshIon unInfondod by fho
dosIgnors of fho communIcnfIons fncIIIfy. TyIcnIIy, fho chnnnoI Is usod fo frnnsfor
InformnfIon In n wny fhnf vIoInfos n socurIfy oIIcy.
IInk ncvyptIon AppvoucL
WIfh fho uso of IInk oncryfIon, nofwork-Inyor hondors (o.g., frnmo or coII
hondor) nro oncryfod, roducIng fho oorfunIfy for frnffIc nnnIysIs. Howovor, If Is sfIII
ossIbIo In fhoso cIrcumsfnncos for nn nffnckor fo nssoss fho nmounf of frnffIc on n
nofwork nnd fo obsorvo fho nmounf of frnffIc onforIng nnd IonvIng onch ond sysfom. An
offocfIvo counformonsuro fo fhIs nffnck Is frnffIc nddIng.
TrnffIc nddIng roducos cIhorfoxf oufuf confInuousIy, ovon In fho nbsonco of
InInfoxf. A confInuous rnndom dnfn sfronm Is gonornfod. Whon InInfoxf Is nvnIInbIo,
If Is oncryfod nnd frnnsmIffod. Whon Inuf InInfoxf Is nof rosonf, rnndom dnfn nro
oncryfod nnd frnnsmIffod. ThIs mnkos If ImossIbIo for nn nffnckor fo dIsfInguIsh
bofwoon fruo dnfn fIow nnd nddIng nnd fhoroforo ImossIbIo fo doduco fho nmounf of
frnffIc.
nd-to-nd ncvyptIon AppvoucL
TrnffIc nddIng Is ossonfInIIy n IInk oncryfIon funcfIon. If onIy ond-fo-ond
oncryfIon Is omIoyod, fhon fho monsuros nvnIInbIo fo fho dofondor nro moro IImIfod.
Ior oxnmIo, If oncryfIon Is ImIomonfod nf fho nIIcnfIon Inyor, fhon nn oononf
cnn doformIno whIch frnnsorf onfIfIos nro ongngod In dInIoguo. If oncryfIon
fochnIquos nro housod nf fho frnnsorf Inyor, fhon nofwork-Inyor nddrossos nnd frnffIc
nfforns romnIn nccossIbIo.
Ono fochnIquo fhnf mIghf rovo usofuI Is fo nd ouf dnfn unIfs fo n unIform
Iongfh nf oIfhor fho frnnsorf or nIIcnfIon IovoI. In nddIfIon, nuII mossngos cnn bo
Insorfod rnndomIy Info fho sfronm. Thoso fncfIcs dony nn oononf knowIodgo nbouf
fho nmounf of dnfn oxchnngod bofwoon ond usors nnd obscuro fho undorIyIng frnffIc
nfforn.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
TvuIIIc-PuddIng ncvyptIon evIce
C. KY ISTRIBUTION
Tho sfrongfh of nny cryfogrnhIc sysfom rosfs wIfh fho le, JieIriIuIion
IecInique, n form fhnf rofors fo fho monns of doIIvorIng n koy fo fwo nrfIos who wIsh fo
oxchnngo dnfn, wIfhouf nIIowIng ofhors fo soo fho koy. Ior fwo nrfIos A nnd I, koy
dIsfrIbufIon cnn bo nchIovod In n numbor of wnys, ns foIIows:
A cnn soIocf n koy nnd hysIcnIIy doIIvor If fo I.
A fhIrd nrfy cnn soIocf fho koy nnd hysIcnIIy doIIvor If fo A nnd I.
If A nnd I hnvo rovIousIy nnd roconfIy usod n koy, ono nrfy cnn frnnsmIf fho
now koy fo fho ofhor, oncryfod usIng fho oId koy.
If A nnd I onch hns nn oncryfod connocfIon fo n fhIrd nrfy C, C cnn doIIvor n
koy on fho oncryfod IInks fo A nnd I.
If fhoro nro A hosfs, fho numbor of roquIrod koys Is |A(A l)]/2. Tho uso of n koy
dIsfrIbufIon confor Is bnsod on fho uso of n hIornrchy of koys. Af n mInImum, fwo IovoIs
of koys nro usod (IIguro).
CommunIcnfIon bofwoon ond sysfoms Is oncryfod usIng n fomornry koy, offon
roforrod fo ns n sessIon key. SossIon koys nro frnnsmIffod In oncryfod form, usIng n
mustev key fhnf Is shnrod by fho koy dIsfrIbufIon confor nnd nn ond sysfom or usor.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
TLe Use oI u Key HIevuvcLy
A KY ISTRIBUTION SCNARIO
Tho koy dIsfrIbufIon concof cnn bo doIoyod In n numbor of wnys. A fyIcnI
sconnrIo Is IIIusfrnfod In boIow IIguro. Tho sconnrIo nssumos fhnf onch usor shnros n
unIquo mnsfor koy wIfh fho koy dIsfrIbufIon confor (KC).
!of us nssumo fhnf usor A wIshos fo osfnbIIsh n IogIcnI connocfIon wIfh I nnd
roquIros n ono-fImo sossIon koy fo rofocf fho dnfn frnnsmIffod ovor fho connocfIon. A
hns n socrof koy, Kn, known onIy fo IfsoIf nnd fho KC; sImIInrIy, I shnros fho mnsfor
koy Kb wIfh fho KC. Tho foIIowIng sfos occur:
|l] A Issuos n roquosf fo fho KC for n sossIon koy fo rofocf n IogIcnI connocfIon fo
I. Tho mossngo IncIudos fho IdonfIfy of A nnd I nnd n unIquo IdonfIfIor, l, for
fhIs frnnsncfIon, whIch wo rofor fo ns n nonce. Tho nonco mny bo n fImosfnm, n
counfor, or n rnndom numbor; fho mInImum roquIromonf Is fhnf If dIffors wIfh
onch roquosf. AIso, fo rovonf mnsquorndo, If shouId bo dIffIcuIf for nn oononf
fo guoss fho nonco. Thus, n rnndom numbor Is n good choIco for n nonco.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Key IstvIbutIon ScenuvIo
|2] Tho KC rosonds wIfh n mossngo oncryfod usIng Kn. Thus, A Is fho onIy ono
who cnn succossfuIIy rocoIvo fho mossngo, nnd A knows fhnf If orIgInnfod nf fho
KC. Tho mossngo IncIudos fwo Ifoms Infondod for A:
Tho ono-fImo sossIon koy, Ks, fo bo usod for fho sossIon
Tho orIgInnI roquosf mossngo, IncIudIng fho nonco, fo onnbIo A fo mnfch
fhIs rosonso wIfh fho nrorInfo roquosf
Thus, A cnn vorIfy fhnf Ifs orIgInnI roquosf wns nof nIforod boforo rocofIon by
fho KC nnd, bocnuso of fho nonco, fhnf fhIs Is nof n roIny of somo rovIous
roquosf. In nddIfIon, fho mossngo IncIudos fwo Ifoms Infondod for I:
Tho ono-fImo sossIon koy, Ks, fo bo usod for fho sossIon
An IdonfIfIor of A (o.g., Ifs nofwork nddross), IA
Thoso Insf fwo Ifoms nro oncryfod wIfh Kb (fho mnsfor koy fhnf fho KC shnros
wIfh I). Thoy nro fo bo sonf fo I fo osfnbIIsh fho connocfIon nnd rovo A's
IdonfIfy.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
|3] A sforos fho sossIon koy for uso In fho ucomIng sossIon nnd forwnrds fo I fho
InformnfIon fhnf orIgInnfod nf fho KC for I, nnmoIy, IKb|Ks || IA]. Iocnuso
fhIs InformnfIon Is oncryfod wIfh Kb, If Is rofocfod from onvosdroIng. I now
knows fho sossIon koy (Ks), knows fhnf fho ofhor nrfy Is A (from IA), nnd
knows fhnf fho InformnfIon orIgInnfod nf fho KC (bocnuso If Is oncryfod usIng
IKb).
Af fhIs oInf, n sossIon koy hns boon socuroIy doIIvorod fo A nnd I, nnd fhoy mny
bogIn fhoIr rofocfod oxchnngo. Howovor, fwo nddIfIonnI sfos nro dosIrnbIo:
|4] !sIng fho nowIy mInfod sossIon koy for oncryfIon, I sonds n nonco, 2, fo A.
|5] AIso usIng Ks, A rosonds wIfh f(2), whoro f Is n funcfIon fhnf orforms somo
frnnsformnfIon on 2 (o.g., nddIng ono).
HIRARCHICAI KY CONTROI
If Is nof nocossnry fo IImIf fho koy dIsfrIbufIon funcfIon fo n sIngIo KC. As nn
nIfornnfIvo, n hIornrchy of KCs cnn bo osfnbIIshod. Ior oxnmIo, fhoro cnn bo IocnI
KCs, onch rosonsIbIo for n smnII domnIn of fho ovornII Infornofwork, such ns n sIngIo
!A or n sIngIo buIIdIng.
If fwo onfIfIos In dIfforonf domnIns dosIro n shnrod koy, fhon fho corrosondIng
IocnI KCs cnn communIcnfo fhrough n gIobnI KC. A hIornrchIcnI schomo mInImIzos
fho offorf InvoIvod In mnsfor koy dIsfrIbufIon, bocnuso mosf mnsfor koys nro fhoso
shnrod by n IocnI KC wIfh Ifs IocnI onfIfIos.
SSSION KY IIITIM
Tho moro froquonfIy sossIon koys nro oxchnngod, fho moro socuro fhoy nro, Ior
connocfIon-orIonfod rofocoIs, ono obvIous choIco Is fo uso fho snmo sossIon koy for fho
Iongfh of fImo fhnf fho connocfIon Is oon, usIng n now sossIon koy for onch now
sossIon.
Ior n connocfIonIoss rofocoI, such ns n frnnsncfIon-orIonfod rofocoI, fhoro Is no
oxIIcIf connocfIon InIfInfIon or formInnfIon. Thus, If Is nof obvIous how offon ono noods
fo chnngo fho sossIon koy. Tho mosf socuro nronch Is fo uso n now sossIon koy for
onch oxchnngo.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
CNTRAIIZ KY CONTROI
Tho uso of n koy dIsfrIbufIon confor Imosos fho roquIromonf fhnf fho KC bo
frusfod nnd bo rofocfod from subvorsIon. ThIs roquIromonf cnn bo nvoIdod If koy
dIsfrIbufIon Is fuIIy doconfrnIIzod. A doconfrnIIzod nronch roquIros fhnf onch ond
sysfom bo nbIo fo communIcnfo In n socuro mnnnor wIfh nII ofonfInI nrfnor ond
sysfoms for urosos of sossIon koy dIsfrIbufIon. Thus, fhoro mny nood fo bo ns mnny ns
|n(n l)]/2 mnsfor koys for n confIgurnfIon wIfh n ond sysfoms.
A sossIon koy mny bo osfnbIIshod wIfh fho foIIowIng soquonco of sfos:
l. A Issuos n roquosf fo I for n sossIon koy nnd IncIudos n nonco, l.
2. I rosonds wIfh n mossngo fhnf Is oncryfod usIng fho shnrod mnsfor koy. Tho
rosonso IncIudos fho sossIon koy soIocfod by I, nn IdonfIfIor of I, fho vnIuo
f(l), nnd nnofhor nonco, 2.
3. !sIng fho now sossIon koy, A rofurns f(2) fo I.
ecentvuIIzed Key IstvIbutIon
CONTROIIING KY USAG
Tho concof of n koy hIornrchy nnd fho uso of nufomnfod koy dIsfrIbufIon
fochnIquos gronfIy roduco fho numbor of koys fhnf musf bo mnnunIIy mnnngod nnd
dIsfrIbufod. Tho dIfforonf fyos of sossIon koys on fho bnsIs of uso, such ns:
nfn-oncryfIng koy, for gonornI communIcnfIon ncross n nofwork
II-oncryfIng koy, for orsonnI IdonfIfIcnfIon numbors (IIs) usod In
oIocfronIc funds frnnsfor nnd oInf-of-snIo nIIcnfIons
IIIo-oncryfIng koy, for oncryfIng fIIos sforod In ubIIcIy nccossIbIo IocnfIons
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
To IIIusfrnfo fho vnIuo of sonrnfIng of koys by fyo, consIdor fho rIsk fhnf n
mnsfor koy Is Imorfod ns n dnfn-oncryfIng koy Info n dovIco. ormnIIy, fho mnsfor
koy Is hysIcnIIy socurod wIfhIn fho cryfogrnhIc hnrdwnro of fho koy dIsfrIbufIon
confor nnd of fho ond sysfoms.
SossIon koys oncryfod wIfh fhIs mnsfor koy nro nvnIInbIo fo nIIcnfIon
rogrnms, ns nro fho dnfn oncryfod wIfh such sossIon koys. Howovor, If n mnsfor koy Is
fronfod ns n sossIon koy, If mny bo ossIbIo for nn unnufhorIzod nIIcnfIon fo obfnIn
InInfoxf of sossIon koys oncryfod wIfh fhnf mnsfor koy.
Thus, If mny bo dosIrnbIo fo InsfIfufo confroIs In sysfoms fhnf IImIf fho wnys In
whIch koys nro usod, bnsod on chnrncforIsfIcs nssocInfod wIfh fhoso koys. Ono sImIo
Inn Is fo nssocInfo n fng wIfh onch koy.
Tho roosod fochnIquo Is for uso wIfh IS nnd mnkos uso of fho oxfrn 8 bIfs In
onch 64-bIf IS koy. Thnf Is, fho 8 non koy bIfs ordInnrIIy rosorvod for nrIfy chockIng
form fho koy fng. Tho bIfs hnvo fho foIIowIng InforrofnfIon:
; Ono bIf IndIcnfos whofhor fho koy Is n sossIon koy or n mnsfor koy.
; Ono bIf IndIcnfos whofhor fho koy cnn bo usod for oncryfIon.
; Ono bIf IndIcnfos whofhor fho koy cnn bo usod for docryfIon.
; Tho romnInIng bIfs nro snros for fufuro uso.
Iocnuso fho fng Is omboddod In fho koy, If Is oncryfod nIong wIfh fho koy whon
fhnf koy Is dIsfrIbufod, fhus rovIdIng rofocfIon. Tho drnwbncks of fhIs schomo nro
fhnf (l) fho fng Iongfh Is IImIfod fo 8 bIfs, IImIfIng Ifs fIoxIbIIIfy nnd funcfIonnIIfy; nnd
(2) bocnuso fho fng Is nof frnnsmIffod In cIonr form, If cnn bo usod onIy nf fho oInf of
docryfIon, IImIfIng fho wnys In whIch koy uso cnn bo confroIIod.
A moro fIoxIbIo schomo, roforrod fo ns fho confroI vocfor. In fhIs schomo, onch
sossIon koy hns nn nssocInfod confroI vocfor consIsfIng of n numbor of fIoIds fhnf socIfy
fho usos nnd rosfrIcfIons for fhnf sossIon koy. Tho Iongfh of fho confroI vocfor mny vnry.
Tho confroI vocfor Is cryfogrnhIcnIIy couIod wIfh fho koy nf fho fImo of koy
gonornfIon nf fho KC. Tho couIIng nnd docouIIng rocossos nro IIIusfrnfod In
IIguro. As n fIrsf sfo, fho confroI vocfor Is nssod fhrough n hnsh funcfIon fhnf
roducos n vnIuo whoso Iongfh Is oqunI fo fho oncryfIon koy Iongfh.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
ContvoI Vectov ncvyptIon und ecvyptIon
In ossonco, n hnsh funcfIon mns vnIuos from n Inrgor rnngo Info n smnIIor
rnngo, wIfh n ronsonnbIy unIform srond. Thus, for oxnmIo, If numbors In fho rnngo l
fo l00 nro hnshod Info numbors In fho rnngo l fo l0, nroxImnfoIy l0 of fho sourco
vnIuos shouId mn Info onch of fho fnrgof vnIuos.
Tho hnsh vnIuo Is fhon XO!od wIfh fho mnsfor koy fo roduco nn oufuf fhnf Is
usod ns fho koy Inuf for oncryfIng fho sossIon koy. Thus,
whoro Km Is fho mnsfor koy nnd Ks Is fho sossIon koy. Tho sossIon koy Is rocovorod In
InInfoxf by fho rovorso oornfIon:
Whon n sossIon koy Is doIIvorod fo n usor from fho KC, If Is nccomnnIod by fho
confroI vocfor In cIonr form. Tho sossIon koy cnn bo rocovorod onIy by usIng bofh fho
mnsfor koy fhnf fho usor shnros wIfh fho KC nnd fho confroI vocfor. Thus, fho IInkngo
bofwoon fho sossIon koy nnd Ifs confroI vocfor Is mnInfnInod.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
!so of fho confroI vocfor hns fwo ndvnnfngos ovor uso of nn 8-bIf fng. IIrsf, fhoro
Is no rosfrIcfIon on Iongfh of fho confroI vocfor, whIch onnbIos nrbIfrnrIIy comIox
confroIs fo bo Imosod on koy uso. Socond, fho confroI vocfor Is nvnIInbIo In cIonr form
nf nII sfngos of oornfIon. Thus, confroI of koy uso cnn bo oxorcIsod In muIfIIo
IocnfIons.
. RANOM NUMBR GNRATION
!nndom numbors Iny nn Imorfnnf roIo In fho uso of oncryfIon for vnrIous
nofwork socurIfy nIIcnfIons.
TH US OI RANOM NUMBRS
A numbor of nofwork socurIfy nIgorIfhms bnsod on cryfogrnhy mnko uso of
rnndom numbors.
Ior oxnmIo:
Tho uso of rnndom numbors for fho noncos frusfrnfos oononfs' offorfs fo
doformIno or guoss fho nonco.
SossIon koy gonornfIon, whofhor dono by n koy dIsfrIbufIon confor or by ono of
fho rIncInIs.
ConornfIon of koys for fho !SA ubIIc-koy oncryfIon nIgorIfhm
Thoso nIIcnfIons gIvo rIso fo fwo dIsfIncf nnd nof nocossnrIIy comnfIbIo
roquIromonfs for n soquonco of rnndom numbors: rnndomnoss nnd unrodIcfnbIIIfy.
Rundomness
Tho foIIowIng fwo crIforIn nro usod fo vnIIdnfo fhnf n soquonco of numbors Is rnndom:
Uniform Jiotribution:
Tho dIsfrIbufIon of numbors In fho soquonco shouId bo unIform; fhnf Is, fho
froquoncy of occurronco of onch of fho numbors shouId bo nroxImnfoIy fho snmo.
1nJepenJence:
o ono vnIuo In fho soquonco cnn bo Inforrod from fho ofhors.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
UnpvedIctubIIIty
WIfh "fruo" rnndom soquoncos, onch numbor Is sfnfIsfIcnIIy Indoondonf of ofhor
numbors In fho soquonco nnd fhoroforo unrodIcfnbIo. Cnro musf bo fnkon fhnf nn
oononf nof bo nbIo fo rodIcf fufuro oIomonfs of fho soquonco on fho bnsIs of onrIIor
oIomonfs.
Souvces oI Rundom Numbevs
CryfogrnhIc nIIcnfIons fyIcnIIy mnko uso of nIgorIfhmIc fochnIquos for
rnndom numbor gonornfIon. Thoso nIgorIfhms nro doformInIsfIc nnd fhoroforo roduco
soquoncos of numbors fhnf nro nof sfnfIsfIcnIIy rnndom. Howovor, If fho nIgorIfhm Is
good, fho rosuIfIng soquoncos wIII nss mnny ronsonnbIo fosfs of rnndomnoss. Such
numbors nro roforrod fo ns pseudovundom numbevs.
PSUORANOM NUMBR GNRATORS (PRNGS)
Tho mosf wIdoIy usod fochnIquo for soudornndom numbor gonornfIon Is nn
nIgorIfhm fIrsf roosod by !ohmor, whIch Is known ns fho IInonr congruonfInI mofhod.
Tho nIgorIfhm Is nrnmoforIzod wIfh four numbors, ns foIIows:
Tho soquonco of rnndom numbors {Xn} Is obfnInod vIn fho foIIowIng IfornfIvo oqunfIon:
If m, n, c, nnd X0 nro Infogors, fhon fhIs fochnIquo wIII roduco n soquonco of Infogors
wIfh onch Infogor In fho rnngo 0 _ Xn < m.
Tho soIocfIon of vnIuos for n, c, nnd m Is crIfIcnI In dovoIoIng n good rnndom
numbor gonornfor. Ior oxnmIo, consIdor n = c = l. Tho soquonco roducod Is obvIousIy
nof snfIsfncfory. ow consIdor fho vnIuos n = ?, c = 0, m = 32, nnd x0 = l. ThIs
gonornfos fho soquonco {?, l?, 23, l, ?, ofc.}, whIch Is nIso cIonrIy unsnfIsfncfory.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
Of fho 32 ossIbIo vnIuos, onIy 4 nro usod; fhus, fho soquonco Is snId fo hnvo n
orIod of 4. If, Insfond, wo chnngo fho vnIuo of n fo 5, fhon fho soquonco Is {5, 25, 29, l?,
2l, 9, l3, l, ofc.}, whIch Incronsos fho orIod fo 8.
Wo wouId IIko n fo bo vory Inrgo, so fhnf fhoro Is fho ofonfInI for roducIng n
Iong sorIos of dIsfIncf rnndom numbors. A common crIforIon Is fhnf n bo nonrIy oqunI fo
fho mnxImum rorosonfnbIo nonnognfIvo Infogor for n gIvon comufor. Thus, n vnIuo of
n nonr fo or oqunI fo 2
3l
Is fyIcnIIy choson.
Throo crIforIn fo bo usod In ovnIunfIng n rnndom numbor gonornfor:
T1:
Tho funcfIon shouId bo n fuII-orIod gonornfIng funcfIon. Thnf Is, fho funcfIon shouId
gonornfo nII fho numbors bofwoon 0 nnd m boforo roonfIng.
T2:
Tho gonornfod soquonco shouId nonr rnndom. Iocnuso If Is gonornfod
doformInIsfIcnIIy, fho soquonco Is nof rnndom. Thoro Is n vnrIofy of sfnfIsfIcnI fosfs fhnf
cnn bo usod fo nssoss fho dogroo fo whIch n soquonco oxhIbIfs rnndomnoss.
T3:
Tho funcfIon shouId ImIomonf offIcIonfIy wIfh 32-bIf nrIfhmofIc.
Tho sfrongfh of fho IInonr congruonfInI nIgorIfhm Is fhnf If fho muIfIIIor nnd
moduIus nro roorIy choson, fho rosuIfIng soquonco of numbors wIII bo sfnfIsfIcnIIy
IndIsfInguIshnbIo from n soquonco drnwn nf rnndom (buf wIfhouf roIncomonf) from
fho sof l, 2, . . . , nl.
Iuf fhoro Is nofhIng rnndom nf nII nbouf fho nIgorIfhm, nnrf from fho choIco of
fho InIfInI vnIuo X0. Onco fhnf vnIuo Is choson, fho romnInIng numbors In fho soquonco
foIIow doformInIsfIcnIIy. ThIs hns ImIIcnfIons for cryfnnnIysIs.
CRYPTOGRAPHICAIIY GNRAT RANOM NUMBRS
Ior cryfogrnhIc nIIcnfIons, If mnkos somo sonso fo fnko ndvnnfngo of fho
oncryfIon IogIc nvnIInbIo fo roduco rnndom numbors. A numbor of monns hnvo boon
usod, nnd In fhIs subsocfIon wo Iook nf fhroo rorosonfnfIvo oxnmIos.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
CycIIc ncvyptIon
In fhIs cnso, fho rocoduro Is usod fo gonornfo sossIon koys from n mnsfor koy. A
counfor wIfh orIod rovIdos Inuf fo fho oncryfIon IogIc. Ior oxnmIo, If 56-bIf IS
koys nro fo bo roducod, fhon n counfor wIfh orIod 256 cnn bo usod. Affor onch koy Is
roducod, fho counfor Is Incromonfod by ono.
Thus, fho soudornndom numbors roducod by fhIs schomo cycIo fhrough n fuII
orIod: Inch of fho oufufs X0, Xl, . . . Xl Is bnsod on n dIfforonf counfor vnIuo nnd
fhoroforo X0 = Xl =. . . = Xl. Iocnuso fho mnsfor koy Is rofocfod, If Is nof
comufnfIonnIIy fonsIbIo fo doduco nny of fho socrof koys fhrough knowIodgo of ono or
moro onrIIor koys.
Pseudovundom Numbev GenevutIon Ivom u Countev
S Output Ieedbuck Mode
Tho oufuf foodbnck (OII) modo of IS, cnn bo usod for koy gonornfIon ns woII
ns for sfronm oncryfIon. ofIco fhnf fho oufuf of onch sfngo of oornfIon Is n 64-bIf
vnIuo, of whIch fho j Ioffmosf bIfs nro fod bnck for oncryfIon.
SuccossIvo 64-bIf oufufs consfIfufo n soquonco of soudornndom numbors wIfh
good sfnfIsfIcnI roorfIos. Tho uso of n rofocfod mnsfor koy rofocfs fho gonornfod
sossIon koys.
UNIT 1 : IUNAMNTAIS NTWORK SCURITY
umpIe OpevutIon oI BBS Genevutov
Tho IIS Is roforrod fo ns n cryfogrnhIcnIIy socuro soudornndom bIf gonornfor
(CSI!IC). A CSI!IC Is dofInod ns ono fhnf nssos fho noxf-bIf fosf, whIch, In furn, Is
dofInod ns foIIows: "A soudornndom bIf gonornfor Is snId fo nss fho noxf-bIf fosf If
fhoro Is nof n oIynomInI-fImo nIgorIfhm fhnf, on Inuf of fho fIrsf k bIfs of nn oufuf
soquonco?, cnn rodIcf fho (k + l)sf bIf wIfh robnbIIIfy sIgnIfIcnnfIy gronfor fhnn l/2."
Tho socurIfy of IIS Is bnsod on fho dIffIcuIfy of fncforIng n. Thnf Is, gIvon n, wo
nood fo doformIno Ifs fwo rImo fncfors p nnd q.
*** N***
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
UNIT II
PUBIIC KY NCRYPTION
2.1 PUBIIC-KY CRYPTOGRAPHY
IubIIc-koy nIgorIfhms nro bnsod on mnfhomnfIcnI funcfIons rnfhor fhnn on
subsfIfufIon nnd ormufnfIon. Moro Imorfnnf, ubIIc-koy cryfogrnhy Is nsymmofrIc,
InvoIvIng fho uso of fwo sonrnfo koys, In confrnsf fo symmofrIc oncryfIon, whIch usos
onIy ono koy. Tho uso of fwo koys hns rofound consoquoncos In fho nrons of
confIdonfInIIfy, koy dIsfrIbufIon, nnd nufhonfIcnfIon.
Common mIsconcofIons concornIng ubIIc-koy oncryfIon:
l. IubIIc-koy oncryfIon Is moro socuro from cryfnnnIysIs fhnn Is symmofrIc
oncryfIon.
2. IubIIc-koy oncryfIon Is n gonornI-uroso fochnIquo fhnf hns mndo symmofrIc
oncryfIon obsoIofo.
3. Koy dIsfrIbufIon Is frIvInI whon usIng ubIIc-koy oncryfIon, comnrod fo fho
rnfhor cumborsomo hnndshnkIng InvoIvod wIfh koy dIsfrIbufIon confors for
symmofrIc oncryfIon.
2.2 PRINCIPIS OI PUBIIC-KY CRYPTOSYSTMS
Tho concof of ubIIc-koy cryfogrnhy ovoIvod from nn nffomf fo nffnck fwo of
fho mosf dIffIcuIf robIoms nssocInfod wIfh symmofrIc oncryfIon. Tho ILUVW SUREOHP Is
fhnf of koy dIsfrIbufIon. Koy dIsfrIbufIon undor symmofrIc oncryfIon roquIros oIfhor
(l) fhnf fwo communIcnnfs nIrondy shnro n koy, whIch somohow hns boon dIsfrIbufod fo
fhom; or (2) fho uso of n koy dIsfrIbufIon confor.
Tho VHFRQGSUREOHP fhnf IffIo ondorod, nnd ono fhnf wns nnronfIy unroInfod
fo fho fIrsf wns fhnf of "dIgIfnI sIgnnfuros." If fho uso of cryfogrnhy wns fo bocomo
wIdosrond, nof jusf In mIIIfnry sIfunfIons buf for commorcInI nnd rIvnfo urosos,
fhon oIocfronIc mossngos nnd documonfs wouId nood fho oquIvnIonf of sIgnnfuros usod
In nor documonfs.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
PubIIc-Key Cvyptosystems
AsymmofrIc nIgorIfhms roIy on ono koy for oncryfIon nnd n dIfforonf buf roInfod
koy for docryfIon. Thoso nIgorIfhms hnvo fho foIIowIng Imorfnnf chnrncforIsfIc:
If Is comufnfIonnIIy InfonsIbIo fo doformIno fho docryfIon koy gIvon onIy
knowIodgo of fho cryfogrnhIc nIgorIfhm nnd fho oncryfIon koy.
In nddIfIon, somo nIgorIfhms, such ns !SA, nIso oxhIbIf fho foIIowIng chnrncforIsfIc:
IIfhor of fho fwo roInfod koys cnn bo usod for oncryfIon, wIfh fho ofhor usod for
docryfIon.
A ubIIc-koy oncryfIon schomo hns sIx IngrodIonfs:
PIuIntet: ThIs Is fho rondnbIo mossngo or dnfn fhnf Is fod Info fho nIgorIfhm ns
Inuf.
ncvyptIon uIgovItLm: Tho oncryfIon nIgorIfhm orforms vnrIous
frnnsformnfIons on fho InInfoxf.
PubIIc und pvIvute keys: ThIs Is n nIr of koys fhnf hnvo boon soIocfod so fhnf
If ono Is usod for oncryfIon, fho ofhor Is usod for docryfIon. Tho oxncf
frnnsformnfIons orformod by fho nIgorIfhm doond on fho ubIIc or rIvnfo koy
fhnf Is rovIdod ns Inuf.
CIpLevtet: ThIs Is fho scrnmbIod mossngo roducod ns oufuf. If doonds on
fho InInfoxf nnd fho koy. Ior n gIvon mossngo, fwo dIfforonf koys wIII roduco
fwo dIfforonf cIhorfoxfs.
ecvyptIon uIgovItLm: ThIs nIgorIfhm nccofs fho cIhorfoxf nnd fho
mnfchIng koy nnd roducos fho orIgInnI InInfoxf.
Tho ossonfInI sfos nro fho foIIowIng:
l) Inch usor gonornfos n nIr of koys fo bo usod for fho oncryfIon nnd docryfIon
of mossngos.
2) Inch usor Incos ono of fho fwo koys In n ubIIc rogIsfor or ofhor nccossIbIo fIIo.
ThIs Is fho ubIIc koy. Tho comnnIon koy Is kof rIvnfo.
3) If Iob wIshos fo sond n confIdonfInI mossngo fo AIIco, Iob oncryfs fho mossngo
usIng AIIco's ubIIc koy.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
4) Whon AIIco rocoIvos fho mossngo, sho docryfs If usIng hor rIvnfo koy. o ofhor
rocIIonf cnn docryf fho mossngo bocnuso onIy AIIco knows AIIco's rIvnfo koy.
PubIIc-Key CvyptogvupLy
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
WIfh fhIs nronch, nII nrfIcInnfs hnvo nccoss fo ubIIc koys, nnd rIvnfo koys
nro gonornfod IocnIIy by onch nrfIcInnf nnd fhoroforo nood novor bo dIsfrIbufod. As
Iong ns n usor's rIvnfo koy romnIns rofocfod nnd socrof, IncomIng communIcnfIon Is
socuro. Af nny fImo, n sysfom cnn chnngo Ifs rIvnfo koy nnd ubIIsh fho comnnIon
ubIIc koy fo roInco Ifs oId ubIIc koy.
ConventIonuI ncvyptIon PubIIc-Key ncvyptIon
Needed to Wovk: Needed to Wovk:
l) Tho snmo nIgorIfhm wIfh fho snmo
koy Is usod for oncryfIon nnd
docryfIon.
2) Tho sondor nnd rocoIvor musf shnro
fho nIgorIfhm nnd fho koy.
l) Ono nIgorIfhm Is usod for oncryfIon
nnd docryfIon wIfh n nIr of koys,
ono for oncryfIon nnd ono for
docryfIon.
2) Tho sondor nnd rocoIvor musf onch
hnvo ono of fho mnfchod nIr of koys
(nof fho snmo ono).
Needed Iov SecuvIty: Needed Iov SecuvIty:
l) Tho koy musf bo kof socrof.
2) If musf bo ImossIbIo or nf Ionsf
ImrncfIcnI fo docIhor n mossngo If
no ofhor InformnfIon Is nvnIInbIo.
3) KnowIodgo of fho nIgorIfhm Ius
snmIos of cIhorfoxf musf bo
InsuffIcIonf fo doformIno fho koy.
l) Ono of fho fwo koys musf bo kof
socrof.
2) If musf bo ImossIbIo or nf Ionsf
ImrncfIcnI fo docIhor n mossngo If
no ofhor InformnfIon Is nvnIInbIo.
3) KnowIodgo of fho nIgorIfhm Ius ono
of fho koys Ius snmIos of cIhorfoxf
musf bo InsuffIcIonf fo doformIno fho
ofhor koy.
TnbIo summnrIzos somo of fho Imorfnnf nsocfs of symmofrIc nnd ubIIc-koy
oncryfIon. To dIscrImInnfo bofwoon fho fwo, wo rofor fo fho koy usod In symmofrIc
oncryfIon ns n socrof koy.
Tho fwo koys usod for nsymmofrIc oncryfIon nro roforrod fo ns fho ubIIc koy
nnd fho rIvnfo koy. InvnrInbIy, fho rIvnfo koy Is kof socrof, buf If Is roforrod fo ns n
rIvnfo koy rnfhor fhnn n socrof koy fo nvoId confusIon wIfh symmofrIc oncryfIon.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
Offon, howovor, fho ndvorsnry Is Inforosfod In boIng nbIo fo rond fufuro mossngos
ns woII, In whIch cnso nn nffomf Is mndo fo rocovor I!b by gonornfIng nn
osfImnfo .
Tho fwo roInfod koys cnn bo usod for oncryfIon, wIfh fho ofhor boIng usod for
docryfIon. ThIs onnbIos n rnfhor dIfforonf cryfogrnhIc schomo fo bo ImIomonfod.
Tho uso of ubIIc-koy oncryfIon fo rovIdo nufhonfIcnfIon:
Y = I (I!n, X)
X = (I!n, Y)
PubIIc-Key Cvyptosystem: AutLentIcutIon
In fhIs cnso, A ronros n mossngo fo I nnd oncryfs If usIng A's rIvnfo koy
boforo frnnsmIffIng If. I cnn docryf fho mossngo usIng A's ubIIc koy. Iocnuso fho
mossngo wns oncryfod usIng A's rIvnfo koy, onIy A couId hnvo ronrod fho mossngo.
Thoroforo, fho onfIro oncryfod mossngo sorvos ns n GLJLWDOVLJQDWXUH. In nddIfIon, If Is
ImossIbIo fo nIfor fho mossngo wIfhouf nccoss fo A's rIvnfo koy, so fho mossngo Is
nufhonfIcnfod bofh In forms of sourco nnd In forms of dnfn InfogrIfy.
Ivon In fho cnso of comIofo oncryfIon, ns shown In nbovo IIguro, fhoro Is no
rofocfIon of confIdonfInIIfy bocnuso nny obsorvor cnn docryf fho mossngo by usIng fho
sondor's ubIIc koy.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
In brond forms, wo cnn cInssIfy fho uso of ubIIc-koy cryfosysfoms Info fhroo
cnfogorIos:
ncvyptIon/decvyptIon: Tho sondor oncryfs n mossngo wIfh fho rocIIonf's
ubIIc koy.
IgItuI sIgnutuve: Tho sondor "sIgns" n mossngo wIfh Ifs rIvnfo koy. SIgnIng Is
nchIovod by n cryfogrnhIc nIgorIfhm nIIod fo fho mossngo or fo n smnII bIock
of dnfn fhnf Is n funcfIon of fho mossngo.
Key ecLunge: Two sIdos cooornfo fo oxchnngo n sossIon koy. SovornI dIfforonf
nronchos nro ossIbIo, InvoIvIng fho rIvnfo koy(s) of ono or bofh nrfIos.
Somo nIgorIfhms nro suIfnbIo for nII fhroo nIIcnfIons, whorons ofhors cnn bo usod onIy
for ono or fwo of fhoso nIIcnfIons.
Applicutiono for Public-Key Cryptooyotemo
AIgovItLm ncvyptIon/ecvyptIon IgItuI SIgnutuve Key cLunge
!SA Yos Yos Yos
IIIIfIc Curvo Yos Yos Yos
IffIo-HoIImnn o o Yos
SS o Yos o
RequIvements Iov PubIIc-Key CvyptogvupLy
IffIo nnd HoIImnn osfuInfod fhIs sysfom wIfhouf domonsfrnfIng fhnf such
nIgorIfhms oxIsf. Howovor, fhoy dId Iny ouf fho condIfIons fhnf such nIgorIfhms musf
fuIfIII:
l. If Is comufnfIonnIIy onsy for n nrfy I fo gonornfo n nIr (ubIIc koy I!b,
rIvnfo koy I!b).
2. If Is comufnfIonnIIy onsy for n sondor A, knowIng fho ubIIc koy nnd fho
mossngo fo bo oncryfod, M, fo gonornfo fho corrosondIng cIhorfoxf:
C = I(I!b, M)
3. If Is comufnfIonnIIy onsy for fho rocoIvor I fo docryf fho rosuIfIng cIhorfoxf
usIng fho rIvnfo koy fo rocovor fho orIgInnI mossngo:
M = (I!b, C) = |I!b, I(I!b, M)]
4. If Is comufnfIonnIIy InfonsIbIo for nn ndvorsnry, knowIng fho ubIIc koy, I!b, fo
doformIno fho rIvnfo koy, I!b.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
PubIIc-Key CvyptunuIysIs
As wIfh symmofrIc oncryfIon, n ubIIc-koy oncryfIon schomo Is vuInornbIo fo n
brufo-forco nffnck. Tho counformonsuro Is fho snmo: !so Inrgo koys. Tho koy sIzo musf
bo Inrgo onough fo mnko brufo-forco nffnck ImrncfIcnI buf smnII onough for rncfIcnI
oncryfIon nnd docryfIon.
In rncfIco, fho koy sIzos fhnf hnvo boon roosod do mnko brufo-forco nffnck
ImrncfIcnI buf rosuIf In oncryfIon/docryfIon soods fhnf nro foo sIow for gonornI-
uroso uso. IubIIc-koy oncryfIon Is curronfIy confInod fo koy mnnngomonf nnd
sIgnnfuro nIIcnfIons.
Anofhor form of nffnck Is fo fInd somo wny fo comufo fho rIvnfo koy gIvon fho
ubIIc koy. To dnfo, If hns nof boon mnfhomnfIcnIIy rovon fhnf fhIs form of nffnck Is
InfonsIbIo for n nrfIcuInr ubIIc-koy nIgorIfhm.
Thus, nny gIvon nIgorIfhm, IncIudIng fho wIdoIy usod !SA nIgorIfhm, Is susocf.
Tho hIsfory of cryfnnnIysIs shows fhnf n robIom fhnf sooms InsoIubIo from ono
orsocfIvo cnn bo found fo hnvo n soIufIon If Iookod nf In nn onfIroIy dIfforonf wny.
IInnIIy, fhoro Is n form of nffnck fhnf Is ocuIInr fo ubIIc-koy sysfoms. ThIs Is,
In ossonco, n robnbIo-mossngo nffnck. Suoso, for oxnmIo, fhnf n mossngo woro fo bo
sonf fhnf consIsfod soIoIy of n 56-bIf IS koy. An ndvorsnry couId oncryf nII ossIbIo
56-bIf IS koys usIng fho ubIIc koy nnd couId dIscovor fho oncryfod koy by mnfchIng
fho frnnsmIffod cIhorfoxf.
Thus, no mnffor how Inrgo fho koy sIzo of fho ubIIc-koy schomo, fho nffnck Is
roducod fo n brufo-forco nffnck on n 56-bIf koy. ThIs nffnck cnn bo fhwnrfod by
nondIng somo rnndom bIfs fo such sImIo mossngos.
2.3 TH RSA AIGORITHM
IffIo nnd HoIImnn Infroducod n now nronch fo cryfogrnhy nnd, In offocf,
chnIIongod cryfoIogIsfs fo como u wIfh n cryfogrnhIc nIgorIfhm fhnf mof fho
roquIromonfs for ubIIc-koy sysfoms.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
Ono of fho fIrsf of fho rosonsos fo fho chnIIongo wns dovoIood In l9?? by !on
!Ivosf, AdI ShnmIr, nnd !on AdIomnn nf MIT nnd fIrsf ubIIshod In l9?8. Tho !SA
schomo Is n bIock cIhor In whIch fho InInfoxf nnd cIhorfoxf nro Infogors bofwoon 0
nnd n l for somo n. A fyIcnI sIzo for n Is l024 bIfs, or 309 docImnI dIgIfs. Thnf Is, n Is
Ioss fhnn 2
l024
.
escvIptIon oI tLe AIgovItLm
Tho schomo dovoIood by !Ivosf, ShnmIr, nnd AdIomnn mnkos uso of nn
oxrossIon wIfh oxononfInIs. IInInfoxf Is oncryfod In bIocks, wIfh onch bIock hnvIng n
bInnry vnIuo Ioss fhnn somo numbor n. Thnf Is, fho bIock sIzo musf bo Ioss fhnn or
oqunI fo Iog2(n); In rncfIco, fho bIock sIzo Is I bIfs, whoro 2
I
< n _ 2
I+l
. IncryfIon nnd
docryfIon nro of fho foIIowIng form, for somo InInfoxf bIock M nnd cIhorfoxf bIock C:
C = M
o
mod n
M = C
d
mod n = (M
o
)
d
mod n = M
od
mod n
Iofh sondor nnd rocoIvor musf know fho vnIuo of n. Tho sondor knows fho vnIuo
of o, nnd onIy fho rocoIvor knows fho vnIuo of d. Thus, fhIs Is n ubIIc-koy oncryfIon
nIgorIfhm wIfh n ubIIc koy of I! = {o, n} nnd n rIvnfo koy of I! = {d, n}.
Ior fhIs nIgorIfhm fo bo snfIsfncfory for ubIIc-koy oncryfIon, fho foIIowIng
roquIromonfs musf bo mof:
l. If Is ossIbIo fo fInd vnIuos of o, d, n such fhnf M
od
mod n = M for nII M < n.
2. If Is roInfIvoIy onsy fo cnIcuInfo mod M
o
mod n nnd C
d
for nII vnIuos of M < n.
3. If Is InfonsIbIo fo doformIno d gIvon o nnd n.
Ior now, wo focus on fho fIrsf roquIromonf nnd consIdor fho ofhor quosfIons Infor. Wo
nood fo fInd n roInfIonshI of fho form
M
od
mod n = M
Tho rocodIng roInfIonshI hoIds If o nnd d nro muIfIIIcnfIvo Invorsos moduIo (n),
whoro (n) Is fho IuIor fofIonf funcfIon. Ior , q rImo, (q) = ( - l)(q - l) Tho
roInfIonshI bofwoon o nnd d cnn bo oxrossod ns
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
TLe RSA AIgovItLm
Tho rosuIfIng koys nro ubIIc koy I! = {?,l8?} nnd rIvnfo koy I! = {23,l8?}.
Tho oxnmIo shows fho uso of fhoso koys for n InInfoxf Inuf of M = 88. Ior
oncryfIon, wo nood fo cnIcuInfo C = 88
?
mod l8?.
IxIoIfIng fho roorfIos of moduInr nrIfhmofIc, wo cnn do fhIs ns foIIows:
88
?
mod l8? = |(88
4
mod l8?) x (88
2
mod l8?) x (88
l
mod l8?)] mod l8?
88
l
mod l8? = 88
88
2
mod l8? = ??44 mod l8? = ??
88
4
mod l8? = 59,969,536 mod l8? = l32
88
?
mod l8? = (88 x ?? x l32) mod l8? = 894,432 mod l8? = ll
Ior docryfIon, wo cnIcuInfo M = ll
23
mod l8?:
ll
23
mod l8? = |(ll
l
mod l8?) x (ll
2
mod l8?) x (ll
4
mod l8?) x (ll
8
mod l8?) x (ll
8
mod l8?)] mod l8?
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
ll
l
mod l8? = ll
ll
2
mod l8? = l2l
ll
4
mod l8? = l4,64l mod l8? = 55
ll
8
mod l8? = 2l4,358,88l mod l8? = 33
ll
23
mod l8? = (ll x l2l x 55 x 33 x 33) mod l8? = ?9,?20,245 mod l8? = 88
CompututIonuI Aspects
Tho Issuo of fho comIoxIfy of fho comufnfIon roquIrod fo uso !SA. Thoro nro
ncfunIIy fwo Issuos fo consIdor: oncryfIon/docryfIon nnd koy gonornfIon. !of us Iook
fIrsf nf fho rocoss of oncryfIon nnd docryfIon nnd fhon consIdor koy gonornfIon.
ponentIutIon In ModuIuv AvItLmetIc
Iofh oncryfIon nnd docryfIon In !SA InvoIvo rnIsIng nn Infogor fo nn Infogor
owor, mod n. If fho oxononfInfIon Is dono ovor fho Infogors nnd fhon roducod moduIo
n, fho InformodInfo vnIuos wouId bo gnrgnnfunn. IorfunnfoIy, ns fho rocodIng oxnmIo
shows, wo cnn mnko uso of n roorfy of moduInr nrIfhmofIc:
|(n mod n) x (b mod n)] mod n = (n x b) mod n
Thus, wo cnn roduco InformodInfo rosuIfs moduIo n. ThIs mnkos fho cnIcuInfIon
rncfIcnI.
Anofhor consIdornfIon Is fho offIcIoncy of oxononfInfIon, bocnuso wIfh !SA wo
nro donIIng wIfh ofonfInIIy Inrgo oxononfs. To soo how offIcIoncy mIghf bo Incronsod,
consIdor fhnf wo wIsh fo comufo x
l6
.
A sfrnIghfforwnrd nronch roquIros l5 muIfIIIcnfIons:
x
l6
= x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
Howovor, wo cnn nchIovo fho snmo fInnI rosuIf wIfh onIy four muIfIIIcnfIons If
wo roonfodIy fnko fho squnro of onch nrfInI rosuIf, succossIvoIy formIng x
2
, x
4
, x
8
, x
l6
.
As nnofhor oxnmIo, suoso wo wIsh fo cnIcuInfo x
ll
mod n for somo Infogors x nnd n.
Obsorvo fhnf x
ll
= x
l+2+8
= (x)(x
2
)(x
8
). In fhIs cnso wo comufo x mod n, x
2
mod n, x
4
mod
n, nnd x
8
mod n nnd fhon cnIcuInfo |(x mod n) x (x
2
mod n) x (x
8
mod n) mod n.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
Key GenevutIon
Ioforo fho nIIcnfIon of fho ubIIc-koy cryfosysfom, onch nrfIcInnf musf
gonornfo n nIr of koys. ThIs InvoIvos fho foIIowIng fnsks:
oformInIng fwo rImo numbors, nnd q
SoIocfIng oIfhor o or d nnd cnIcuInfIng fho ofhor
IIrsf, consIdor fho soIocfIon of nnd q. Iocnuso fho vnIuo of n = q wIII bo known fo
nny ofonfInI ndvorsnry, fo rovonf fho dIscovory of nnd q by oxhnusfIvo mofhods,
fhoso rImos musf bo choson from n suffIcIonfIy Inrgo sof (I.o., nnd q musf bo Inrgo
numbors). On fho ofhor hnnd, fho mofhod usod for fIndIng Inrgo rImos musf bo
ronsonnbIy offIcIonf.
Af rosonf, fhoro nro no usofuI fochnIquos fhnf yIoId nrbIfrnrIIy Inrgo rImos, so
somo ofhor monns of fnckIIng fho robIom Is noodod. Tho rocoduro fhnf Is gonornIIy
usod Is fo Ick nf rnndom nn odd numbor of fho dosIrod ordor of mngnIfudo nnd fosf
whofhor fhnf numbor Is rImo. If nof, Ick succossIvo rnndom numbors unfII ono Is
found fhnf fosfs rImo. Tho rocoduro for IckIng n rImo numbor Is ns foIIows.
1. IIck nn odd Infogor n nf rnndom (o.g., usIng n soudornndom numbor gonornfor).
2. IIck nn Infogor n < n nf rnndom.
3. Iorform fho robnbIIIsfIc rImnIIfy fosf, such ns MIIIor-!nbIn, wIfh n ns n
nrnmofor. If n fnIIs fho fosf, rojocf fho vnIuo n nnd go fo sfo l.
4. If n hns nssod n suffIcIonf numbor of fosfs, nccof n; ofhorwIso, go fo sfo 2.
TLe SecuvIty oI RSA
Iour ossIbIo nronchos fo nffnckIng fho !SA nIgorIfhm nro ns foIIows:
; Bvute Iovce: ThIs InvoIvos fryIng nII ossIbIo rIvnfo koys.
; MutLemutIcuI uttucks: Thoro nro sovornI nronchos, nII oquIvnIonf In offorf fo
fncforIng fho roducf of fwo rImos.
; TImIng uttucks: Thoso doond on fho runnIng fImo of fho docryfIon nIgorIfhm.
; CLosen cIpLevtet uttucks: ThIs fyo of nffnck oxIoIfs roorfIos of fho !SA
nIgorIfhm.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
Tho dofonso ngnInsf fho brufo-forco nronch Is fho snmo for !SA ns for ofhor
cryfosysfoms, nnmoIy, uso n Inrgo koy snco. Thus, fho Inrgor fho numbor of bIfs In d,
fho boffor. Howovor, bocnuso fho cnIcuInfIons InvoIvod, bofh In koy gonornfIon nnd In
oncryfIon/docryfIon, nro comIox, fho Inrgor fho sIzo of fho koy, fho sIowor fho sysfom
wIII run.
The Fuctoring Problem
Wo cnn IdonfIfy fhroo nronchos fo nffnckIng !SA mnfhomnfIcnIIy:
Incfor n Info Ifs fwo rImo fncfors. ThIs onnbIos cnIcuInfIon of (n) = (-l) x (q-l),
whIch, In furn, onnbIos doformInnfIon of d o
-l
(mod (n)).
oformIno (n) dIrocfIy, wIfhouf fIrsf doformInIng nnd q. AgnIn, fhIs onnbIos
doformInnfIon of d o
-l
(mod (n)).
oformIno d dIrocfIy, wIfhouf fIrsf doformInIng (n).
Timing Attucko
A fImIng nffnck Is somowhnf nnnIogous fo n burgInr guossIng fho combInnfIon of
n snfo by obsorvIng how Iong If fnkos for somoono fo furn fho dInI from numbor fo
numbor. AIfhough fho fImIng nffnck Is n sorIous fhronf, fhoro nro sImIo
counformonsuros fhnf cnn bo usod, IncIudIng fho foIIowIng:
l. Constunt eponentIutIon tIme: Insuro fhnf nII oxononfInfIons fnko fho snmo
nmounf of fImo boforo rofurnIng n rosuIf. ThIs Is n sImIo fIx buf doos dogrndo
orformnnco.
2. Rundom deIuy: Ioffor orformnnco couId bo nchIovod by nddIng n rnndom
doIny fo fho oxononfInfIon nIgorIfhm fo confuso fho fImIng nffnck. Kochor
oInfs ouf fhnf If dofondors don'f ndd onough noIso, nffnckors couId sfIII succood
by coIIocfIng nddIfIonnI monsuromonfs fo comonsnfo for fho rnndom doInys.
3. BIIndIng: MuIfIIy fho cIhorfoxf by n rnndom numbor boforo orformIng
oxononfInfIon. ThIs rocoss rovonfs fho nffnckor from knowIng whnf
cIhorfoxf bIfs nro boIng rocossod InsIdo fho comufor nnd fhoroforo rovonfs
fho bIf-by-bIf nnnIysIs ossonfInI fo fho fImIng nffnck.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
!SA nfn SocurIfy Incorornfos n bIIndIng fonfuro Info somo of Ifs roducfs. Tho
rIvnfo-koy oornfIon M = C
d
mod n Is ImIomonfod ns foIIows:
Conornfo n socrof rnndom numbor r bofwoon 0 nnd n l.
Comufo C' = C(r
o
) mod n, whoro o Is fho ubIIc oxononf.
Comufo M' = (C')
d
mod n wIfh fho ordInnry !SA ImIomonfnfIon.
Comufo M = M'r
l
mod n. In fhIs oqunfIon, r
l
Is fho muIfIIIcnfIvo Invorso of r
mod n. If cnn bo domonsfrnfod fhnf fhIs Is fho corrocf rosuIf by obsorvIng fhnf r
od
mod n =r mod n.
!SA nfn SocurIfy roorfs n 2 fo l0 orformnnco onnIfy for bIIndIng.
2.4 NUMBR THORY
A numbor of concofs from numbor fhoory nro ossonfInI In fho dosIgn of ubIIc-
koy cryfogrnhIc nIgorIfhms.
Key Pointo
; A rImo numbor Is nn Infogor fhnf cnn onIy bo dIvIdod wIfhouf romnIndor by
osIfIvo nnd nognfIvo vnIuos of IfsoIf nnd l. IrImo numbors Iny n crIfIcnI roIo
bofh In numbor fhoory nnd In cryfogrnhy.
; Two fhooroms fhnf Iny Imorfnnf roIos In ubIIc-koy cryfogrnhy nro Iormnf's
fhoorom nnd IuIor's fhoorom.
; An Imorfnnf roquIromonf In n numbor of cryfogrnhIc nIgorIfhms Is fho nbIIIfy
fo chooso n Inrgo rImo numbor. An nron of ongoIng rosonrch Is fho dovoIomonf
of offIcIonf nIgorIfhms for doformInIng If n rnndomIy choson Inrgo Infogor Is n
rImo numbor.
; Iscrofo IognrIfhms nro fundnmonfnI fo n numbor of ubIIc-koy nIgorIfhms.
Iscrofo IognrIfhms nro nnnIogous fo ordInnry IognrIfhms, buf oornfo ovor
moduInr nrIfhmofIc.
PvImes undev 2000
Any Infogor n > l cnn bo fncforod In n unIquo wny ns
whoro l < 2 < ... < f nro rImo numbors nnd whoro onch Is n osIfIvo Infogor. ThIs Is
known ns fho fundnmonfnI fhoorom of nrIfhmofIc; n roof cnn bo found In nny foxf on
numbor fhoory.
9l = ? x l3
3600 = 2
4
x 3
2
x 5
2
ll0ll = ? x ll
2
x l3
If I Is fho sof of nII rImo numbors, fhon nny osIfIvo Infogor n cnn bo wrIffon
unIquoIy In fho foIIowIng form:
Tho rIghf-hnnd sIdo Is fho roducf ovor nII ossIbIo rImo numbors ; for nny
nrfIcuInr vnIuo of n, mosf of fho oxononfs n wIII bo 0. MuIfIIIcnfIon of fwo numbors
Is oquIvnIonf fo nddIng fho corrosondIng oxononfs. CIvon
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
ofIno k = nb wo know fhnf fho Infogor k cnn bo oxrossod ns fho roducf of owors of
rImos:
If foIIows fhnf k = n + b for nII I. If k = gcd(n,b) fhon k = mIn(n, b) for
nII . oformInIng fho rImo fncfors of n Inrgo numbor Is no onsy fnsk, so fho rocodIng
roInfIonshI doos nof dIrocfIy Iond fo n rncfIcnI mofhod of cnIcuInfIng fho gronfosf
common dIvIsor.
A.2 IRMAT'S AN UIR'S THORMS
Two fhooroms fhnf Iny Imorfnnf roIos In ubIIc-koy cryfogrnhy nro Iormnf's
fhoorom nnd IuIor's fhoorom.
PvooI:
ConsIdor fho sof of osIfIvo Infogors Ioss fhnn :{l,2,..., - l} nnd muIfIIy onch
oIomonf by n, moduIo , fo gof fho sof X = {n mod , 2n mod , . . . ( - l)n mod }. ono
of fho oIomonfs of X Is oqunI fo zoro bocnuso doos nof dIvIdo n. Iurfhormoro no fwo of
fho Infogors In X nro oqunI.
To soo fhIs, nssumo fhnf jn kn(mod ) whoro l _ j < k _ - l. Iocnuso n Is
roInfIvoIy rImo fo , wo cnn oIImInnfo n from bofh sIdos of fho oqunfIon rosuIfIng In: j
k(modo ). ThIs Insf oqunIIfy Is ImossIbIo bocnuso j nnd k nro bofh osIfIvo Infogors
Ioss fhnn . Thoroforo, wo know fhnf fho ( l) oIomonfs of X nro nII osIfIvo Infogors,
wIfh no fwo oIomonfs oqunI.
Wo cnn concIudo fho X consIsfs of fho sof of Infogors {l,2,..., l} In somo ordor.
MuIfIIyIng fho numbors In bofh sofs nnd fnkIng fho rosuIf mod yIoIds
n x 2n x ... x ( - l) |(l x 2 x ... x ( - l)](modo )
( - l)! n
l
( - l)!(mod )
Wo cnn cnncoI fho ( - l)! form bocnuso If Is roInfIvoIy rImo fo . ThIs yIoIds fho
oqunfIon, . An nIfornnfIvo form of Iormnf's fhoorom Is nIso usofuI: If
Is rImo nnd n Is n osIfIvo Infogor, fhon .
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
Erumple:
n = ?, = l9
?
2
= 49 ll(mod l9)
?
4
l2l ?(mod l9)
?
8
49 ?(mod l9)
?
l6
l2l ?(mod l9)
n
l
= ?
l8
= ?
l6
x ?
2
? x ll l(mod l9)
uIev's TotIent IunctIon
Ioforo rosonfIng IuIor's fhoorom, wo nood fo Infroduco nn Imorfnnf qunnfIfy In
numbor fhoory, roforrod fo ns IuIor's fofIonf funcfIon nnd wrIffon (n), dofInod ns fho
numbor of osIfIvo Infogors Ioss fhnn n nnd roInfIvoIy rImo fo n. Iy convonfIon, (l)=l.
Erumple:
oformIno (3?) nnd (35).
Iocnuso 3? Is rImo, nII of fho osIfIvo Infogors from l fhrough 36 nro roInfIvoIy
rImo fo 3?. Thus (3?) = 36.
To doformIno (35), wo IIsf nII of fho osIfIvo Infogors Ioss fhnn 35 fhnf nro
roInfIvoIy rImo fo If:
l, 2, 3, 4, 6, 8, 9, ll, l2, l3, l6, l?, l8,
l9, 22, 23, 24, 26, 2?, 29, 3l, 32, 33, 34
Thoro nro 24 numbors on fho IIsf, so (35) = 24.
If shouId bo cIonr fhnf for n rImo numbor , () = l. ow suoso fhnf wo
hnvo fwo rImo numbors nnd q, wIfh = q. Thon wo cnn show fhnf for n = q,
(n) = (q) = () x (q) = ( - l) x (q x l).
To soo fhnf (n) = () x (q), consIdor fhnf fho sof of osIfIvo Infogors Ioss fhnf
n Is fho sof {l,..., (q - l)}. Tho Infogors In fhIs sof fhnf nro nof roInfIvoIy rImo fo n nro
fho sof {,2 ,..., (q - l)} nnd fho sof {q,2q,..., ( - l)q} AccordIngIy,
(n) = (q - l) |(q - l) + ( - l)]
= q ( + q) + l
= ( - l) x (q - l) = () x (q)
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
uIev's TLeovem
IuIor's fhoorom sfnfos fhnf for ovory n nnd n fhnf nro roInfIvoIy rImo:
Proof:
Is fruo If n Is rImo, bocnuso In fhnf cnso (n) = (n - l) nnd
Iormnf's fhoorom hoIds. Howovor, If nIso hoIds for nny Infogor n. !ocnII fhnf (n) Is fho
numbor of osIfIvo Infogors Ioss fhnn n fhnf nro roInfIvoIy rImo fo n. ConsIdor fho sof
of such Infogors, InboIod ns foIIows:
! {xl, x2,..., x (n)}
Thnf Is, onch oIomonf xI of ! Is n unIquo osIfIvo Infogor Ioss fhnn n wIfh gcd(xI, n) = l.
ow muIfIIy onch oIomonf by n, moduIo n:
S = {(nxl mod n), (nx2 mod n),..., (nx (n) mod n)}
Tho sof S Is n ormufnfIon of !, by fho foIIowIng IIno of ronsonIng:
l. Iocnuso n Is roInfIvoIy rImo fo n nnd xI Is roInfIvoIy rImo fo n, nxI musf nIso bo
roInfIvoIy rImo fo n. Thus, nII fho mombors of S nro Infogors fhnf nro Ioss fhnn
n nnd fhnf nro roInfIvoIy rImo fo n.
2. Thoro nro no duIIcnfos In S. If nxI mod n = nxj mod n fhon xI = xj.
Thoroforo,
ThIs Is fho snmo IIno of ronsonIng nIIod fo fho roof of Iormnf's fhoorom. As Is
fho cnso for Iormnf's fhoorom, nn nIfornnfIvo form of fho fhoorom Is nIso usofuI:
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
Proof:
Iormnf's fhoorom sfnfos fhnf n
nl
l (mod n) If n Is rImo. Wo hnvo - l = 2
k
q.
Thus, wo know fhnf n
l
mod = n
2kq
mod = l. Thus, If wo Iook nf fho soquonco of
numbors
wo know fhnf fho Insf numbor In fho IIsf hns vnIuo l. Iurfhor, onch numbor In
fho IIsf Is fho squnro of fho rovIous numbor.
Thoroforo, ono of fho foIIowIng ossIbIIIfIos musf bo fruo:
; Tho fIrsf numbor on fho IIsf, nnd fhoroforo nII subsoquonf numbors on fho IIsf,
oqunIs l.
; Somo numbor on fho IIsf doos nof oqunI l, buf Ifs squnro mod doos oqunI l. Iy
vIrfuo of fho fIrsf roorfy of rImo numbors dofInod nbovo, wo know fhnf fho
onIy numbor fhnf snfIsfIos fhIs condIfIon - l Is So, In fhIs cnso, fho IIsf confnIns
nn oIomonf oqunI fo - l.
ThIs comIofos fho roof.
Tho rocoduro TIST fnkos n cnndIdnfo Infogor n ns Inuf nnd rofurns fho rosuIf
comosIfo If n Is dofInIfoIy nof n rImo, nnd fho rosuIf InconcIusIvo If n mny or mny nof
bo n rImo.
TEST (n)
l. IInd Infogors k, q, wIfh k > 0, q odd, so fhnf (n l = 2
k
q);
2. SoIocf n rnndom Infogor n, l < n < n l;
3. If n
q
mod n = l fhon rofurn("InconcIusIvo");
4. for j = 0 fo k l do
5. If n
2jq
mod n n - l fhon rofurn("InconcIusIvo");
6. rofurn("comosIfo");
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
PvobubIIIstIc ConsIdevutIon
RepeuteJ Uoe of the Miller-Rubin Algorithm
+RZ FDQ ZH XVH WKH 0LOOHU5DELQ DOJRULWKP WR GHWHUPLQH ZLWK D KLJK GHJUHH RI
FRQILGHQFHZKHWKHURUQRWDQLQWHJHULVSULPH"
If cnn bo shown fhnf gIvon nn odd numbor n fhnf Is nof rImo nnd n rnndomIy
choson Infogor, n wIfh l < n < n l, fho robnbIIIfy fhnf TIST wIII rofurn InconcIusIvo
(I.o., fnII fo dofocf fhnf n Is nof rImo) Is Ioss fhnn l/4. Thus, If f dIfforonf vnIuos of n nro
choson, fho robnbIIIfy fhnf nII of fhom wIII nss TIST (rofurn InconcIusIvo) for n Is Ioss
fhnn (l/4)
f
Ior H[DPSOH, for f = l0, fho robnbIIIfy fhnf n nonrImo numbor wIII nss nII fon
fosfs Is Ioss fhnn l0
6
. Thus, for n suffIcIonfIy Inrgo vnIuo of f, wo cnn bo confIdonf fhnf n
Is rImo If MIIIor's fosf nIwnys rofurns InconcIusIvo. ThIs gIvos us n bnsIs for
doformInIng whofhor nn odd Infogor n Is rImo wIfh n ronsonnbIo dogroo of confIdonco.
Tho SURFHGXUH Is ns foIIows: !oonfodIy Invoko TIST (n) usIng rnndomIy choson
vnIuos for n. If, nf nny oInf, TIST rofurns comosIfo, fhon n Is doformInod fo bo
nonrImo. If TIST confInuos fo rofurn InconcIusIvo for f fosfs, for n suffIcIonfIy Inrgo
vnIuo of f, nssumo fhnf n Is rImo.
Diotribution of Primeo
If Is worfh nofIng how mnny numbors nro IIkoIy fo bo rojocfod boforo n rImo
numbor Is found usIng fho MIIIor-!nbIn fosf, or nny ofhor fosf for rImnIIfy. A rosuIf
from numbor fhoory, known ns fho rImo numbor fhoorom, sfnfos fhnf fho rImos nonr
n nro sncod on fho nvorngo ono ovory (In n) Infogors. Thus, on nvorngo, ono wouId hnvo
fo fosf on fho ordor of In(n) Infogors boforo n rImo Is found. Iocnuso nII ovon Infogors
cnn bo ImmodInfoIy rojocfod, fho corrocf fIguro Is 0.5 In(n).
Ior oxnmIo, If n rImo on fho ordor of mngnIfudo of 2
200
woro soughf, fhon nbouf
0.5 In(2
200
) = 69 frInIs wouId bo noodod fo fInd n rImo. Howovor, fhIs fIguro Is jusf nn
nvorngo. In somo Incos nIong fho numbor IIno, rImos nro cIosoIy nckod, nnd In ofhor
Incos fhoro nro Inrgo gns.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
ConsIdor n rImIfIvo roof n for somo rImo numbor (fho nrgumonf cnn bo
dovoIood for nonrImos ns woII). Thon wo know fhnf fho owors of n from l fhrough
( - l) roduco onch Infogor from l fhrough ( - l) oxncfIy onco. Wo nIso know fhnf nny
Infogor b snfIsfIos
b r(mod ) for somo r, whoro 0 _ r _ ( - l)
by fho dofInIfIon of moduInr nrIfhmofIc. If foIIows fhnf for nny Infogor b nnd n rImIfIvo
roof n of rImo numbor , wo cnn fInd n unIquo oxononf I such fhnf
b n
I
(mod ) whoro 0 _ I _ ( - l)
ThIs oxononf I Is roforrod fo ns fho dIscvete IoguvItLm of fho numbor b for fho
bnso n (mod ). Wo donofo fhIs vnIuo ns dIogn.(b). ofo fho foIIowIng:
ow consIdor
x = n
dIogn,(x)
mod y = n
dIogn,(y)
mod
xy = n
dIogn,(xy)
mod
!sIng fho ruIos of moduInr muIfIIIcnfIon,
Iuf now consIdor IuIor's fhoorom, whIch sfnfos fhnf, for ovory n nnd n fhnf nro
roInfIvoIy rImo:
n
(n)
l(mod n)
Any osIfIvo Infogor z cnn bo oxrossod In fho form z = q + kf(n), wIfh 0 _ q < (n).
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
B.1 KY MANAGMNT
Ono of fho mnjor roIos of ubIIc-koy oncryfIon hns boon fo nddross fho robIom
of koy dIsfrIbufIon. Thoro nro ncfunIIy fwo dIsfIncf nsocfs fo fho uso of ubIIc-koy
cryfogrnhy In fhIs rognrd:
Tho dIsfrIbufIon of ubIIc koys
Tho uso of ubIIc-koy oncryfIon fo dIsfrIbufo socrof koys
IstvIbutIon oI PubIIc Keys
SovornI fochnIquos hnvo boon roosod for fho dIsfrIbufIon of ubIIc koys.
VIrfunIIy nII fhoso roosnIs cnn bo grouod Info fho foIIowIng gonornI schomos:
IubIIc nnnouncomonf
IubIIcIy nvnIInbIo dIrocfory
IubIIc-koy nufhorIfy
IubIIc-koy corfIfIcnfos
PubIIc Announcement oI PubIIc Keys
Tho oInf of ubIIc-koy oncryfIon Is fhnf fho ubIIc koy Is ubIIc.
If fhoro Is somo brondIy nccofod ubIIc-koy nIgorIfhm, such ns !SA, nny
nrfIcInnf cnn sond hIs or hor ubIIc koy fo nny ofhor nrfIcInnf or brondcnsf
fho koy fo fho communIfy nf Inrgo.
I!n IubIIc Koy of usor A
Iub IubIIc Koy of usor I
UncontvoIIed PubIIc-Key IstvIbutIon
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
Isudvuntuges
Anyono cnn forgo such n ubIIc nnnouncomonf. Thnf Is, somo usor couId rofond
fo bo usor A nnd sond n ubIIc koy fo nnofhor nrfIcInnf or brondcnsf such n ubIIc
koy. !nfII such fImo ns usor A dIscovors fho forgory nnd nIorfs ofhor nrfIcInnfs, fho
forgor Is nbIo fo rond nII oncryfod mossngos Infondod for A nnd cnn uso fho forgod koys
for nufhonfIcnfIon.
PubIIcIy AvuIIubIe Ivectovy
Iy mnInfnInIng n ubIIcIy nvnIInbIo dynnmIc dIrocfory of ubIIc koys.
MnInfonnnco nnd dIsfrIbufIon of fho ubIIc dIrocfory wouId hnvo fo bo fho rosonsIbIIIfy
of somo frusfod onfIfy or orgnnIznfIon.
PubIIc-Key PubIIcutIon
Such n schomo wouId IncIudo fho foIIowIng oIomonfs:
l. Tho nufhorIfy mnInfnIns n dIrocfory wIfh n {nnmo, ubIIc koy} onfry for onch
nrfIcInnf.
2. Inch nrfIcInnf rogIsfors n ubIIc koy wIfh fho dIrocfory nufhorIfy. !ogIsfrnfIon
wouId hnvo fo bo In orson or by somo form of socuro nufhonfIcnfod
communIcnfIon.
3. A nrfIcInnf mny roInco fho oxIsfIng koy wIfh n now ono nf nny fImo, oIfhor
bocnuso of fho dosIro fo roInco n ubIIc koy fhnf hns nIrondy boon usod for n
Inrgo nmounf of dnfn, or bocnuso fho corrosondIng rIvnfo koy hns boon
comromIsod In somo wny.
4. InrfIcInnfs couId nIso nccoss fho dIrocfory oIocfronIcnIIy. Ior fhIs uroso,
socuro, nufhonfIcnfod communIcnfIon from fho nufhorIfy fo fho nrfIcInnf Is
mnndnfory.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
Advuntuges:
ThIs schomo Is cIonrIy moro socuro fhnn IndIvIdunI ubIIc nnnouncomonfs.
Isudvuntuges:
If nn ndvorsnry succoods In obfnInIng or comufIng fho rIvnfo koy of fho
dIrocfory nufhorIfy, fho ndvorsnry couId nufhorIfnfIvoIy nss ouf counforfoIf ubIIc koys
nnd subsoquonfIy Imorsonnfo nny nrfIcInnf nnd onvosdro on mossngos sonf fo nny
nrfIcInnf. Anofhor wny fo nchIovo fho snmo ond Is for fho ndvorsnry fo fnmor wIfh
fho rocords kof by fho nufhorIfy.
PubIIc-Key AutLovIty
As boforo, fho sconnrIo nssumos fhnf n confrnI nufhorIfy mnInfnIns n dynnmIc
dIrocfory of ubIIc koys of nII nrfIcInnfs. In nddIfIon, onch nrfIcInnf roIInbIy knows
n ubIIc koy for fho nufhorIfy, wIfh onIy fho nufhorIfy knowIng fho corrosondIng
rIvnfo koy.
Tho foIIowIng otepo occur:
l. A sonds n fImo sfnmod mossngo fo fho ubIIc-koy nufhorIfy confnInIng n roquosf
for fho curronf ubIIc koy of I.
2. Tho nufhorIfy rosonds wIfh n mossngo fhnf Is oncryfod usIng fho nufhorIfy's
rIvnfo koy, I!nufh Thus, A Is nbIo fo docryf fho mossngo usIng fho nufhorIfy's
ubIIc koy. Thoroforo, A Is nssurod fhnf fho mossngo orIgInnfod wIfh fho nufhorIfy.
Tho mossngo IncIudos fho foIIowIng:
V I's ubIIc koy, I!b whIch A cnn uso fo oncryf mossngos dosfInod for I
V Tho orIgInnI roquosf, fo onnbIo A fo mnfch fhIs rosonso wIfh fho corrosondIng
onrIIor roquosf nnd fo vorIfy fhnf fho orIgInnI roquosf wns nof nIforod boforo
rocofIon by fho nufhorIfy
V Tho orIgInnI fImosfnm, so A cnn doformIno fhnf fhIs Is nof nn oId mossngo from
fho nufhorIfy confnInIng n koy ofhor fhnn I's curronf ubIIc koy
3. A sforos I's ubIIc koy nnd nIso usos If fo oncryf n mossngo fo I confnInIng nn
IdonfIfIor of A (IA) nnd n nonco (l), whIch Is usod fo IdonfIfy fhIs frnnsncfIon
unIquoIy.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
4, 5. I rofrIovos A's ubIIc koy from fho nufhorIfy In fho snmo mnnnor ns A rofrIovod
I's ubIIc koy.
Af fhIs oInf, ubIIc koys hnvo boon socuroIy doIIvorod fo A nnd I, nnd fhoy mny bogIn
fhoIr rofocfod oxchnngo. Howovor, fwo nddIfIonnI sfos nro dosIrnbIo:
6. I sonds n mossngo fo A oncryfod wIfh I!n nnd confnInIng A's nonco (l) ns woII ns n
now nonco gonornfod by I (2) Iocnuso onIy I couId hnvo docryfod mossngo (3), fho
rosonco of l In mossngo (6) nssuros A fhnf fho corrosondonf Is I.
?. A rofurns 2, oncryfod usIng I's ubIIc koy, fo nssuro I fhnf Ifs corrosondonf Is A.
Public-Key Diotribution Scenurio
vuwbucks:
Tho ubIIc-koy nufhorIfy couId bo somowhnf of n boffIonock In fho sysfom, for n usor
musf nonI fo fho nufhorIfy for n ubIIc koy for ovory ofhor usor fhnf If wIshos fo
confncf. As boforo, fho dIrocfory of nnmos nnd ubIIc koys mnInfnInod by fho nufhorIfy
Is vuInornbIo fo fnmorIng.
PubIIc-Key CevtIIIcutes
An nIfornnfIvo nronch, fIrsf suggosfod by KohnfoIdor Is fo uso corfIfIcnfos fhnf
cnn bo usod by nrfIcInnfs fo oxchnngo koys wIfhouf confncfIng n ubIIc-koy nufhorIfy,
In n wny fhnf Is ns roIInbIo ns If fho koys woro obfnInod dIrocfIy from n ubIIc-koy
nufhorIfy. In ossonco, n corfIfIcnfo consIsfs of n ubIIc koy Ius nn IdonfIfIor of fho koy
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
ownor, wIfh fho whoIo bIock sIgnod by n frusfod fhIrd nrfy. Tho foIIowIng
roquIromonfs on fhIs schomo:
l) Any nrfIcInnf cnn rond n corfIfIcnfo fo doformIno fho nnmo nnd ubIIc koy of
fho corfIfIcnfo's ownor.
2) Any nrfIcInnf cnn vorIfy fhnf fho corfIfIcnfo orIgInnfod from fho corfIfIcnfo
nufhorIfy nnd Is nof counforfoIf.
3) OnIy fho corfIfIcnfo nufhorIfy cnn cronfo nnd udnfo corfIfIcnfos.
4) Any nrfIcInnf cnn vorIfy fho curroncy of fho corfIfIcnfo.
Erchunge of Public-Key Certificuteo
Horo fImo sfnm T vnIIdnfos fho occurroncos of fho corfIfIcnfos. Ior nrfIcInnf
A, fho nufhorIfy rovIdos n corfIfIcnfo of fho form
CA = I(I!nufh, |T||IA||I!n])
whoro I!nufh Is fho rIvnfo koy usod by fho nufhorIfy nnd T Is n fImosfnm. A mny fhon
nss fhIs corfIfIcnfo on fo nny ofhor nrfIcInnf, who ronds nnd vorIfIos fho corfIfIcnfo ns
foIIows: (I!nufh, CA) = (I!nufh, I(I!nufh, |T||IA||I!n])) = (T||IA||I!n)
Tho rocIIonf usos fho nufhorIfy's ubIIc koy, I!nufh fo docryf fho corfIfIcnfo.
Ono schomo hns bocomo unIvorsnIIy nccofod for formnffIng ubIIc-koy corfIfIcnfos: fho
X.509 sfnndnrd. X.509 corfIfIcnfos nro usod In mosf nofwork socurIfy nIIcnfIons,
IncIudIng II socurIfy, socuro sockofs Inyor (SS!), socuro oIocfronIc frnnsncfIons (SIT),
nnd S/MIMI.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
2) I Inforcofs fho mossngo, cronfos Ifs own ubIIc/rIvnfo koy nIr {I!o, I!o} nnd
frnnsmIfs I!o||IA fo I.
3) I gonornfos n socrof koy, Ks, nnd frnnsmIfs I(I!o, Ks).
4) I Inforcofs fho mossngo, nnd Ionrns Ks by comufIng (I!o, I(I!o, Ks)).
5) I frnnsmIfs I(I!n, Ks) fo A.
Tho rosuIf Is fhnf bofh A nnd I know Ks nnd nro unnwnro fhnf Ks hns nIso boon
rovonIod fo I. A nnd I cnn now oxchnngo mossngos usIng Ks I no Iongor ncfIvoIy
Inforforos wIfh fho communIcnfIons chnnnoI buf sImIy onvosdros. KnowIng Ks I cnn
docryf nII mossngos, nnd bofh A nnd I nro unnwnro of fho robIom. Thus, fhIs sImIo
rofocoI Is onIy usofuI In nn onvIronmonf whoro fho onIy fhronf Is onvosdroIng.
Secret Key Diotribution uith ConfiJentiulity unJ Authenticution
ThIs nronch rovIdos rofocfIon ngnInsf bofh ncfIvo nnd nssIvo nffncks. Wo
bogIn nf n oInf whon If Is nssumod fhnf A nnd I hnvo oxchnngod ubIIc koys by ono of
fho schomos doscrIbod onrIIor In fhIs socfIon.
Thon fho foIIowIng sfos occur:
l. A usos I's ubIIc koy fo oncryf n mossngo fo I confnInIng nn IdonfIfIor of A (IA)
nnd n nonco (l), whIch Is usod fo IdonfIfy fhIs frnnsncfIon unIquoIy.
2. I sonds n mossngo fo A oncryfod wIfh I!n nnd confnInIng A's nonco (l) ns woII ns
n now nonco gonornfod by I (2) Iocnuso onIy I couId hnvo docryfod mossngo (l),
fho rosonco of l In mossngo (2) nssuros A fhnf fho corrosondonf Is I.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
3. A rofurns 2 oncryfod usIng I's ubIIc koy, fo nssuro I fhnf Ifs corrosondonf Is A.
4. A soIocfs n socrof koy Ks nnd sonds M = I(I!b, I(I!n, Ks)) fo I. IncryfIon of fhIs
mossngo wIfh I's ubIIc koy onsuros fhnf onIy I cnn rond If; oncryfIon wIfh A's
rIvnfo koy onsuros fhnf onIy A couId hnvo sonf If.
5. I comufos (I!n, (I!b, M)) fo rocovor fho socrof koy.
A HybriJ Scheme
ThIs schomo rofnIns fho uso of n koy dIsfrIbufIon confor (KC) fhnf shnros n
socrof mnsfor koy wIfh onch usor nnd dIsfrIbufos socrof sossIon koys oncryfod wIfh fho
mnsfor koy. A ubIIc koy schomo Is usod fo dIsfrIbufo fho mnsfor koys.
Tho foIIowIng rnfIonnIo Is rovIdod for usIng fhIs fhroo-IovoI nronch:
PevIovmunce:
IsfrIbufIon of sossIon koys by ubIIc-koy oncryfIon couId dogrndo ovornII
sysfom orformnnco bocnuso of fho roInfIvoIy hIgh comufnfIonnI Iond of ubIIc-koy
oncryfIon nnd docryfIon.
Buckwuvd computIbIIIty:
Tho hybrId schomo Is onsIIy ovorInId on nn oxIsfIng KC schomo, wIfh mInImnI
dIsrufIon or soffwnro chnngos.
B.2 IIII-HIIMAN KY XCHANG
Purpooe
To onnbIo fwo usors fo socuroIy oxchnngo n koy fhnf cnn fhon bo usod for
subsoquonf oncryfIon of mossngos. Tho nIgorIfhm IfsoIf Is IImIfod fo fho oxchnngo of
socrof vnIuos.
DepenJence
Tho IffIo-HoIImnn nIgorIfhm doonds for Ifs offocfIvonoss on fho dIffIcuIfy of
comufIng dIscrofo IognrIfhms.
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
Definition
; IIrsf, wo dofIno n rImIfIvo roof of n rImo numbor ns ono whoso owors
moduIo gonornfo nII fho Infogors from l fo - l. Thnf Is, If n Is n rImIfIvo roof
of fho rImo numbor , fhon fho numbors n mod , n
2
mod ,..., n
l
mod nro
dIsfIncf nnd consIsf of fho Infogors from l fhrough - l In somo ormufnfIon.
; Ior nny Infogor b nnd n rImIfIvo roof n of rImo numbor , wo cnn fInd n unIquo
oxononf I such fhnf
b n
I
(mod ) whoro 0 _ I _ ( - l)
Tho oxononf I Is roforrod fo ns fho dIscrofo IognrIfhm of b for fho bnso n, mod .
Wo oxross fhIs vnIuo ns dIogn, (b).
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
AbeIIun Gvoups
An nboIInn grou C, somofImos donofod by {C, : }, Is n sof of oIomonfs wIfh n
bInnry oornfIon, donofod by :, fhnf nssocInfos fo onch ordorod nIr (n, b) of oIomonfs In
C nn oIomonf (n : b) In C, such fhnf fho foIIowIng nxIoms nro oboyod:
(Al) CIosuro: If n nnd b boIong fo C, fhon n : b Is nIso In C.
(A2) AssocInfIvo: n : (b : c) = (n : b) : c for nII n, b, c In C.
(A3) IdonfIfy oIomonf: Thoro Is nn oIomonf o In C such fhnf n : o = o : n = n for nII n
In C.
(A4) Invorso oIomonf: Ior onch n In C fhoro Is nn oIomonf n' In C such fhnf n : n' =
n' : n = o.
(A5) CommufnfIvo: n : b = b : n for nII n, b In C.
IIIptIc Cuvves ovev ReuI Numbevs
In gonornI, cubIc oqunfIons for oIIIfIc curvos fnko fho form
y
2
+ nxy + by = x
3
+ cx
2
+ dx + o
whoro n, b, c, d, nnd o nro ronI numbors nnd x nnd y fnko on vnIuos In fho ronI numbors.
Ior our uroso, If Is suffIcIonf fo IImIf oursoIvos fo oqunfIons of fho form
GeometvIc escvIptIon oI AddItIon
If cnn bo shown fhnf n grou cnn bo dofInod bnsod on fho sof I(n, b) for socIfIc
vnIuos of n nnd b In rovIous oqunfIon, rovIdod fho foIIowIng condIfIon Is mof:
If fhroo oInfs on nn oIIIfIc curvo IIo on n sfrnIghf IIno, fhoIr sum Is O.
AIgebvuIc escvIptIon oI AddItIon
Ior fwo dIsfIncf oInfs I = (xI, yI) nnd Q = (xQ, yQ) fhnf nro nof nognfIvos of onch
ofhor, fho sIoo of fho IIno I fhnf joIns fhom Is = (yQ yI).
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
Thoro Is oxncfIy ono ofhor oInf whoro I Inforsocfs fho oIIIfIc curvo, nnd fhnf Is
fho nognfIvo of fho sum of I nnd Q. Affor somo nIgobrnIc mnnIuInfIon, wo cnn oxross
fho sum ! = I + Q ns foIIows:
Wo nIso nood fo bo nbIo fo ndd n oInf fo IfsoIf: I + I = 2I = !. Whon yI = 0, fho
oxrossIons nro
IIIptIc Cuvves ovev Zp
Two fnmIIIos of oIIIfIc curvos nro usod In cryfogrnhIc nIIcnfIons:
V rImo curvos ovor Z nnd
V bInnry curvos ovor CI(2
m
).
Ior n pvIme cuvve ovor Z, wo uso n cubIc oqunfIon In whIch fho vnrInbIos nnd
cooffIcIonfs nII fnko on vnIuos In fho sof of Infogors from 0 fhrough l nnd In
whIch cnIcuInfIons nro orformod moduIo .
Ior n bInuvy cuvve dofInod ovor CI(2
m
), fho vnrInbIos nnd cooffIcIonfs nII fnko
on vnIuos In CI(2
n
) nnd In cnIcuInfIons nro orformod ovor CI(2
n
).
Ior oIIIfIc curvos ovor Z, ns wIfh ronI numbors, buf In fhIs cnso wIfh cooffIcIonfs nnd
vnrInbIos IImIfod fo Z:
IIIptIc Cuvves ovev GI(2
m
)
Ior oIIIfIc curvos ovor CI(2
m
), wo uso n cubIc oqunfIon In whIch fho vnrInbIos
nnd cooffIcIonfs nII fnko on vnIuos In CI(2
m
), for somo numbor m, nnd In whIch
cnIcuInfIons nro orformod usIng fho ruIos of nrIfhmofIc In CI(2
m
). Tho form Is
UNIT 2 : PUBIIC KY NCRYPTION NTWORK SCURITY
UNIT IV
NTWORK SCURITY PRACTIC
Tvunspuvent: Tho usor shouId nof bo nwnro fhnf nufhonfIcnfIon Is fnkIng Inco,
boyond fho roquIromonf fo onfor n nssword.
ScuIubIe: Tho sysfom shouId bo cnnbIo of suorfIng Inrgo numbors of cIIonfs
nnd sorvors. ThIs suggosfs n moduInr, dIsfrIbufod nrchIfocfuro.
KRBROS VRSION 4
VorsIon 4 of Korboros mnkos uso of IS, In n rnfhor oInbornfo rofocoI, fo
rovIdo fho nufhonfIcnfIon sorvIco.
A SImpIe AutLentIcutIon IuIogue
In nn unrofocfod nofwork onvIronmonf, nny cIIonf cnn nIy fo nny sorvor for
sorvIco. Tho obvIous socurIfy rIsk Is fhnf of ImorsonnfIon. An oononf cnn rofond fo
bo nnofhor cIIonf nnd obfnIn unnufhorIzod rIvIIogos on sorvor mnchInos.
To counfor fhIs fhronf, sorvors musf bo nbIo fo confIrm fho IdonfIfIos of cIIonfs
who roquosf sorvIco. Inch sorvor cnn bo roquIrod fo undorfnko fhIs fnsk for onch
cIIonf/sorvor InforncfIon, buf In nn oon onvIronmonf, fhIs Incos n subsfnnfInI burdon
on onch sorvor.
An nIfornnfIvo Is fo uso nn nufhonfIcnfIon sorvor (AS) fhnf knows fho nsswords
of nII usors nnd sforos fhoso In n confrnIIzod dnfnbnso. In nddIfIon, fho AS shnros n
unIquo socrof koy wIfh onch sorvor. Thoso koys hnvo boon dIsfrIbufod hysIcnIIy or In
somo ofhor socuro mnnnor. ConsIdor fho foIIowIng hyofhofIcnI dInIoguo:
(l) C AS: IC||IC||IV
(2) AS C: TIckof
(3) C V: IC||TIckof
TIckof = I(Kv, |IC||AC||IV])
whoro
C = cIIonf
AS = nufhonfIcnfIon sorvor
V =sorvor
IC = IdonfIfIor of usor on C
IV = IdonfIfIor of V
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
IC = nssword of usor on C
AC = nofwork nddross of C
Kv = socrof oncryfIon koy shnrod by AS nnd V
Step 1:
Tho usor Iogs on fo n worksfnfIon nnd roquosfs nccoss fo sorvor V. Tho cIIonf
moduIo C In fho usor's worksfnfIon roquosfs fho usor's nssword nnd fhon sonds n
mossngo fo fho AS fhnf IncIudos fho usor's I (Ic), fho sorvor's I (Iv), nnd fho usor's
nssword.
Step 2:
Tho AS chocks Ifs dnfnbnso fo soo If fho usor hns suIIod fho roor nssword
for fhIs usor I nnd whofhor fhIs usor Is ormIffod nccoss fo sorvor V. If bofh fosfs nro
nssod, fho AS nccofs fho usor ns nufhonfIc nnd musf now convInco fho sorvor fhnf
fhIs usor Is nufhonfIc.
To do so, fho AS cronfos n fIckof fhnf confnIns fho usor's I nnd nofwork nddross
nnd fho sorvor's I. ThIs fIckof Is oncryfod usIng fho socrof koy shnrod by fho AS nnd
fhIs sorvor. ThIs fIckof Is fhon sonf bnck fo C. Iocnuso fho fIckof Is oncryfod, If cnnnof
bo nIforod by C or by nn oononf.
Step 3:
WIfh fhIs fIckof, C cnn now nIy fo V for sorvIco. C sonds n mossngo fo V
confnInIng C's I nnd fho fIckof. V docryfs fho fIckof nnd vorIfIos fhnf fho usor I In
fho fIckof Is fho snmo ns fho unoncryfod usor I In fho mossngo. If fhoso fwo mnfch,
fho sorvor consIdors fho usor nufhonfIcnfod nnd grnnfs fho roquosfod sorvIco.
Merito & Demerito:
Inch of fho IngrodIonfs of mossngo (3) Is sIgnIfIcnnf. Tho fIckof Is oncryfod fo
rovonf nIfornfIon or forgory. Tho sorvor's I (IV) Is IncIudod In fho fIckof so fhnf fho
sorvor cnn vorIfy fhnf If hns docryfod fho fIckof roorIy. IC Is IncIudod In fho fIckof
fo IndIcnfo fhnf fhIs fIckof hns boon Issuod on bohnIf of C.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
IInnIIy, AC sorvos fo counfor fho foIIowIng fhronf. An oononf couId cnfuro
fho fIckof frnnsmIffod In mossngo (2), fhon uso fho nnmo IC nnd frnnsmIf n mossngo of
form (3) from nnofhor worksfnfIon. Tho sorvor wouId rocoIvo n vnIId fIckof fhnf mnfchos
fho usor I nnd grnnf nccoss fo fho usor on fhnf ofhor worksfnfIon.
To rovonf fhIs nffnck, fho AS IncIudos In fho fIckof fho nofwork nddross from
whIch fho orIgInnI roquosf cnmo. ow fho fIckof Is vnIId onIy If If Is frnnsmIffod from
fho snmo worksfnfIon fhnf InIfInIIy roquosfod fho fIckof.
A Move Secuve AutLentIcutIon IuIogue
To ovorcomo fho robIoms wIfh rovIous mofhod,
TIckofs nro rousnbIo (I.o.) for sIngIo Iogon sossIon, fho worksfnfIon cnn sforo fho
sorvor`s fIckof nffor If Is rocoIvod nnd uso fho snmo fIckof on bohnIf of fho usor
for muIfIIo nccossos fo fho snmo sorvor. Iuf for dIfforonf sorvors or dIfforonf
sorvIcos, dIfforonf fIckofs nro usod.
Ior nvoIdIng InInfoxf nssword frnnsmIssIon, n now sorvor Is Infroducos known
ns TIckof CrnnfIng Sorvor (TCS).
Tho now buf sfIII hyofhofIcnI sconnrIo Is ns foIIows:
Once pev usev Iogon sessIon:
(l) C AS: IC||Ifgs
(2) AS C: I(Kc, TIckoffgs)
Once pev type oI sevvIce:
(3) C TCS: IC||IV||TIckoffgs
(4) TCS C: TIckofv
Once pev sevvIce sessIon:
(5) C V: IC||TIckofv
TIckoffgs = I(Kfgs, |IC||AC||Ifgs||TSl||!IfofImol])
TIckofv = I(Kv, |IC||AC||Iv||TS2||!IfofImo2])
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Tho now sorvIco, TCS, Issuos fIckofs fo usors who hnvo boon nufhonfIcnfod fo
AS. Thus, fho usor fIrsf roquosfs n fIckof-grnnfIng fIckof (TIckoffgs) from fho AS. Tho
cIIonf moduIo In fho usor worksfnfIon snvos fhIs fIckof.
Inch fImo fho usor roquIros nccoss fo n now sorvIco, fho cIIonf nIIos fo fho
TCS, usIng fho fIckof fo nufhonfIcnfo IfsoIf. Tho TCS fhon grnnfs n fIckof for fho
nrfIcuInr sorvIco. Tho cIIonf snvos onch sorvIco-grnnfIng fIckof nnd usos If fo
nufhonfIcnfo Ifs usor fo n sorvor onch fImo n nrfIcuInr sorvIco Is roquosfod.
!of us Iook nf fho dofnIIs of fhIs schomo:
l. Tho cIIonf roquosfs n fIckof-grnnfIng fIckof on bohnIf of fho usor by sondIng Ifs
usor's I nnd nssword fo fho AS, fogofhor wIfh fho TCS I, IndIcnfIng n roquosf
fo uso fho TCS sorvIco.
2. Tho AS rosonds wIfh n fIckof fhnf Is oncryfod wIfh n koy fhnf Is dorIvod from
fho usor's nssword. Whon fhIs rosonso nrrIvos nf fho cIIonf, fho cIIonf romfs
fho usor for hIs or hor nssword, gonornfos fho koy, nnd nffomfs fo docryf fho
IncomIng mossngo. If fho corrocf nssword Is suIIod, fho fIckof Is succossfuIIy
rocovorod.
3. Tho cIIonf roquosfs n sorvIco-grnnfIng fIckof on bohnIf of fho usor. Ior fhIs
uroso, fho cIIonf frnnsmIfs n mossngo fo fho TCS confnInIng fho usor's I,
fho I of fho dosIrod sorvIco, nnd fho fIckof-grnnfIng fIckof.
4. Tho TCS docryfs fho IncomIng fIckof nnd vorIfIos fho succoss of fho
docryfIon by fho rosonco of Ifs I. If chocks fo mnko suro fhnf fho IIfofImo
hns nof oxIrod. Thon If comnros fho usor I nnd nofwork nddross wIfh fho
IncomIng InformnfIon fo nufhonfIcnfo fho usor. If fho usor Is ormIffod nccoss
fo fho sorvor V, fho TCS Issuos n fIckof fo grnnf nccoss fo fho roquosfod
sorvIco.
5. Tho cIIonf roquosfs nccoss fo n sorvIco on bohnIf of fho usor. Ior fhIs uroso, fho
cIIonf frnnsmIfs n mossngo fo fho sorvor confnInIng fho usor's I nnd fho sorvIco-
grnnfIng fIckof. Tho sorvor nufhonfIcnfos by usIng fho confonfs of fho fIckof.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Merito
TIckof rousnbIIIfy (onco or usor Iogon sossIon nnd onco or fyo of sorvIco)
IrofocfIon of fho usor nssword
TImosfnms (TSl nnd TS2) IndIcnfo dnfo nnd fImo nf whon fho fIckof wns Issuod.
!IfofImos (l & 2) IndIcnfo fho Iongfh of fho fImo fho fIckof Is vnIId. Thoso fwo
nvoId fho nffnck by nn oononf fo rouso fho TIckoffgs nnd TIckofv.
TIckoffgs nnd TIckofv nro oncryfod. ThIs rovonfs nIfornfIon of fho fIckof nnd
rovIdos nufhonfIcnfIon. (OnIy TCS,V nnd AS nro known fho koys)
Demerito
!IfofImo of TIckofs (TIckoffgs nnd TIckofv)
I) Vevy SLovt: If roquIros fhnf fho usor wIII roonfodIy nskod for n nssword.
II) Vevy Iong: Oononf hns n gronfor oorfunIfy for roIny. An oononf
cnfuros fho fIckofs nnd wnIfs for IogIfImnfo usor fo Iogouf. Affor ho doos fho
oononf orforms unIImIfod nccoss fo rosourcos nnd fIIos from fho sorvor ns
IogIfImnfo usor.
Counter Meuoure
l. A nofwork sorvIco (TCS or V) fo rovo fhnf fho orson usIng n fIckof Is fho snmo
orson fo whom fhnf fho fIckof wns Issuod.
2. Tho roquIromonf for sorvors fo nufhonfIcnfo fhomsoIvos fo usors
Iuf wIfhouf fhIs nufhonfIcnfIon, nn oononf (fnIso sorvor) ncf ns n ronI sorvor nnd
cnfuro nny InformnfIon from usor nnd dony fho sorvIco fo fho nufhorIzod usor.
TLe VevsIon 4 AutLentIcutIon IuIogue
Tho honrf of fho firot problem Is fho IIfofImo nssocInfod wIfh fho fIckof-grnnfIng
fIckof. If fhIs IIfofImo Is vory shorf (o.g., mInufos), fhon fho usor wIII bo roonfodIy
nskod for n nssword. If fho IIfofImo Is Iong (o.g., hours), fhon nn oononf hns n gronfor
oorfunIfy for roIny.
An oononf couId onvosdro on fho nofwork nnd cnfuro n coy of fho fIckof-
grnnfIng fIckof nnd fhon wnIf for fho IogIfImnfo usor fo Iog ouf.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Thon fho oononf couId forgo fho IogIfImnfo usor's nofwork nddross nnd sond
fho mossngo of sfo (3) fo fho TCS. ThIs wouId gIvo fho oononf unIImIfod nccoss fo
fho rosourcos nnd fIIos nvnIInbIo fo fho IogIfImnfo usor.
SImIInrIy, If nn oononf cnfuros n sorvIco-grnnfIng fIckof nnd usos If boforo If
oxIros, fho oononf hns nccoss fo fho corrosondIng sorvIco.
Thus, wo nrrIvo nf nn nddIfIonnI roquIromonf. A nofwork sorvIco (fho TCS or nn
nIIcnfIon sorvIco) musf bo nbIo fo rovo fhnf fho orson usIng n fIckof Is fho snmo
orson fo whom fhnf fIckof wns Issuod.
Tho oeconJ problem Is fhnf fhoro mny bo n roquIromonf for sorvors fo
nufhonfIcnfo fhomsoIvos fo usors. WIfhouf such nufhonfIcnfIon, nn oononf couId
snbofngo fho confIgurnfIon so fhnf mossngos fo n sorvor woro dIrocfod fo nnofhor
IocnfIon. Tho fnIso sorvor wouId fhon bo In n osIfIon fo ncf ns n ronI sorvor nnd cnfuro
nny InformnfIon from fho usor nnd dony fho fruo sorvIco fo fho usor.
(1) C AS ID
c
||ID
tgs
||TS
1
(2) AS C E(K
c
,[K
c,tgs
||ID
tgs
||TS
2
||Lifetime
2
||Ticket
tgs
])
Ticket
tgs
= E(K
tgs
, [K
c,tgs
||ID
c
||AD
c
||ID
tgs
||TS
2
||Lifetime
2
])
(a) Authentication Service Exchange to obtain ticket-granting ticket
(3) C TGS ID
v
||Ticket
tgs
||Authenticator
c
(4) TGS C E(K
c,tgs
, [K
c,v
||ID
v
||TS
4
||Ticket
v
])
Ticket
tgs
= E(K
tgs
, [K
c,tgs
||ID
C
||AD
C
||ID
tgs
||TS
2
||Lifetime
2
])
Ticket
v
= E(K
v
, [K
c,v
||ID
C
||AD
C
||ID
v
||TS
4
||Lifetime
4
])
Authenticator
c
= E(K
c,tgs
, [ID
C
||AD
C
||TS
3
])
(b) Ticket-Granting Service Exchange to obtain service-granting ticket
(5) C V Ticket
v
||Authenticator
c
(6) V C E(K
c,v
, [TS
5
+ 1]) (for mutual authentication)
Ticket
v
= E(K
v
, [K
c,v
||ID
c
||AD
c
||ID
v
||TS
4
||Lifetime
4
])
Authenticator
c
= E(K
c,v
,[ID
c
||AD
C
||TS
5
])
(c) Client/Server Authentication Exchange to obtain service
KRBROS VRSION 4 MSSAG XCHANGS
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
IIrsf, consIdor fho robIom of cnfurod fIckof-grnnfIng fIckofs nnd fho nood fo
doformIno fhnf fho fIckof rosonfor Is fho snmo ns fho cIIonf for whom fho fIckof wns
Issuod. Tho fhronf Is fhnf nn oononf wIII sfonI fho fIckof nnd uso If boforo If oxIros.
To gof nround fhIs robIom, Iof us hnvo fho AS rovIdo bofh fho cIIonf nnd fho
TCS wIfh n socrof Ioco of InformnfIon In n socuro mnnnor. Thon fho cIIonf cnn rovo Ifs
IdonfIfy fo fho TCS by rovonIIng fho socrof InformnfIon, ngnIn In n socuro mnnnor.
An offIcIonf wny of nccomIIshIng fhIs Is fo uso nn oncryfIon koy ns fho socuro
InformnfIon; fhIs Is roforrod fo ns n sossIon koy In Korboros.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Request Iov SevvIce In unotLev ReuIm
Tho fIckof rosonfod fo fho romofo sorvor (Vrom) IndIcnfos fho ronIm In whIch fho
usor wns orIgInnIIy nufhonfIcnfod. Tho sorvor choosos whofhor fo honor fho romofo
roquosf.
Ono robIom rosonfod by fho forogoIng nronch Is fhnf If doos nof scnIo woII fo
mnny ronIms. If fhoro nro ronIms, fhon fhoro musf bo ( - l)/2 socuro koy
oxchnngos so fhnf onch Korboros ronIm cnn Inforoornfo wIfh nII ofhor Korboros ronIms.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
KRBROS VRSION 5
Korboros VorsIon 5 Is socIfIod In !IC l5l0 nnd rovIdos n numbor of
Imrovomonfs ovor vorsIon 4.
TLe VevsIon 5 AutLentIcutIon IuIogue
(l) C AS OfIons||Ic||!onImc||Ifgs||TImos||oncol
(2) AS C !onImc||IC||TIckoffgs||I(Kc, |Kc,fgs||TImos||oncol||!onImfgs||Ifgs])
TIckoffgs = I(Kfgs, |IIngs||Kc,fgs||!onImc||Ic||Ac||TImos])
(u) Authenticution Sertice Erchunge to obtuin ticket-grunting ticket
(3) C TCS OfIons||Iv||TImos||||onco2||TIckoffgs||AufhonfIcnforc
(4) TCS C
!onImc||Ic||TIckofv||I(Kc,fgs, |Kc,v||TImos||onco2||!onImv||Iv])
TIckoffgs = I(Kfgs, |IIngs||KC,fgs||!onImc||IC||AC||TImos])
TIckofv = I(Kv, |IIngs||Kc,v||!onImc||IC||Ac||TImos])
AufhonfIcnforc = I(Kc,fgs, |IC||!onImc||TSl])
(b) Ticket-Crunting Sertice Erchunge to obtuin oertice-grunting ticket
(5) C V OfIons||TIckofv||AufhonfIcnforc
(6) V C IKc,v|TS2||Subkoy||Soq#]
TIckofv = I(Kv, |IIngs||Kc,v||!onImc||IC||AC||TImos])
AufhonfIcnforc = I(Kc,v,|IC||!onImc||TS2||Subkoy||Soq#])
(c) Client/Serter Authenticution Erchunge to obtuin oertice
IIrsf, consIdor fho nufhonfIcnfIon sorvIco oxchnngo. Mossngo (l) Is n cIIonf
roquosf for n fIckof-grnnfIng fIckof. As boforo, If IncIudos fho I of fho usor nnd fho
TCS. Tho foIIowIng now oIomonfs nro nddod:
ReuIm: IndIcnfos ronIm of usor
OptIons: !sod fo roquosf fhnf corfnIn fIngs bo sof In fho rofurnod fIckof
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
TImes: !sod by fho cIIonf fo roquosf fho foIIowIng fImo soffIngs In fho fIckof:
from: fho dosIrod sfnrf fImo for fho roquosfod fIckof
fIII: fho roquosfod oxIrnfIon fImo for fho roquosfod fIckof
rfImo: roquosfod ronow-fIII fImo
Nonce: A rnndom vnIuo fo bo roonfod In mossngo (2) fo nssuro fhnf fho rosonso Is
frosh nnd hns nof boon roInyod by nn oononf
Mossngo (2) rofurns n fIckof-grnnfIng fIckof, IdonfIfyIng InformnfIon for fho
cIIonf, nnd n bIock oncryfod usIng fho oncryfIon koy bnsod on fho usor's nssword.
ThIs bIock IncIudos fho sossIon koy fo bo usod bofwoon fho cIIonf nnd fho TCS, fImos
socIfIod In mossngo (l), fho nonco from mossngo (l), nnd TCS IdonfIfyIng InformnfIon.
Tho fIckof IfsoIf IncIudos fho sossIon koy, IdonfIfyIng InformnfIon for fho cIIonf,
fho roquosfod fImo vnIuos, nnd fIngs fhnf rofIocf fho sfnfus of fhIs fIckof nnd fho
roquosfod ofIons. Thoso fIngs Infroduco sIgnIfIcnnf now funcfIonnIIfy fo vorsIon 5.
!of us now comnro fho fIckof-grnnfIng sorvIco oxchnngo for vorsIons 4 nnd 5.
Wo soo fhnf mossngo (3) for bofh vorsIons IncIudos nn nufhonfIcnfor, n fIckof, nnd fho
nnmo of fho roquosfod sorvIco.
In nddIfIon, vorsIon 5 IncIudos roquosfod fImos nnd ofIons for fho fIckof nnd n
nonco, nII wIfh funcfIons sImIInr fo fhoso of mossngo (l). Tho nufhonfIcnfor IfsoIf Is
ossonfInIIy fho snmo ns fho ono usod In vorsIon 4. Mossngo (4) hns fho snmo sfrucfuro
ns mossngo (2), rofurnIng n fIckof Ius InformnfIon noodod by fho cIIonf, fho Inffor
oncryfod wIfh fho sossIon koy now shnrod by fho cIIonf nnd fho TCS.
IInnIIy, for fho cIIonf/sorvor nufhonfIcnfIon oxchnngo, sovornI now fonfuros
nonr In vorsIon 5. In mossngo (5), fho cIIonf mny roquosf ns nn ofIon fhnf mufunI
nufhonfIcnfIon Is roquIrod.
Tho nufhonfIcnfor IncIudos sovornI now fIoIds ns foIIows:
Subkey: Tho cIIonf's choIco for nn oncryfIon koy fo bo usod fo rofocf fhIs socIfIc
nIIcnfIon sossIon. If fhIs fIoId Is omIffod, fho sossIon koy from fho fIckof (Kc,v) Is usod.
Sequence numbev: An ofIonnI fIoId fhnf socIfIos fho sfnrfIng soquonco numbor fo bo
usod by fho sorvor for mossngos sonf fo fho cIIonf durIng fhIs sossIon. Mossngos mny bo
soquonco numborod fo dofocf roInys.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
If mufunI nufhonfIcnfIon Is roquIrod, fho sorvor rosonds wIfh mossngo (6). ThIs
mossngo IncIudos fho fImosfnm from fho nufhonfIcnfor. ofo fhnf In vorsIon 4, fho
fImosfnm wns Incromonfod by ono.
ThIs Is nof nocossnry In vorsIon 5 bocnuso fho nnfuro of fho formnf of mossngos Is
such fhnf If Is nof ossIbIo for nn oononf fo cronfo mossngo (6) wIfhouf knowIodgo of
fho nrorInfo oncryfIon koys.
Tho subkoy fIoId, If rosonf, ovorrIdos fho subkoy fIoId, If rosonf, In mossngo (5).
Tho ofIonnI soquonco numbor fIoId socIfIos fho sfnrfIng soquonco numbor fo bo usod
by fho cIIonf.
Kevbevos VevsIon 5 IIugs
IITIA! ThIs fIckof wns Issuod usIng fho AS rofocoI nnd nof Issuod bnsod
on n fIckof-grnnfIng fIckof.
I!I-A!THIT urIng InIfInI nufhonfIcnfIon, fho cIIonf wns nufhonfIcnfod by fho
KC boforo n fIckof wns Issuod.
HW-A!THIT Tho rofocoI omIoyod for InIfInI nufhonfIcnfIon roquIrod fho uso of
hnrdwnro oxocfod fo bo ossossod soIoIy by fho nnmod cIIonf.
!IIWAI!I ToIIs TCS fhnf fhIs fIckof cnn bo usod fo obfnIn n roIncomonf
fIckof fhnf oxIros nf n Infor dnfo.
MAY-
IOSTATI
ToIIs TCS fhnf n osfdnfod fIckof mny bo Issuod bnsod on fhIs
fIckof-grnnfIng fIckof.
IOSTATI IndIcnfos fhnf fhIs fIckof hns boon osfdnfod; fho ond sorvor cnn
chock fho nufhfImo fIoId fo soo whon fho orIgInnI nufhonfIcnfIon
occurrod.
IVA!I ThIs fIckof Is InvnIId nnd musf bo vnIIdnfod by fho KC boforo uso.
I!OXIAI!I ToIIs TCS fhnf n now sorvIco-grnnfIng fIckof wIfh n dIfforonf
nofwork nddross mny bo Issuod bnsod on fho rosonfod fIckof.
I!OXY IndIcnfos fhnf fhIs fIckof Is n roxy.
IO!WA!AI!I ToIIs TCS fhnf n now fIckof-grnnfIng fIckof wIfh n dIfforonf
nofwork nddross mny bo Issuod bnsod on fhIs fIckof-grnnfIng fIckof.
IO!WA!I IndIcnfos fhnf fhIs fIckof hns oIfhor boon forwnrdod or wns Issuod
bnsod on nufhonfIcnfIon InvoIvIng n forwnrdod fIckof-grnnfIng
fIckof.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
5) AutLentIcutIon IovwuvdIng:
Veroion 4 doos nof nIIow crodonfInIs Issuod fo ono cIIonf fo bo forwnrdod fo somo
ofhor hosf nnd usod by somo ofhor cIIonf. ThIs cnnbIIIfy wouId onnbIo n cIIonf fo
nccoss n sorvor nnd hnvo fhnf sorvor nccoss nnofhor sorvor on bohnIf of fho cIIonf.
Ior oxnmIo, n cIIonf Issuos n roquosf fo n rInf sorvor fhnf fhon nccossos fho
cIIonf's fIIo from n fIIo sorvor, usIng fho cIIonf's crodonfInIs for nccoss.
Veroion 5 rovIdos fhIs cnnbIIIfy.
6) IntevveuIm uutLentIcutIon:
In teroion 4, InforoornbIIIfy nmong ronIms roquIros on fho ordor of
2
Korboros-fo-Korboros roInfIonshIs, ns doscrIbod onrIIor.
Veroion 5 suorfs n mofhod fhnf roquIros fowor roInfIonshIs, ns doscrIbod
shorfIy.
Technicul Jeficiencieo:
1) oubIe encvyptIon:
TIckofs rovIdod fo cIIonfs nro oncryfod fwIco, onco wIfh fho socrof koy of
fho fnrgof sorvor nnd fhon ngnIn wIfh n socrof koy known fo fho cIIonf. Tho
socond oncryfIon Is nof nocossnry nnd Is comufnfIonnIIy wnsfofuI.
2) PCBC encvyptIon:
IncryfIon In teroion 4 mnkos uso of n nonsfnndnrd modo of IS known
ns rongnfIng cIhor bIock chnInIng (ICIC). If hns boon domonsfrnfod fhnf fhIs
modo Is vuInornbIo fo nn nffnck InvoIvIng fho Inforchnngo of cIhorfoxf bIocks.
ICIC wns Infondod fo rovIdo nn InfogrIfy chock ns nrf of fho oncryfIon
oornfIon.
Veroion 5 rovIdos oxIIcIf InfogrIfy mochnnIsms, nIIowIng fho sfnndnrd
CIC modo fo bo usod for oncryfIon. In nrfIcuInr, n chocksum or hnsh codo Is
nffnchod fo fho mossngo rIor fo oncryfIon usIng CIC.
3) SessIon keys:
Inch fIckof IncIudos n sossIon koy fhnf Is usod by fho cIIonf fo oncryf fho
nufhonfIcnfor sonf fo fho sorvIco nssocInfod wIfh fhnf fIckof. In nddIfIon, fho
sossIon koy mny subsoquonfIy bo usod by fho cIIonf nnd fho sorvor fo rofocf
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
mossngos nssod durIng fhnf sossIon. Howovor, bocnuso fho snmo fIckof mny bo
usod roonfodIy fo gnIn sorvIco from n nrfIcuInr sorvor, fhoro Is fho rIsk fhnf nn
oononf wIII roIny mossngos from nn oId sossIon fo fho cIIonf or fho sorvor.
In teroion 5, If Is ossIbIo for n cIIonf nnd sorvor fo nogofInfo n subsossIon
koy, whIch Is fo bo usod onIy for fhnf ono connocfIon. A now nccoss by fho cIIonf
wouId rosuIf In fho uso of n now subsossIon koy.
4) Pusswovd uttucks:
Iofh vorsIons nro vuInornbIo fo n nssword nffnck. Tho mossngo from fho
AS fo fho cIIonf IncIudos mnforInI oncryfod wIfh n koy bnsod on fho cIIonf's
nssword. An oononf cnn cnfuro fhIs mossngo nnd nffomf fo docryf If by
fryIng vnrIous nsswords.
If fho rosuIf of n fosf docryfIon Is of fho roor form, fhon fho oononf
hns dIscovorod fho cIIonf's nssword nnd mny subsoquonfIy uso If fo gnIn
nufhonfIcnfIon crodonfInIs from Korboros. ThIs Is fho snmo fyo of nssword
nffnck, wIfh fho snmo kInds of counformonsuros boIng nIIcnbIo.
Veroion 5 doos rovIdo n mochnnIsm known ns ronufhonfIcnfIon, whIch
shouId mnko nssword nffncks moro dIffIcuIf, buf If doos nof rovonf fhom.
A.2 X.509 AUTHNTICATION SRVIC
IT!-T rocommondnfIon X.509 Is nrf of fho X.500 sorIos of rocommondnfIons
fhnf dofIno n dIrocfory sorvIco. Tho dIrocfory Is, In offocf, n sorvor or dIsfrIbufod sof of
sorvors fhnf mnInfnIns n dnfnbnso of InformnfIon nbouf usors. Tho InformnfIon IncIudos
n mnIng from usor nnmo fo nofwork nddross, ns woII ns ofhor nffrIbufos nnd
InformnfIon nbouf fho usors.
X.509 dofInos n frnmowork for fho rovIsIon of nufhonfIcnfIon sorvIcos by fho
X.500 dIrocfory fo Ifs usors. Tho dIrocfory mny sorvo ns n roosIfory of ubIIc-koy
corfIfIcnfos.
Inch corfIfIcnfo confnIns fho ubIIc koy of n usor nnd Is sIgnod wIfh fho rIvnfo
koy of n frusfod corfIfIcnfIon nufhorIfy. X.509 dofInos nIfornnfIvo nufhonfIcnfIon
rofocoIs bnsod on fho uso of ubIIc-koy corfIfIcnfos. X.509 Is bnsod on fho uso of ubIIc-
koy cryfogrnhy nnd dIgIfnI sIgnnfuros.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Tho sfnndnrd doos nof dIcfnfo fho uso of n socIfIc nIgorIfhm buf rocommonds
!SA. Tho dIgIfnI sIgnnfuro schomo Is nssumod fo roquIro fho uso of n hnsh funcfIon.
AgnIn, fho sfnndnrd doos nof dIcfnfo n socIfIc hnsh nIgorIfhm.
PubIIc-Key CevtIIIcute Use
CRTIIICATS
Tho honrf of fho X.509 schomo Is fho ubIIc-koy corfIfIcnfo nssocInfod wIfh onch
usor. Thoso usor corfIfIcnfos nro nssumod fo bo cronfod by somo frusfod corfIfIcnfIon
nufhorIfy (CA) nnd Incod In fho dIrocfory by fho CA or by fho usor.
Tho dIrocfory sorvor IfsoIf Is nof rosonsIbIo for fho cronfIon of ubIIc koys or for
fho corfIfIcnfIon funcfIon; If moroIy rovIdos nn onsIIy nccossIbIo IocnfIon for usors fo
obfnIn corfIfIcnfos.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
V 1xIeneione.
A sof of ono or moro oxfonsIon fIoIds. IxfonsIons woro nddod In vorsIon 3
nnd nro dIscussod Infor In fhIs socfIon.
V SignoIure.
Covors nII of fho ofhor fIoIds of fho corfIfIcnfo; If confnIns fho hnsh codo of
fho ofhor fIoIds, oncryfod wIfh fho CA's rIvnfo koy. ThIs fIoId IncIudos fho
sIgnnfuro nIgorIfhm IdonfIfIor.
ote: Tho unIquo IdonfIfIor fIoIds woro nddod In vorsIon 2 fo hnndIo fho ossIbIo rouso
of subjocf nnd/or Issuor nnmos ovor fImo. Thoso fIoIds nro rnroIy usod.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Howovor, If fho fwo CAs hnvo socuroIy oxchnngod fhoIr own ubIIc koys, fho
foIIowIng rocoduro wIII onnbIo A fo obfnIn I's ubIIc koy:
A obfnIns, from fho dIrocfory, fho corfIfIcnfo of X2 sIgnod by Xl. Iocnuso A
socuroIy knows Xl's ubIIc koy, A cnn obfnIn X2's ubIIc koy from Ifs corfIfIcnfo nnd
vorIfy If by monns of Xl's sIgnnfuro on fho corfIfIcnfo.
A fhon goos bnck fo fho dIrocfory nnd obfnIns fho corfIfIcnfo of I sIgnod by X2
Iocnuso A now hns n frusfod coy of X2's ubIIc koy, A cnn vorIfy fho sIgnnfuro nnd
socuroIy obfnIn I's ubIIc koy.
A hns usod n chnIn of corfIfIcnfos fo obfnIn I's ubIIc koy. In fho nofnfIon of X.509, fhIs
chnIn Is oxrossod ns
Xl<<X2>> X2 <<I>>
In fho snmo fnshIon, I cnn obfnIn A's ubIIc koy wIfh fho rovorso chnIn:
X2<<Xl>> Xl <<A>>
ThIs schomo nood nof bo IImIfod fo n chnIn of fwo corfIfIcnfos. An nrbIfrnrIIy Iong
nfh of CAs cnn bo foIIowod fo roduco n chnIn. A chnIn wIfh oIomonfs wouId bo
oxrossod ns
Xl<<X2>> X2 <<X3>>... X<<I>>
In fhIs cnso, onch nIr of CAs In fho chnIn (XI, XI+l) musf hnvo cronfod corfIfIcnfos for
onch ofhor.
AII fhoso corfIfIcnfos of CAs by CAs nood fo nonr In fho dIrocfory, nnd fho usor
noods fo know how fhoy nro IInkod fo foIIow n nfh fo nnofhor usor's ubIIc-koy
corfIfIcnfo. X.509 suggosfs fhnf CAs bo nrrnngod In n hIornrchy so fhnf nnvIgnfIon Is
sfrnIghfforwnrd.
Tho connocfod cIrcIos IndIcnfo fho hIornrchIcnI roInfIonshI nmong fho CAs; fho
nssocInfod boxos IndIcnfo corfIfIcnfos mnInfnInod In fho dIrocfory for onch CA onfry.
Tho dIrocfory onfry for onch CA IncIudos fwo fyos of corfIfIcnfos:
Iovwuvd cevtIIIcutes: CorfIfIcnfos of X gonornfod by ofhor CAs
Revevse cevtIIIcutes: CorfIfIcnfos gonornfod by X fhnf nro fho corfIfIcnfos of ofhor CAs
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
X.509 HIevuvcLy: A HypotLetIcuI umpIe
In fhIs oxnmIo, usor A cnn ncquIro fho foIIowIng corfIfIcnfos from fho dIrocfory
fo osfnbIIsh n corfIfIcnfIon nfh fo I:
X<<W>> W <<V>> V <<Y>> <<Z>> Z <<I>>
Whon A hns obfnInod fhoso corfIfIcnfos, If cnn unwrn fho corfIfIcnfIon nfh In
soquonco fo rocovor n frusfod coy of I's ubIIc koy.
!sIng fhIs ubIIc koy, A cnn sond oncryfod mossngos fo I. If A wIshos fo rocoIvo
oncryfod mossngos bnck from I, or fo sIgn mossngos sonf fo I, fhon I wIII roquIro A's
ubIIc koy, whIch cnn bo obfnInod from fho foIIowIng corfIfIcnfIon nfh:
Z<<Y>> Y <<V>> V <<W>> W <<X>>X <<A>>
I cnn obfnIn fhIs sof of corfIfIcnfos from fho dIrocfory, or A cnn rovIdo fhom ns nrf of
Ifs InIfInI mossngo fo I.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
RevocutIon oI CevtIIIcutes
Inch corfIfIcnfo IncIudos n orIod of vnIIdIfy, much IIko n crodIf cnrd. TyIcnIIy, n
now corfIfIcnfo Is Issuod jusf boforo fho oxIrnfIon of fho oId ono.
In nddIfIon, If mny bo dosIrnbIo on occnsIon fo rovoko n corfIfIcnfo boforo If
oxIros, for ono of fho foIIowIng ronsons:
l. Tho usor's rIvnfo koy Is nssumod fo bo comromIsod.
2. Tho usor Is no Iongor corfIfIod by fhIs CA.
3. Tho CA's corfIfIcnfo Is nssumod fo bo comromIsod.
Inch CA musf mnInfnIn n IIsf consIsfIng of nII rovokod buf nof oxIrod corfIfIcnfos
Issuod by fhnf CA, IncIudIng bofh fhoso Issuod fo usors nnd fo ofhor CAs. Thoso IIsfs
shouId nIso bo osfod on fho dIrocfory.
Inch corfIfIcnfo rovocnfIon IIsf (C!!) osfod fo fho dIrocfory Is sIgnod by fho Issuor
nnd IncIudos fho Issuor's nnmo, fho dnfo fho IIsf wns cronfod, fho dnfo fho noxf C!! Is
schoduIod fo bo Issuod, nnd nn onfry for onch rovokod corfIfIcnfo.
Inch onfry consIsfs of fho sorInI numbor of n corfIfIcnfo nnd rovocnfIon dnfo for fhnf
corfIfIcnfo. Iocnuso sorInI numbors nro unIquo wIfhIn n CA, fho sorInI numbor Is
suffIcIonf fo IdonfIfy fho corfIfIcnfo.
Druubuck:
Whon n usor rocoIvos n corfIfIcnfo In n mossngo, fho usor musf doformIno whofhor
fho corfIfIcnfo hns boon rovokod. Tho usor couId chock fho dIrocfory onch fImo n
corfIfIcnfo Is rocoIvod.
Counter Meuoureo:
To nvoId fho doInys (nnd ossIbIo cosfs) nssocInfod wIfh dIrocfory sonrchos, If Is
IIkoIy fhnf fho usor wouId mnInfnIn n IocnI cncho of corfIfIcnfos nnd IIsfs of rovokod
corfIfIcnfos.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
AUTHNTICATION PROCURS
X.509 nIso IncIudos fhroo nIfornnfIvo nufhonfIcnfIon rocoduros fhnf nro
Infondod for uso ncross n vnrIofy of nIIcnfIons. AII fhoso rocoduros mnko uso of
ubIIc-koy sIgnnfuros.
If Is nssumod fhnf fho fwo nrfIos know onch ofhor's ubIIc koy, oIfhor by
obfnInIng onch ofhor's corfIfIcnfos from fho dIrocfory or bocnuso fho corfIfIcnfo Is
IncIudod In fho InIfInI mossngo from onch sIdo.
X.509 Stvong AutLentIcutIon Pvoceduves
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
One-Wuy Authenticution
Ono wny nufhonfIcnfIon InvoIvos n sIngIo frnnsfor of InformnfIon from ono usor
(A) fo nnofhor (I), nnd osfnbIIshos fho foIIowIng:
l. Tho IdonfIfy of A nnd fhnf fho mossngo wns gonornfod by A
2. Thnf fho mossngo wns Infondod for I
3. Tho InfogrIfy nnd orIgInnIIfy (If hns nof boon sonf muIfIIo fImos) of fho mossngo
ofo fhnf onIy fho IdonfIfy of fho InIfInfIng onfIfy Is vorIfIod In fhIs rocoss, nof
fhnf of fho rosondIng onfIfy.
Tuo-Wuy Authenticution
In nddIfIon fo fho fhroo oIomonfs jusf IIsfod, fwo-wny nufhonfIcnfIon osfnbIIshos
fho foIIowIng oIomonfs:
l. Tho IdonfIfy of I nnd fhnf fho roIy mossngo wns gonornfod by I
2. Thnf fho mossngo wns Infondod for A
3. Tho InfogrIfy nnd orIgInnIIfy of fho roIy
Two-wny nufhonfIcnfIon fhus ormIfs bofh nrfIos In n communIcnfIon fo vorIfy
fho IdonfIfy of fho ofhor.
Tho roIy mossngo IncIudos fho nonco from A, fo vnIIdnfo fho roIy. If nIso
IncIudos n fImosfnm nnd nonco gonornfod by I. As boforo, fho mossngo mny IncIudo
sIgnod nddIfIonnI InformnfIon nnd n sossIon koy oncryfod wIfh A's ubIIc koy.
Three-Wuy Authenticution
In fhroo-wny nufhonfIcnfIon, n fInnI mossngo from A fo I Is IncIudod, whIch
confnIns n sIgnod coy of fho nonco rI. Tho Infonf of fhIs dosIgn Is fhnf fImosfnms nood
nof bo chockod: Iocnuso bofh noncos nro ochood bnck by fho ofhor sIdo, onch sIdo cnn
chock fho rofurnod nonco fo dofocf roIny nffncks. ThIs nronch Is noodod whon
synchronIzod cIocks nro nof nvnIInbIo.
vuwbucks oI VevsIon 2:
V Tho Subjocf fIoId Is Inndoqunfo fo convoy fho IdonfIfy of n koy ownor fo n ubIIc-
koy usor.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
V Tho Subjocf fIoId Is nIso Inndoqunfo for mnny nIIcnfIons, whIch fyIcnIIy
rocognIzo onfIfIos by nn Infornof o-mnII nddross, n !!!, or somo ofhor Infornof-
roInfod IdonfIfIcnfIon.
V Thoro Is n nood fo IndIcnfo socurIfy oIIcy InformnfIon. ThIs onnbIos n socurIfy
nIIcnfIon or funcfIon, such ns IISoc, fo roInfo nn X.509 corfIfIcnfo fo n gIvon
oIIcy.
V Thoro Is n nood fo IImIf fho dnmngo fhnf cnn rosuIf from n fnuIfy or mnIIcIous CA
by soffIng consfrnInfs on fho nIIcnbIIIfy of n nrfIcuInr corfIfIcnfo.
V If Is Imorfnnf fo bo nbIo fo IdonfIfy dIfforonf koys usod by fho snmo ownor nf
dIfforonf fImos. ThIs fonfuro suorfs koy IIfo cycIo mnnngomonf, In nrfIcuInr
fho nbIIIfy fo udnfo koy nIrs for usors nnd CAs on n roguInr bnsIs or undor
oxcofIonnI cIrcumsfnncos.
X.509 VRSION 3
To ovorcomo fho robIoms of vorsIon 2, X.509 vorsIon 3 IncIudos fho foIIowIng
forms In fho corfIfIcnfos.
Key und PoIIcy InIovmutIon
Thoso oxfonsIons convoy nddIfIonnI InformnfIon nbouf fho subjocf nnd Issuor
koys, Ius IndIcnfors of corfIfIcnfo oIIcy. ThIs nron IncIudos fho foIIowIng:
Authority key iJentifier:
IdonfIfIos fho ubIIc koy fo bo usod fo vorIfy fho sIgnnfuro on fhIs corfIfIcnfo or
C!!. InnbIos dIsfIncf koys of fho snmo CA fo bo dIfforonfInfod. Ono uso of fhIs fIoId Is
fo hnndIo CA koy nIr udnfIng.
Sub]ect key iJentifier:
IdonfIfIos fho ubIIc koy boIng corfIfIod. !sofuI for subjocf koy nIr udnfIng.
AIso, n subjocf mny hnvo muIfIIo koy nIrs nnd, corrosondIngIy, dIfforonf corfIfIcnfos
for dIfforonf urosos (o.g., dIgIfnI sIgnnfuro nnd oncryfIon koy ngroomonf).
Key uouge:
IndIcnfos n rosfrIcfIon Imosod ns fo fho urosos for whIch, nnd fho oIIcIos
undor whIch, fho corfIfIod ubIIc koy mny bo usod. Mny IndIcnfo ono or moro of fho
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
ICI hns grown oxIosIvoIy nnd Is now wIdoIy usod. A numbor of ronsons cnn bo
cIfod for fhIs growfh:
I) If Is nvnIInbIo froo worIdwIdo In vorsIons fhnf run on n vnrIofy of Infforms,
IncIudIng WIndows, !IX, MncInfosh, nnd mnny moro. In nddIfIon, fho
commorcInI vorsIon snfIsfIos usors who wnnf n roducf fhnf comos wIfh vondor
suorf.
II) If Is bnsod on nIgorIfhms fhnf hnvo survIvod oxfonsIvo ubIIc rovIow nnd nro
consIdorod oxfromoIy socuro. SocIfIcnIIy, fho nckngo IncIudos !SA, SS, nnd
IffIo-HoIImnn for ubIIc-koy oncryfIon; CAST-l28, IIA, nnd 3IS for
symmofrIc oncryfIon; nnd SHA-l for hnsh codIng.
III) If hns n wIdo rnngo of nIIcnbIIIfy, from corornfIons fhnf wIsh fo soIocf nnd
onforco n sfnndnrdIzod schomo for oncryfIng fIIos nnd mossngos fo IndIvIdunIs
who wIsh fo communIcnfo socuroIy wIfh ofhors worIdwIdo ovor fho Infornof nnd
ofhor nofworks.
Iv) If wns nof dovoIood by, nor Is If confroIIod by, nny govornmonfnI or sfnndnrds
orgnnIznfIon. Ior fhoso wIfh nn InsfIncfIvo dIsfrusf of "fho osfnbIIshmonf," fhIs
mnkos ICI nffrncfIvo.
v) ICI Is now on nn Infornof sfnndnrds frnck (!IC 3l56). ovorfhoIoss, ICI sfIII
hns nn nurn of nn nnfIosfnbIIshmonf ondonvor.
NOTATION
Ks =sossIon koy usod In symmofrIc oncryfIon schomo
I!n =rIvnfo koy of usor A, usod In ubIIc-koy oncryfIon schomo
I!n =ubIIc koy of usor A, usod In ubIIc-koy oncryfIon schomo
II = ubIIc-koy oncryfIon
I = ubIIc-koy docryfIon
IC = symmofrIc oncryfIon
C = symmofrIc docryfIon
H = hnsh funcfIon
|| = concnfonnfIon
Z = comrossIon usIng ZII nIgorIfhm
!64 = convorsIon fo rndIx 64 ASCII formnf
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
OPRATIONAI SCRIPTION
Tho ncfunI oornfIon of ICI, ns oosod fo fho mnnngomonf of koys, consIsfs of
fIvo sorvIcos: nufhonfIcnfIon, confIdonfInIIfy, comrossIon, o-mnII comnfIbIIIfy, nnd
sogmonfnfIon.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
AutLentIcutIon:
Tho soquonco Is ns foIIows:
l) Tho sondor cronfos n mossngo.
2) SHA-l Is usod fo gonornfo n l60-bIf hnsh codo of fho mossngo.
3) Tho hnsh codo Is oncryfod wIfh !SA usIng fho sondor's rIvnfo koy, nnd fho
rosuIf Is roondod fo fho mossngo.
4) Tho rocoIvor usos !SA wIfh fho sondor's ubIIc koy fo docryf nnd rocovor fho
hnsh codo.
5) Tho rocoIvor gonornfos n now hnsh codo for fho mossngo nnd comnros If wIfh
fho docryfod hnsh codo. If fho fwo mnfch, fho mossngo Is nccofod ns nufhonfIc.
; Tho combInnfIon of SHA-l nnd !SA rovIdos nn offocfIvo dIgIfnI sIgnnfuro
schomo.
; Iocnuso of fho sfrongfh of !SA, fho rocIIonf Is nssurod fhnf onIy fho ossossor
of fho mnfchIng rIvnfo koy cnn gonornfo fho sIgnnfuro.
; Iocnuso of fho sfrongfh of SHA-l, fho rocIIonf Is nssurod fhnf no ono oIso couId
gonornfo n now mossngo fhnf mnfchos fho hnsh codo nnd, honco, fho sIgnnfuro of
fho orIgInnI mossngo.
; ofnchod sIgnnfuros nro suorfod. A dofnchod sIgnnfuro mny bo sforod nnd
frnnsmIffod sonrnfoIy from fho mossngo If sIgns.
; A dofnchod sIgnnfuro of nn oxocufnbIo rogrnm cnn dofocf subsoquonf vIrus
InfocfIon. IInnIIy, dofnchod sIgnnfuros cnn bo usod whon moro fhnn ono nrfy
musf sIgn n documonf, such ns n IognI confrncf.
ConIIdentIuIIty:
Anofhor bnsIc sorvIco rovIdod by ICI Is confiJentiulity, whIch Is rovIdod by
oncryfIng mossngos fo bo frnnsmIffod or fo bo sforod IocnIIy ns fIIos.
V In bofh cnsos, fho symmofrIc oncryfIon nIgorIfhm CAST-l28 mny bo
usod.
V AIfornnfIvoIy, IIA or 3IS mny bo usod. Tho 64-bIf cIhor foodbnck
(CII) modo Is usod.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
As nIwnys, ono musf nddross fho robIom of key Jiotribution. In ICI, onch
symmofrIc koy Is usod onIy onco. Thnf Is, n now koy Is gonornfod ns n rnndom l28-bIf
numbor for onch mossngo.
Thus, nIfhough fhIs Is roforrod fo In fho documonfnfIon ns n sossIon koy, If Is In
ronIIfy n ono-fImo koy. Iocnuso If Is fo bo usod onIy onco, fho sossIon koy Is bound fo fho
mossngo nnd frnnsmIffod wIfh If. To rofocf fho koy, If Is oncryfod wIfh fho rocoIvor's
ubIIc koy.
Tho Soquonco Is ns foIIows:
l) Tho sondor gonornfos n mossngo nnd n rnndom l28-bIf numbor fo bo usod ns n
sossIon koy for fhIs mossngo onIy.
2) Tho mossngo Is oncryfod, usIng CAST-l28 (or IIA or 3IS) wIfh fho sossIon
koy.
3) Tho sossIon koy Is oncryfod wIfh !SA, usIng fho rocIIonf's ubIIc koy, nnd Is
roondod fo fho mossngo.
4) Tho rocoIvor usos !SA wIfh Ifs rIvnfo koy fo docryf nnd rocovor fho sossIon
koy.
5) Tho sossIon koy Is usod fo docryf fho mossngo.
As nn nIfornnfIvo fo fho uso of !SA for koy oncryfIon, ICI rovIdos nn ofIon roforrod
fo ns IffIo-HoIImnn. IffIo-HoIImnn Is n koy oxchnngo nIgorIfhm. In fncf, ICI usos n
vnrInnf of IffIo-HoIImnn fhnf doos rovIdo oncryfIon/docryfIon, known ns IICnmnI.
Oboertutiono
To roduco oncryfIon fImo fho combInnfIon of symmofrIc nnd ubIIc-koy
oncryfIon Is usod In roforonco fo sImIy usIng !SA or IICnmnI fo oncryf fho
mossngo dIrocfIy: CAST-l28 nnd fho ofhor symmofrIc nIgorIfhms nro
subsfnnfInIIy fnsfor fhnn !SA or IICnmnI.
Tho uso of fho ubIIc-koy nIgorIfhm soIvos fho sossIon koy dIsfrIbufIon robIom,
bocnuso onIy fho rocIIonf Is nbIo fo rocovor fho sossIon koy fhnf Is bound fo fho
mossngo.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Trunomiooion unJ Reception of PCP Meoougeo
SegmentutIon und ReussembIy:
I-mnII fncIIIfIos offon nro rosfrIcfod fo n mnxImum mossngo Iongfh. Any mossngo
Iongor fhnn fhnf musf bo brokon u Info smnIIor sogmonfs, onch of whIch Is mnIIod
sonrnfoIy. To nccommodnfo fhIs rosfrIcfIon, ICI nufomnfIcnIIy subdIvIdos n mossngo
fhnf Is foo Inrgo Info sogmonfs fhnf nro smnII onough fo sond vIn o-mnII.
Tho sogmonfnfIon Is dono nffor nII of fho ofhor rocossIng, IncIudIng fho rndIx-64
convorsIon. Thus, fho sossIon koy comononf nnd sIgnnfuro comononf nonr onIy
onco, nf fho bogInnIng of fho fIrsf sogmonf. Af fho rocoIvIng ond, ICI musf sfrI off nII
o-mnII hondors nnd ronssombIo fho onfIro orIgInnI bIock.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Thus, If fho usor hIfs nrbIfrnry koys nf hIs or hor normnI nco, n ronsonnbIy
"rnndom" Inuf wIII bo gonornfod. ThIs rnndom Inuf Is nIso combInod wIfh rovIous
sossIon koy oufuf from CAST-l28 fo form fho koy Inuf fo fho gonornfor. Tho rosuIf,
gIvon fho offocfIvo scrnmbIIng of CAST-l28, Is fo roduco n soquonco of sossIon koys
fhnf Is offocfIvoIy unrodIcfnbIo.
Key IdentIIIevs:
An oncryfod mossngo Is nccomnnIod by nn oncryfod form of fho sossIon koy
fhnf wns usod for mossngo oncryfIon. Tho sossIon koy IfsoIf Is oncryfod wIfh fho
rocIIonf's ubIIc koy. Honco, onIy fho rocIIonf wIII bo nbIo fo rocovor fho sossIon koy
nnd fhoroforo rocovor fho mossngo.
If onch usor omIoyod n sIngIo ubIIc/rIvnfo koy nIr, fhon fho rocIIonf wouId
nufomnfIcnIIy know whIch koy fo uso fo docryf fho sossIon koy: fho rocIIonf's unIquo
rIvnfo koy. Howovor, wo hnvo sfnfod n roquIromonf fhnf nny gIvon usor mny hnvo
muIfIIo ubIIc/rIvnfo koy nIrs.
Hou Joeo the recipient knou uhich of ito public keyo uuo uoeJ to encrypt the
oeooion keyr
Ono sImIo soIufIon wouId bo fo frnnsmIf fho ubIIc koy wIfh fho mossngo. Tho
rocIIonf couId fhon vorIfy fhnf fhIs Is Indood ono of Ifs ubIIc koys, nnd rocood.
Problem: ThIs schomo wouId work, buf If Is unnocossnrIIy wnsfofuI of snco. An
!SA ubIIc koy mny bo hundrods of docImnI dIgIfs In Iongfh.
Anofhor soIufIon wouId bo fo nssocInfo nn IdonfIfIor wIfh onch ubIIc koy fhnf Is
unIquo nf Ionsf wIfhIn ono usor. Thnf Is, fho combInnfIon of usor I nnd koy I wouId
bo suffIcIonf fo IdonfIfy n koy unIquoIy. Thon onIy fho much shorfor koy I wouId nood
fo bo frnnsmIffod.
Problem: ThIs soIufIon, howovor, rnIsos n mnnngomonf nnd ovorhond robIom:
Koy Is musf bo nssIgnod nnd sforod so fhnf bofh sondor nnd rocIIonf couId mn from
koy I fo ubIIc koy. ThIs sooms unnocossnrIIy burdonsomo.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Tho soIufIon ndofod by ICI Is fo nssIgn n koy I fo onch ubIIc koy fhnf Is,
wIfh vory hIgh robnbIIIfy, unIquo wIfhIn n usor I. Tho koy I nssocInfod wIfh onch
ubIIc koy consIsfs of Ifs Ionsf sIgnIfIcnnf 64 bIfs. Thnf Is, fho koy I of ubIIc I!n Is
(I!n mod 2
64
). ThIs Is n suffIcIonf Iongfh fhnf fho robnbIIIfy of duIIcnfo koy Is Is
vory smnII.
Cenerul Formut of PCP Meoouge (from A to B)
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
A key 1D Is nIso roquIrod for fho ICI dIgIfnI sIgnnfuro. Iocnuso n sondor mny
uso ono of n numbor of rIvnfo koys fo oncryf fho mossngo dIgosf, fho rocIIonf musf
know whIch ubIIc koy Is Infondod for uso.
AccordIngIy, fho dIgIfnI sIgnnfuro comononf of n mossngo IncIudos fho 64-bIf
koy I of fho roquIrod ubIIc koy. Whon fho mossngo Is rocoIvod, fho rocIIonf vorIfIos
fhnf fho koy I Is for n ubIIc koy fhnf If knows for fhnf sondor nnd fhon rocoods fo
vorIfy fho sIgnnfuro.
A mossngo consIsfs of three componento: fho mossngo comononf, n sIgnnfuro
(ofIonnI), nnd n sossIon koy comononf (ofIonnI).
Tho messuge component IncIudos fho ncfunI dnfn fo bo sforod or frnnsmIffod,
ns woII ns n fIIonnmo nnd n fImosfnm fhnf socIfIos fho fImo of cronfIon.
Tho sIgnutuve component IncIudos fho foIIowIng:
Timeotump: Tho fImo nf whIch fho sIgnnfuro wns mndo.
Meoouge Jigeot: Tho l60-bIf SHA-l dIgosf, oncryfod wIfh fho sondor's rIvnfo
sIgnnfuro koy. Tho dIgosf Is cnIcuInfod ovor fho sIgnnfuro fImosfnm
concnfonnfod wIfh fho dnfn orfIon of fho mossngo comononf.
Tho IncIusIon of fho sIgnnfuro fImosfnm In fho dIgosf nssuros ngnInsf
roIny fyos of nffncks.
Tho oxcIusIon of fho fIIonnmo nnd fImosfnm orfIons of fho mossngo
comononf onsuros fhnf dofnchod sIgnnfuros nro oxncfIy fho snmo ns nffnchod
sIgnnfuros rofIxod fo fho mossngo.
ofnchod sIgnnfuros nro cnIcuInfod on n sonrnfo fIIo fhnf hns nono of fho
mossngo comononf hondor fIoIds.
LeuJing tuo octeto of meoouge Jigeot: To onnbIo fho rocIIonf fo doformIno If
fho corrocf ubIIc koy wns usod fo docryf fho mossngo dIgosf for nufhonfIcnfIon,
by comnrIng fhIs InInfoxf coy of fho fIrsf fwo ocfofs wIfh fho fIrsf fwo ocfofs of
fho docryfod dIgosf. Thoso ocfofs nIso sorvo ns n l6-bIf frnmo chock soquonco for
fho mossngo.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Key 1D of oenJer'o public key: IdonfIfIos fho ubIIc koy fhnf shouId bo usod fo
docryf fho mossngo dIgosf nnd, honco, IdonfIfIos fho rIvnfo koy fhnf wns usod
fo oncryf fho mossngo dIgosf.
Tho mossngo comononf nnd ofIonnI sIgnnfuro comononf mny bo comrossod
usIng ZII nnd mny bo oncryfod usIng n sossIon koy.
Tho sessIon key component IncIudos fho sossIon koy nnd fho IdonfIfIor of fho
rocIIonf's ubIIc koy fhnf wns usod by fho sondor fo oncryf fho sossIon koy. Tho onfIro
bIock Is usunIIy oncodod wIfh rndIx-64 oncodIng.
Key RIngs:
Tho schomo usod In ICI Is fo rovIdo n nIr of dnfn sfrucfuros nf onch nodo, ono
fo sforo fho ubIIc/rIvnfo koy nIrs ownod by fhnf nodo nnd ono fo sforo fho ubIIc koys
of ofhor usors known nf fhIs nodo. Thoso dnfn sfrucfuros nro roforrod fo, rosocfIvoIy,
ns fho rIvnfo-koy rIng nnd fho ubIIc-koy rIng.
The generul otructure of u pritute-key ring ns n fnbIo, In whIch onch row
rorosonfs ono of fho ubIIc/rIvnfo koy nIrs ownod by fhIs usor. Inch row confnIns fho
foIIowIng onfrIos:
Timeotump: Tho dnfo/fImo whon fhIs koy nIr wns gonornfod.
Key 1D: Tho Ionsf sIgnIfIcnnf 64 bIfs of fho ubIIc koy for fhIs onfry.
Public key: Tho ubIIc-koy orfIon of fho nIr.
Pritute key: Tho rIvnfo-koy orfIon of fho nIr; fhIs fIoId Is oncryfod.
Uoer 1D: TyIcnIIy, fhIs wIII bo fho usor's o-mnII nddross (o.g.,
sfnIIIngsncm.org). Howovor, fho usor mny chooso fo nssocInfo n dIfforonf nnmo
wIfh onch nIr (o.g., SfnIIIngs, WSfnIIIngs, WIIIInmSfnIIIngs, ofc.) or fo rouso fho
snmo !sor I moro fhnn onco.
Tho rIvnfo-koy rIng cnn bo Indoxod by oIfhor !sor I or Koy I. AIfhough If Is
Infondod fhnf fho rIvnfo-koy rIng bo sforod onIy on fho mnchIno of fho usor fhnf
cronfod nnd owns fho koy nIrs, nnd fhnf If bo nccossIbIo onIy fo fhnf usor, If mnkos
sonso fo mnko fho vnIuo of fho rIvnfo koy ns socuro ns ossIbIo.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
AccordIngIy, fho rIvnfo koy IfsoIf Is nof sforod In fho koy rIng. !nfhor, fhIs koy
Is oncryfod usIng CAST-l28 (or IIA or 3IS). Tho rocoduro Is ns foIIows:
1. Tho usor soIocfs n nsshrnso fo bo usod for oncryfIng rIvnfo koys.
2. Whon fho sysfom gonornfos n now ubIIc/rIvnfo koy nIr usIng !SA, If nsks fho
usor for fho nsshrnso. !sIng SHA-l, n l60-bIf hnsh codo Is gonornfod from fho
nsshrnso, nnd fho nsshrnso Is dIscnrdod.
3. Tho sysfom oncryfs fho rIvnfo koy usIng CAST-l28 wIfh fho l28 bIfs of fho hnsh
codo ns fho koy. Tho hnsh codo Is fhon dIscnrdod, nnd fho oncryfod rIvnfo koy Is
sforod In fho rIvnfo-koy rIng.
The generul otructure of u public-key ring. ThIs dnfn sfrucfuro Is usod fo
sforo ubIIc koys of ofhor usors fhnf nro known fo fhIs usor.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
PUBIIC-KY MANAGMNT
ICI confnIns n cIovor, offIcIonf, InforIockIng sof of funcfIons nnd formnfs fo
rovIdo nn offocfIvo confIdonfInIIfy nnd nufhonfIcnfIon sorvIco. To comIofo fho sysfom,
ono fInnI nron noods fo bo nddrossod, fhnf of ubIIc-koy mnnngomonf.
AppvoucLes to PubIIc-Key Munugement:
Eooence of the problem -- !sor A musf buIId u n ubIIc-koy rIng confnInIng fho
ubIIc koys of ofhor usors fo Inforoornfo wIfh fhom usIng ICI. Suoso fhnf A's koy
rIng confnIns n ubIIc koy nffrIbufod fo I buf fhnf fho koy Is, In fncf, ownod by C.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
ThIs couId hnon If, for oxnmIo, A gof fho koy from n buIIofIn bonrd sysfom
(IIS) fhnf wns usod by I fo osf fho ubIIc koy buf fhnf hns boon comromIsod by C.
Tho rosuIf Is fhnf fwo fhronfs now oxIsf.
IIrsf, C cnn sond mossngos fo A nnd forgo I's sIgnnfuro, so fhnf A wIII nccof fho
mossngo ns comIng from I.
Socond, nny oncryfod mossngo from A fo I cnn bo rond by C.
A numbor of nronchos nro ossIbIo for mInImIzIng fho rIsk fhnf n usor's ubIIc-
koy rIng confnIns fnIso ubIIc koys. Suoso fhnf A wIshos fo obfnIn n roIInbIo ubIIc
koy for I. Tho foIIowIng nro oome upproucheo fhnf couId bo usod:
l. PI,eicoll, geI IIe le, fron B.
I couId sforo hor ubIIc koy (I!b) on n fIoy dIsk nnd hnnd If fo A. A
couId fhon Iond fho koy Info hIs sysfom from fho fIoy dIsk. ThIs Is n vory
socuro mofhod buf hns obvIous rncfIcnI IImIfnfIons.
2. Verif, o le, I, IelepIone.
If A cnn rocognIzo I on fho hono, A couId cnII I nnd nsk hor fo dIcfnfo
fho koy, In rndIx-64 formnf, ovor fho hono. As n moro rncfIcnI nIfornnfIvo, I
couId frnnsmIf hor koy In nn o-mnII mossngo fo A.
A couId hnvo ICI gonornfo n l60-bIf SHA-l dIgosf of fho koy nnd dIsIny
If In hoxndocImnI formnf; fhIs Is roforrod fo ns fho "fIngorrInf" of fho koy.
A couId fhon cnII I nnd nsk hor fo dIcfnfo fho fIngorrInf ovor fho hono.
If fho fwo fIngorrInfs mnfch, fho koy Is vorIfIod.
3. OIIoin B'e puIlic le, fron o nuIuol IrueIeJ inJitiJuol D.
Ior fhIs uroso, fho Infroducor, , cronfos n sIgnod corfIfIcnfo. Tho
corfIfIcnfo IncIudos I's ubIIc koy, fho fImo of cronfIon of fho koy, nnd n vnIIdIfy
orIod for fho koy.
gonornfos nn SHA-l dIgosf of fhIs corfIfIcnfo, oncryfs If wIfh hor
rIvnfo koy, nnd nffnchos fho sIgnnfuro fo fho corfIfIcnfo. Iocnuso onIy couId
hnvo cronfod fho sIgnnfuro, no ono oIso cnn cronfo n fnIso ubIIc koy nnd rofond
fhnf If Is sIgnod by . Tho sIgnod corfIfIcnfo couId bo sonf dIrocfIy fo A by I or ,
or couId bo osfod on n buIIofIn bonrd.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
IInnIIy, onch onfry dofInos n ubIIc koy nssocInfod wIfh n nrfIcuInr ownor, nnd
nn ouner truot fielJ Is IncIudod fhnf IndIcnfos fho dogroo fo whIch fhIs ubIIc
koy Is frusfod fo sIgn ofhor ubIIc-koy corfIfIcnfos; fhIs IovoI of frusf Is nssIgnod
by fho usor.
(a) Trust Assigned to
Public-Key Owner
(appears after key packet;
user defined)
(b) Trust Assigned to
Public Key/User ID Pair
(appears after User ID
packet; computed by PGP)
(c) Trust Assigned to Signature
(appears after signature packet;
cached copy of OWNERTRUST
for this signator)
OWNERTRUST Field
undefined trust
unknown user
usually not trusted to sign
other keys
usually trusted to sign other
keys
always trusted to sign other
keys
this key is present in secret
key ring (ultimate trust)
BUCKSTOP bit
set if this key appears in
secret key ring
KEYLEGIT Field
unknown or undefined trust
key ownership not trusted
marginal trust in key
ownership
complete trust in key
ownership
WARNONLY bit
set if user wants only to be
warned when key that is not
fully validated is used for
encryption
SIGTRUST Field
undefined trust
unknown user
usually not trusted to sign other
keys
usually trusted to sign other keys
always trusted to sign other keys
this key is present in secret key
ring (ultimate trust)
CONTIG bit
set if signature leads up a
contiguous trusted certification
path back to the ultimately trusted
key ring owner
IorIodIcnIIy, ICI rocossos fho ubIIc-koy rIng fo nchIovo consIsfoncy. In
ossonco, fhIs Is n fo-down rocoss. Ior onch OWI!T!!ST fIoId, ICI scnns fho rIng
for nII sIgnnfuros nufhorod by fhnf ownor nnd udnfos fho SICT!!ST fIoId fo oqunI fho
OWI!T!!ST fIoId. ThIs rocoss sfnrfs wIfh koys for whIch fhoro Is uIfImnfo frusf.
Thon nII KIY!ICIT fIoIds nro comufod on fho bnsIs of fho nffnchod sIgnnfuros.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
V IIguro nIso shows nn oxnmIo of n dofnchod "orhnn" nodo S, wIfh fwo unknown
sIgnnfuros. Such n koy mny hnvo boon ncquIrod from n koy sorvor. ICI cnnnof
nssumo fhnf fhIs koy Is IogIfImnfo sImIy bocnuso If cnmo from n roufnbIo
sorvor. Tho usor musf docInro fho koy IogIfImnfo by sIgnIng If or by foIIIng ICI
fhnf If Is wIIIIng fo frusf fuIIy ono of fho koy's sIgnnforIos.
RevokIng PubIIc Keys:
A usor mny wIsh fo rovoko hIs or hor curronf ubIIc koy oIfhor bocnuso
comromIso Is susocfod or sImIy fo nvoId fho uso of fho snmo koy for nn oxfondod
orIod. Tho convonfIon for rovokIng n ubIIc koy Is for fho ownor fo Issuo n koy
rovocnfIon corfIfIcnfo, sIgnod by fho ownor. ThIs corfIfIcnfo hns fho snmo form ns n
normnI sIgnnfuro corfIfIcnfo buf IncIudos nn IndIcnfor fhnf fho uroso of fhIs
corfIfIcnfo Is fo rovoko fho uso of fhIs ubIIc koy.
ofo fhnf fho corrosondIng rIvnfo koy musf bo usod fo sIgn n corfIfIcnfo fhnf
rovokos n ubIIc koy. Tho ownor shouId fhon nffomf fo dIssomInnfo fhIs corfIfIcnfo ns
wIdoIy nnd ns quIckIy ns ossIbIo fo onnbIo ofonfInI corrosondonfs fo udnfo fhoIr
ubIIc-koy rIngs.
ofo fhnf nn oononf who hns comromIsod fho rIvnfo koy of nn ownor cnn
nIso Issuo such n corfIfIcnfo. Howovor, fhIs wouId dony fho oononf ns woII ns fho
IogIfImnfo ownor fho uso of fho ubIIc koy, nnd fhoroforo If sooms n much Ioss IIkoIy
fhronf fhnn fho mnIIcIous uso of n sfoIon rIvnfo koy.
B.2 S/MIM
S/MIMI (Socuro/MuIfIuroso Infornof MnII IxfonsIon) Is n socurIfy
onhnncomonf fo fho MIMI Infornof o-mnII formnf sfnndnrd, bnsod on fochnoIogy from
!SA nfn SocurIfy.
AIfhough bofh ICI nnd S/MIMI nro on nn IITI sfnndnrds frnck, If nonrs
IIkoIy fhnf S/MIMI wIII omorgo ns fho Indusfry sfnndnrd for commorcInI nnd
orgnnIznfIonnI uso, whIIo ICI wIII romnIn fho choIco for orsonnI o-mnII socurIfy for
mnny usors. S/MIMI Is dofInod In n numbor of documonfs, mosf ImorfnnfIy !ICs
3369, 33?0, 3850 nnd 385l.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
RIC B22
!IC 822 dofInos n formnf for foxf mossngos fhnf nro sonf usIng oIocfronIc mnII.
If hns boon fho sfnndnrd for Infornof-bnsod foxf mnII mossngo nnd romnIns In common
uso. In fho !IC 822 confoxf, mossngos nro vIowod ns hnvIng nn onvoIoo nnd confonfs.
Tho entelope confnIns whnfovor InformnfIon Is noodod fo nccomIIsh
frnnsmIssIon nnd doIIvory. Tho confonfs comoso fho objocf fo bo doIIvorod fo fho
rocIIonf. Tho !IC 822 sfnndnrd nIIos onIy fo fho confonfs.
Tho oterull otructure of u meoouge fhnf conforms fo !IC 822 Is vory sImIo.
A mossngo consIsfs of somo numbor of hondor IInos (fho hondor) foIIowod by
unrosfrIcfod foxf (fho body). Tho hondor Is sonrnfod from fho body by n bInnk IIno.
A heuJer line usunIIy consIsfs of n koyword, foIIowod by n coIon, foIIowod by fho
koyword's nrgumonfs; fho formnf nIIows n Iong IIno fo bo brokon u Info sovornI IInos.
Tho mosf froquonfIy usod koywords nro Iron, To, SuIjecI, nnd DoIe. Horo Is nn
oxnmIo mossngo:
Dafe: 1ue, 16 Jan 1998 10:37:17 {L51}
Iom: "W1111am 5fa111ngs" <Ws0shoe.nef>
5ubecf: 1he 5ynfax 1n kIC 822
1o: 5m1fh0Ofhe-hosf.com
Cc: Jones0Yef-Anofhe-hosf.com
he11o. 1h1s secf1on beg1ns fhe acfua1
message body, Wh1ch 1s de11m1fed fom fhe
message head1ng by a b1ank 11ne.
Anofhor fIoId fhnf Is commonIy found In !IC 822 hondors Is Mossngo-I. ThIs
fIoId confnIns n unIquo IdonfIfIor nssocInfod wIfh fhIs mossngo.
MUITIPURPOS INTRNT MAII XTNSIONS
MIMI Is nn oxfonsIon fo fho !IC 822 frnmowork fhnf Is Infondod fo nddross
somo of fho robIoms nnd IImIfnfIons of fho uso of SMTI (SImIo MnII Trnnsfor
IrofocoI) or somo ofhor mnII frnnsfor rofocoI nnd !IC 822 for oIocfronIc mnII.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Mossngo
rfc822
Tho body Is IfsoIf nn oncnsuInfod mossngo fhnf conforms
fo !IC 822.
InrfInI
!sod fo nIIow frngmonfnfIon of Inrgo mnII Ifoms, In n wny
fhnf Is frnnsnronf fo fho rocIIonf.
IxfornnI-
body
ConfnIns n oInfor fo nn objocf fhnf oxIsfs oIsowhoro.
Imngo
jog Tho Imngo Is In JIIC formnf, JIII oncodIng.
gIf Tho Imngo Is In CII formnf.
VIdoo mog MIIC formnf.
AudIo InsIc
SIngIo-chnnnoI 8-bIf IS mu-Inw oncodIng nf n snmIo
rnfo of 8 kHz.
AIIcnfIon
IosfScrIf Adobo IosfscrIf.
ocfof-sfronm ConornI bInnry dnfn consIsfIng of 8-bIf byfos.
V Ior fho tert type of body, no socInI soffwnro Is roquIrod fo gof fho fuII monnIng
of fho foxf, nsIdo from suorf of fho IndIcnfod chnrncfor sof.
V Tho multipurt type IndIcnfos fhnf fho body confnIns muIfIIo, Indoondonf
nrfs. Tho Confonf-Tyo hondor fIoId IncIudos n nrnmofor, cnIIod boundnry,
fhnf dofInos fho doIImIfor bofwoon body nrfs.
ThIs boundnry shouId nof nonr In nny nrfs of fho mossngo. Inch
boundnry sfnrfs on n now IIno nnd consIsfs of fwo hyhons foIIowod by fho
boundnry vnIuo. Tho fInnI boundnry, whIch IndIcnfos fho ond of fho Insf nrf,
nIso hns n suffIx of fwo hyhons. WIfhIn onch nrf, fhoro mny bo nn ofIonnI
ordInnry MIMI hondor.
V Tho meoouge type rovIdos n numbor of Imorfnnf cnnbIIIfIos In MIMI.
V Tho upplicution type rofors fo ofhor kInds of dnfn, fyIcnIIy oIfhor
unInforrofod bInnry dnfn or InformnfIon fo bo rocossod by n mnII-bnsod
nIIcnfIon.
MlML-ves1on: 1.0
Iom: Nafhan1e1 8oensfe1n <nsb0be11coe.com>
1o: Ned Ieed <ned01nnosoff.com>
5ubecf: A mu1f1paf examp1e
Confenf-1ype: mu1f1paf/m1xed
bounday=un1que-bounday-1
1h1s 1s fhe peamb1e aea of a mu1f1paf message. Ma11 eades fhaf
undesfand mu1f1paf fomaf shou1d 1gnoe fh1s peamb1e. lf you ae
ead1ng fh1s fexf, you m1ghf Wanf fo cons1de chang1ng fo a ma11
eade fhaf undesfands hoW fo pope1y d1sp1ay mu1f1paf messages.
--un1que-bounday-1
...5ome fexf appeas hee...
|Nofe fhaf fhe peced1ng b1ank 11ne means no heade f1e1ds Wee
g1ven and fh1s 1s fexf, W1fh chasef u5 A5Cll. lf cou1d have been
done W1fh exp11c1f fyp1ng as 1n fhe nexf paf.]
--un1que-bounday-1
Confenf-fype: fexf/p1a1n chasef=u5-A5Cll
1h1s cou1d have been paf of fhe pev1ous paf, buf 111usfafes
exp11c1f vesus 1mp11c1f fyp1ng of body pafs.
--un1que-bounday-1
Confenf-1ype: mu1f1paf/paa11e1 bounday=un1que-bounday-2
--un1que-bounday-2
Confenf-1ype: aud1o/bas1c
Confenf-1ansfe-Lncod1ng: base64
... base64-encoded 8000 hz s1ng1e-channe1 mu-1aW-fomaf aud1o dafa
goes hee....
--un1que-bounday-2
Confenf-1ype: 1mage/peg
Confenf-1ansfe-Lncod1ng: base64
... base64-encoded 1mage dafa goes hee....
--un1que-bounday-2--
--un1que-bounday-1
Confenf-fype: fexf/en1ched
1h1s 1s <bo1d><1fa11c>1chfexf.</1fa11c></bo1d> <sma11e>as def1ned
1n kIC 1896</sma11e>
lsn`f 1f <b1gge><b1gge>coo1?</b1gge></b1gge>
--un1que-bounday-1
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Confenf-1ype: message/fc822
Iom: {ma11box 1n u5-A5Cll}
1o: {addess 1n u5-A5Cll}
5ubecf: {subecf 1n u5-A5Cll}
Confenf-1ype: 1exf/p1a1n chasef=l5O-8859-1
Confenf-1ansfe-Lncod1ng: quofed-p1nfab1e
... Add1f1ona1 fexf 1n l5O-8859-1 goes hee ...
--un1que-bounday-1--
umpIe MIM Messuge Stvuctuve
S/MIM IUNCTIONAIITY
S/MIMI Is vory sImIInr fo ICI. Iofh offor fho nbIIIfy fo sIgn nnd/or oncryf
mossngos.
Functiono
S/MIMI rovIdos fho foIIowIng funcfIons:
V nveIoped dutu: ThIs consIsfs of oncryfod confonf of nny fyo nnd oncryfod-
confonf oncryfIon koys for ono or moro rocIIonfs.
V SIgned dutu: A dIgIfnI sIgnnfuro Is formod by fnkIng fho mossngo dIgosf of fho
confonf fo bo sIgnod nnd fhon oncryfIng fhnf wIfh fho rIvnfo koy of fho sIgnor.
Tho confonf Ius sIgnnfuro nro fhon oncodod usIng bnso64 oncodIng. A sIgnod
dnfn mossngo cnn onIy bo vIowod by n rocIIonf wIfh S/MIMI cnnbIIIfy.
V CIeuv-sIgned dutu: As wIfh sIgnod dnfn, n dIgIfnI sIgnnfuro of fho confonf Is
formod. Howovor, In fhIs cnso, onIy fho dIgIfnI sIgnnfuro Is oncodod usIng bnso64.
As n rosuIf, rocIIonfs wIfhouf S/MIMI cnnbIIIfy cnn vIow fho mossngo confonf,
nIfhough fhoy cnnnof vorIfy fho sIgnnfuro.
V SIgned und enveIoped dutu: SIgnod-onIy nnd oncryfod-onIy onfIfIos mny bo
nosfod, so fhnf oncryfod dnfn mny bo sIgnod nnd sIgnod dnfn or cIonr-sIgnod
dnfn mny bo oncryfod.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
CvyptogvupLIc AIgovItLms:
S/MIMI usos fho foIIowIng formInoIogy, fnkon from !IC 2ll9 fo socIfy fho
roquIromonf IovoI:
MUST:
Tho dofInIfIon Is nn nbsoIufo roquIromonf of fho socIfIcnfIon. An
ImIomonfnfIon musf IncIudo fhIs fonfuro or funcfIon fo bo In conformnnco wIfh fho
socIfIcnfIon.
SHOUI:
Thoro mny oxIsf vnIId ronsons In nrfIcuInr cIrcumsfnncos fo Ignoro fhIs fonfuro
or funcfIon, buf If Is rocommondod fhnf nn ImIomonfnfIon IncIudo fho fonfuro or
funcfIon.
CRYPTOGRAPHIC AIGORITHMS US IN S/MIM
IunctIon RequIvement
Cronfo n mossngo dIgosf fo bo usod In
formIng n dIgIfnI sIgnnfuro.
Incryf mossngo dIgosf fo form dIgIfnI
sIgnnfuro.
M!ST suorf SHA-l.
!ocoIvor SHO!! suorf M5 for bnckwnrd
comnfIbIIIfy.
SondIng nnd rocoIvIng ngonfs M!ST suorf SS.
SondIng ngonfs SHO!! suorf !SA oncryfIon.
!ocoIvIng ngonfs SHO!! suorf vorIfIcnfIon of !SA
sIgnnfuros wIfh koy sIzos 5l2 bIfs fo l024 bIfs.
Incryf sossIon koy for frnnsmIssIon
wIfh mossngo.
SondIng nnd rocoIvIng ngonfs SHO!! suorf IffIo-
HoIImnn.
SondIng nnd rocoIvIng ngonfs M!ST suorf !SA
oncryfIon wIfh koy sIzos 5l2 bIfs fo l024 bIfs.
Incryf mossngo for frnnsmIssIon wIfh
ono-fImo sossIon koy.
SondIng nnd rocoIvIng ngonfs M!ST suorf oncryfIon
wIfh frIIo IS
SondIng ngonfs SHO!! suorf oncryfIon wIfh AIS.
SondIng ngonfs SHO!! suorf oncryfIon wIfh !C2/40.
Cronfo n mossngo nufhonfIcnfIon codo !ocoIvIng ngonfs M!ST suorf HMAC wIfh SHA-l.
!ocoIvIng ngonfs SHO!! suorf HMAC wIfh SHA-l.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Regiotrution Requeot
TyIcnIIy, nn nIIcnfIon or usor wIII nIy fo n corfIfIcnfIon nufhorIfy for n
ubIIc-koy corfIfIcnfo. Tho nIIcnfIon/kcsl0 S/MIMI onfIfy Is usod fo frnnsfor
n corfIfIcnfIon roquosf.
Tho corfIfIcnfIon roquosf IncIudos corfIfIcnfIon!oquosfInfo bIock, foIIowod by nn
IdonfIfIor of fho ubIIc-koy oncryfIon nIgorIfhm, foIIowod by fho sIgnnfuro of fho
corfIfIcnfIon!oquosfInfo bIock, mndo usIng fho sondor's rIvnfo koy.
Tho corfIfIcnfIon!oquosfInfo bIock IncIudos n nnmo of fho corfIfIcnfo subjocf (fho
onfIfy whoso ubIIc koy Is fo bo corfIfIod) nnd n bIf-sfrIng rorosonfnfIon of fho
usor's ubIIc koy.
Certificuteo-Only Meoouge
A mossngo confnInIng onIy corfIfIcnfos or n corfIfIcnfo rovocnfIon IIsf (C!!) cnn
bo sonf In rosonso fo n rogIsfrnfIon roquosf.
Tho mossngo Is nn nIIcnfIon/kcs?-mImo fyo/subfyo wIfh nn smImo-fyo
nrnmofor of dogonornfo.
Tho sfos InvoIvod nro fho snmo ns fhoso for cronfIng n sIgnodnfn mossngo,
oxcof fhnf fhoro Is no mossngo confonf nnd fho sIgnorInfo fIoId Is omfy.
S/MIM CRTIIICAT PROCSSING
S/MIMI usos ubIIc-koy corfIfIcnfos fhnf conform fo vorsIon 3 of X.509.
Tho koy-mnnngomonf schomo usod by S/MIMI Is In somo wnys n hybrId bofwoon
n sfrIcf X.509 corfIfIcnfIon hIornrchy nnd ICI's wob of frusf.
As wIfh fho ICI modoI, S/MIMI mnnngors nnd/or usors musf confIguro onch
cIIonf wIfh n IIsf of frusfod koys nnd wIfh corfIfIcnfo rovocnfIon IIsfs.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Secure brunch office connectitity oter the 1nternet:
A comnny cnn buIId n socuro vIrfunI rIvnfo nofwork ovor fho Infornof or ovor n
ubIIc WA. ThIs onnbIos n busInoss fo roIy honvIIy on fho Infornof nnd roduco Ifs nood
for rIvnfo nofworks, snvIng cosfs nnd nofwork mnnngomonf ovorhond.
Secure remote ucceoo oter the 1nternet:
An ond usor whoso sysfom Is oquIod wIfh II socurIfy rofocoIs cnn mnko n
IocnI cnII fo nn Infornof sorvIco rovIdor (ISI) nnd gnIn socuro nccoss fo n comnny
nofwork. ThIs roducos fho cosf of foII chnrgos for frnvoIIng omIoyoos nnd
foIocommufors.
Eotubliohing ertrunet unJ intrunet connectitity uith purtnero:
IISoc cnn bo usod fo socuro communIcnfIon wIfh ofhor orgnnIznfIons, onsurIng
nufhonfIcnfIon nnd confIdonfInIIfy nnd rovIdIng n koy oxchnngo mochnnIsm.
Enhuncing electronic commerce oecurity:
Ivon fhough somo Wob nnd oIocfronIc commorco nIIcnfIons hnvo buIIf-In
socurIfy rofocoIs, fho uso of IISoc onhnncos fhnf socurIfy.
Tho rIncInI fonfuro of IISoc fhnf onnbIos If fo suorf fhoso vnrIod
nIIcnfIons Is fhnf If cnn oncryf nnd/or nufhonfIcnfo nII frnffIc nf fho II IovoI.
Thus, nII dIsfrIbufod nIIcnfIons, IncIudIng romofo Iogon, cIIonf/sorvor, o-mnII,
fIIo frnnsfor, Wob nccoss, nnd so on, cnn bo socurod.
IoIow fIguro IIIusfrnfos fho IISoc SconnrIo. An orgnnIznfIon mnInfnIns !As nf
dIsorsod IocnfIons. onsocuro II frnffIc Is conducfod on onch !A.
Ior frnffIc offsIfo, fhrough somo sorf of rIvnfo or ubIIc WA, IISoc rofocoIs
nro usod. Thoso rofocoIs oornfo In nofworkIng dovIcos, such ns n roufor or fIrownII,
fhnf connocf onch !A fo fho oufsIdo worId.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Tho IISoc nofworkIng dovIco wIII fyIcnIIy oncryf nnd comross nII frnffIc goIng
Info fho WA, nnd docryf nnd docomross frnffIc comIng from fho WA; fhoso
oornfIons nro frnnsnronf fo worksfnfIons nnd sorvors on fho !A.
Socuro frnnsmIssIon Is nIso ossIbIo wIfh IndIvIdunI usors who dInI Info fho
WA. Such usor worksfnfIons musf ImIomonf fho IISoc rofocoIs fo rovIdo socurIfy.
An 1P Security Scenurio
BNIITS OI IPSC
Tho foIIowIng bonofIfs of IISoc:
V Whon IISoc Is ImIomonfod In n fIrownII or roufor, If rovIdos sfrong socurIfy
fhnf cnn bo nIIod fo nII frnffIc crossIng fho orImofor. TrnffIc wIfhIn n comnny
or workgrou doos nof Incur fho ovorhond of socurIfy-roInfod rocossIng.
V IISoc In n fIrownII Is rosIsfnnf fo bynss If nII frnffIc from fho oufsIdo musf uso
II, nnd fho fIrownII Is fho onIy monns of onfrnnco from fho Infornof Info fho
orgnnIznfIon.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
V IISoc Is boIow fho frnnsorf Inyor (TCI, !I) nnd so Is frnnsnronf fo
nIIcnfIons. Thoro Is no nood fo chnngo soffwnro on n usor or sorvor sysfom
whon IISoc Is ImIomonfod In fho fIrownII or roufor. Ivon If IISoc Is
ImIomonfod In ond sysfoms, uor-Inyor soffwnro, IncIudIng nIIcnfIons, Is nof
nffocfod.
V IISoc cnn bo frnnsnronf fo ond usors. Thoro Is no nood fo frnIn usors on
socurIfy mochnnIsms, Issuo koyIng mnforInI on n or-usor bnsIs, or rovoko koyIng
mnforInI whon usors Ionvo fho orgnnIznfIon.
V IISoc cnn rovIdo socurIfy for IndIvIdunI usors If noodod. ThIs Is usofuI for offsIfo
workors nnd for soffIng u n socuro vIrfunI subnofwork wIfhIn nn orgnnIznfIon
for sonsIfIvo nIIcnfIons.
ROUTING APPIICATIONS
In nddIfIon fo suorfIng ond usors nnd rofocfIng romIsos sysfoms nnd
nofworks, IISoc cnn Iny n vIfnI roIo In fho roufIng nrchIfocfuro roquIrod for
InfornofworkIng.
IISoc cnn nssuro fhnf
A roufor ndvorfIsomonf (n now roufor ndvorfIsos Ifs rosonco) comos from nn
nufhorIzod roufor
A noIghbor ndvorfIsomonf (n roufor sooks fo osfnbIIsh or mnInfnIn n noIghbor
roInfIonshI wIfh n roufor In nnofhor roufIng domnIn) comos from nn nufhorIzod
roufor.
A rodIrocf mossngo comos from fho roufor fo whIch fho InIfInI nckof wns sonf.
A roufIng udnfo Is nof forgod.
WIfhouf such socurIfy monsuros, nn oononf cnn dIsruf communIcnfIons or
dIvorf somo frnffIc. !oufIng rofocoIs such ns OSII shouId bo run on fo of socurIfy
nssocInfIons bofwoon roufors fhnf nro dofInod by IISoc.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Key Munugement:
ocumonfs fhnf doscrIbo koy mnnngomonf schomos.
omuIn oI IntevpvetutIon (OI):
ConfnIns vnIuos noodod for fho ofhor documonfs fo roInfo fo onch ofhor. Thoso
IncIudo IdonfIfIors for nrovod oncryfIon nnd nufhonfIcnfIon nIgorIfhms, ns
woII ns oornfIonnI nrnmofors such ns koy IIfofImo.
1PSec Document Otertieu
IPSC SRVICS
IISoc rovIdos socurIfy sorvIcos nf fho II Inyor by onnbIIng n sysfom fo soIocf
roquIrod socurIfy rofocoIs, doformIno fho nIgorIfhm(s) fo uso for fho sorvIco(s), nnd uf
In Inco nny cryfogrnhIc koys roquIrod fo rovIdo fho roquosfod sorvIcos.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Oufbound rocossIng oboys fho foIIowIng gonornI soquonco for onch II nckof:
Comnro fho vnIuos of fho nrorInfo fIoIds In fho nckof (fho soIocfor fIoIds)
ngnInsf fho SI fo fInd n mnfchIng SI onfry, whIch wIII oInf fo zoro or moro
SAs.
oformIno fho SA If nny for fhIs nckof nnd Ifs nssocInfod SII.
o fho roquIrod IISoc rocossIng (I.o., AH or ISI rocossIng).
Tho foIIowIng soIocfors doformIno nn SI onfry:
V Deotinution 1P AJJreoo:
ThIs mny bo n sIngIo II nddross, nn onumornfod IIsf or rnngo of nddrossos,
or n wIIdcnrd (mnsk) nddross. Tho Inffor fwo nro roquIrod fo suorf moro fhnn
ono dosfInnfIon sysfom shnrIng fho snmo SA (o.g., bohInd n fIrownII).
V Source 1P AJJreoo:
ThIs mny bo n sIngIo II nddross, nn onumornfod IIsf or rnngo of nddrossos,
or n wIIdcnrd (mnsk) nddross. Tho Inffor fwo nro roquIrod fo suorf moro fhnn
ono sourco sysfom shnrIng fho snmo SA (o.g., bohInd n fIrownII).
V Uoer1D:
A usor IdonfIfIor from fho oornfIng sysfom. ThIs Is nof n fIoId In fho II or
uor-Inyor hondors buf Is nvnIInbIo If IISoc Is runnIng on fho snmo oornfIng
sysfom ns fho usor.
V Dutu Senoititity Letel:
!sod for sysfoms rovIdIng InformnfIon fIow socurIfy (o.g., Socrof or
!ncInssIfIod).
V Trunoport Luyer Protocol:
ObfnInod from fho IIv4 IrofocoI or IIv6 oxf Hondor fIoId. ThIs mny bo
nn IndIvIdunI rofocoI numbor, n IIsf of rofocoI numbors, or n rnngo of rofocoI
numbors.
V Source unJ Deotinution Porto:
Thoso mny bo IndIvIdunI TCI or !I orf vnIuos, nn onumornfod IIsf of
orfs, or n wIIdcnrd orf.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
TunnoI modo Is usod whon ono or bofh onds of nn SA nro n socurIfy gnfowny,
such ns n fIrownII or roufor fhnf ImIomonfs IISoc.
WIfh funnoI modo, n numbor of hosfs on nofworks bohInd fIrownIIs mny ongngo
In socuro communIcnfIons wIfhouf ImIomonfIng IISoc.
Tho unrofocfod nckofs gonornfod by such hosfs nro funnoIod fhrough oxfornnI
nofworks by funnoI modo SAs sof u by fho IISoc soffwnro In fho fIrownII or socuro
roufor nf fho boundnry of fho IocnI nofwork.
Tunnel MoJe unJ Trunoport MoJe Functionulity
Tvunspovt Mode SA TunneI Mode SA
AH
AufhonfIcnfos II nyIond nnd
soIocfod orfIons of II hondor
nnd IIv6 oxfonsIon hondors.
AufhonfIcnfos onfIro Innor II
nckof (Innor hondor Ius II
nyIond) Ius soIocfod orfIons of
oufor II hondor nnd oufor IIv6
oxfonsIon hondors.
ISI
Incryfs II nyIond nnd nny
IIv6 oxfonsIon hondors
foIIowIng fho ISI hondor.
Incryfs onfIro Innor II nckof.
ISI wIfh
AufhonfIcnfIon
Incryfs II nyIond nnd nny
IIv6 oxfonsIon hondors
foIIowIng fho ISI hondor.
AufhonfIcnfos II nyIond buf
nof II hondor.
Incryfs onfIro Innor II nckof.
AufhonfIcnfos Innor II nckof.
C.3 AUTHNTICATION HAR
Tho AufhonfIcnfIon Hondor rovIdos suorf for dnfn InfogrIfy nnd
nufhonfIcnfIon of II nckofs.
Tho Jutu integrity fonfuro onsuros fhnf undofocfod modIfIcnfIon fo n nckof's
confonf In frnnsIf Is nof ossIbIo.
Tho uuthenticution feuture onnbIos nn ond sysfom or nofwork dovIco fo
nufhonfIcnfo fho usor or nIIcnfIon nnd fIIfor frnffIc nccordIngIy; If nIso
rovonfs fho nddross soofIng nffncks obsorvod In fodny's Infornof.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
ANTI-RPIAY SRVIC
A repluy uttuck Is ono In whIch nn nffnckor obfnIns n coy of nn nufhonfIcnfod
nckof nnd Infor frnnsmIfs If fo fho Infondod dosfInnfIon. Tho rocoIf of duIIcnfo,
nufhonfIcnfod II nckofs mny dIsruf sorvIco In somo wny or mny hnvo somo ofhor
undosIrod consoquonco.
Tho Soquonco umbor fIoId Is dosIgnod fo fhwnrf such nffncks. IIrsf, wo dIscuss
soquonco numbor gonornfIon by fho sondor, nnd fhon wo Iook nf how If Is rocossod by
fho rocIIonf.
Whon n now SA Is osfnbIIshod, fho sondor InIfInIIzos n soquonco numbor counfor
fo 0. Inch fImo fhnf n nckof Is sonf on fhIs SA, fho sondor Incromonfs fho counfor nnd
Incos fho vnIuo In fho Soquonco umbor fIoId.
Thus, fho fIrsf vnIuo fo bo usod Is l. If nnfI-roIny Is onnbIod (fho dofnuIf), fho
sondor musf nof nIIow fho soquonco numbor fo cycIo nsf 2
32
l bnck fo zoro. OfhorwIso,
fhoro wouId bo muIfIIo vnIId nckofs wIfh fho snmo soquonco numbor.
If fho IImIf of 2
32
l Is ronchod, fho sondor shouId formInnfo fhIs SA nnd nogofInfo
n now SA wIfh n now koy. Iocnuso II Is n connocfIonIoss, unroIInbIo sorvIco, fho
rofocoI doos nof gunrnnfoo fhnf nckofs wIII bo doIIvorod In ordor nnd doos nof
gunrnnfoo fhnf nII nckofs wIII bo doIIvorod.
Thoroforo, fho IISoc nufhonfIcnfIon documonf dIcfnfos fhnf fho rocoIvor shouId
ImIomonf n wIndow of sIzo W, wIfh n dofnuIf of W = 64. Tho rIghf odgo of fho wIndow
rorosonfs fho hIghosf soquonco numbor, , so fnr rocoIvod for n vnIId nckof.
Ior nny nckof wIfh n soquonco numbor In fho rnngo from W + l fo fhnf hns
boon corrocfIy rocoIvod (I.o., roorIy nufhonfIcnfod), fho corrosondIng sIof In fho
wIndow Is mnrkod.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
In bofh cnsos, fho fuII HMAC vnIuo Is cnIcuInfod buf fhon fruncnfod by usIng fho
fIrsf 96 bIfs, whIch Is fho dofnuIf Iongfh for fho AufhonfIcnfIon nfn fIoId.
Tho MAC Is cnIcuInfod ovor
II hondor fIoIds fhnf oIfhor do nof chnngo In frnnsIf (ImmufnbIo) or fhnf nro
rodIcfnbIo In vnIuo uon nrrIvnI nf fho ondoInf for fho AH SA. IIoIds fhnf mny
chnngo In frnnsIf nnd whoso vnIuo on nrrIvnI nro unrodIcfnbIo nro sof fo zoro for
urosos of cnIcuInfIon nf bofh sourco nnd dosfInnfIon.
Tho AH hondor ofhor fhnn fho AufhonfIcnfIon nfn fIoId. Tho AufhonfIcnfIon
nfn fIoId Is sof fo zoro for urosos of cnIcuInfIon nf bofh sourco nnd
dosfInnfIon.
Tho onfIro uor-IovoI rofocoI dnfn, whIch Is nssumod fo bo ImmufnbIo In
frnnsIf (o.g., n TCI sogmonf or nn Innor II nckof In funnoI modo).
For 1Pt4, oxnmIos of ImmufnbIo fIoIds nro Infornof Hondor !ongfh nnd Sourco
Addross. An oxnmIo of n mufnbIo buf rodIcfnbIo fIoId Is fho osfInnfIon Addross (wIfh
Iooso or sfrIcf sourco roufIng).
IxnmIos of mufnbIo fIoIds fhnf nro zorood rIor fo ICV cnIcuInfIon nro fho TImo
fo !Ivo nnd Hondor Chocksum fIoIds. ofo fhnf bofh sourco nnd dosfInnfIon nddross
fIoIds nro rofocfod, so fhnf nddross soofIng Is rovonfod.
For 1Pt6, oxnmIos In fho bnso hondor nro VorsIon (ImmufnbIo), osfInnfIon
Addross (mufnbIo buf rodIcfnbIo), nnd IIow !nboI (mufnbIo nnd zorood for
cnIcuInfIon).
TRANSPORT AN TUNNI MOS
In ono cnso, nufhonfIcnfIon Is rovIdod dIrocfIy bofwoon n sorvor nnd cIIonf
worksfnfIons; fho worksfnfIon cnn bo oIfhor on fho snmo nofwork ns fho sorvor or on nn
oxfornnI nofwork.
As Iong ns fho worksfnfIon nnd fho sorvor shnro n rofocfod socrof koy, fho
nufhonfIcnfIon rocoss Is socuro. ThIs cnso usos n frnnsorf modo SA.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
In fho ofhor cnso, n romofo worksfnfIon nufhonfIcnfos IfsoIf fo fho corornfo
fIrownII, oIfhor for nccoss fo fho onfIro InfornnI nofwork or bocnuso fho roquosfod sorvor
doos nof suorf fho nufhonfIcnfIon fonfuro. ThIs cnso usos n funnoI modo SA.
EnJ-to-EnJ terouo EnJ-to-1ntermeJiute Authenticution
Ior trunoport moJe AH usIng IIv4, fho AH Is Insorfod nffor fho orIgInnI II
hondor nnd boforo fho II nyIond (o.g., n TCI sogmonf). AufhonfIcnfIon covors fho
onfIro nckof, oxcIudIng mufnbIo fIoIds In fho IIv4 hondor fhnf nro sof fo zoro for MAC
cnIcuInfIon.
In fho confoxf of IIv6, AH Is vIowod ns nn ond-fo-ond nyIond; fhnf Is, If Is nof
oxnmInod or rocossod by InformodInfo roufors. Thoroforo, fho AH nonrs nffor fho
IIv6 bnso hondor nnd fho ho-by-ho, roufIng, nnd frngmonf oxfonsIon hondors.
Tho dosfInnfIon ofIons oxfonsIon hondor couId nonr boforo or nffor fho AH
hondor, doondIng on fho somnnfIcs dosIrod. AgnIn, nufhonfIcnfIon covors fho onfIro
nckof, oxcIudIng mufnbIo fIoIds fhnf nro sof fo zoro for MAC cnIcuInfIon.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Ior tunnel moJe AH, fho onfIro orIgInnI II nckof Is nufhonfIcnfod, nnd fho AH
Is Insorfod bofwoon fho orIgInnI II hondor nnd n now oufor II hondor. Tho Innor II
hondor cnrrIos fho uIfImnfo sourco nnd dosfInnfIon nddrossos, whIIo nn oufor II hondor
mny confnIn dIfforonf II nddrossos (o.g., nddrossos of fIrownIIs or ofhor socurIfy
gnfownys).
Scope of AH Authenticution
WIfh funnoI modo, fho onfIro Innor II nckof, IncIudIng fho onfIro Innor II
hondor Is rofocfod by AH. Tho oufor II hondor (nnd In fho cnso of IIv6, fho oufor II
oxfonsIon hondors) Is rofocfod oxcof for mufnbIo nnd unrodIcfnbIo fIoIds.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Iocnuso fho II hondor confnIns fho dosfInnfIon nddross nnd ossIbIy sourco
roufIng dIrocfIvos nnd ho-by-ho ofIon InformnfIon, If Is nof ossIbIo sImIy fo
frnnsmIf fho oncryfod II nckof rofIxod by fho ISI hondor. InformodInfo roufors
wouId bo unnbIo fo rocoss such n nckof.
Thoroforo, If Is nocossnry fo oncnsuInfo fho onfIro bIock (ISI hondor Ius
cIhorfoxf Ius AufhonfIcnfIon nfn, If rosonf) wIfh n now II hondor fhnf wIII confnIn
suffIcIonf InformnfIon for roufIng buf nof for frnffIc nnnIysIs.
ConsIdor n cnso In whIch nn oxfornnI hosf wIshos fo communIcnfo wIfh n hosf on
nn InfornnI nofwork rofocfod by n fIrownII, nnd In whIch ISI Is ImIomonfod In fho
oxfornnI hosf nnd fho fIrownIIs.
Tho foIIowIng sfos occur for frnnsfor of n frnnsorf-Inyor sogmonf from fho
oxfornnI hosf fo fho InfornnI hosf:
l) Tho sourco ronros nn Innor II nckof wIfh n dosfInnfIon nddross of fho fnrgof
InfornnI hosf. ThIs nckof Is rofIxod by nn ISI hondor; fhon fho nckof nnd
ISI frnIIor nro oncryfod nnd AufhonfIcnfIon nfn mny bo nddod.
Tho rosuIfIng bIock Is oncnsuInfod wIfh n now II hondor (bnso hondor
Ius ofIonnI oxfonsIons such ns roufIng nnd ho-by-ho ofIons for IIv6) whoso
dosfInnfIon nddross Is fho fIrownII; fhIs forms fho oufor II nckof.
2) Tho oufor nckof Is roufod fo fho dosfInnfIon fIrownII. Inch InformodInfo roufor
noods fo oxnmIno nnd rocoss fho oufor II hondor Ius nny oufor II oxfonsIon
hondors buf doos nof nood fo oxnmIno fho cIhorfoxf.
3) Tho dosfInnfIon fIrownII oxnmInos nnd rocossos fho oufor II hondor Ius nny
oufor II oxfonsIon hondors.
Thon, on fho bnsIs of fho SII In fho ISI hondor, fho dosfInnfIon nodo
docryfs fho romnIndor of fho nckof fo rocovor fho InInfoxf Innor II nckof.
ThIs nckof Is fhon frnnsmIffod In fho InfornnI nofwork.
4) Tho Innor nckof Is roufod fhrough zoro or moro roufors In fho InfornnI nofwork
fo fho dosfInnfIon hosf.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Ior Cuoe 2, socurIfy Is rovIdod onIy bofwoon gnfownys (roufors, fIrownIIs, ofc.)
nnd no hosfs ImIomonf IISoc. ThIs cnso IIIusfrnfos sImIo vIrfunI rIvnfo nofwork
suorf. Tho socurIfy nrchIfocfuro documonf socIfIos fhnf onIy n sIngIo funnoI SA Is
noodod for fhIs cnso. Tho funnoI couId suorf AH, ISI, or ISI wIfh fho
nufhonfIcnfIon ofIon. osfod funnoIs nro nof roquIrod bocnuso fho IISoc sorvIcos
nIy fo fho onfIro Innor nckof.
Cuoe 3 buIIds on Cnso 2 by nddIng ond-fo-ond socurIfy. Tho snmo combInnfIons
dIscussod for cnsos l nnd 2 nro nIIowod horo. Tho gnfowny-fo-gnfowny funnoI rovIdos
oIfhor nufhonfIcnfIon or confIdonfInIIfy or bofh for nII frnffIc bofwoon ond sysfoms.
Whon fho gnfowny-fo-gnfowny funnoI Is ISI, If nIso rovIdos n IImIfod form of
frnffIc confIdonfInIIfy. IndIvIdunI hosfs cnn ImIomonf nny nddIfIonnI IISoc sorvIcos
roquIrod for gIvon nIIcnfIons or gIvon usors by monns of ond-fo-ond SAs.
Cuoe 4 rovIdos suorf for n romofo hosf fhnf usos fho Infornof fo ronch nn
orgnnIznfIon's fIrownII nnd fhon fo gnIn nccoss fo somo sorvor or worksfnfIon bohInd fho
fIrownII. OnIy funnoI modo Is roquIrod bofwoon fho romofo hosf nnd fho fIrownII. As In
Cnso l, ono or fwo SAs mny bo usod bofwoon fho romofo hosf nnd fho IocnI hosf.
C.6 KY MANAGMNT
Tho koy mnnngomonf orfIon of IISoc InvoIvos fho doformInnfIon nnd
dIsfrIbufIon of socrof koys.
Tho IISoc ArchIfocfuro documonf mnndnfos suorf for fwo fyos of koy
mnnngomonf:
V Munuul:
A sysfom ndmInIsfrnfor mnnunIIy confIguros onch sysfom wIfh Ifs own
koys nnd wIfh fho koys of ofhor communIcnfIng sysfoms. ThIs Is rncfIcnI for
smnII, roInfIvoIy sfnfIc onvIronmonfs.
V AutomuteJ:
An nufomnfod sysfom onnbIos fho on-domnnd cronfIon of koys for SAs nnd
fncIIIfnfos fho uso of koys In n Inrgo dIsfrIbufod sysfom wIfh nn ovoIvIng
confIgurnfIon.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Tho cookie erchunge roquIros fhnf onch sIdo sond n soudornndom numbor, fho
cookIo, In fho InIfInI mossngo, whIch fho ofhor sIdo ncknowIodgos. ThIs ncknowIodgmonf
musf bo roonfod In fho fIrsf mossngo of fho IffIo-HoIImnn koy oxchnngo.
If fho sourco nddross wns forgod, fho oononf gofs no nnswor. Thus, nn
oononf cnn onIy forco n usor fo gonornfo ncknowIodgmonfs nnd nof fo orform fho
IffIo-HoIImnn cnIcuInfIon.
ISAKMI mnndnfos fhnf cookIo gonornfIon snfIsfy three buoic requiremento:
V Tho cookIo musf doond on fho socIfIc nrfIos.
V If musf nof bo ossIbIo for nnyono ofhor fhnn fho IssuIng onfIfy fo gonornfo
cookIos fhnf wIII bo nccofod by fhnf onfIfy.
V Tho cookIo gonornfIon nnd vorIfIcnfIon mofhods musf bo fnsf fo fhwnrf nffncks
Infondod fo snbofngo rocossor rosourcos.
Tho rocommondod mofhod for cronfIng fho cookIo Is fo orform n fnsf hnsh (o.g.,
M5) ovor fho II Sourco nnd osfInnfIon nddrossos, fho !I Sourco nnd osfInnfIon
orfs, nnd n IocnIIy gonornfod socrof vnIuo.
OnkIoy suorfs fho uso of dIfforonf grous for fho IffIo-HoIImnn koy oxchnngo.
Inch grou IncIudos fho dofInIfIon of fho fwo gIobnI nrnmofors nnd fho IdonfIfy of fho
nIgorIfhm.
Tho curronf socIfIcnfIon IncIudos fho foIIowIng grous:
V MoJulor exponenIioIion uiII o 76S-IiI noJulue
q = 2
76S
- 2
704
- 1 + 2
64
x ([2
63S
x ] + 1496S6)
o = 2
V MoJulor exponenIioIion uiII o 1024-IiI noJulue
q = 2
1024
- 2
960
- 1 + 2
64
x ([2
S94
x ] + 129093)
o = 2
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
ISAKMP
ISAKMI dofInos rocoduros nnd nckof formnfs fo osfnbIIsh, nogofInfo, modIfy,
nnd doIofo socurIfy nssocInfIons. As nrf of SA osfnbIIshmonf, ISAKMI dofInos
nyIonds for oxchnngIng koy gonornfIon nnd nufhonfIcnfIon dnfn.
Thoso nyIond formnfs rovIdo n consIsfonf frnmowork Indoondonf of fho
socIfIc koy oxchnngo rofocoI, oncryfIon nIgorIfhm, nnd nufhonfIcnfIon mochnnIsm.
ISAKMP HAR IORMAT
If consIsfs of fho foIIowIng fIoIds:
1nitiutor Cookie (64 bito): CookIo of onfIfy fhnf InIfInfod SA osfnbIIshmonf, SA
nofIfIcnfIon, or SA doIofIon.
ReoponJer Cookie (64 bito): CookIo of rosondIng onfIfy; nuII In fIrsf mossngo
from InIfInfor.
ert PuylouJ (S bito): IndIcnfos fho fyo of fho fIrsf nyIond In fho mossngo;
nyIonds nro dIscussod In fho noxf subsocfIon.
Mu]or Veroion (4 bito): IndIcnfos mnjor vorsIon of ISAKMI In uso.
Minor Veroion (4 bito): IndIcnfos mInor vorsIon In uso.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Erchunge Type (S bito): IndIcnfos fho fyo of oxchnngo; fhoso nro dIscussod
Infor In fhIs socfIon.
Flugo (S bito): IndIcnfos socIfIc ofIons sof for fhIs ISAKMI oxchnngo. Two bIfs
so fnr dofInod: Tho IncryfIon bIf Is sof If nII nyIonds foIIowIng fho hondor nro
oncryfod usIng fho oncryfIon nIgorIfhm for fhIs SA. Tho CommIf bIf Is usod fo
onsuro fhnf oncryfod mnforInI Is nof rocoIvod rIor fo comIofIon of SA
osfnbIIshmonf.
Meoouge 1D (32 bito): !nIquo I for fhIs mossngo.
Length (32 bito): !ongfh of fofnI mossngo (hondor Ius nII nyIonds) In ocfofs.
ISAKMP PAYIOA TYPS
Type Puvumetevs escvIptIon
SocurIfy
AssocInfIon (SA)
omnIn of InforrofnfIon,
SIfunfIon
!sod fo nogofInfo socurIfy nffrIbufos
nnd IndIcnfo fho OI nnd SIfunfIon
undor whIch nogofInfIon Is fnkIng
Inco.
IroosnI (I)
IroosnI #, IrofocoI-I, SII
SIzo, # of Trnnsforms, SII
!sod durIng SA nogofInfIon; IndIcnfos
rofocoI fo bo usod nnd numbor of
frnnsforms.
Trnnsform (T)
Trnnsform #, Trnnsform-I,
SA AffrIbufos
!sod durIng SA nogofInfIon; IndIcnfos
frnnsform nnd roInfod SA nffrIbufos.
Koy Ixchnngo
(KI)
Koy Ixchnngo nfn
Suorfs n vnrIofy of koy oxchnngo
fochnIquos.
IdonfIfIcnfIon
(I)
I Tyo, I nfn
!sod fo oxchnngo IdonfIfIcnfIon
InformnfIon.
CorfIfIcnfo
(CI!T)
Corf IncodIng, CorfIfIcnfo
nfn
!sod fo frnnsorf corfIfIcnfos nnd
ofhor corfIfIcnfo- roInfod InformnfIon.
CorfIfIcnfo
!oquosf (C!)
# Corf Tyos, CorfIfIcnfo
Tyos, # Corf Aufhs,
CorfIfIcnfo AufhorIfIos
!sod fo roquosf corfIfIcnfos; IndIcnfos
fho fyos of corfIfIcnfos roquosfod nnd
fho nccofnbIo corfIfIcnfo nufhorIfIos.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
X.509 corfIfIcnfosIgnnfuro
X.509 corfIfIcnfokoy oxchnngo
Korboros fokons
CorfIfIcnfo !ovocnfIon !Isf (C!!)
AufhorIfy !ovocnfIon !Isf (A!!)
SIKI corfIfIcnfo
Af nny oInf In nn ISAKMI oxchnngo, fho sondor mny IncIudo n CorfIfIcnfo
!oquosf nyIond fo roquosf fho corfIfIcnfo of fho ofhor communIcnfIng onfIfy. Tho
nyIond mny IIsf moro fhnn ono corfIfIcnfo fyo fhnf Is nccofnbIo nnd moro fhnn ono
corfIfIcnfo nufhorIfy fhnf Is nccofnbIo.
ISAKMP XCHANGS
1SAKMP Erchunge Typeo
cLunge Note
(n) Inso Ixchnngo
(l)I!: SA; OCI IogIn ISAKMI-SA nogofInfIon
(2)!I: SA; OCI InsIc SA ngrood uon
(3)I!: KI; II A!TH Koy gonornfod; InIfInfor IdonfIfy vorIfIod by rosondor
(4)!I: KI; I! A!TH
!osondor IdonfIfy vorIfIod by InIfInfor; Koy gonornfod; SA
osfnbIIshod
(b) IdonfIfy IrofocfIon Ixchnngo
(l)I!: SA IogIn ISAKMI-SA nogofInfIon
(2)!I: SA InsIc SA ngrood uon
(3)I!: KI; OCI Koy gonornfod
(4)!I: KI; OCI Koy gonornfod
(5)*I!: II; A!TH InIfInfor IdonfIfy vorIfIod by rosondor
(6)*!I: I!; A!TH !osondor IdonfIfy vorIfIod by InIfInfor; SA osfnbIIshod
(c) AufhonfIcnfIon OnIy Ixchnngo
(l)I!: SA; OCI IogIn ISAKMI-SA nogofInfIon
(2)!I: SA; OCI; I!;
A!TH
InsIc SA ngrood uon; !osondor IdonfIfy vorIfIod by
InIfInfor
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
.1 WB SCURITY CONSIRATIONS
Tho WorId WIdo Wob Is fundnmonfnIIy n cIIonf/sorvor nIIcnfIon runnIng ovor
fho Infornof nnd TCI/II Infrnnofs.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Tho Wob rosonfs neu chullengeo not generully uppreciuteJ in the contert
of computer unJ netuork oecurity:
Tho Infornof Is fwo wny. !nIIko frndIfIonnI ubIIshIng onvIronmonfs, ovon
oIocfronIc ubIIshIng sysfoms InvoIvIng foIofoxf, voIco rosonso, or fnx-bnck, fho
Wob Is vuInornbIo fo nffncks on fho Wob sorvors ovor fho Infornof.
Tho Wob Is IncronsIngIy sorvIng ns n hIghIy vIsIbIo oufIof for corornfo nnd
roducf InformnfIon nnd ns fho Infform for busInoss frnnsncfIons. !oufnfIons
cnn bo dnmngod nnd monoy cnn bo Iosf If fho Wob sorvors nro subvorfod.
AIfhough Wob browsors nro vory onsy fo uso, Wob sorvors nro roInfIvoIy onsy fo
confIguro nnd mnnngo, nnd Wob confonf Is IncronsIngIy onsy fo dovoIo, fho
undorIyIng soffwnro Is oxfrnordInnrIIy comIox. ThIs comIox soffwnro mny hIdo
mnny ofonfInI socurIfy fInws.
Wob sorvor cnn bo oxIoIfod ns n InunchIng nd Info fho corornfIon's or ngoncy's
onfIro comufor comIox. Onco fho Wob sorvor Is subvorfod, nn nffnckor mny bo
nbIo fo gnIn nccoss fo dnfn nnd sysfoms nof nrf of fho Wob IfsoIf buf connocfod
fo fho sorvor nf fho IocnI sIfo.
CnsunI nnd unfrnInod (In socurIfy mnffors) usors nro common cIIonfs for Wob-
bnsod sorvIcos. Such usors nro nof nocossnrIIy nwnro of fho socurIfy rIsks fhnf
oxIsf nnd do nof hnvo fho fooIs or knowIodgo fo fnko offocfIvo counformonsuros.
WB SCURITY THRATS
One uo, fo grou fhoso fhronfs Is In forms of puooite unJ uctite uttucko.
InssIvo nffncks IncIudo onvosdroIng on nofwork frnffIc bofwoon browsor nnd sorvor
nnd gnInIng nccoss fo InformnfIon on n Wob sIfo fhnf Is suosod fo bo rosfrIcfod. AcfIvo
nffncks IncIudo ImorsonnfIng nnofhor usor, nIforIng mossngos In frnnsIf bofwoon cIIonf
nnd sorvor, nnd nIforIng InformnfIon on n Wob sIfo.
AnoIIer uo, fo cInssIfy Wob socurIfy fhronfs Is In forms of fho IocnfIon of fho
fhronf: Web oerter, Web brouoer, unJ netuork truffic betueen brouoer unJ
oerter. Issuos of sorvor nnd browsor socurIfy fnII Info fho cnfogory of comufor sysfom
socurIfy. Issuos of frnffIc socurIfy fnII Info fho cnfogory of nofwork socurIfy.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
A COMPARISON OI THRATS ON TH WB
TLveuts Consequences Countevmeusuves
InfogrIfy
ModIfIcnfIon of usor dnfn
Trojnn horso browsor
ModIfIcnfIon of momory
ModIfIcnfIon of mossngo
frnffIc In frnnsIf
!oss of InformnfIon
ComromIso of mnchIno
VuInornbIIfy fo nII ofhor
fhronfs
CryfogrnhIc
chocksums
ConfIdonfInIIfy
InvosdroIng on fho of
Thoff of Info from sorvor
Thoff of dnfn from cIIonf
Info nbouf nofwork
confIgurnfIon
Info nbouf whIch cIIonf
fnIks fo sorvor
!oss of InformnfIon
!oss of rIvncy
IncryfIon, wob
roxIos
onInI of
SorvIco
KIIIIng of usor fhronds
IIoodIng mnchIno wIfh
bogus roquosfs
IIIIIng u dIsk or momory
IsoInfIng mnchIno by
S nffncks
IsrufIvo
AnnoyIng
Irovonf usor from goffIng
work dono
IffIcuIf fo rovonf
AufhonfIcnfIon
ImorsonnfIon of
IogIfImnfo usors
nfn forgory
MIsrorosonfnfIon of usor
IoIIof fhnf fnIso InformnfIon
Is vnIId
CryfogrnhIc
fochnIquos
WB TRAIIIC SCURITY APPROACHS
A numbor of nronchos fo rovIdIng Wob socurIfy nro ossIbIo. Tho vnrIous
nronchos fhnf hnvo boon consIdorod nro sImIInr In fho sorvIcos fhoy rovIdo nnd, fo
somo oxfonf, In fho mochnnIsms fhnf fhoy uso, buf fhoy dIffor wIfh rosocf fo fhoIr
scoo of nIIcnbIIIfy nnd fhoIr roInfIvo IocnfIon wIfhIn fho TCI/II rofocoI sfnck.
Ono wny fo rovIdo Wob socurIfy Is fo uso 1P Security. Tho ndvnnfngo of usIng
IISoc Is fhnf If Is frnnsnronf fo ond usors nnd nIIcnfIons nnd rovIdos n gonornI-
uroso soIufIon.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Iurfhor, IISoc IncIudos n fIIforIng cnnbIIIfy so fhnf onIy soIocfod frnffIc nood
Incur fho ovorhond of IISoc rocossIng.
Anofhor roInfIvoIy gonornI-uroso soIufIon Is fo ImIomonf socurIfy jusf nbovo
TCP. Tho foromosf oxnmIo of fhIs nronch Is fho Socuro Sockofs !nyor (SS!) nnd fho
foIIow-on Infornof sfnndnrd known ns Trnnsorf !nyor SocurIfy (T!S).
Applicution-opecific oecurity oerticeo nro omboddod wIfhIn fho nrfIcuInr
nIIcnfIon. Tho ndvnnfngo of fhIs nronch Is fhnf fho sorvIco cnn bo fnIIorod fo fho
socIfIc noods of n gIvon nIIcnfIon. In fho confoxf of Wob socurIfy, nn Imorfnnf
oxnmIo of fhIs nronch Is Socuro IIocfronIc TrnnsncfIon (SIT).
Two Imorfnnf SSL concepto nro fho SS! sossIon nnd fho SS! connocfIon,
whIch nro dofInod In fho socIfIcnfIon ns foIIows:
V Connection:
A connocfIon Is n frnnsorf (In fho OSI InyorIng modoI dofInIfIon) fhnf
rovIdos n suIfnbIo fyo of sorvIco. Ior SS!, such connocfIons nro oor-fo-oor
roInfIonshIs. Tho connocfIons nro frnnsIonf. Ivory connocfIon Is nssocInfod wIfh
ono sossIon.
V Seooion:
An SS! sossIon Is nn nssocInfIon bofwoon n cIIonf nnd n sorvor. SossIons
nro cronfod by fho Hnndshnko IrofocoI. SossIons dofIno n sof of cryfogrnhIc
socurIfy nrnmofors, whIch cnn bo shnrod nmong muIfIIo connocfIons. SossIons
nro usod fo nvoId fho oxonsIvo nogofInfIon of now socurIfy nrnmofors for onch
connocfIon.
SSL Protocol Stack
A oeooion otute Is dofInod by fho foIIowIng nrnmofors (dofInIfIons fnkon from
fho SS! socIfIcnfIon):
Seooion iJentifier: An nrbIfrnry byfo soquonco choson by fho sorvor fo IdonfIfy
nn ncfIvo or rosumnbIo sossIon sfnfo.
Peer certificute: An X509.v3 corfIfIcnfo of fho oor. ThIs oIomonf of fho sfnfo
mny bo nuII.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
IoIow IIguro IndIcnfos fho ovornII oornfIon of fho SS! !ocord IrofocoI. Tho
!ocord IrofocoI fnkos nn nIIcnfIon mossngo fo bo frnnsmIffod, frngmonfs fho dnfn
Info mnnngonbIo bIocks, ofIonnIIy comrossos fho dnfn, nIIos n MAC, oncryfs, ndds
n hondor, nnd frnnsmIfs fho rosuIfIng unIf In n TCI sogmonf.
!ocoIvod dnfn nro docryfod, vorIfIod, docomrossod, nnd ronssombIod nnd fhon
doIIvorod fo hIghor-IovoI usors.
Tho fIrsf sfo Is IvugmentutIon. Inch uor-Inyor mossngo Is frngmonfod Info
bIocks of 2l4 byfos (l6384 byfos) or Ioss.
oxf, compreooion Is ofIonnIIy nIIod. ComrossIon musf bo IossIoss nnd mny
nof Incronso fho confonf Iongfh by moro fhnn l024 byfos. In SS!v3 (ns woII ns fho
curronf vorsIon of T!S), no comrossIon nIgorIfhm Is socIfIod, so fho dofnuIf
comrossIon nIgorIfhm Is nuII.
Tho noxf sfo In rocossIng Is fo comufo n meoouge uuthenticution coJe ovor
fho comrossod dnfn. Ior fhIs uroso, n shnrod socrof koy Is usod. Tho cnIcuInfIon Is
dofInod ns
hnsh(MAC_wrIfo_socrof || nd_2 ||
hnsh(MAC_wrIfo_socrof || nd_l || soq_num ||
SS!Comrossod.fyo ||
SS!Comrossod.Iongfh || SS!Comrossod.frngmonf))
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
whoro
|| = concnfonnfIon
MAC_wrIfo_socrof = shnrod socrof koy
hnsh = cryfogrnhIc hnsh nIgorIfhm; oIfhor M5 or SHA-l
nd_l = fho byfo 0x36 (00ll 0ll0) roonfod 48 fImos (384 bIfs) for
M5 nnd 40 fImos (320 bIfs) for SHA-l
nd_2 = fho byfo 0x5C (0l0l ll00) roonfod 48 fImos for M5
nnd 40 fImos for SHA-l
soq_num = fho soquonco numbor for fhIs mossngo
SS!Comrossod.fyo = fho hIghor-IovoI rofocoI usod fo rocoss fhIs frngmonf
SS!Comrossod.Iongfh = fho Iongfh of fho comrossod frngmonf
SS!Comrossod.frngmonf = fho comrossod frngmonf (If comrossIon Is nof usod, fho
InInfoxf frngmonf)
oxf, fho comrossod mossngo Ius fho MAC nro oncryfod usIng symmofrIc
oncryfIon. IncryfIon mny nof Incronso fho confonf Iongfh by moro fhnn l024 byfos, so
fhnf fho fofnI Iongfh mny nof oxcood 2
l4
+ 2048.
Tho foIIowIng oncryfIon nIgorIfhms nro ormIffod:
BIock CIpLev Stveum CIpLev
AIgovItLm Key SIze AIgovItLm Key SIze
AIS
IIA
!C2-40
IS-40
IS
3IS
Iorfozzn
l28,256
l28
40
40
56
l68
80
!C4-40
!C4-l28
40
l28
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
SSL RecorJ Protocol Operution
Iorfozzn cnn bo usod In n omurt curJ encryption schomo. Ior otreum
encryption, fho comrossod mossngo Ius fho MAC nro oncryfod. ofo fhnf fho MAC
Is comufod boforo oncryfIon fnkos Inco nnd fhnf fho MAC Is fhon oncryfod nIong
wIfh fho InInfoxf or comrossod InInfoxf.
Ior block encryption, nddIng mny bo nddod nffor fho MAC rIor fo oncryfIon.
Tho nddIng Is In fho form of n numbor of nddIng byfos foIIowod by n ono-byfo
IndIcnfIon of fho Iongfh of fho nddIng. Tho fofnI nmounf of nddIng Is fho smnIIosf
nmounf such fhnf fho fofnI sIzo of fho dnfn fo bo oncryfod (InInfoxf Ius MAC Ius
nddIng) Is n muIfIIo of fho cIhor's bIock Iongfh.
Tho fInnI sfo of SS! !ocord IrofocoI rocossIng Is fo roond n hondor,
consIsfIng of fho foIIowIng fIoIds:
V Content Type (S bito): Tho hIghor Inyor rofocoI usod fo rocoss fho oncIosod
frngmonf.
V Mu]or Veroion (S bito): IndIcnfos mnjor vorsIon of SS! In uso. Ior SS!v3, fho
vnIuo Is 3.
V Minor Veroion (S bito): IndIcnfos mInor vorsIon In uso. Ior SS!v3, fho vnIuo Is 0.
V CompreooeJ Length (16 bito): Tho Iongfh In byfos of fho InInfoxf frngmonf (or
comrossod frngmonf If comrossIon Is usod). Tho mnxImum vnIuo Is 2
l4
+ 2048.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
SSL RecorJ Formut
CHANG CIPHR SPC PROTOCOI
Tho Chnngo CIhor Soc IrofocoI Is ono of fho fhroo SS!-socIfIc rofocoIs fhnf
uso fho SS! !ocord IrofocoI, nnd If Is fho sImIosf. ThIs rofocoI consIsfs of n sIngIo
mossngo, whIch consIsfs of n sIngIo byfo wIfh fho vnIuo l.
Tho soIo uroso of fhIs mossngo Is fo cnuso fho ondIng sfnfo fo bo coIod Info
fho curronf sfnfo, whIch udnfos fho cIhor suIfo fo bo usod on fhIs connocfIon.
SSL RecorJ Protocol PuylouJ
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
AIRT PROTOCOI
Tho AIorf IrofocoI Is usod fo convoy SS!-roInfod nIorfs fo fho oor onfIfy. Inch
mossngo In fhIs rofocoI consIsfs of fwo byfos. Tho fIrsf byfo fnkos fho vnIuo wnrnIng (l)
or fnfnI (2) fo convoy fho sovorIfy of fho mossngo. If fho IovoI Is fnfnI, SS! ImmodInfoIy
formInnfos fho connocfIon.
Tho socond byfo confnIns n codo fhnf IndIcnfos fho socIfIc nIorf. IIrsf, wo IIsf
fhoso nIorfs fhnf nro nIwnys fnfnI (dofInIfIons from fho SS! socIfIcnfIon):
V unerpecteJ_meoouge: An InnrorInfo mossngo wns rocoIvod.
V buJ_recorJ_muc: An Incorrocf MAC wns rocoIvod.
V Jecompreooion_fuilure: Tho docomrossIon funcfIon rocoIvod Imroor Inuf
(o.g., unnbIo fo docomross or docomross fo gronfor fhnn mnxImum nIIownbIo
Iongfh).
V hunJohuke_fuilure: Sondor wns unnbIo fo nogofInfo nn nccofnbIo sof of
socurIfy nrnmofors gIvon fho ofIons nvnIInbIo.
V illegul_purumeter: A fIoId In n hnndshnko mossngo wns ouf of rnngo or
InconsIsfonf wIfh ofhor fIoIds.
Tho romnIndor of fho nIorfs nro fho foIIowIng:
V clooe_notify: ofIfIos fho rocIIonf fhnf fho sondor wIII nof sond nny moro
mossngos on fhIs connocfIon. Inch nrfy Is roquIrod fo sond n cIoso_nofIfy nIorf
boforo cIosIng fho wrIfo sIdo of n connocfIon.
V no_certificute: Mny bo sonf In rosonso fo n corfIfIcnfo roquosf If no nrorInfo
corfIfIcnfo Is nvnIInbIo.
V buJ_certificute: A rocoIvod corfIfIcnfo wns corruf (o.g., confnInod n sIgnnfuro
fhnf dId nof vorIfy).
V unoupporteJ_certificute: Tho fyo of fho rocoIvod corfIfIcnfo Is nof suorfod.
V certificute_retokeJ: A corfIfIcnfo hns boon rovokod by Ifs sIgnor.
V certificute_erpireJ: A corfIfIcnfo hns oxIrod.
V certificute_unknoun: Somo ofhor unsocIfIod Issuo nroso In rocossIng fho
corfIfIcnfo, rondorIng If unnccofnbIo.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
HANSHAK PROTOCOI
Tho mosf comIox nrf of SS! Is fho Hnndshnko IrofocoI. ThIs rofocoI nIIows
fho sorvor nnd cIIonf fo nufhonfIcnfo onch ofhor nnd fo nogofInfo nn oncryfIon nnd
MAC nIgorIfhm nnd cryfogrnhIc koys fo bo usod fo rofocf dnfn sonf In nn SS!
rocord.
Tho Hnndshnko IrofocoI consIsfs of n sorIos of mossngos oxchnngod by cIIonf nnd
sorvor. Inch mossngo hns fhroo fIoIds:
V Tyo (l byfo): IndIcnfos ono of l0 mossngos.
V !ongfh (3 byfos): Tho Iongfh of fho mossngo In byfos.
V Confonf (_0 byfos): Tho nrnmofors nssocInfod wIfh fhIs mossngo.
SSL HunJohuke Protocol Meoouge Typeo
Messuge Type Puvumetevs
hoIIo_roquosf nuII
cIIonf_hoIIo vorsIon, rnndom, sossIon Id, cIhor suIfo, comrossIon mofhod
sorvor_hoIIo vorsIon, rnndom, sossIon Id, cIhor suIfo, comrossIon mofhod
corfIfIcnfo chnIn of X.509v3 corfIfIcnfos
sorvor_koy_oxchnngo nrnmofors, sIgnnfuro
corfIfIcnfo_roquosf fyo, nufhorIfIos
sorvor_dono nuII
corfIfIcnfo_vorIfy sIgnnfuro
cIIonf_koy_oxchnngo nrnmofors, sIgnnfuro
fInIshod hnsh vnIuo
Tho oxchnngo cnn bo vIowod ns hnvIng four hnsos.
PLuse 1: stubIIsL SecuvIty CupubIIItIes
ThIs hnso Is usod fo InIfInfo n IogIcnI connocfIon nnd fo osfnbIIsh fho socurIfy
cnnbIIIfIos fhnf wIII bo nssocInfod wIfh If. Tho oxchnngo Is InIfInfod by fho cIIonf,
whIch sonds n cIIent_LeIIo messuge wIfh fho foIIowIng nrnmofors:
V Veroion: Tho hIghosf SS! vorsIon undorsfood by fho cIIonf.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
HunJohuke Protocol Action
V RunJom: A cIIonf-gonornfod rnndom sfrucfuro, consIsfIng of n 32-bIf fImosfnm
nnd 28 byfos gonornfod by n socuro rnndom numbor gonornfor.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
SerterHello.ronJon)) ((
MD(pre_noeIer_eecreI (( SHA('BB' ((
pre_noeIer_eecreI (( ClienIHello.ronJon ((
SerterHello.ronJon)) ((
MD(pre_noeIer_eecreI (( SHA('CCC' ((
pre_noeIer_eecreI (( ClienIHello.ronJon ((
SerterHello.ronJon))
whoro CIIonfHoIIo.rnndom nnd SorvorHoIIo.rnndom nro fho fwo nonco vnIuos
oxchnngod In fho InIfInI hoIIo mossngos.
GenevutIon oI CvyptogvupLIc Puvumetevs:
CIhorSocs roquIro n cIIonf wrIfo MAC socrof, n sorvor wrIfo MAC socrof, n
cIIonf wrIfo koy, n sorvor wrIfo koy, n cIIonf wrIfo IV, nnd n sorvor wrIfo IV, whIch nro
gonornfod from fho mnsfor socrof In fhnf ordor.
Thoso nrnmofors nro gonornfod from fho mnsfor socrof by hnshIng fho mnsfor
socrof Info n soquonco of socuro byfos of suffIcIonf Iongfh for nII noodod nrnmofors.
Tho gonornfIon of fho koy mnforInI from fho mnsfor socrof usos fho snmo formnf
for gonornfIon of fho mnsfor socrof from fho ro-mnsfor socrof:
le,_Ilocl = MD(noeIer_eecreI (( SHA('A' (( noeIer_eecreI ((
SerterHello.ronJon (( ClienIHello.ronJon)) ((
MD(noeIer_eecreI (( SHA('BB' (( noeIer_eecreI ((
SerterHello.ronJon (( ClienIHello.ronJon)) ((
MD(noeIer_eecreI (( SHA('CCC' (( noeIer_
eecreI (( SerterHello.ronJon ((
ClienIHello.ronJon)) (( . . .
unfII onough oufuf hns boon gonornfod. Tho rosuIf of fhIs nIgorIfhmIc sfrucfuro Is n
soudornndom funcfIon.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
TRANSPORT IAYR SCURITY
T!S Is nn IITI sfnndnrdIznfIon InIfInfIvo whoso gonI Is fo roduco nn Infornof
sfnndnrd vorsIon of SS!. T!S Is dofInod ns n Iroosod Infornof Sfnndnrd In !IC 2246.
!IC 2246 Is vory sImIInr fo SS!v3.
VevsIon Numbev:
Tho T!S !ocord Iormnf Is fho snmo ns fhnf of fho SS! !ocord Iormnf, nnd fho
fIoIds In fho hondor hnvo fho snmo monnIngs. Tho ono dIfforonco Is In vorsIon vnIuos.
Ior fho curronf vorsIon of T!S, fho Mnjor VorsIon Is 3 nnd fho MInor VorsIon Is l.
Messuge AutLentIcutIon Code:
Thoro nro fwo dIfforoncos bofwoon fho SS!v3 nnd T!S MAC schomos: fho ncfunI
nIgorIfhm nnd fho scoo of fho MAC cnIcuInfIon. T!S mnkos uso of fho HMAC
nIgorIfhm dofInod In !IC 2l04.
HMAC Is dofInod ns foIIows:
HMACK(M) = H|(K
+
ond)||H|(K
+
Ind)||M]]
whoro
H = omboddod hnsh funcfIon (for T!S, oIfhor M5 or SHA-l)
M = mossngo Inuf fo HMAC
K
+
= socrof koy nddod wIfh zoros on fho Ioff so fhnf fho rosuIf Is oqunI fo fho bIock
Iongfh of fho hnsh codo(for M5 nnd SHA-l, bIock Iongfh = 5l2 bIfs)
Ind = 00ll0ll0 (36 In hoxndocImnI) roonfod 64 fImos (5l2 bIfs)
ond = 0l0lll00 (5C In hoxndocImnI) roonfod 64 fImos (5l2 bIfs)
SS!v3 usos fho snmo nIgorIfhm, oxcof fhnf fho nddIng byfos nro concnfonnfod
wIfh fho socrof koy rnfhor fhnn boIng XO!od wIfh fho socrof koy nddod fo fho bIock
Iongfh. Tho IovoI of socurIfy shouId bo nbouf fho snmo In bofh cnsos.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Ior T!S, fho MAC cnIcuInfIon oncomnssos fho fIoIds IndIcnfod In fho foIIowIng
oxrossIon:
HMAC_IoeI(MAC_uriIe_eecreI, eeq_nun (( TISConpreeeeJ.I,pe ((
TISConpreeeeJ.tereion (( TISConpreeeeJ.lengII ((
TISConpreeeeJ.frognenI)
Pseudovundom IunctIon:
T!S mnkos uso of n soudornndom funcfIon roforrod fo ns I!I fo oxnnd socrofs
Info bIocks of dnfn for urosos of koy gonornfIon or vnIIdnfIon. Tho objocfIvo Is fo mnko
uso of n roInfIvoIy smnII shnrod socrof vnIuo buf fo gonornfo Iongor bIocks of dnfn In n
wny fhnf Is socuro from fho kInds of nffncks mndo on hnsh funcfIons nnd MACs.
TLS Function P_huoh (oecret, oeeJ)
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
V Jecryption_fuileJ:
A cIhorfoxf docryfod In nn InvnIId wny; oIfhor If wns nof nn ovon
muIfIIo of fho bIock Iongfh or Ifs nddIng vnIuos, whon chockod, woro Incorrocf.
V recorJ_oterflou:
A T!S rocord wns rocoIvod wIfh n nyIond (cIhorfoxf) whoso Iongfh
oxcoods 2
l4
+ 2048 byfos, or fho cIhorfoxf docryfod fo n Iongfh of gronfor fhnn
2
l4
+ l024 byfos.
V unknoun_cu:
A vnIId corfIfIcnfo chnIn or nrfInI chnIn wns rocoIvod, buf fho corfIfIcnfo
wns nof nccofod bocnuso fho CA corfIfIcnfo couId nof bo Iocnfod or couId nof bo
mnfchod wIfh n known, frusfod CA.
V ucceoo_JenieJ: A vnIId corfIfIcnfo wns rocoIvod, buf whon nccoss confroI wns
nIIod, fho sondor docIdod nof fo rocood wIfh fho nogofInfIon.
V JecoJe_error: A mossngo couId nof bo docodod bocnuso n fIoId wns ouf of Ifs
socIfIod rnngo or fho Iongfh of fho mossngo wns Incorrocf.
V erport_reotriction: A nogofInfIon nof In comIInnco wIfh oxorf rosfrIcfIons on
koy Iongfh wns dofocfod.
V protocol_teroion: Tho rofocoI vorsIon fho cIIonf nffomfod fo nogofInfo Is
rocognIzod buf nof suorfod.
V inoufficient_oecurity:
!ofurnod Insfond of hnndshnko_fnIIuro whon n nogofInfIon hns fnIIod
socIfIcnIIy bocnuso fho sorvor roquIros cIhors moro socuro fhnn fhoso
suorfod by fho cIIonf.
V internul_error:
An InfornnI orror unroInfod fo fho oor or fho corrocfnoss of fho rofocoI
mnkos If ImossIbIo fo confInuo.
Tho romnIndor of fho now nIorfs IncIudo fho foIIowIng:
V Jecrypt_error:
A hnndshnko cryfogrnhIc oornfIon fnIIod, IncIudIng boIng unnbIo fo
vorIfy n sIgnnfuro, docryf n koy oxchnngo, or vnIIdnfo n fInIshod mossngo.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
As wIfh fho fInIshod mossngo In SS!v3, fho fInIshod mossngo In T!S Is n hnsh
bnsod on fho shnrod mnsfor_socrof, fho rovIous hnndshnko mossngos, nnd n InboI fhnf
IdonfIfIos cIIonf or sorvor. Tho cnIcuInfIon Is somowhnf dIfforonf.
Ior T!S, wo hnvo
PII(noeIer_eecreI, finieIeJ_loIel, MD(IonJeIole_neeeogee)((
SHA-1(IonJeIole_neeeogee))
whoro fInIshod_InboI Is fho sfrIng "cIIonf fInIshod" for fho cIIonf nnd "sorvor fInIshod"
for fho sorvor.
CvyptogvupLIc CompututIons:
Tho ro_mnsfor_socrof for T!S Is cnIcuInfod In fho snmo wny ns In SS!v3. As In
SS!v3, fho mnsfor_socrof In T!S Is cnIcuInfod ns n hnsh funcfIon of fho
ro_mnsfor_socrof nnd fho fwo hoIIo rnndom numbors.
Tho form of fho T!S cnIcuInfIon Is dIfforonf from fhnf of SS!v3 nnd Is dofInod ns
foIIows:
noeIer_eecreI = PII(pre_noeIer_eecreI, "noeIer eecreI",
ClienIHello.ronJon (( SerterHello.ronJon)
Tho nIgorIfhm Is orformod unfII 48 byfos of soudornndom oufuf nro roducod.
Tho cnIcuInfIon of fho koy bIock mnforInI (MAC socrof koys, sossIon oncryfIon koys,
nnd IVs) Is dofInod ns foIIows:
le,_Ilocl = PII(noeIer_eecreI, "le, exponeion",
SecuriI,PoroneIere.eerter_ronJon ((
SecuriI,PoroneIere.clienI_ronJon)
unfII onough oufuf hns boon gonornfod. As wIfh SS!v3, fho koy_bIock Is n funcfIon of
fho mnsfor_socrof nnd fho cIIonf nnd sorvor rnndom numbors, buf for T!S fho ncfunI
nIgorIfhm Is dIfforonf.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
PuddIng:
In SS!, fho nddIng nddod rIor fo oncryfIon of usor dnfn Is fho mInImum
nmounf roquIrod so fhnf fho fofnI sIzo of fho dnfn fo bo oncryfod Is n muIfIIo of fho
cIhor's bIock Iongfh.
In T!S, fho nddIng cnn bo nny nmounf fhnf rosuIfs In n fofnI fhnf Is n muIfIIo
of fho cIhor's bIock Iongfh, u fo n mnxImum of 255 byfos.
Ior erumple, If fho InInfoxf (or comrossod foxf If comrossIon Is usod) Ius
MAC Ius nddIng.Iongfh byfo Is ?9 byfos Iong, fhon fho nddIng Iongfh, In byfos, cnn
bo l, 9, l?, nnd so on, u fo 249. A vnrInbIo nddIng Iongfh mny bo usod fo frusfrnfo
nffncks bnsod on nn nnnIysIs of fho Iongfhs of oxchnngod mossngos.
.3 SCUR ICTRONIC TRANSACTION
SIT Is nn oon oncryfIon nnd socurIfy socIfIcnfIon dosIgnod fo rofocf crodIf
cnrd frnnsncfIons on fho Infornof.
SIT Is nof IfsoIf n nymonf sysfom. !nfhor If Is n sof of socurIfy rofocoIs nnd
formnfs fhnf onnbIos usors fo omIoy fho oxIsfIng crodIf cnrd nymonf Infrnsfrucfuro on
nn oon nofwork, such ns fho Infornof, In n socuro fnshIon.
In ossonco, SIT rovIdos fhroo sorvIcos:
V IrovIdos n socuro communIcnfIons chnnnoI nmong nII nrfIos InvoIvod In n
frnnsncfIon
V IrovIdos frusf by fho uso of X.509v3 dIgIfnI corfIfIcnfos
V Insuros rIvncy bocnuso fho InformnfIon Is onIy nvnIInbIo fo nrfIos In n
frnnsncfIon whon nnd whoro nocossnry
SIT Is n comIox socIfIcnfIon dofInod In fhroo books Issuod In Mny of l99?:
V Book 1: IusInoss oscrIfIon (80 ngos)
V Book 2: Irogrnmmor's CuIdo (629 ngos)
V Book 3: IormnI IrofocoI ofInIfIon (262 ngos)
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
ST OVRVIW
A good wny fo bogIn our dIscussIon of SIT Is fo Iook nf fho busInoss
roquIromonfs for SIT, Ifs koy fonfuros, nnd fho nrfIcInnfs In SIT frnnsncfIons.
RequIvements:
Iook l of fho SIT socIfIcnfIon IIsfs fho foIIowIng busInoss roquIromonfs for
socuro nymonf rocossIng wIfh crodIf cnrds ovor fho Infornof nnd ofhor nofworks:
V ProtiJe confiJentiulity of puyment unJ orJering informution: If Is
nocossnry fo nssuro cnrdhoIdors fhnf fhIs InformnfIon Is snfo nnd nccossIbIo onIy
fo fho Infondod rocIIonf. ConfIdonfInIIfy nIso roducos fho rIsk of frnud by oIfhor
nrfy fo fho frnnsncfIon or by mnIIcIous fhIrd nrfIos. SIT usos oncryfIon fo
rovIdo confIdonfInIIfy.
V Enoure the integrity of ull trunomitteJ Jutu: Thnf Is, onsuro fhnf no chnngos
In confonf occur durIng frnnsmIssIon of SIT mossngos. IgIfnI sIgnnfuros nro
usod fo rovIdo InfogrIfy.
V ProtiJe uuthenticution thut u curJholJer io u legitimute uoer of u creJit
curJ uccount: A mochnnIsm fhnf IInks n cnrdhoIdor fo n socIfIc nccounf
numbor roducos fho IncIdonco of frnud nnd fho ovornII cosf of nymonf
rocossIng. IgIfnI sIgnnfuros nnd corfIfIcnfos nro usod fo vorIfy fhnf n
cnrdhoIdor Is n IogIfImnfo usor of n vnIId nccounf.
V ProtiJe uuthenticution thut u merchunt cun uccept creJit curJ
trunouctiono through ito relutionohip uith u finunciul inotitution: ThIs Is
fho comIomonf fo fho rocodIng roquIromonf. CnrdhoIdors nood fo bo nbIo fo
IdonfIfy morchnnfs wIfh whom fhoy cnn conducf socuro frnnsncfIons. AgnIn,
dIgIfnI sIgnnfuros nnd corfIfIcnfos nro usod.
V Enoure the uoe of the beot oecurity pructiceo unJ oyotem Jeoign
techniqueo to protect ull legitimute purtieo in un electronic commerce
trunouction: SIT Is n woII-fosfod socIfIcnfIon bnsod on hIghIy socuro
cryfogrnhIc nIgorIfhms nnd rofocoIs.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
ST PuvtIcIpunts:
Tho nrfIcInnfs In fho SIT sysfom, whIch IncIudo fho foIIowIng:
V CurJholJer:
In fho oIocfronIc onvIronmonf, consumors nnd corornfo urchnsors
Inforncf wIfh morchnnfs from orsonnI comufors ovor fho Infornof. A
cnrdhoIdor Is nn nufhorIzod hoIdor of n nymonf cnrd (o.g., MnsforCnrd, VIsn)
fhnf hns boon Issuod by nn Issuor.
V Merchunt:
A morchnnf Is n orson or orgnnIznfIon fhnf hns goods or sorvIcos fo soII fo
fho cnrdhoIdor. TyIcnIIy, fhoso goods nnd sorvIcos nro offorod vIn n Wob sIfo or
by oIocfronIc mnII. A morchnnf fhnf nccofs nymonf cnrds musf hnvo n
roInfIonshI wIfh nn ncquIror.
V 1oouer.
ThIs Is n fInnncInI InsfIfufIon, such ns n bnnk, fhnf rovIdos fho
cnrdhoIdor wIfh fho nymonf cnrd. TyIcnIIy, nccounfs nro nIIod for nnd
oonod by mnII or In orson. !IfImnfoIy, If Is fho Issuor fhnf Is rosonsIbIo for
fho nymonf of fho dobf of fho cnrdhoIdor.
V Acquirer.
ThIs Is n fInnncInI InsfIfufIon fhnf osfnbIIshos nn nccounf wIfh n morchnnf
nnd rocossos nymonf cnrd nufhorIznfIons nnd nymonfs. Morchnnfs wIII
usunIIy nccof moro fhnn ono crodIf cnrd brnnd buf do nof wnnf fo donI wIfh
muIfIIo bnnkcnrd nssocInfIons or wIfh muIfIIo IndIvIdunI Issuors.
Tho ncquIror rovIdos nufhorIznfIon fo fho morchnnf fhnf n gIvon cnrd
nccounf Is ncfIvo nnd fhnf fho roosod urchnso doos nof oxcood fho crodIf IImIf.
Tho ncquIror nIso rovIdos oIocfronIc frnnsfor of nymonfs fo fho morchnnf's
nccounf. SubsoquonfIy, fho ncquIror Is roImbursod by fho Issuor ovor somo sorf of
nymonf nofwork for oIocfronIc funds frnnsfor.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
V Puyment guteuuy.
ThIs Is n funcfIon oornfod by fho ncquIror or n dosIgnnfod fhIrd nrfy
fhnf rocossos morchnnf nymonf mossngos. Tho nymonf gnfowny Inforfncos
bofwoon SIT nnd fho oxIsfIng bnnkcnrd nymonf nofworks for nufhorIznfIon nnd
nymonf funcfIons. Tho morchnnf oxchnngos SIT mossngos wIfh fho nymonf
gnfowny ovor fho Infornof, whIIo fho nymonf gnfowny hns somo dIrocf or
nofwork connocfIon fo fho ncquIror's fInnncInI rocossIng sysfom.
V Certificution uuthority (CA):
ThIs Is nn onfIfy fhnf Is frusfod fo Issuo X.509v3 ubIIc-koy corfIfIcnfos for
cnrdhoIdors, morchnnfs, nnd nymonf gnfownys. Tho succoss of SIT wIII doond
on fho oxIsfonco of n CA Infrnsfrucfuro nvnIInbIo for fhIs uroso. A hIornrchy of
CAs Is usod, so fhnf nrfIcInnfs nood nof bo dIrocfIy corfIfIod by n roof
nufhorIfy.
Secure Electronic Commerce Componento
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
IoIow fIguro shows fho uso of n dunI sIgnnfuro fo moof fho roquIromonf of fho
rocodIng nrngrnh. Tho cusfomor fnkos fho hnsh (usIng SHA-l) of fho II nnd fho
hnsh of fho OI. Thoso fwo hnshos nro fhon concnfonnfod nnd fho hnsh of fho rosuIf Is
fnkon. IInnIIy, fho cusfomor oncryfs fho fInnI hnsh wIfh hIs or hor rIvnfo sIgnnfuro
koy, cronfIng fho dunI sIgnnfuro.
Conotruction of Duul Signuture
Tho oornfIon cnn bo summnrIzod ns
DS = 1(PIc, [H(H(P1)((H(O1)])
whoro I!c Is fho cusfomor's rIvnfo sIgnnfuro koy.
ow suoso fhnf fho morchnnf Is In ossossIon of fho dunI sIgnnfuro (S), fho
OI, nnd fho mossngo dIgosf for fho II (IIM). Tho morchnnf nIso hns fho ubIIc koy of
fho cusfomor, fnkon from fho cusfomor's corfIfIcnfo.
Thon fho morchnnf cnn comufo fho qunnfIfIos
H(P1MS((H[O1]), D(PUc, DS)
whoro I!c Is fho cusfomor's ubIIc sIgnnfuro koy.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
If fhoso fwo qunnfIfIos nro oqunI, fhon fho morchnnf hns vorIfIod fho sIgnnfuro.
SImIInrIy, If fho bnnk Is In ossossIon of S, II, fho mossngo dIgosf for OI (OIM), nnd
fho cusfomor's ubIIc koy, fhon fho bnnk cnn comufo
H(H[O1]((O1MD), D(PUc, DS)
AgnIn, If fhoso fwo qunnfIfIos nro oqunI, fhon fho bnnk hns vorIfIod fho
sIgnnfuro. In summnry,
V Tho morchnnf hns rocoIvod OI nnd vorIfIod fho sIgnnfuro.
V Tho bnnk hns rocoIvod II nnd vorIfIod fho sIgnnfuro.
V Tho cusfomor hns IInkod fho OI nnd II nnd cnn rovo fho IInkngo.
PAYMNT PROCSSING
Tho foIIowIng frnnsncfIons:
Iurchnso roquosf
Inymonf nufhorIznfIon
Inymonf cnfuro
PuvcLuse Request:
Tho urchnso roquosf oxchnngo consIsfs of four meoougeo: InIfInfo !oquosf,
InIfInfo !osonso, Iurchnso !oquosf, nnd Iurchnso !osonso.
In ordor fo sond SIT mossngos fo fho morchnnf, fho cnrdhoIdor musf hnvo n coy
of fho corfIfIcnfos of fho morchnnf nnd fho nymonf gnfowny. Tho cusfomor roquosfs fho
corfIfIcnfos In fho 1nitiute Requeot meoouge, sonf fo fho morchnnf. ThIs mossngo
IncIudos fho brnnd of fho crodIf cnrd fhnf fho cusfomor Is usIng. Tho mossngo nIso
IncIudos nn I nssIgnod fo fhIs roquosf/rosonso nIr by fho cusfomor nnd n nonco usod
fo onsuro fImoIInoss.
Tho morchnnf gonornfos n rosonso nnd sIgns If wIfh Ifs rIvnfo sIgnnfuro koy.
Tho rosonso IncIudos fho nonco from fho cusfomor, nnofhor nonco for fho cusfomor fo
rofurn In fho noxf mossngo, nnd n frnnsncfIon I for fhIs urchnso frnnsncfIon. In
nddIfIon fo fho sIgnod rosonso, fho 1nitiute Reoponoe meoouge IncIudos fho
morchnnf's sIgnnfuro corfIfIcnfo nnd fho nymonf gnfowny's koy oxchnngo corfIfIcnfo.
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Tho cnrdhoIdor vorIfIos fho morchnnf nnd gnfowny corfIfIcnfos by monns of fhoIr
rosocfIvo CA sIgnnfuros nnd fhon cronfos fho OI nnd II. Tho frnnsncfIon I nssIgnod
by fho morchnnf Is Incod In bofh fho OI nnd II. Tho OI doos nof confnIn oxIIcIf ordor
dnfn such ns fho numbor nnd rIco of Ifoms. !nfhor, If confnIns nn ordor roforonco
gonornfod In fho oxchnngo bofwoon morchnnf nnd cusfomor durIng fho shoIng hnso
boforo fho fIrsf SIT mossngo.
oxf, fho cnrdhoIdor ronros fho Iurchnso !oquosf mossngo (IoIow IIguro).
Ior fhIs uroso, fho cnrdhoIdor gonornfos n ono-fImo symmofrIc oncryfIon koy, Ks.
CurJholJer SenJo Purchuoe Requeot
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Whon fho morchnnf rocoIvos fho Iurchnso !oquosf mossngo, If orforms fho
foIIowIng ncfIons (IoIow IIguro):
l) VorIfIos fho cnrdhoIdor corfIfIcnfos by monns of Ifs CA sIgnnfuros.
2) VorIfIos fho dunI sIgnnfuro usIng fho cusfomor's ubIIc sIgnnfuro koy. ThIs
onsuros fhnf fho ordor hns nof boon fnmorod wIfh In frnnsIf nnd fhnf If wns
sIgnod usIng fho cnrdhoIdor's rIvnfo sIgnnfuro koy.
3) Irocossos fho ordor nnd forwnrds fho nymonf InformnfIon fo fho nymonf
gnfowny for nufhorIznfIon.
4) Sonds n urchnso rosonso fo fho cnrdhoIdor.
Merchunt Verifieo Cuotomer Purchuoe Requeot
UNIT 4 : NTWORK SCURITY PRACTIC NTWORK SCURITY
Puyment Cuptuve:
To obfnIn nymonf, fho morchnnf ongngos fho nymonf gnfowny In n nymonf
cnfuro frnnsncfIon, consIsfIng of n cnfuro roquosf nnd n cnfuro rosonso mossngo.
Ior fho Cupture Requeot meoouge, fho morchnnf gonornfos, sIgns, nnd
oncryfs n cnfuro roquosf bIock, whIch IncIudos fho nymonf nmounf nnd fho
frnnsncfIon I. Tho mossngo nIso IncIudos fho oncryfod cnfuro fokon rocoIvod onrIIor
(In fho AufhorIznfIon !osonso) for fhIs frnnsncfIon, ns woII ns fho morchnnf's
sIgnnfuro koy nnd koy-oxchnngo koy corfIfIcnfos.
Whon fho nymonf gnfowny rocoIvos fho cnfuro roquosf mossngo, If docryfs
nnd vorIfIos fho cnfuro roquosf bIock nnd docryfs nnd vorIfIos fho cnfuro fokon
bIock. If fhon chocks for consIsfoncy bofwoon fho cnfuro roquosf nnd cnfuro fokon. If
fhon cronfos n cIonrIng roquosf fhnf Is sonf fo fho Issuor ovor fho rIvnfo nymonf
nofwork. ThIs roquosf cnusos funds fo bo frnnsforrod fo fho morchnnf's nccounf.
Tho gnfowny fhon nofIfIos fho morchnnf of nymonf In n Cupture Reoponoe
meoouge. Tho mossngo IncIudos n cnfuro rosonso bIock fhnf fho gnfowny sIgns nnd
oncryfs. Tho mossngo nIso IncIudos fho gnfowny's sIgnnfuro koy corfIfIcnfo. Tho
morchnnf soffwnro sforos fho cnfuro rosonso fo bo usod for roconcIIInfIon wIfh
nymonf rocoIvod from fho ncquIror.
***N***
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
UNIT V
SYSTM SCURITY
5.1 INTRURS
V UnuuthorixeJ intruoion Info n comufor sysfom or nofwork Is ono of fho
mosf sorIous fhronfs fo comufor socurIfy.
V 1ntruoion Jetection oyotemo hnvo boon dovoIood fo rovIdo onrIy wnrnIng
of nn InfrusIon so fhnf dofonsIvo ncfIon cnn bo fnkon fo rovonf or mInImIzo
dnmngo.
V 1ntruoion Jetection InvoIvos dofocfIng unusunI nfforns of ncfIvIfy or
nfforns of ncfIvIfy fhnf nro known fo corroInfo wIfh InfrusIons.
V Ono Imorfnnf element of intruoion pretention Is nssword mnnngomonf,
wIfh fho gonI of rovonfIng unnufhorIzod usors from hnvIng nccoss fo fho
nsswords of ofhors.
I.1 INTRURS
Ono of fho fwo mosf ubIIcIzod fhronfs fo socurIfy Is fho Infrudor (fho ofhor Is
vIrusos), gonornIIy roforrod fo ns n hnckor or crnckor.
TLvee CIusses oI Intvudevs:
V MuoqueruJer:
An IndIvIdunI who Is nof nufhorIzod fo uso fho comufor nnd who
onofrnfos n sysfom's nccoss confroIs fo oxIoIf n IogIfImnfo usor's nccounf.
V Miofeuoor:
A IogIfImnfo usor who nccossos dnfn, rogrnms, or rosourcos for whIch
such nccoss Is nof nufhorIzod, or who Is nufhorIzod for such nccoss buf mIsusos
hIs or hor rIvIIogos.
V ClunJeotine uoer:
An IndIvIdunI who soIzos suorvIsory confroI of fho sysfom nnd usos fhIs
confroI fo ovndo nudIfIng nnd nccoss confroIs or fo suross nudIf coIIocfIon.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
CuossIng nffncks nro fonsIbIo, nnd Indood hIghIy offocfIvo, whon n Inrgo numbor
of guossos cnn bo nffomfod nufomnfIcnIIy nnd onch guoss vorIfIod, wIfhouf fho
guossIng rocoss boIng dofocfnbIo.
Tho oetenth methoJ of nffnck IIsfod onrIIor, fho Trojnn horso, cnn bo
nrfIcuInrIy dIffIcuIf fo counfor. IxnmIo: A Iow-rIvIIogo usor roducod n gnmo
rogrnm nnd InvIfod fho sysfom oornfor fo uso If In hIs or hor snro fImo. Tho rogrnm
dId Indood Iny n gnmo, buf In fho bnckground If nIso confnInod codo fo coy fho
nssword fIIo, whIch wns unoncryfod buf nccoss rofocfod, Info fho usor's fIIo. Iocnuso
fho gnmo wns runnIng undor fho oornfor's hIgh-rIvIIogo modo, If wns nbIo fo gnIn
nccoss fo fho nssword fIIo.
Tho eighth uttuck IIsfod, IIno fnIng, Is n mnffor of hysIcnI socurIfy. If cnn bo
counforod wIfh IInk oncryfIon fochnIquos.
Ofhor InfrusIon fochnIquos do nof roquIro IonrnIng n nssword. Infrudors cnn gof
nccoss fo n sysfom by oxIoIfIng nffncks such ns buffor ovorfIows on n rogrnm fhnf
runs wIfh corfnIn rIvIIogos. IrIvIIogo oscnInfIon cnn bo dono fhIs wny ns woII.
Two PvIncIpuI Countev Meusuves:
Detection Is concornod wIfh IonrnIng of nn nffnck, oIfhor boforo or nffor Ifs succoss.
Pretention Is n chnIIongIng socurIfy gonI nnd nn uhIII bnffIo nf nII fImos.
Tho dIffIcuIfy sfoms from fho fncf fhnf fho dofondor musf nffomf fo fhwnrf nII
ossIbIo nffncks, whorons fho nffnckor Is froo fo fry fo fInd fho wonkosf IInk In fho
dofonso chnIn nnd nffnck nf fhnf oInf.
I.2 INTRUSION TCTION
A umbor of ConsIdornfIons:
V If nn InfrusIon Is dofocfod quIckIy onough, fho Infrudor cnn bo IdonfIfIod nnd
ojocfod from fho sysfom boforo nny dnmngo Is dono or nny dnfn nro comromIsod.
Ivon If fho dofocfIon Is nof suffIcIonfIy fImoIy fo roomf fho Infrudor, fho
soonor fhnf fho InfrusIon Is dofocfod, fho Ioss fho nmounf of dnmngo nnd fho
moro quIckIy fhnf rocovory cnn bo nchIovod.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
V Resouvce utIIIzutIon:
QunnfIfy of rosourcos consumod durIng n socIfIod orIod. IxnmIos
IncIudo fho numbor of ngos rInfod durIng n usor sossIon nnd fofnI fImo
consumod by n rogrnm oxocufIon.
CIvon fhoso gonornI mofrIcs, vnrIous fosfs cnn bo orformod fo doformIno
whofhor curronf ncfIvIfy fIfs wIfhIn nccofnbIo IImIfs. Tho foIIowIng nronchos fhnf
mny bo fnkon:
Monn nnd sfnndnrd dovInfIon
MuIfIvnrInfo
Mnrkov rocoss
TImo sorIos
OornfIonnI
Tho sImIosf sfnfIsfIcnI fosf Is fo monsuro fho meun unJ otunJurJ Jetiution
of n nrnmofor ovor somo hIsforIcnI orIod. ThIs gIvos n rofIocfIon of fho nvorngo
bohnvIor nnd Ifs vnrInbIIIfy. Tho uso of monn nnd sfnndnrd dovInfIon Is nIIcnbIo fo n
wIdo vnrIofy of counfors, fImors, nnd rosourco monsuros. Iuf fhoso monsuros, by
fhomsoIvos, nro fyIcnIIy foo crudo for InfrusIon dofocfIon urosos.
A multituriute moJel Is bnsod on corroInfIons bofwoon fwo or moro vnrInbIos.
Infrudor bohnvIor mny bo chnrncforIzod wIfh gronfor confIdonco by consIdorIng such
corroInfIons (for oxnmIo, rocossor fImo nnd rosourco usngo, or IogIn froquoncy nnd
sossIon oInsod fImo).
A Murkot proceoo moJel Is usod fo osfnbIIsh frnnsIfIon robnbIIIfIos nmong
vnrIous sfnfos. As nn oxnmIo, fhIs modoI mIghf bo usod fo Iook nf frnnsIfIons bofwoon
corfnIn commnnds.
A time oerieo moJel focusos on fImo InforvnIs, IookIng for soquoncos of ovonfs
fhnf hnon foo rnIdIy or foo sIowIy. A vnrIofy of sfnfIsfIcnI fosfs cnn bo nIIod fo
chnrncforIzo nbnormnI fImIng.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
4) !sors do nof gonornIIy oon dIsk dovIcos dIrocfIy buf roIy on hIghor-IovoI
oornfIng sysfom ufIIIfIos.
5) !sors shouId nof bo Ioggod In moro fhnn onco fo fho snmo sysfom.
6) !sors do nof mnko coIos of sysfom rogrnms.
Tho penetrution iJentificution ocheme usod In IIS Is rorosonfnfIvo of fho
sfrnfogy foIIowod. AudIf rocords nro oxnmInod ns fhoy nro gonornfod, nnd fhoy nro
mnfchod ngnInsf fho ruIo bnso. If n mnfch Is found, fhon fho usor's susIcIon rnfIng Is
Incronsod. If onough ruIos nro mnfchod, fhon fho rnfIng wIII nss n fhroshoId fhnf
rosuIfs In fho roorfIng of nn nnomnIy.
Tho 1DES upprouch Is bnsod on nn oxnmInnfIon of nudIf rocords. A wonknoss of
fhIs Inn Is Ifs Inck of fIoxIbIIIfy. Ior n gIvon onofrnfIon sconnrIo, fhoro mny bo n
numbor of nIfornnfIvo nudIf rocord soquoncos fhnf couId bo roducod, onch vnryIng from
fho ofhors sIIghfIy or In subfIo wnys. If mny bo dIffIcuIf fo In down nII fhoso vnrInfIons
In oxIIcIf ruIos.
Anofhor mofhod Is fo dovoIo n hIghor-IovoI modoI Indoondonf of opecific
uuJit recorJo. An oxnmIo of fhIs Is n sfnfo frnnsIfIon modoI known ns !STAT.
!STAT donIs In gonornI ncfIons rnfhor fhnn fho dofnIIod socIfIc ncfIons rocordod by
fho !IX nudIfIng mochnnIsm. !STAT Is ImIomonfod on n SunOS sysfom fhnf
rovIdos nudIf rocords on 239 ovonfs.
USTAT Actiono terouo SunOS Etent Typeo
USTAT
ActIon
SunOS vent Type
!ond oon_r, oon_rc, oon_rfc, oon_rwc, oon_rwfc, oon_rf,
oon_rw, oon_rwf
WrIfo fruncnfo, ffruncnfo, cronf, oon_rfc, oon_rwc, oon_rwfc,
oon_rf, oon_rw, oon_rwf, oon_w, oon_wf, oon_wc,
oon_wcf
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Whon susIcIous ncfIvIfy Is dofocfod, nn nIorf Is sonf fo fho confrnI mnnngor. Tho
confrnI mnnngor IncIudos nn oxorf sysfom fhnf cnn drnw Inforoncos from rocoIvod
dnfn. Tho mnnngor mny nIso quory IndIvIdunI sysfoms for coIos of HA!s fo corroInfo
wIfh fhoso from ofhor ngonfs.
Tho !A monIfor ngonf nIso suIIos InformnfIon fo fho confrnI mnnngor. Tho
!A monIfor ngonf nudIfs hosf-hosf connocfIons, sorvIcos usod, nnd voIumo of frnffIc. If
sonrchos for sIgnIfIcnnf ovonfs, such ns suddon chnngos In nofwork Iond, fho uso of
socurIfy-roInfod sorvIcos, nnd nofwork ncfIvIfIos such ns UORJLQ.
HONYPOTS
A roInfIvoIy roconf InnovnfIon In InfrusIon dofocfIon fochnoIogy Is fho honoyof.
Honoyofs nro docoy sysfoms fhnf nro dosIgnod fo Iuro n ofonfInI nffnckor nwny from
crIfIcnI sysfoms.
Honoyofs nro dosIgnod fo
V dIvorf nn nffnckor from nccossIng crIfIcnI sysfoms
V coIIocf InformnfIon nbouf fho nffnckor's ncfIvIfy
V oncourngo fho nffnckor fo sfny on fho sysfom Iong onough for ndmInIsfrnfors fo
rosond
Thoso sysfoms nro fIIIod wIfh fnbrIcnfod InformnfIon dosIgnod fo nonr vnIunbIo
buf fhnf n IogIfImnfo usor of fho sysfom wouIdn'f nccoss. Thus, nny nccoss fo fho
honoyof Is susocf.
Tho sysfom Is Insfrumonfod wIfh sonsIfIvo monIfors nnd ovonf Ioggors fhnf
dofocf fhoso nccossos nnd coIIocf InformnfIon nbouf fho nffnckor's ncfIvIfIos. Iocnuso
nny nffnck ngnInsf fho honoyof Is mndo fo soom succossfuI, ndmInIsfrnfors hnvo fImo
fo mobIIIzo nnd Iog nnd frnck fho nffnckor wIfhouf ovor oxosIng roducfIvo sysfoms.
InIfInI offorfs InvoIvod n sIngIo honoyof comufor wIfh II nddrossos dosIgnod fo
nffrncf hnckors. Moro roconf rosonrch hns focusod on buIIdIng onfIro honoyof nofworks
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
fhnf omuInfo nn onforrIso, ossIbIy wIfh ncfunI or sImuInfod frnffIc nnd dnfn. Onco
hnckors nro wIfhIn fho nofwork, ndmInIsfrnfors cnn obsorvo fhoIr bohnvIor In dofnII nnd
fIguro ouf dofonsos.
INTRUSION TCTION XCHANG IORMAT
To fncIIIfnfo fho dovoIomonf of dIsfrIbufod InfrusIon dofocfIon sysfoms fhnf cnn
funcfIon ncross n wIdo rnngo of Infforms nnd onvIronmonfs, sfnndnrds nro noodod fo
suorf InforoornbIIIfy. Such sfnndnrds nro fho focus of fho IITI InfrusIon ofocfIon
WorkIng Crou.
Tho uroso of fho workIng grou Is fo dofIno dnfn formnfs nnd oxchnngo
rocoduros for shnrIng InformnfIon of Inforosf fo InfrusIon dofocfIon nnd rosonso
sysfoms nnd fo mnnngomonf sysfoms fhnf mny nood fo Inforncf wIfh fhom.
Tho oufufs of fhIs workIng grou IncIudo fho foIIowIng:
l) A requiremento Jocument, whIch doscrIbos fho hIgh-IovoI funcfIonnI
roquIromonfs for communIcnfIon bofwoon InfrusIon dofocfIon sysfoms nnd
roquIromonfs for communIcnfIon bofwoon InfrusIon dofocfIon sysfoms nnd wIfh
mnnngomonf sysfoms, IncIudIng fho rnfIonnIo for fhoso roquIromonfs. SconnrIos
wIII bo usod fo IIIusfrnfo fho roquIromonfs.
2) A common intruoion lunguuge opecificution, whIch doscrIbos dnfn formnfs
fhnf snfIsfy fho roquIromonfs.
3) A frumeuork Jocument, whIch IdonfIfIos oxIsfIng rofocoIs bosf usod for
communIcnfIon bofwoon InfrusIon dofocfIon sysfoms, nnd doscrIbos how fho
dovIsod dnfn formnfs roInfo fo fhom.
I.3 PASSWOR MANAGMNT
PASSWOR PROTCTION
Tho fronf IIno of dofonso ngnInsf Infrudors Is fho nssword sysfom. VIrfunIIy nII
muIfIusor sysfoms roquIro fhnf n usor rovIdo nof onIy n nnmo or IdonfIfIor (I) buf
nIso n nssword. Tho nssword sorvos fo nufhonfIcnfo fho I of fho IndIvIdunI IoggIng
on fo fho sysfom.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
In fho fIrsf oIghf chnrncfors, fho nsswords musf IncIudo nf Ionsf ono onch of
uorcnso, Ioworcnso, numorIc dIgIfs, nnd uncfunfIon mnrks. Thoso ruIos couId bo
couIod wIfh ndvIco fo fho usor.
AIfhough fhIs nronch Is suorIor fo sImIy oducnfIng usors, If mny nof bo
suffIcIonf fo fhwnrf nssword crnckors. ThIs schomo nIorfs crnckors ns fo whIch
nsswords nof fo fry buf mny sfIII mnko If ossIbIo fo do nssword crnckIng.
Anofhor ossIbIo rocoduro Is sImIy fo comIIo n Inrgo dIcfIonnry of ossIbIo
"bnd" nsswords. Whon n usor soIocfs n nssword, fho sysfom chocks fo mnko suro fhnf
If Is nof on fho dIsnrovod IIsf.
Thoro nro fwo robIoms wIfh fhIs nronch:
Spuce:
Tho dIcfIonnry musf bo vory Inrgo fo bo offocfIvo. Ior oxnmIo, fho dIcfIonnry
occuIos moro fhnn 30 mognbyfos of sforngo.
TIme:
Tho fImo roquIrod fo sonrch n Inrgo dIcfIonnry mny IfsoIf bo Inrgo. In nddIfIon, fo
chock for IIkoIy ormufnfIons of dIcfIonnry words, oIfhor fhoso words mosf bo IncIudod
In fho dIcfIonnry, mnkIng If fruIy hugo, or onch sonrch musf nIso InvoIvo consIdornbIo
rocossIng.
In gonornI, u Murkot moJel Is n qundruIo |m, A, T, k], whoro m Is fho numbor
of sfnfos In fho modoI, A Is fho sfnfo snco, T Is fho mnfrIx of frnnsIfIon robnbIIIfIos,
nnd k Is fho ordor of fho modoI.
Ior n kfh-ordor modoI, fho robnbIIIfy of mnkIng n frnnsIfIon fo n nrfIcuInr
Ioffor doonds on fho rovIous k Ioffors fhnf hnvo boon gonornfod. IoIow fIguro shows n
sImIo fIrsf-ordor modoI.
Tho nufhors roorf on fho dovoIomonf nnd uso of n socond-ordor modoI. To
bogIn, n dIcfIonnry of guossnbIo nsswords Is consfrucfod.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
A quIfo dIfforonf nronch hns boon roorfod by Snfford. If Is bnsod on fho uso
of n IIoom fIIfor. To bogIn, wo oxInIn fho oornfIon of fho IIoom fIIfor.
A IIoom fIIfor of ordor k consIsfs of n sof of k Indoondonf hnsh funcfIons Hl(x),
H2(x),..., Hk(x), whoro onch funcfIon mns n nssword Info n hnsh vnIuo In fho rnngo 0
fo - l Thnf Is,
HI(Xj) = y l _ I _ k; l _ j _ ; 0 _ y _ - l
whoro
Xj = jfh word In nssword dIcfIonnry
= numbor of words In nssword dIcfIonnry
Tho foIIowIng proceJure Is fhon nIIod fo fho dIcfIonnry:
1. A hnsh fnbIo of bIfs Is dofInod, wIfh nII bIfs InIfInIIy sof fo 0.
2. Ior onch nssword, Ifs k hnsh vnIuos nro cnIcuInfod, nnd fho corrosondIng bIfs In
fho hnsh fnbIo nro sof fo l. Thus, If HI(Xj) = 6? for somo (I, j), fhon fho sIxfy-sovonfh
bIf of fho hnsh fnbIo Is sof fo l; If fho bIf nIrondy hns fho vnIuo l, If romnIns nf l.
Whon n now nssword Is rosonfod fo fho chockor, Ifs k hnsh vnIuos nro
cnIcuInfod. If nII fho corrosondIng bIfs of fho hnsh fnbIo nro oqunI fo l, fhon fho
nssword Is rojocfod. AII nsswords In fho dIcfIonnry wIII bo rojocfod.
Iuf fhoro wIII nIso bo somo "fuloe pooititeo" (fhnf Is, nsswords fhnf nro nof In
fho dIcfIonnry buf fhnf roduco n mnfch In fho hnsh fnbIo). To soo fhIs, consIdor n
schomo wIfh fwo hnsh funcfIons.
Suoso fhnf fho nsswords undorfnkor nnd huIkhognn nro In fho dIcfIonnry, buf
xC#jj98 Is nof. Iurfhor suoso fhnf
Hl(undorfnkor) = 25 Hl(huIkhognn) = 83 Hl(xC#jj98) = 665
H2(undorfnkor) = 998 H2(huIkhognn) = 665 H2(xC#jj98) = 998
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
IogIc Bomb:
Ono of fho oIdosf fyos of rogrnm fhronf, rodnfIng vIrusos nnd worms, Is fho
IogIc bomb. Tho IogIc bomb Is codo omboddod In somo IogIfImnfo rogrnm fhnf Is sof fo
"oxIodo" whon corfnIn condIfIons nro mof.
IxnmIos of condIfIons fhnf cnn bo usod ns frIggors for n IogIc bomb nro fho
rosonco or nbsonco of corfnIn fIIos, n nrfIcuInr dny of fho wook or dnfo, or n nrfIcuInr
usor runnIng fho nIIcnfIon. Onco frIggorod, n bomb mny nIfor or doIofo dnfn or onfIro
fIIos, cnuso n mnchIno hnIf, or do somo ofhor dnmngo.
TvoJun Hovses:
A Trojnn horso Is n usofuI, or nnronfIy usofuI, rogrnm or commnnd rocoduro
confnInIng hIddon codo fhnf, whon Invokod, orforms somo unwnnfod or hnrmfuI
funcfIon. Trojnn horso rogrnms cnn bo usod fo nccomIIsh funcfIons IndIrocfIy fhnf nn
unnufhorIzod usor couId nof nccomIIsh dIrocfIy.
Ior oxnmIo, fo gnIn nccoss fo fho fIIos of nnofhor usor on n shnrod sysfom, n
usor couId cronfo n Trojnn horso rogrnm fhnf, whon oxocufod, chnngod fho InvokIng
usor's fIIo ormIssIons so fhnf fho fIIos nro rondnbIo by nny usor. Tho nufhor couId fhon
Induco usors fo run fho rogrnm by IncIng If In n common dIrocfory nnd nnmIng If such
fhnf If nonrs fo bo n usofuI ufIIIfy.
An oxnmIo Is n rogrnm fhnf osfonsIbIy roducos n IIsfIng of fho usor's fIIos In n
dosIrnbIo formnf. Affor nnofhor usor hns run fho rogrnm, fho nufhor cnn fhon nccoss
fho InformnfIon In fho usor's fIIos.
Anofhor common motitution for fho Trojnn horso Is dnfn dosfrucfIon. Tho
rogrnm nonrs fo bo orformIng n usofuI funcfIon (o.g., n cnIcuInfor rogrnm), buf If
mny nIso bo quIofIy doIofIng fho usor's fIIos.
ZombIe:
A zombIo Is n rogrnm fhnf socrofIy fnkos ovor nnofhor Infornof-nffnchod
comufor nnd fhon usos fhnf comufor fo Inunch nffncks fhnf nro dIffIcuIf fo frnco fo
fho zombIo's cronfor.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
V Erecution phuoe:
Tho funcfIon Is orformod. Tho funcfIon mny bo hnrmIoss, such ns n
mossngo on fho scroon, or dnmngIng, such ns fho dosfrucfIon of rogrnms nnd
dnfn fIIos.
VIvus Stvuctuve:
A vIrus cnn bo roondod or osfondod fo nn oxocufnbIo rogrnm, or If cnn bo
omboddod In somo ofhor fnshIon. Tho koy fo Ifs oornfIon Is fhnf fho Infocfod rogrnm,
whon Invokod, wIII fIrsf oxocufo fho vIrus codo nnd fhon oxocufo fho orIgInnI codo of fho
rogrnm.
A Simple Viruo
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
InItIuI InIectIon:
Onco n vIrus hns gnInod onfry fo n sysfom by InfocfIng n sIngIo rogrnm, If Is In n
osIfIon fo Infocf somo or nII ofhor oxocufnbIo fIIos on fhnf sysfom whon fho Infocfod
rogrnm oxocufos. Thus, vIrnI InfocfIon cnn bo comIofoIy rovonfod by rovonfIng fho
vIrus from gnInIng onfry In fho fIrsf Inco.
!nforfunnfoIy, rovonfIon Is oxfrnordInnrIIy dIffIcuIf bocnuso n vIrus cnn bo nrf
of nny rogrnm oufsIdo n sysfom. Thus, unIoss ono Is confonf fo fnko nn nbsoIufoIy bnro
Ioco of Iron nnd wrIfo nII ono's own sysfom nnd nIIcnfIon rogrnms, ono Is
vuInornbIo.
TYPS OI VIRUSS
Tho foIIowIng cnfogorIos nro fho moot oignificunt typeo of tiruoeo:
V Puruoitic tiruo:
Tho frndIfIonnI nnd sfIII mosf common form of vIrus. A nrnsIfIc vIrus
nffnchos IfsoIf fo oxocufnbIo fIIos nnd roIIcnfos, whon fho Infocfod rogrnm Is
oxocufod, by fIndIng ofhor oxocufnbIo fIIos fo Infocf.
V Memory-reoiJent tiruo:
!odgos In mnIn momory ns nrf of n rosIdonf sysfom rogrnm. Irom fhnf
oInf on, fho vIrus Infocfs ovory rogrnm fhnf oxocufos.
V Boot oector tiruo:
Infocfs n mnsfor boof rocord or boof rocord nnd sronds whon n sysfom Is
boofod from fho dIsk confnInIng fho vIrus.
V Steulth tiruo:
A form of vIrus oxIIcIfIy dosIgnod fo hIdo IfsoIf from dofocfIon by
nnfIvIrus soffwnro.
V Polymorphic tiruo:
A vIrus fhnf mufnfos wIfh ovory InfocfIon, mnkIng dofocfIon by fho
"sIgnnfuro" of fho vIrus ImossIbIo.
V Metumorphic tiruo:
As wIfh n oIymorhIc vIrus, n mofnmorhIc vIrus mufnfos wIfh ovory
InfocfIon. Tho dIfforonco Is fhnf n mofnmorhIc vIrus rowrIfos IfsoIf comIofoIy nf
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Mucvo VIvuses:
Mncro vIrusos nro nrfIcuInrIy fhronfonIng for n numbor of ronsons:
V A mncro vIrus Is Infform Indoondonf. VIrfunIIy nII of fho mncro vIrusos Infocf
MIcrosoff Word documonfs. Any hnrdwnro Infform nnd oornfIng sysfom fhnf
suorfs Word cnn bo Infocfod.
V Mncro vIrusos Infocf documonfs, nof oxocufnbIo orfIons of codo. Mosf of fho
InformnfIon Infroducod onfo n comufor sysfom Is In fho form of n documonf
rnfhor fhnn n rogrnm.
V Mncro vIrusos nro onsIIy srond. A vory common mofhod Is by oIocfronIc mnII.
Mncro vIrusos fnko uJtuntuge of n fonfuro found In Word nnd ofhor offIco
nIIcnfIons such ns MIcrosoff IxcoI, nnmoIy fho mncro. In ossonco, n mncro Is nn
oxocufnbIo rogrnm omboddod In n word rocossIng documonf or ofhor fyo of fIIo.
TyIcnIIy, usors omIoy mncros fo nufomnfo roofIfIvo fnsks nnd fhoroby snvo
koysfrokos. Tho mncro Inngungo Is usunIIy somo form of fho InsIc rogrnmmIng
Inngungo. A usor mIghf dofIno n soquonco of koysfrokos In n mncro nnd sof If u so fhnf
fho mncro Is Invokod whon n funcfIon koy or socInI shorf combInnfIon of koys Is Inuf.
VnrIous nnfIvIrus roducf vondors hnvo dovoIood fooIs fo dofocf nnd corrocf
mncro vIrusos. As In ofhor fyos of vIrusos, fho nrms rnco confInuos In fho fIoId of
mncro vIrusos, buf fhoy no Iongor nro fho rodomInnnf vIrus fhronf.
-muII VIvuses:
A moro roconf dovoIomonf In mnIIcIous soffwnro Is fho o-mnII vIrus. Tho fIrsf
rnIdIy srondIng o-mnII vIrusos, such ns MoIIssn, mndo uso of n MIcrosoff Word mncro
omboddod In nn nffnchmonf. If fho rocIIonf oons fho o-mnII nffnchmonf, fho Word
mncro Is ncfIvnfod. Thon
V Tho o-mnII vIrus sonds IfsoIf fo ovoryono on fho mnIIIng IIsf In fho usor's o-mnII
nckngo.
V Tho vIrus doos IocnI dnmngo.
owor vorsIon cnn bo ncfIvnfod moroIy by oonIng nn o-mnII fhnf confnIns fho
vIrus rnfhor fhnn oonIng nn nffnchmonf.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Tho vIrus usos fho VIsunI InsIc scrIfIng Inngungo suorfod by fho o-mnII
nckngo. ow gonornfIon of mnIwnro fhnf nrrIvos vIn o-mnII nnd usos o-mnII soffwnro
fonfuros fo roIIcnfo IfsoIf ncross fho Infornof.
Tho vIrus rongnfos IfsoIf ns soon ns ncfIvnfod (oIfhor by oonIng nn o-mnII
nffnchmonf of by oonIng fho o-mnII) fo nII of fho o-mnII nddrossos known fo fho
Infocfod hosf.
As n rosuIf, whorons vIrusos usod fo fnko monfhs or yonrs fo rongnfo, fhoy now
do so In hours. ThIs mnkos If vory dIffIcuIf for nnfIvIrus soffwnro fo rosond boforo
much dnmngo Is dono.
!IfImnfoIy, n gronfor dogroo of socurIfy musf bo buIIf Info Infornof ufIIIfy nnd
nIIcnfIon soffwnro on ICs fo counfor fho growIng fhronf.
WORMS
A worm Is n rogrnm fhnf cnn roIIcnfo IfsoIf nnd sond coIos from comufor fo
comufor ncross nofwork connocfIons. !on nrrIvnI, fho worm mny bo ncfIvnfod fo
roIIcnfo nnd rongnfo ngnIn. In nddIfIon fo rongnfIon, fho worm usunIIy orforms
somo unwnnfod funcfIon.
An o-mnII vIrus hns somo of fho chnrncforIsfIcs of n worm, bocnuso If rongnfos
IfsoIf from sysfom fo sysfom. Howovor, wo cnn sfIII cInssIfy If ns n vIrus bocnuso If
roquIros n humnn fo movo If forwnrd.
A worm ncfIvoIy sooks ouf moro mnchInos fo Infocf nnd onch mnchIno fhnf Is
Infocfod sorvos ns nn nufomnfod InunchIng nd for nffncks on ofhor mnchInos.
ofwork worm rogrnms uso nofwork connocfIons fo srond from sysfom fo
sysfom. Onco ncfIvo wIfhIn n sysfom, n nofwork worm cnn bohnvo ns n comufor vIrus
or bncforIn, or If couId ImInnf Trojnn horso rogrnms or orform nny numbor of
dIsrufIvo or dosfrucfIvo ncfIons.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
To roIIcnfo IfsoIf, n nofwork worm usos somo sorf of nofwork vohIcIo. IxnmIos
IncIudo fho foIIowIng:
V Electronic muil fucility: A worm mnIIs n coy of IfsoIf fo ofhor sysfoms.
V Remote erecution cupubility: A worm oxocufos n coy of IfsoIf on nnofhor
sysfom.
V Remote login cupubility: A worm Iogs onfo n romofo sysfom ns n usor nnd fhon
usos commnnds fo coy IfsoIf from ono sysfom fo fho ofhor.
Tho now coy of fho worm rogrnm Is fhon run on fho romofo sysfom whoro, In
nddIfIon fo nny funcfIons fhnf If orforms nf fhnf sysfom, If confInuos fo srond In fho
snmo fnshIon.
A netuork uorm oxhIbIfs fho snmo churucteriotico ns n comufor vIrus: n
dormnnf hnso, n rongnfIon hnso, n frIggorIng hnso, nnd nn oxocufIon hnso.
Tho rongnfIon hnso gonornIIy orforms fho foIIowIng functiono:
1. Sonrch for ofhor sysfoms fo Infocf by oxnmInIng hosf fnbIos or sImIInr roosIforIos of
romofo sysfom nddrossos.
2. IsfnbIIsh n connocfIon wIfh n romofo sysfom.
3. Coy IfsoIf fo fho romofo sysfom nnd cnuso fho coy fo bo run.
Tho nofwork worm mny nIso nffomf fo doformIno whofhor n sysfom hns
rovIousIy boon Infocfod boforo coyIng IfsoIf fo fho sysfom. In n muIfIrogrnmmIng
sysfom, If mny nIso dIsguIso Ifs rosonco by nnmIng IfsoIf ns n sysfom rocoss or usIng
somo ofhor nnmo fhnf mny nof bo nofIcod by n sysfom oornfor.
TLe MovvIs Wovm:
Tho MorrIs worm wns dosIgnod fo srond on !IX sysfoms nnd usod n numbor
of dIfforonf fochnIquos for rongnfIon. Whon n coy bognn oxocufIon, Ifs fIrsf fnsk wns
fo dIscovor ofhor hosfs known fo fhIs hosf fhnf wouId nIIow onfry from fhIs hosf.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Tho worm orformod fhIs fnsk by oxnmInIng n vnrIofy of IIsfs nnd fnbIos,
IncIudIng sysfom fnbIos fhnf docInrod whIch ofhor mnchInos woro frusfod by fhIs hosf,
usors' mnII forwnrdIng fIIos, fnbIos by whIch usors gnvo fhomsoIvos ormIssIon for
nccoss fo romofo nccounfs, nnd from n rogrnm fhnf roorfod fho sfnfus of nofwork
connocfIons.
Ior onch dIscovorod hosf, fho worm frIod n number of methoJo for guining ucceoo:
l. If nffomfod fo Iog on fo n romofo hosf ns n IogIfImnfo usor. In fhIs mofhod, fho
worm fIrsf nffomfod fo crnck fho IocnI nssword fIIo, nnd fhon usod fho
dIscovorod nsswords nnd corrosondIng usor Is. Tho nssumfIon wns fhnf
mnny usors wouId uso fho snmo nssword on dIfforonf sysfoms. To obfnIn fho
nsswords, fho worm rnn n nssword-crnckIng rogrnm fhnf frIod
n) Inch usor's nccounf nnmo nnd sImIo ormufnfIons of If
b) A IIsf of 432 buIIf-In nsswords fhnf MorrIs fhoughf fo bo IIkoIy
cnndIdnfos
c) AII fho words In fho IocnI sysfom dIrocfory
2. If oxIoIfod n bug In fho fIngor rofocoI, whIch roorfs fho whoronboufs of n
romofo usor.
3. If oxIoIfod n frndoor In fho dobug ofIon of fho romofo rocoss fhnf rocoIvos
nnd sonds mnII.
If nny of fhoso nffncks succoodod, fho worm nchIovod communIcnfIon wIfh fho
oornfIng sysfom commnnd Inforrofor. If fhon sonf fhIs Inforrofor n shorf boofsfrn
rogrnm, Issuod n commnnd fo oxocufo fhnf rogrnm, nnd fhon Ioggod off.
Tho boofsfrn rogrnm fhon cnIIod bnck fho nronf rogrnm nnd downIondod fho
romnIndor of fho worm. Tho now worm wns fhon oxocufod.
Recent Wovm Attucks:
Codo !od oxIoIfs n socurIfy hoIo In fho MIcrosoff Infornof InformnfIon Sorvor
(IIS) fo onofrnfo nnd srond. If nIso dIsnbIos fho sysfom fIIo chockor In WIndows. Tho
worm robos rnndom II nddrossos fo srond fo ofhor hosfs.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
V Ultrufuot opreuJing:
Ono fochnIquo fo nccoIornfo fho srond of n worm Is fo conducf n rIor
Infornof scnn fo nccumuInfo Infornof nddrossos of vuInornbIo mnchInos.
V Polymorphic:
To ovndo dofocfIon, skI nsf fIIfors, nnd foII ronI-fImo nnnIysIs, worms
ndof fho vIrus oIymorhIc fochnIquo. Inch coy of fho worm hns now codo
gonornfod on fho fIy usIng funcfIonnIIy oquIvnIonf InsfrucfIons nnd oncryfIon
fochnIquos.
V Metumorphic:
In nddIfIon fo chnngIng fhoIr nonrnnco, mofnmorhIc worms hnvo n
roorfoIro of bohnvIor nfforns fhnf nro unIonshod nf dIfforonf sfngos of
rongnfIon.
V Trunoport tehicleo:
Iocnuso worms cnn rnIdIy comromIso n Inrgo numbor of sysfoms, fhoy
nro IdonI for srondIng ofhor dIsfrIbufod nffnck fooIs, such ns dIsfrIbufod donInI
of sorvIco zombIos.
V Zero-Juy erploit:
To nchIovo mnxImum surrIso nnd dIsfrIbufIon, n worm shouId oxIoIf nn
unknown vuInornbIIIfy fhnf Is onIy dIscovorod by fho gonornI nofwork
communIfy whon fho worm Is Inunchod.
II.2 VIRUS COUNTRMASURS
ANTIVIRUS APPROACHS
Tho IdonI soIufIon fo fho fhronf of vIrusos Is pretention: o nof nIIow n vIrus fo
gof Info fho sysfom In fho fIrsf Inco. ThIs gonI Is, In gonornI, ImossIbIo fo nchIovo,
nIfhough rovonfIon cnn roduco fho numbor of succossfuI vIrnI nffncks.
Tho noxf bosf nronch Is fo bo nbIo fo do fho foIIowIng:
etectIon:
Onco fho InfocfIon hns occurrod, doformIno fhnf If hns occurrod nnd Iocnfo fho
vIrus.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
IdentIIIcutIon:
Onco dofocfIon hns boon nchIovod, IdonfIfy fho socIfIc vIrus fhnf hns Infocfod n
rogrnm.
RemovuI:
Onco fho socIfIc vIrus hns boon IdonfIfIod, romovo nII frncos of fho vIrus from
fho Infocfod rogrnm nnd rosforo If fo Ifs orIgInnI sfnfo. !omovo fho vIrus from nII
Infocfod sysfoms so fhnf fho dIsonso cnnnof srond furfhor.
If dofocfIon succoods buf oIfhor IdonfIfIcnfIon or romovnI Is nof ossIbIo, fhon fho
nIfornnfIvo Is fo dIscnrd fho Infocfod rogrnm nnd roIond n cIonn bncku vorsIon.
Iour gonornfIons of nnfIvIrus soffwnro:
V IIrsf gonornfIon: sImIo scnnnors
V Socond gonornfIon: hourIsfIc scnnnors
V ThIrd gonornfIon: ncfIvIfy frns
V Iourfh gonornfIon: fuII-fonfurod rofocfIon
A firot-generution ocunner roquIros n vIrus sIgnnfuro fo IdonfIfy n vIrus. Tho
vIrus mny confnIn "wIIdcnrds" buf hns ossonfInIIy fho snmo sfrucfuro nnd bIf nfforn In
nII coIos. Such sIgnnfuro-socIfIc scnnnors nro IImIfod fo fho dofocfIon of known
vIrusos. Another type of firot-generution ocunner mnInfnIns n rocord of fho Iongfh of
rogrnms nnd Iooks for chnngos In Iongfh.
A oeconJ-generution ocunner doos nof roIy on n socIfIc sIgnnfuro. !nfhor, fho
scnnnor usos hourIsfIc ruIos fo sonrch for robnbIo vIrus InfocfIon. Ono cInss of such
scnnnors Iooks for frngmonfs of codo fhnf nro offon nssocInfod wIfh vIrusos.
Anofhor oeconJ-generution upprouch io integrity checking. A chocksum cnn bo
nondod fo onch rogrnm. If n vIrus Infocfs fho rogrnm wIfhouf chnngIng fho
chocksum, fhon nn InfogrIfy chock wIII cnfch fho chnngo. To counfor n vIrus fhnf Is
sohIsfIcnfod onough fo chnngo fho chocksum whon If Infocfs n rogrnm, nn oncryfod
hnsh funcfIon cnn bo usod.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Digitul 1mmune Syotem
BHAVIOR-BIOCKING SOITWAR
!nIIko hourIsfIcs or fIngorrInf-bnsod scnnnors, bohnvIor-bIockIng soffwnro
Infogrnfos wIfh fho oornfIng sysfom of n hosf comufor nnd monIfors rogrnm
bohnvIor In ronI-fImo for mnIIcIous ncfIons.
Tho bohnvIor bIockIng soffwnro fhon bIocks ofonfInIIy mnIIcIous ncfIons boforo
fhoy hnvo n chnnco fo nffocf fho sysfom.
MonIforod bohnvIors cnn IncIudo fho foIIowIng:
V Affomfs fo oon, vIow, doIofo, nnd/or modIfy fIIos;
V Affomfs fo formnf dIsk drIvos nnd ofhor unrocovornbIo dIsk oornfIons;
V ModIfIcnfIons fo fho IogIc of oxocufnbIo fIIos or mncros;
V ModIfIcnfIon of crIfIcnI sysfom soffIngs, such ns sfnrf-u soffIngs;
V ScrIfIng of o-mnII nnd Insfnnf mossngIng cIIonfs fo sond oxocufnbIo confonf; nnd
V InIfInfIon of nofwork communIcnfIons.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Tho TCI sfnfo dnfn sfrucfuro Is n ouInr InfornnI rosourco fnrgof buf by no
monns fho onIy ono. Tho foIIowIng oxnmIos:
l) In mnny sysfoms, n IImIfod numbor of dnfn sfrucfuros nro nvnIInbIo fo hoId
rocoss InformnfIon (rocoss IdonfIfIors, rocoss fnbIo onfrIos, rocoss sIofs, ofc.).
An Infrudor mny bo nbIo fo consumo fhoso dnfn sfrucfuros by wrIfIng n sImIo
rogrnm or scrIf fhnf doos nofhIng buf roonfodIy cronfo coIos of IfsoIf.
2) An Infrudor mny nIso nffomf fo consumo dIsk snco In ofhor wnys, IncIudIng
gonornfIng oxcossIvo numbors of mnII mossngos
InfonfIonnIIy gonornfIng orrors fhnf musf bo Ioggod
IncIng fIIos In nnonymous ff nrons or nofwork-shnrod nrons
An erumple of un uttuck thut conoumeo Jutu trunomiooion reoourceo. Tho
foIIowIng sfos nro InvoIvod:
l) Tho nffnckor fnkos confroI of muIfIIo hosfs ovor fho Infornof, InsfrucfIng fhom
fo sond ICMI ICHO nckofs wIfh fho fnrgof's soofod II nddross fo n grou of
hosfs fhnf ncf ns rofIocfors, ns doscrIbod subsoquonfIy.
2) odos nf fho bounco sIfo rocoIvo muIfIIo soofod roquosfs nnd rosond by
sondIng ocho roIy nckofs fo fho fnrgof sIfo.
3) Tho fnrgof's roufor Is fIoodod wIfh nckofs from fho bounco sIfo, IonvIng no dnfn
frnnsmIssIon cnncIfy for IogIfImnfo frnffIc.
Anofhor wny fo cluooify DDoS uttucko Is ns oIfhor dIrocf or rofIocfor oS nffncks.
In n Jirect DDoS uttuck, fho nffnckor Is nbIo fo ImInnf zombIo soffwnro on n
numbor of sIfos dIsfrIbufod fhroughouf fho Infornof.
Offon, fho oS nffnck InvoIvos tuo letelo of xombie muchineo: mnsfor
zombIos nnd sInvo zombIos. Tho hosfs of bofh mnchInos hnvo boon Infocfod wIfh
mnIIcIous codo. Tho nffnckor coordInnfos nnd frIggors fho muoter xombieo, whIch In
furn coordInnfo nnd frIggor fho olute xombieo.
Tho uso of fwo IovoIs of zombIos mnkos If moro dIffIcuIf fo frnco fho nffnck bnck
fo Ifs sourco nnd rovIdos for n moro rosIIIonf nofwork of nffnckors.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Typeo of FlooJing-BuoeJ DDoS Attucko
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
A reflector DDoS uttuck ndds nnofhor Inyor of mnchInos. In fhIs fyo of nffnck,
fho sInvo zombIos consfrucf nckofs roquIrIng n rosonso fhnf confnIn fho fnrgof's II
nddross ns fho sourco II nddross In fho nckof's II hondor. Thoso nckofs nro sonf fo
unInfocfod mnchInos known ns rofIocfors. Tho unInfocfod mnchInos rosond wIfh
nckofs dIrocfod nf fho fnrgof mnchIno.
A rofIocfor oS nffnck cnn onsIIy InvoIvo moro mnchInos nnd moro frnffIc fhnn
n dIrocf oS nffnck nnd honco bo moro dnmngIng. Iurfhor, frncIng bnck fho nffnck or
fIIforIng ouf fho nffnck nckofs Is moro dIffIcuIf bocnuso fho nffnck comos from wIdoIy
dIsorsod unInfocfod mnchInos.
CONSTRUCTING TH ATTACK NTWORK
Tho fIrsf sfo In n oS nffnck Is for fho nffnckor fo Infocf n numbor of mnchInos
wIfh zombIo soffwnro fhnf wIII uIfImnfoIy bo usod fo cnrry ouf fho nffnck.
Tho ossonfInI IngrodIonfs In fhIs hnso of fho nffnck nro fho foIIowIng:
l) Soffwnro fhnf cnn cnrry ouf fho oS nffnck. Tho soffwnro musf bo nbIo fo run
on n Inrgo numbor of mnchInos, musf bo nbIo fo conconI Ifs oxIsfonco, musf bo
nbIo fo communIcnfo wIfh fho nffnckor or hnvo somo sorf of fImo-frIggorod
mochnnIsm, nnd musf bo nbIo fo Inunch fho Infondod nffnck fownrd fho fnrgof.
2) A vuInornbIIIfy In n Inrgo numbor of sysfoms. Tho nffnckor musf bocomo nwnro
of n vuInornbIIIfy fhnf mnny sysfom ndmInIsfrnfors nnd IndIvIdunI usors hnvo
fnIIod fo nfch nnd fhnf onnbIos fho nffnckor fo InsfnII fho zombIo soffwnro.
3) A sfrnfogy for IocnfIng vuInornbIo mnchInos, n rocoss known ns scnnnIng.
In fho scnnnIng rocoss, fho nffnckor fIrsf sooks ouf n numbor of vuInornbIo
mnchInos nnd Infocfs fhom.
Thon, fyIcnIIy, fho zombIo soffwnro fhnf Is InsfnIIod In fho Infocfod mnchInos
roonfs fho snmo scnnnIng rocoss, unfII n Inrgo dIsfrIbufod nofwork of Infocfod
mnchInos Is cronfod.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Attuck Jetection unJ filtering (Juring the uttuck):
Thoso mochnnIsms nffomf fo dofocf fho nffnck ns If bogIns nnd rosond
ImmodInfoIy. ThIs mInImIzos fho Imncf of fho nffnck on fho fnrgof.
ofocfIon InvoIvos IookIng for susIcIous nfforns of bohnvIor. !osonso
InvoIvos fIIforIng ouf nckofs IIkoIy fo bo nrf of fho nffnck.
Attuck oource trucebuck unJ iJentificution (Juring unJ ufter the
uttuck):
ThIs Is nn nffomf fo IdonfIfy fho sourco of fho nffnck ns n fIrsf sfo In
rovonfIng fufuro nffncks.
Howovor, fhIs mofhod fyIcnIIy doos nof yIoId rosuIfs fnsf onough, If nf nII,
fo mIfIgnfo nn ongoIng nffnck.
Tho chnIIongo In coIng wIfh oS nffncks Is fho shoor numbor of wnys In whIch
fhoy cnn oornfo. Thus oS counformonsuros musf ovoIvo wIfh fho fhronf.
5.3 IIRWAIIS
V A fIrownII forms n bnrrIor fhrough whIch fho frnffIc goIng In onch dIrocfIon musf
nss. A fIrownII socurIfy oIIcy dIcfnfos whIch frnffIc Is nufhorIzod fo nss In onch
dIrocfIon.
V A fIrownII mny bo dosIgnod fo oornfo ns n fIIfor nf fho IovoI of II nckofs, or
mny oornfo nf n hIghor rofocoI Inyor.
V A frusfod sysfom Is n comufor nnd oornfIng sysfom fhnf cnn bo vorIfIod fo
ImIomonf n gIvon socurIfy oIIcy.
TyIcnIIy, fho focus of n frusfod sysfom Is nccoss confroI. A oIIcy Is
ImIomonfod fhnf dIcfnfos whnf objocfs mny bo nccossod by whnf subjocfs.
V Tho common crIforIn for InformnfIon fochnoIogy socurIfy Is nn InfornnfIonnI
sfnndnrds InIfInfIvo fo dofIno n common sof of socurIfy roquIromonfs nnd n
sysfomnfIc monns of ovnIunfIng roducfs ngnInsf fhoso roquIromonfs.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Tho fIrownII IfsoIf Is Immuno fo onofrnfIon. ThIs ImIIos fhnf uso of n frusfod
sysfom wIfh n socuro oornfIng sysfom.
Iour gonornI fochnIquos fhnf fIrownIIs uso fo confroI nccoss nnd onforco fho sIfo's
socurIfy oIIcy. OrIgInnIIy, fIrownIIs focusod rImnrIIy on sorvIco confroI, buf fhoy hnvo
sInco ovoIvod fo rovIdo nII four:
V Sertice control:
oformInos fho fyos of Infornof sorvIcos fhnf cnn bo nccossod, Inbound or
oufbound. Tho fIrownII mny fIIfor frnffIc on fho bnsIs of II nddross nnd TCI orf
numbor; mny rovIdo roxy soffwnro fhnf rocoIvos nnd Inforrofs onch sorvIco
roquosf boforo nssIng If on; or mny hosf fho sorvor soffwnro IfsoIf, such ns n
Wob or mnII sorvIco.
V Direction control:
oformInos fho dIrocfIon In whIch nrfIcuInr sorvIco roquosfs mny bo
InIfInfod nnd nIIowod fo fIow fhrough fho fIrownII.
V Uoer control:
ConfroIs nccoss fo n sorvIco nccordIng fo whIch usor Is nffomfIng fo
nccoss If. ThIs fonfuro Is fyIcnIIy nIIod fo usors InsIdo fho fIrownII orImofor
(IocnI usors). If mny nIso bo nIIod fo IncomIng frnffIc from oxfornnI usors; fho
Inffor roquIros somo form of socuro nufhonfIcnfIon fochnoIogy, such ns Is
rovIdod In IISoc.
V Behutior control:
ConfroIs how nrfIcuInr sorvIcos nro usod. Ior oxnmIo, fho fIrownII mny
fIIfor o-mnII fo oIImInnfo snm, or If mny onnbIo oxfornnI nccoss fo onIy n orfIon
of fho InformnfIon on n IocnI Wob sorvor.
Tho foIIowIng cupubilitieo ure uithin the ocope of u fireuull:
l) A fIrownII dofInos n sIngIo choko oInf fhnf koos unnufhorIzod usors ouf of fho
rofocfod nofwork, rohIbIfs ofonfInIIy vuInornbIo sorvIcos from onforIng or
IonvIng fho nofwork, nnd rovIdos rofocfIon from vnrIous kInds of II soofIng
nnd roufIng nffncks.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Fireuull Typeo
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Pucket-Filtering Erumpleo
A
ncfIon ourhosf orf fhoIrhosf orf commonf
bIock * * SIICOT * wo don'f frusf fhoso ooIo
nIIow O!!-CW 25 * * connocfIon fo our SMTI orf
I
ncfIon ourhosf orf fhoIrhosf orf commonf
bIock * * * * dofnuIf
C
ncfIon ourhosf orf fhoIrhosf orf commonf
nIIow * * * 25 connocfIon fo fhoIr SMTI orf
ncfIon src orf dosf orf fIngs commonf
nIIow {our hosfs} * * 25
our nckofs fo fhoIr SMTI orf
nIIow * 25 * * ACK fhoIr roIIos
I
ncfIon src orf dosf orf fIngs commonf
nIIow {our hosfs} * * *
our oufgoIng cnIIs
nIIow * * * * ACK roIIos fo our cnIIs
nIIow * * * >l024
frnffIc fo nonsorvors
A. Inbound mnII Is nIIowod (orf 25 Is for SMTI IncomIng), buf onIy fo n gnfowny
hosf. Howovor, nckofs from n nrfIcuInr oxfornnI hosf, SIICOT, nro bIockod
bocnuso fhnf hosf hns n hIsfory of sondIng mnssIvo fIIos In o-mnII mossngos.
I. ThIs Is nn oxIIcIf sfnfomonf of fho dofnuIf oIIcy. AII ruIo sofs IncIudo fhIs ruIo
ImIIcIfIy ns fho Insf ruIo.
C. ThIs ruIo sof Is Infondod fo socIfy fhnf nny InsIdo hosf cnn sond mnII fo fho
oufsIdo. A TCI nckof wIfh n dosfInnfIon orf of 25 Is roufod fo fho SMTI sorvor
on fho dosfInnfIon mnchIno.
Tho robIom wIfh fhIs ruIo Is fhnf fho uso of orf 25 for SMTI rocoIf Is
onIy n dofnuIf; nn oufsIdo mnchIno couId bo confIgurod fo hnvo somo ofhor
nIIcnfIon IInkod fo orf 25.
As fhIs ruIo Is wrIffon, nn nffnckor couId gnIn nccoss fo InfornnI mnchInos
by sondIng nckofs wIfh n TCI sourco orf numbor of 25.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
. ThIs ruIo sof nchIovos fho Infondod rosuIf fhnf wns nof nchIovod In C. Tho ruIos
fnko ndvnnfngo of n fonfuro of TCI connocfIons.
Onco n connocfIon Is sof u, fho ACK fIng of n TCI sogmonf Is sof fo
ncknowIodgo sogmonfs sonf from fho ofhor sIdo.
Thus, fhIs ruIo sof sfnfos fhnf If nIIows II nckofs whoro fho sourco II
nddross Is ono of n IIsf of dosIgnnfod InfornnI hosfs nnd fho dosfInnfIon TCI orf
numbor Is 25. If nIso nIIows IncomIng nckofs wIfh n sourco orf numbor of 25
fhnf IncIudo fho ACK fIng In fho TCI sogmonf.
ofo fhnf wo oxIIcIfIy dosIgnnfo sourco nnd dosfInnfIon sysfoms fo dofIno
fhoso ruIos oxIIcIfIy.
I. ThIs ruIo sof Is ono nronch fo hnndIIng ITI connocfIons. WIfh ITI, fwo TCI
connocfIons nro usod: n confroI connocfIon fo sof u fho fIIo frnnsfor nnd n dnfn
connocfIon for fho ncfunI fIIo frnnsfor.
Tho dnfn connocfIon usos n dIfforonf orf numbor fhnf Is dynnmIcnIIy
nssIgnod for fho frnnsfor. Mosf sorvors, nnd honco mosf nffnck fnrgofs, IIvo on
Iow-numborod orfs; mosf oufgoIng cnIIs fond fo uso n hIghor-numborod orf,
fyIcnIIy nbovo l023.
Thus, fhIs ruIo sof nIIows
Inckofs fhnf orIgInnfo InfornnIIy
!oIy nckofs fo n connocfIon InIfInfod by nn InfornnI mnchIno
Inckofs dosfInod for n hIgh-numborod orf on nn InfornnI mnchIno
ThIs schomo roquIros fhnf fho sysfoms bo confIgurod so fhnf onIy fho
nrorInfo orf numbors nro In uso.
!uIo sof I oInfs ouf fho dIffIcuIfy In donIIng wIfh nIIcnfIons nf fho nckof-
fIIforIng IovoI. Anofhor wny fo donI wIfh ITI nnd sImIInr nIIcnfIons Is nn nIIcnfIon-
IovoI gnfowny.
Ono uJtuntuge of n nckof-fIIforIng roufor Is Ifs sImIIcIfy. AIso, nckof fIIfors
fyIcnIIy nro frnnsnronf fo usors nnd nro vory fnsf.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Ior oxnmIo, for fho SImIo MnII Trnnsfor IrofocoI (SMTI), o-mnII Is
frnnsmIffod from n cIIonf sysfom fo n sorvor sysfom. Tho cIIonf sysfom gonornfos now o-
mnII mossngos, fyIcnIIy from usor Inuf. Tho sorvor sysfom nccofs IncomIng o-mnII
mossngos nnd Incos fhom In fho nrorInfo usor mnIIboxos.
SMTI oornfos by soffIng u n TCI connocfIon bofwoon cIIonf nnd sorvor, In
whIch fho TCI sorvor orf numbor, whIch IdonfIfIos fho SMTI sorvor nIIcnfIon, Is 25.
Tho TCI orf numbor for fho SMTI cIIonf Is n numbor bofwoon l024 nnd 65535 fhnf Is
gonornfod by fho SMTI cIIonf.
In gonornI, whon nn nIIcnfIon fhnf usos TCI cronfos n sossIon wIfh n romofo
hosf, If cronfos n TCI connocfIon In whIch fho TCI orf numbor for fho romofo (sorvor)
nIIcnfIon Is n numbor Ioss fhnn l024 nnd fho TCI orf numbor for fho IocnI (cIIonf)
nIIcnfIon Is n numbor bofwoon l024 nnd 65535.
Tho numbors Ioss fhnn l024 nro fho "woII-known" orf numbors nnd nro
nssIgnod ormnnonfIy fo nrfIcuInr nIIcnfIons (o.g., 25 for sorvor SMTI). Tho
numbors bofwoon l024 nnd 65535 nro gonornfod dynnmIcnIIy nnd hnvo fomornry
sIgnIfIcnnco onIy for fho IIfofImo of n TCI connocfIon.
A sImIo nckof-fIIforIng fIrownII musf ormIf Inbound nofwork frnffIc on nII
fhoso hIgh-numborod orfs for TCI-bnsod frnffIc fo occur. ThIs cronfos n vuInornbIIIfy
fhnf cnn bo oxIoIfod by unnufhorIzod usors.
AppIIcutIon-IeveI Gutewuy:
An nIIcnfIon-IovoI gnfowny, nIso cnIIod n roxy sorvor, ncfs ns n roIny of
nIIcnfIon-IovoI frnffIc. Tho usor confncfs fho gnfowny usIng n TCI/II nIIcnfIon,
such ns ToInof or ITI, nnd fho gnfowny nsks fho usor for fho nnmo of fho romofo hosf
fo bo nccossod. Whon fho usor rosonds nnd rovIdos n vnIId usor I nnd nufhonfIcnfIon
InformnfIon, fho gnfowny confncfs fho nIIcnfIon on fho romofo hosf nnd roInys TCI
sogmonfs confnInIng fho nIIcnfIon dnfn bofwoon fho fwo ondoInfs.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
If fho gnfowny doos nof ImIomonf fho roxy codo for n socIfIc nIIcnfIon, fho
sorvIco Is nof suorfod nnd cnnnof bo forwnrdod ncross fho fIrownII. Iurfhor, fho
gnfowny cnn bo confIgurod fo suorf onIy socIfIc fonfuros of nn nIIcnfIon fhnf fho
nofwork ndmInIsfrnfor consIdors nccofnbIo whIIo donyIng nII ofhor fonfuros.
AIIcnfIon-IovoI gnfownys fond fo bo moro socuro fhnn nckof fIIfors. !nfhor
fhnn fryIng fo donI wIfh fho numorous ossIbIo combInnfIons fhnf nro fo bo nIIowod nnd
forbIddon nf fho TCI nnd II IovoI, fho nIIcnfIon-IovoI gnfowny nood onIy scrufInIzo n
fow nIIownbIo nIIcnfIons. In nddIfIon, If Is onsy fo Iog nnd nudIf nII IncomIng frnffIc nf
fho nIIcnfIon IovoI.
A rImo JiouJtuntuge of fhIs fyo of gnfowny Is fho nddIfIonnI rocossIng
ovorhond on onch connocfIon. In offocf, fhoro nro fwo sIIcod connocfIons bofwoon fho
ond usors, wIfh fho gnfowny nf fho sIIco oInf, nnd fho gnfowny musf oxnmIno nnd
forwnrd nII frnffIc In bofh dIrocfIons.
CIvcuIt-IeveI Gutewuy:
A fhIrd fyo of fIrownII Is fho cIrcuIf-IovoI gnfowny. ThIs cnn bo n sfnnd-nIono
sysfom or If cnn bo n socInIIzod funcfIon orformod by nn nIIcnfIon-IovoI gnfowny for
corfnIn nIIcnfIons.
A cIrcuIf-IovoI gnfowny doos nof ormIf nn ond-fo-ond TCI connocfIon; rnfhor,
fho gnfowny sofs u fwo TCI connocfIons, ono bofwoon IfsoIf nnd n TCI usor on nn
Innor hosf nnd ono bofwoon IfsoIf nnd n TCI usor on nn oufsIdo hosf.
Onco fho fwo connocfIons nro osfnbIIshod, fho gnfowny fyIcnIIy roInys TCI
sogmonfs from ono connocfIon fo fho ofhor wIfhouf oxnmInIng fho confonfs. Tho
socurIfy funcfIon consIsfs of doformInIng whIch connocfIons wIII bo nIIowod.
A fyIcnI uso of cIrcuIf-IovoI gnfownys Is n sIfunfIon In whIch fho sysfom
ndmInIsfrnfor frusfs fho InfornnI usors.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
If fho connocfIon roquosf succoods, fho cIIonf onfors n nogofInfIon for fho
nufhonfIcnfIon mofhod fo bo usod, nufhonfIcnfos wIfh fho choson mofhod, nnd fhon
sonds n roIny roquosf.
Tho SOCKS sorvor ovnIunfos fho roquosf nnd oIfhor osfnbIIshos fho nrorInfo
connocfIon or donIos If. !I oxchnngos nro hnndIod In n sImIInr fnshIon.
In ossonco, n TCI connocfIon Is oonod fo nufhonfIcnfo n usor fo sond nnd
rocoIvo !I sogmonfs, nnd fho !I sogmonfs nro forwnrdod ns Iong ns fho TCI
connocfIon Is oon.
BustIon Host
A bnsfIon hosf Is n sysfom IdonfIfIod by fho fIrownII ndmInIsfrnfor ns n crIfIcnI
sfrong oInf In fho nofwork's socurIfy. TyIcnIIy, fho bnsfIon hosf sorvos ns n Infform
for nn nIIcnfIon-IovoI or cIrcuIf-IovoI gnfowny.
Common churucteriotico of u buotion hoot IncIudo fho foIIowIng:
Tho bnsfIon hosf hnrdwnro Infform oxocufos n socuro vorsIon of Ifs oornfIng
sysfom, mnkIng If n frusfod sysfom.
OnIy fho sorvIcos fhnf fho nofwork ndmInIsfrnfor consIdors ossonfInI nro
InsfnIIod on fho bnsfIon hosf. Thoso IncIudo roxy nIIcnfIons such ns ToInof,
S, ITI, SMTI, nnd usor nufhonfIcnfIon.
Tho bnsfIon hosf mny roquIro nddIfIonnI nufhonfIcnfIon boforo n usor Is nIIowod
nccoss fo fho roxy sorvIcos.
In nddIfIon, onch roxy sorvIco mny roquIro Ifs own nufhonfIcnfIon boforo
grnnfIng usor nccoss.
Inch roxy Is confIgurod fo suorf onIy n subsof of fho sfnndnrd nIIcnfIon's
commnnd sof.
Inch roxy Is confIgurod fo nIIow nccoss onIy fo socIfIc hosf sysfoms. ThIs
monns fhnf fho IImIfod commnnd/fonfuro sof mny bo nIIod onIy fo n subsof of
sysfoms on fho rofocfod nofwork.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Inch roxy mnInfnIns dofnIIod nudIf InformnfIon by IoggIng nII frnffIc, onch
connocfIon, nnd fho durnfIon of onch connocfIon. Tho nudIf Iog Is nn ossonfInI fooI
for dIscovorIng nnd formInnfIng Infrudor nffncks.
Inch roxy moduIo Is n vory smnII soffwnro nckngo socIfIcnIIy dosIgnod for
nofwork socurIfy. Iocnuso of Ifs roInfIvo sImIIcIfy, If Is onsIor fo chock such
moduIos for socurIfy fInws.
Ior oxnmIo, n fyIcnI !IX mnII nIIcnfIon mny confnIn ovor 20,000
IInos of codo, whIIo n mnII roxy mny confnIn fowor fhnn l000.
Inch roxy Is Indoondonf of ofhor roxIos on fho bnsfIon hosf. If fhoro Is n
robIom wIfh fho oornfIon of nny roxy, or If n fufuro vuInornbIIIfy Is
dIscovorod, If cnn bo unInsfnIIod wIfhouf nffocfIng fho oornfIon of fho ofhor
roxy nIIcnfIons.
AIso, If fho usor ouInfIon roquIros suorf for n now sorvIco, fho
nofwork ndmInIsfrnfor cnn onsIIy InsfnII fho roquIrod roxy on fho bnsfIon hosf.
A roxy gonornIIy orforms no dIsk nccoss ofhor fhnn fo rond Ifs InIfInI
confIgurnfIon fIIo. ThIs mnkos If dIffIcuIf for nn Infrudor fo InsfnII Trojnn horso
snIffors or ofhor dnngorous fIIos on fho bnsfIon hosf.
Inch roxy runs ns n nonrIvIIogod usor In n rIvnfo nnd socurod dIrocfory on
fho bnsfIon hosf.
IIRWAII CONIIGURATIONS
In fho ocreeneJ hoot fireuull, oingle-homeJ buotion configurution, fho
fIrownII consIsfs of fwo sysfoms: n nckof-fIIforIng roufor nnd n bnsfIon hosf.
TyIcnIIy, fho roufor Is confIgurod so fhnf
Ior frnffIc from fho Infornof, onIy II nckofs dosfInod for fho bnsfIon hosf nro
nIIowod In.
Ior frnffIc from fho InfornnI nofwork, onIy II nckofs from fho bnsfIon hosf nro
nIIowod ouf.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Tho bnsfIon hosf orforms nufhonfIcnfIon nnd roxy funcfIons. ThIs
confIgurnfIon hns gronfor socurIfy fhnn sImIy n nckof-fIIforIng roufor or nn
nIIcnfIon-IovoI gnfowny nIono, for tuo reuoono.
l) ThIs confIgurnfIon ImIomonfs bofh nckof-IovoI nnd nIIcnfIon-IovoI fIIforIng,
nIIowIng for consIdornbIo fIoxIbIIIfy In dofInIng socurIfy oIIcy.
2) An Infrudor musf gonornIIy onofrnfo fwo sonrnfo sysfoms boforo fho socurIfy
of fho InfornnI nofwork Is comromIsod.
ThIs confIgurnfIon nIso nffords fIoxIbIIIfy In rovIdIng dIrocf Infornof nccoss.
In fho sIngIo-homod confIgurnfIon, If fho nckof-fIIforIng roufor Is comIofoIy
comromIsod, frnffIc couId fIow dIrocfIy fhrough fho roufor bofwoon fho Infornof nnd
ofhor hosfs on fho rIvnfo nofwork.
Tho ocreeneJ hoot fireuull, Juul-homeJ buotion configurution hysIcnIIy
rovonfs such n socurIfy bronch. Tho udvuntuges of dunI Inyors of socurIfy fhnf woro
rosonf In fho rovIous confIgurnfIon nro rosonf horo ns woII. AgnIn, nn InformnfIon
sorvor or ofhor hosfs cnn bo nIIowod dIrocf communIcnfIon wIfh fho roufor If fhIs Is In
nccord wIfh fho socurIfy oIIcy.
Tho ocreeneJ oubnet fireuull configurution Is fho mosf socuro of fhoso wo
hnvo consIdorod. In fhIs confIgurnfIon, fwo nckof-fIIforIng roufors nro usod, ono
bofwoon fho bnsfIon hosf nnd fho Infornof nnd ono bofwoon fho bnsfIon hosf nnd fho
InfornnI nofwork.
ThIs confIgurnfIon cronfos nn IsoInfod subnofwork, whIch mny consIsf of sImIy
fho bnsfIon hosf buf mny nIso IncIudo ono or moro InformnfIon sorvors nnd modoms for
dInI-In cnnbIIIfy.
TyIcnIIy, bofh fho Infornof nnd fho InfornnI nofwork hnvo nccoss fo hosfs on fho
scroonod subnof, buf frnffIc ncross fho scroonod subnof Is bIockod.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
nro no furfhor socurIfy chocks, fho dnfnbnso mnnngomonf sysfom musf mnko n docIsIon
on onch IndIvIdunI nccoss nffomf. Thnf docIsIon wIII doond nof onIy on fho usor's
IdonfIfy buf nIso on fho socIfIc nrfs of fho dnfn boIng nccossod nnd ovon on fho
InformnfIon nIrondy dIvuIgod fo fho usor.
Acceoo Control Structure
A gonornI modoI of nccoss confroI ns oxorcIsod by n fIIo or dnfnbnso mnnngomonf
sysfom Is fhnf of nn uccess mutvI.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Iocnuso fIckofs mny bo dIsorsod nround fho sysfom, fhoy rosonf n gronfor
socurIfy robIom fhnn nccoss confroI IIsfs. In nrfIcuInr, fho fIckof musf bo unforgonbIo.
Ono wny fo nccomIIsh fhIs Is fo hnvo fho oornfIng sysfom hoId nII fIckofs on bohnIf of
usors. Thoso fIckofs wouId hnvo fo bo hoId In n rogIon of momory InnccossIbIo fo usors.
TH CONCPT OI TRUST SYSTMS
To rofocf dnfn or rosourcos on fho bnsIs of IovoIs of socurIfy, In fho mIIIfnry,
whoro InformnfIon Is cnfogorIzod ns uncInssIfIod (!), confIdonfInI (C), socrof (S), fo
socrof (TS), or boyond.
ThIs concof Is oqunIIy nIIcnbIo In ofhor nrons, whoro InformnfIon cnn bo
orgnnIzod Info gross cnfogorIos nnd usors cnn bo grnnfod cIonrnncos fo nccoss corfnIn
cnfogorIos of dnfn.
Whon muIfIIo cnfogorIos or IovoIs of dnfn nro dofInod, fho roquIromonf Is
roforrod fo ns muItIIeveI secuvIty. Tho gonornI sfnfomonf of fho roquIromonf for
muIfIIovoI socurIfy Is fhnf n subjocf nf n hIgh IovoI mny nof convoy InformnfIon fo n
subjocf nf n Iowor or noncomnrnbIo IovoI unIoss fhnf fIow nccurnfoIy rofIocfs fho wIII of
nn nufhorIzod usor. Ior ImIomonfnfIon urosos, fhIs roquIromonf Is In fwo nrfs nnd
Is sImIy sfnfod.
A muIfIIovoI socuro sysfom musf onforco fho foIIowIng:
o reuJ up:
A subjocf cnn onIy rond nn objocf of Ioss or oqunI socurIfy IovoI. ThIs Is roforrod
fo In fho IIfornfuro ns fho SImIo SocurIfy Iroorfy.
o urite Joun:
A subjocf cnn onIy wrIfo Info nn objocf of gronfor or oqunI socurIfy IovoI. ThIs Is
roforrod fo In fho IIfornfuro ns fho *-Iroorfy (ronouncod sfnr roorfy).
Thoso fwo ruIos, If roorIy onforcod, rovIdo muIfIIovoI socurIfy. Ior n dnfn
rocossIng sysfom, fho nronch fhnf hns boon fnkon, nnd hns boon fho objocf of much
rosonrch nnd dovoIomonf, Is bnsod on fho reference monitor concept.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
1oolution:
Tho roforonco monIfor nnd dnfnbnso nro rofocfod from unnufhorIzod
modIfIcnfIon.
Verifiubility:
Tho roforonco monIfor's corrocfnoss musf bo rovnbIo. Thnf Is, If musf bo
ossIbIo fo domonsfrnfo mnfhomnfIcnIIy fhnf fho roforonco monIfor onforcos fho
socurIfy ruIos nnd rovIdos comIofo modInfIon nnd IsoInfIon.
Thoso nro sfIff roquIromonfs. Tho roquIromonf for comIofo modInfIon monns
fhnf ovory nccoss fo dnfn wIfhIn mnIn momory nnd on dIsk nnd fno musf bo modInfod.
Iuro soffwnro ImIomonfnfIons Imoso foo hIgh n orformnnco onnIfy fo bo rncfIcnI;
fho soIufIon musf bo nf Ionsf nrfIy In hnrdwnro.
Tho roquIromonf for IsoInfIon monns fhnf If musf nof bo ossIbIo for nn nffnckor,
no mnffor how cIovor, fo chnngo fho IogIc of fho roforonco monIfor or fho confonfs of fho
socurIfy kornoI dnfnbnso.
IInnIIy, fho roquIromonf for mnfhomnfIcnI roof Is formIdnbIo for somofhIng ns
comIox ns n gonornI-uroso comufor. A sysfom fhnf cnn rovIdo such vorIfIcnfIon Is
roforrod fo ns n tvusted system.
A finul element Is nn nudIf fIIo. Imorfnnf socurIfy ovonfs, such ns dofocfod
socurIfy vIoInfIons nnd nufhorIzod chnngos fo fho socurIfy kornoI dnfnbnso, nro sforod
In fho nudIf fIIo.
TvoJun Hovse eIense
Ono wny fo socuro ngnInsf Trojnn horso nffncks Is fho uso of n socuro, frusfod
oornfIng sysfom. In fhIs cnso, n Trojnn horso Is usod fo gof nround fho sfnndnrd
socurIfy mochnnIsm usod by mosf fIIo mnnngomonf nnd oornfIng sysfoms: fho nccoss
confroI IIsf. In fhIs oxnmIo, n usor nnmod Iob Inforncfs fhrough n rogrnm wIfh n dnfn
fIIo confnInIng fho crIfIcnIIy sonsIfIvo chnrncfor sfrIng "CIIl?0KS."
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
!sor Iob hns cronfod fho fIIo wIfh rond/wrIfo ormIssIon rovIdod onIy fo
rogrnms oxocufIng on hIs own bohnIf: fhnf Is, onIy rocossos fhnf nro ownod by Iob
mny nccoss fho fIIo.
Tro]un Horoe unJ Secure Operuting Syotem
Tho Trojnn horso nffnck bogIns whon n hosfIIo usor, nnmod AIIco, gnIns
IogIfImnfo nccoss fo fho sysfom nnd InsfnIIs bofh n Trojnn horso rogrnm nnd n rIvnfo
fIIo fo bo usod In fho nffnck ns n "bnck ockof."
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
AIIco gIvos rond/wrIfo ormIssIon fo horsoIf for fhIs fIIo nnd gIvos Iob wrIfo-onIy
ormIssIon (IIguro n). AIIco now Inducos Iob fo Invoko fho Trojnn horso rogrnm,
orhns by ndvorfIsIng If ns n usofuI ufIIIfy.
Whon fho rogrnm dofocfs fhnf If Is boIng oxocufod by Iob, If ronds fho sonsIfIvo
chnrncfor sfrIng from Iob's fIIo nnd coIos If Info AIIco's bnck-ockof fIIo (IIguro b).
Iofh fho rond nnd wrIfo oornfIons snfIsfy fho consfrnInfs Imosod by nccoss
confroI IIsfs. AIIco fhon hns onIy fo nccoss Iob's fIIo nf n Infor fImo fo Ionrn fho vnIuo of
fho sfrIng.
ow consIdor fho uso of n socuro oornfIng sysfom In fhIs sconnrIo (IIguro c).
SocurIfy IovoIs nro nssIgnod fo subjocfs nf Iogon on fho bnsIs of crIforIn such ns fho
formInnI from whIch fho comufor Is boIng nccossod nnd fho usor InvoIvod, ns IdonfIfIod
by nssword/I.
In fhIs oxnmIo, fhoro nro fwo socurIfy IovoIs, sonsIfIvo nnd ubIIc, ordorod so
fhnf sonsIfIvo Is hIghor fhnn ubIIc. Irocossos ownod by Iob nnd Iob's dnfn fIIo nro
nssIgnod fho socurIfy IovoI sonsIfIvo. AIIco's fIIo nnd rocossos nro rosfrIcfod fo ubIIc.
If Iob Invokos fho Trojnn horso rogrnm (IIguro d), fhnf rogrnm ncquIros Iob's
socurIfy IovoI. If Is fhoroforo nbIo, undor fho sImIo socurIfy roorfy, fo obsorvo fho
sonsIfIvo chnrncfor sfrIng.
Whon fho rogrnm nffomfs fo sforo fho sfrIng In n ubIIc fIIo (fho bnck-ockof
fIIo), howovor, fho Is vIoInfod nnd fho nffomf Is dIsnIIowod by fho roforonco monIfor.
Thus, fho nffomf fo wrIfo Info fho bnck-ockof fIIo Is donIod ovon fhough fho
nccoss confroI IIsf ormIfs If: Tho socurIfy oIIcy fnkos rocodonco ovor fho nccoss
confroI IIsf mochnnIsm.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Erumple:
Tho cryfogrnhIc suorf cInss of funcfIonnI roquIromonfs IncIudos fwo fnmIIIos:
cryfogrnhIc koy mnnngomonf nnd
cryfogrnhIc oornfIon.
Thoro nro four comononfs undor fho cryfogrnhIc koy mnnngomonf fnmIIy, whIch nro
usod fo socIfy:
koy gonornfIon nIgorIfhm nnd koy sIzo;
koy dIsfrIbufIon mofhod;
koy nccoss mofhod; nnd
koy dosfrucfIon mofhod.
PROIIIS AN TARGTS
Tho CC nIso dofInos fwo kInds of documonfs fhnf cnn bo gonornfod usIng fho CC-
dofInod roquIromonfs.
Protection profileo (PPo):
ofIno nn ImIomonfnfIon-Indoondonf sof of socurIfy roquIromonfs nnd
objocfIvos for n cnfogory of roducfs or sysfoms fhnf moof sImIInr consumor noods for IT
socurIfy. A II Is Infondod fo bo rousnbIo nnd fo dofIno roquIromonfs fhnf nro known fo
bo usofuI nnd offocfIvo In moofIng fho IdonfIfIod objocfIvos.
Tho II concof hns boon dovoIood fo suorf fho dofInIfIon of funcfIonnI
sfnndnrds, nnd ns nn nId fo formuInfIng rocuromonf socIfIcnfIons. Tho II rofIocfs
usor socurIfy roquIromonfs
Security turgeto (STo):
ConfnIn fho IT socurIfy objocfIvos nnd roquIromonfs of n socIfIc IdonfIfIod TOI
nnd dofInos fho funcfIonnI nnd nssurnnco monsuros offorod by fhnf TOI fo moof sfnfod
roquIromonfs.
Tho ST mny cInIm conformnnco fo ono or moro IIs, nnd forms fho bnsIs for nn
ovnIunfIon. Tho ST Is suIIod by n vondor or dovoIoor.
UNIT 5 : SYSTM SCURITY NTWORK SCURITY
Orgunixution unJ Conotruction of Common Criteriu Requiremento
Security Functionul Requiremento PuruJigm
***N***