Stream cipher attacks

Stream ciphers, where plaintext bits are combined with a cipher bit stream by an exclusive-or operation (xor), can be very secure if used properly.[citation needed] However, they are vulnerable to attacks if certain precautions are not followed:

  • keys must never be used twice
  • valid decryption should never be relied on to indicate authenticity

Reused key attack

Stream ciphers are vulnerable to attack if the same key is used twice (depth of two) or more.

Say we send messages A and B of the same length, both encrypted using same key, K. The stream cipher produces a string of bits C(K) the same length as the messages. The encrypted versions of the messages then are:

E(A) = A xor C
E(B) = B xor C

where xor is performed bit by bit.

Say an adversary has intercepted E(A) and E(B). They can easily compute:

E(A) xor E(B)

However, xor is commutative and has the property that X xor X = 0 (self-inverse) so:

E(A) xor E(B) = (A xor C) xor (B xor C) = A xor B xor C xor C = A xor B

If one message is longer than the other, our adversary just truncates the longer message to the size of the shorter and their attack will only reveal that portion of the longer message. In other words, if anyone intercepts two messages encrypted with the same key, they can recover A xor B, which is a form of running key cipher. Even if neither message is known, as long as both messages are in a natural language, such a cipher can often be broken by paper-and-pencil methods. During World War II, British cryptanalyst John Tiltman accomplished this with the Lorenz cipher (dubbed "Tunny"). With an average personal computer, such ciphers can usually be broken in a matter of minutes. If one message is known, the solution is trivial.

Another situation where recovery is trivial is if traffic-flow security measures have each station sending a continuous stream of cipher bits, with null characters (e.g. LTRS in Baudot) being sent when there is no real traffic. This is common in military communications. In that case, and if the transmission channel is not fully loaded, there is a good likelihood that one of the ciphertext streams will be just nulls. The NSA goes to great lengths to prevent keys from being used twice. 1960s-era encryption systems often included a punched card reader for loading keys. The mechanism would automatically cut the card in half when the card was removed, preventing its reuse.[1]: p. 6 

One way to avoid this problem is to use an initialization vector (IV), sent in the clear, that is combined with a secret master key to create a one-time key for the stream cipher. This is done in several common systems that use the popular stream cipher RC4, including Wired Equivalent Privacy (WEP), Wi-Fi Protected Access (WPA) and Ciphersaber. One of the many problems with WEP was that its IV was too short, 24 bits. This meant that there was a high likelihood that the same IV would be used twice if more than a few thousand packets were sent with the same master key (see birthday attack), subjecting the packets with duplicated IV to the key reuse attack. This problem was fixed in WPA by changing the "master" key frequently.

Bit-flipping attack

Suppose an adversary knows the exact content of all or part of one of our messages. As a part of a man in the middle attack or replay attack, they can alter the content of the message without knowing the key, K. Say, for example, they know a portion of the message, say an electronics fund transfer, contains the ASCII string "$1000.00". They can change that to "$9500.00" by XORing that portion of the ciphertext with the string: "$1000.00" xor "$9500.00". To see how this works, consider that the cipher text we send is just C(K) xor "$1000.00". The new message the adversary is creating is:

(C(K) xor "$1000.00") xor ("$1000.00" xor "$9500.00") = C(K) xor "$1000.00" xor "$1000.00" xor "$9500.00" = C(K) xor "$9500.00"

Recall that a string XORed with itself produces all zeros and that a string of zeros XORed with another string leaves that string intact. The result, C(K) xor "$9500.00", is what our ciphertext would have been if $9500 were the correct amount.

Bit-flipping attacks can be prevented by including message authentication code to increase the likelihood that tampering will be detected.

Chosen-IV attack

Stream ciphers combine a secret key with an agreed initialization vector (IV) to produce a pseudo-random sequence which from time-to-time is re-synchronized.[2] A "Chosen IV" attack relies on finding particular IV's which taken together probably will reveal information about the secret key. Typically multiple pairs of IV are chosen and differences in generated key-streams are then analysed statistically for a linear correlation and/or an algebraic Boolean relation (see also Differential cryptanalysis). If choosing particular values of the initialization vector does expose a non-random pattern in the generated sequence, then this attack computes some bits and thus shortens the effective key length. A symptom of the attack would be frequent re-synchronisation. Modern stream ciphers include steps to adequately mix the secret key with an initialization vector, usually by performing many initial rounds.

References

  1. ^ Securing Record Communications: The TSEC/KW-26 Archived 2012-10-10 at the Wayback Machine, Melville Klein, NSA history series
  2. ^ Englund, Hakan; Johansson, Thomas; Sonmez Turan, Meltem (2007). "A Framework for Chosen IV Statistical Analysis of Stream Ciphers". Progress in Cryptology – INDOCRYPT 2007 (PDF). Lecture Notes in Computer Science. Vol. 4859 (INDOCRYPT / volume 4859 of LNCS ed.). Springer. pp. 268–281. doi:10.1007/978-3-540-77026-8_20. ISBN 978-3-540-77025-1. S2CID 18097959. Archived from the original (PDF) on 2018-10-01. Retrieved 1 October 2018.

Read other articles:

Christian radio station in Minneapolis, Minnesota KTISFaith Radio flagship stationMinneapolis, MinnesotaBroadcast areaMinneapolis-St. PaulFrequency900 kHzBrandingFaith RadioProgrammingFormatChristian talk and teachingOwnershipOwnerNorthwestern Media(University of Northwestern - St Paul)Sister stationsKTIS-FMHistoryFirst air dateFebruary 7, 1949; 75 years ago (1949-02-07)[1]Technical information[2]Licensing authorityFCCFacility ID49770ClassBPower50,000 watts (...

 

Tran Duc Luong Presiden Vietnam ke-5Masa jabatan24 September 1997 – 27 Juni 2006PendahuluLê Ðức AnhPenggantiNguyễn Minh Triết Informasi pribadiLahir5 Mei 1937 (umur 86) Provinsi Quang Ngai, Indochina PrancisPartai politikPartai Komunis VietnamSuami/istriNguyễn Thị VinhSunting kotak info • L • B Tran Duc Luong (2004) Trần Đức Lương (lahir 5 Mei 1937) adalah mantan Presiden Vietnam. Ia lahir di provinsi Quang Ngai, dan pindah ke Hanoi setelah lul...

 

Gaurotes Gaurotes virginea Klasifikasi ilmiah Kerajaan: Animalia Filum: Arthropoda Kelas: Insecta Ordo: Coleoptera Famili: Cerambycidae Genus: Gaurotes Gaurotes adalah genus kumbang tanduk panjang yang tergolong famili Cerambycidae. Genus ini juga merupakan bagian dari ordo Coleoptera, kelas Insecta, filum Arthropoda, dan kingdom Animalia. Larva kumbang dalam genus ini biasanya mengebor ke dalam kayu dan dapat menyebabkan kerusakan pada batang kayu hidup atau kayu yang telah ditebang. Refere...

Флаг гордости бисексуалов Бисексуальность      Сексуальные ориентации Бисексуальность Пансексуальность Полисексуальность Моносексуальность Сексуальные идентичности Би-любопытство Гетерогибкость и гомогибкость Сексуальная текучесть Исследования Шк...

 

Pour les articles homonymes, voir Ozon. Ozon Pont sur l'Ozon à Châtellerault. Caractéristiques Longueur 22,3 km [1] Bassin collecteur Loire Débit moyen (Châtellerault) Nombre de Strahler 2 Organisme gestionnaire Synd Inter Com Aménagement Vallée Ozon Régime pluvial océanique Cours Source la Font de l'Étang · Localisation Archigny · Altitude 109 m · Coordonnées 46° 40′ 18″ N, 0° 40′ 27″ E Confluence Vienne · Localisation Châtel...

 

本條目存在以下問題,請協助改善本條目或在討論頁針對議題發表看法。 此條目需要編修,以確保文法、用詞、语气、格式、標點等使用恰当。 (2013年8月6日)請按照校對指引,幫助编辑這個條目。(幫助、討論) 此條目剧情、虛構用語或人物介紹过长过细,需清理无关故事主轴的细节、用語和角色介紹。 (2020年10月6日)劇情、用語和人物介紹都只是用於了解故事主軸,輔助�...

Spanish football club Football clubMálagaFull nameMálaga Club de FútbolFounded1992 (as Atlético Málaga)2016 (as Málaga CF)GroundJosé Gallardo, Málaga, Andalusia, SpainCapacity7,616ChairmanGonzález LópezManagerAntonio ContrerasLeaguePrimera División B2018–19Primera División, 15th (relegated)WebsiteClub website Home colours Away colours 2023-24 squad. Málaga CF Femenino is the women's football team of Spanish club Málaga CF. It currently plays in Primera División B. History Fou...

 

Assault rifle R5 RGP TypeAssault riflePlace of originUnited StatesService historyIn service2010-present[1]Production historyManufacturerRemington ArmsProduced2010–c.2016[2][3]SpecificationsMass3.0 kg (6.56 lb) (unloaded, w/ 10.5 barrel) 3.2 kg (6.95 lb) (unloaded, w/ 14.5 barrel)[4]Lengthw/ 10.5 barrel: 688 mm (27.10 in) collapsed, 768 mm (30.25 in) extended[4] w/ 14.5 barrel: 780 mm (30.6...

 

Omán en los Juegos Olímpicos Bandera de OmánCódigo COI OMACON Comité Olímpico de Omán(pág. web)Juegos Olímpicos de Los Ángeles 1984Deportistas 16 en 3 deportesAbanderado Mohamed Al-BusaidiMedallas 0 0 0 0 Historia olímpicaJuegos de verano 1984 • 1988 • 1992 • 1996 • 2000 • 2004 • 2008 • 2012 • 2016 • 2020 •[editar datos en Wikidata] Omán estuvo representado ...

هذه المقالة تحتاج للمزيد من الوصلات للمقالات الأخرى للمساعدة في ترابط مقالات الموسوعة. فضلًا ساعد في تحسين هذه المقالة بإضافة وصلات إلى المقالات المتعلقة بها الموجودة في النص الحالي. (نوفمبر 2019) دوري الدرجة الأولى الروماني 1971–72 تفاصيل الموسم دوري الدرجة الأولى الروماني...

 

United States Senators' investigative tour of the Mississippi Delta Joseph S. ClarkRobert F. Kennedy United States Senators Joseph S. Clark and Robert F. Kennedy toured the Mississippi Delta on April 10, 1967. At the behest of civil rights lawyer Marian Wright, Clark and Kennedy, together with two other senators, traveled to Mississippi to investigate reports of extreme poverty and starvation. Following a field hearing, they drove from Greenville to Clarksdale, stopping and touring impoverish...

 

One of the lions killed by Hercules For the other lion killed by Hercules, see Lion of Cithaeron. Heracles slaying the Nemean lion. Detail of a Roman mosaic from Llíria (Spain). The Nemean lion (/nɪˈmiːən/; Greek: Νεμέος λέων, translit. Neméos léōn;[1] Latin: Leo Nemeaeus) was a monster in Greek mythology that lived at Nemea. Eventually, it was killed by Heracles (Hercules). Because its golden fur was impervious to attack, it could not be killed with mortals' we...

Election 1870 Oregon gubernatorial election ← 1866 June 6, 1870 1874 →   Nominee La Fayette Grover Joel Palmer Party Democratic Republican Popular vote 11,726 11,095 Percentage 51.38% 48.82% Governor before election George L. Woods Republican Elected Governor La Fayette Grover Democratic The 1870 Oregon gubernatorial election took place on June 6, 1870, to elect the governor of the U.S. state of Oregon. The election matched Republican Joel Palmer against Democr...

 

Евре́йские погро́мы в пери́од Гражда́нской войны́ в Росси́и — еврейские погромы, совершавшиеся в 1918—1922 годах бандитскими группировками, состоявшими в ситуативных альянсах (порой меняя сторону несколько раз, и формально находясь на воинской службе одной из сторон) с...

 

This template does not require a rating on Wikipedia's content assessment scale.It is of interest to the following WikiProjects:International relations This template is within the scope of WikiProject International relations, a collaborative effort to improve the coverage of International relations on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.International relationsWikipedia:WikiProject Internatio...

The following is a list of the 463 communes of the Charente-Maritime department of France. The communes cooperate in the following intercommunalities (as of 2020):[1] Communauté d'agglomération Rochefort Océan Communauté d'agglomération de La Rochelle Communauté d'agglomération Royan Atlantique Communauté d'agglomération de Saintes Communauté de communes Aunis Atlantique Communauté de communes Aunis Sud Communauté de communes du Bassin de Marennes Communauté de communes ...

 

1970 Polish film Landscape After the BattleDVD release posterDirected byAndrzej WajdaWritten byTadeusz BorowskiAndrzej BrzozowskiAndrzej WajdaStarringDaniel OlbrychskiCinematographyZygmunt SamosiukEdited byHalina Prugar-KetlingRelease date 8 September 1970 (1970-09-08) Running time101 minutesCountryPolandLanguagePolish Landscape After the Battle (Polish: Krajobraz po bitwie) is a 1970 Polish drama film directed by Andrzej Wajda and starring Daniel Olbrychski; telling a story of...

 

Voce principale: Torino Football Club. FBC TorinoStagione 1921-1922Sport calcio Squadra Torino Allenatore Vittorio Pozzo[1] Francisco Mosso I Presidente Luigi Paissa Prima Divisione9º nel girone B della Lega Nord (C.C.I.) Coppa ItaliaNon può partecipare perché indetta dalla F.I.G.C. Maggiori presenzeCampionato: Martin II (22) Miglior marcatoreCampionato: Falchi, Martin III (5) StadioCampo Stradale Stupinigi 1920-1921 1922-1923 Si invita a seguire il modello di voce Questa voc...

Campionati europei di skeletonSport Skeleton TipoIndividuale FederazioneIBSF ContinenteEuropa OrganizzatoreInternational Bobsleigh & Skeleton Federation TitoloCampione d'Europa Cadenzaannuale Formulagara nella gara Sito Internetwww.ibsf.org StoriaFondazione1981 Numero edizioni26 Detentore Singolo donne Tina Hermann Singolo uomini Matt Weston Ultima edizioneAltenberg 2023 Prossima edizione2024 Modifica dati su Wikidata · Manuale I Campionati europei di skeleton sono una competizione ...

 

Series of steps leading down to a body of water, particularly a holy river in South Asia For other uses, see Ghat (disambiguation). Munshi Ghat Dashashwamedh Ghat on the Ganges river, in Varanasi. Ghat (Hindi: [gʱaːʈ]), a term used in the Indian subcontinent, to refer to the series of steps leading down to a body of water or wharf, such as a bathing or cremation place along the banks of a river or pond, the Ghats in Varanasi, Dhobi Ghat or the Aapravasi Ghat.[1][2] ...