Showing posts with label World War II. Show all posts
Showing posts with label World War II. Show all posts

June 5, 2013

Secret Services & Bombe 2.0

"The Poles had proved that Enigma was not a perfect cipher, and they had also demonstrated to the Allies the value of employing mathematicians as codebreakers." 

The room 40, which was shortely substituted by the GC&CS settled in Bletchley Park, 80 kilometers (50 miles) north of London, started to recrute new operator especially between mathematicians and scientists, and one of them, who deserves to be singled
out, it is the mathematician Alan Turing, who identified Enigma’s greatest weakness and ruthlessly exploited it. Thanks to Turing, it became possible to crack the Enigma cipher under even the most difficult circumstances.

The basic idea was that many messages sent would consist of some short piece of predictable text such as "The weather today will be...."  for the morning weather report, or "Heil Hitler" as closure of each text. Using those cribs the cryptoanalyst were able to create a menu  like the one in the photo below


The menu, in the form of an electric circuit, was ‘plugged up’ on the panel of sockets located on the back of the Bombe by means of 26-way cables. It must be underlined that, for the correct functioning of the British Bomb,  it was essential that the structure of the menu included multiple ‘closures’ or loops.
In the given menu the sequence of letters: S → A → X → V form one such loop, and the diagram below gives the details of the Enigma enciphering processes that correspond to the four links in this loop. In this diagram the four unknown stecker partners of the letters S, A, X and V are respectively represented by the Greek letters: α, β, γ and δ. (The Enigma rotor systems and their equivalents on the Bombe will subsequently be referred to as the ‘scramblers’. The scrambler connections were made with 26-way cables.)


The American Bombe was in its structure similar to its british correspondent, although it was way faster because it was designed to find the key of a 4 (instead of only 3) rotors Enigma, which was the one employed by the Kriegsmarine, the German Naval Army, the safest one.

The capability of the Allies to read the Axis messages allowed them to win importants battles of the Second World War, like for the Battle of the Atlantic, and the war itself.

The Entire argument of Cracking the Enigma Machine started in the last post Secret Services & Cracking Enigma: The Bombe,

Sources:
The Code Book, Simon Singh
http://www.rutherfordjournal.org/article030108.html
http://www.bletchleypark.org.uk/content/machines.rhtm
http://www.vectorsite.net/ttcode_08.html#m1
http://en.wikipedia.org/wiki/Bombe
http://ciphermachines.com/enigma.html#break

June 4, 2013

Secret Services & Cracking Enigma: The Bombe

"In the years that followed the First World War, the British cryptanalysts in Room 40 continued to monitor German communications. In 1926 they began to intercept messages that baffled them completely. Enigma had arrived, and as the number of Enigma machines increased, Room 40’s ability to gather intelligence diminished rapidly.[...]The speed with which the Allied cryptanalysts abandoned hope of breaking Enigma was in sharp contrast to their perseverance just a decade earlier in the First World War.[...]One nation, however, could not afford to relax. After the First World War, Poland reestablished itself as an independent state, but it was concerned about threats to its newfound sovereignty. To the east lay Russia,[...] and to the west lay Germany[...]Sandwiched between these two enemies, the Poles were desperate for intelligence information, and they formed a new cipher bureau, the Biuro Szyfrów. If necessity is the mother of invention, then perhaps adversity is the mother of cryptanalysis."

[The Code Book, Simon Singh]

The whole process started indeed in Polland in the Biuro Szyfrów, where the disappointed German Hans-Thilo Schmidt, a public dependent of the Chiffrierstelle, brought the papers in which was represented the general structure of the Enigma machine and thanks to a machine intercepted in the Polish mail (They then bought a commercial Enigma machine and used the gathered information to convert it into a military one)
This was actually a great step since, before these info, they only had mathematical analysis data, which, let's be honest here, were more or less useless without the machine. But even in this case "The strength of the cipher depends not on keeping the machine secret, but on keeping the initial setting of the machine (the key) secret"...an expedient that by itself was capable to lay approximately 1.58 x 10^20 possible keys between the Allies and the solution...a result which was more or less impossible to reach in useful time...
This was true untill the matematician Marian Rejewski found a leak in the comunication system: the repetition. The German infact used to comunicate with the daily key the message one (3 letters, one for each rotor) twice (for a total of 6)...Rejewski tabulated the relationships between the first and fourth characters as follows:

   ABCDEFGHIJKLMNOPQRSTUVWXYZ
      O                                   L                K
Given enough messages intercepted in one day, he could complete this table, giving him something like:

   ABCDEFGHIJKLMNOPQRSTUVWXYZ
   FOXPVBUNWYACRIZELDTQGJMKHS

I know that it seems to be leading nowhere, but Rejewski kept playing at it and discovered a property which was going to overturn their work.
He noticed that "A" in the top row was related to "F" in the bottom. He went to "F" in the top row and saw that it was related to "B" in the bottom. He went to "B" in the top row and saw that it was related to "O" in the bottom. He continued this search until he ended up with the "A" in the top row again, and then repeated this game through the rest of the table until there were no more characters left. The example above gives:

   A -> F -> B -> O -> Z -> S -> T -> Q -> L -> C -> X -> K -> A
   D -> P -> E -> V -> J -> Y -> H -> N -> I -> W -> M -> R -> D
   G -> U -> G

Rejewski did the same operationd with different sets of messages sent on different days, and noticed that the pattern of the number of chains and the number of links in the chains varied widely from day to day and he cleverly realized that this pattern provided a fingerprint characteristic of the initial rotor setup. The important thing about it is that it dependeds only on the number of chains and on the number of links in the chains; the exact characters in the chains were irrelevant.


Example of fingerprints structure
  1 chain with 10 characters
  2 chains with 5 characters
  1 chain with 6 characters      rotor order ACB rotor                                 position XHJ

  1 chain with 13 characters
  1 chain with 5 characters
  2 chains with 4 characters     rotor order BAC rotor                                 position FCD

Once the catalog containing all fingerprints was finished, the Poles could then identify the right key and decode all intercepted messages sent during the day, and start over again the day after knowing that most of the work was already done...at least until the Germans altered their usual way of transmitting messages, but Rejewski fought back. Even if his old fingerprints catalog was useles,but instead of rewriting it, he devised a mechanized version of it, which could automatically search for the correct scrambler settings. Rejewski’s invention was an adaptation of the Enigma machine, able to rapidly check each of the 17,576 settings until it spotted a match. Because of the six possible scrambler arrangements, it was necessary to have six of Rejewski’s machines working in parallel, each one representing one of the possible arrangements. Together, they formed a unit that was about three feet high, capable of finding the day key in roughly two hours. The units were called bombes, a name that might reflect the ticking noise they made while checking scrambler settings.

Bomba kryptologiczna  drawing 
from M.Rejewski’s papers

"The bombes effectively mechanized the process of decipherment. It was a natural response to Enigma, which was a mechanization of encipherment"

If you feel like you've missed something go on and check the previous posts related to this one, which are Secret Services & Patents: The Enigma Machine and Technology & The Enigma Machine
If you wanna dig deeper,you can satisfy your thirst for knowledge, you can click on the word links  or on the links of my sources.


Continues...

Sources:
The Code Book, Simon Singh
http://www.bletchleypark.org.uk/content/machines.rhtm
http://www.vectorsite.net/ttcode_08.html#m1
http://en.wikipedia.org/wiki/Bombe
http://en.wikipedia.org/wiki/Cryptanalysis_of_the_Enigma




May 27, 2013

Secret Services & Postage Stamp

The challenge this time is: choose a stamp that talks about the blog theme... and what's better than The British bombe?
It was a wonder of mechanical and electrical engineering. It's function was to figure out the rotors settings for each day's keys, and it was capable to perform that operation in at most 12 hours. From that point, all messages could be read in real time. In all, 210 British bombes were built during the war and all were destroyed at the end of the war, but few of their american evolution, used for analysing all combinations generated by 4 rotor Naval Enigma, in all 121, are still intact and they are still here, remebering us of what a great step toward artificial intelligence it has been done during that period thanks to these machines.

 




May 20, 2013

Secret Services & Radio

Then at the fall of Paris, a radio transmitting station was set up on the cliff, antennas aimed at the Continent, themselves heavily guarded and their landlines back mysteriously over the downs to the house patrolled night and day by dogs specially betrayed, belted, starved into reflex leaps to kill, at any human approach.


With funding available for all manner of radars, magic 
torpedoes, aircraft and missiles, where was Pointsman in the scheme of things?

"Tides, radio interference, damned little else. There is no way for changes out there to produce changes here."

On the other side of the arch is a Russian jeep with a couple officers, one talking earnestly into the mike of his radio set, and the air between quickens with spoken Russian at the speed of light weaving a net to catch Slothrop.


At first he helped out in the propulsion group. No one was specializing yet. That came later, when the bureaus and paranoias moved in, and the organization charts became plan-views of prison cells. Kurt Mondaugen, whose field was radio electronics, could come up with solutions to cooling problems.


The Russians even had a guard posted on board for a while, till the Anubian ladies vamped them off long enough to single up all lines—and so the last long reprise of Polish homeland was on, across these water-meadows of the north, radio messages following them in clear one day and code the next, an early and shapeless situation, dithering between executioner's silence and the Big Time.

Russian transmissions come crackling out of ship's radio, and the static blows like sheets of rain.


The idea was always to carry along a fixed quantity, A. Sometimes you'd use a Wìen bridge, tuned to a certain frequency A{, whistling, heavy with omen, inside the electric corridors while outside, according to the tradition in these matters, somewhere a quantity B would be gathering, building, as the Rocket gathered speed. So, up till assigned Brennschluss velocity, "v ," electric shocked as any rat into following this very narrow mazeway of clear space—yes, radio signals from the ground would enter the Rocket body, and by reflex—literally by electric signal traveling a reflex arc—the control surfaces twitch, to steer you back on course the instant you'd begin to wander off.


But the blacks don't know what else Närrisch knew:
(a) there was a radio link from the ground to the S-Gerät but not the other way round,
(b) there was an interference problem between a servo-actuator and a special oxygen line running aft to the device from the main tank,
(c) Weissmann not only coordinated the S-Gerät project at Nordhausen, but also commanded the battery that fired Rocket 00000.
Total espionage. Bit by bit this mosaic is growing. Tchitcherine, bureauless, carries it around in his brain. Every chip and scrap belongs. More precious than Ravenna, something goes erecting against this starch-colored sky. . . .
Radio link + oxygen = afterburner of some kind.


The tail-section group has been on the radio all morning, trying to get a position fix, if the skies will only clear. So the assembly of the 00001 is occurring also in a geographical way.

[Gravity's Rainbow, Thomas Pynchon]


Werner had been only fourteen years old then, but he was now eighteen, he worked at the Air Ministry, he hated the Nazis even more, and he had a powerful radio transmitter and a code book. He was resourceful and courageous, taking dreadful risks and gathering priceless information. And Volodya was his contact.


On his desk was a decrypt from the radio section, the German words pencilled letter by letter under the code groups. The message was from Werner.


Anticipating the outbreak of war, Volodya had long ago equipped his Berlin spies with clandestine radios and code books. Now it was more vital than ever that the handful of brave anti-Nazis should continue to pass information to the Soviets. Before leaving he had destroyed all records of their names and addresses, which now existed only in his head.


At home, Chuck had not said much about the navy, no doubt because their parents were still angry with him for not going to Harvard. But alone with Woody he opened up a bit. ‘Hawaii is great, but I’m really disappointed to have a shore job,’ he said. ‘I joined the navy to go to sea.’
‘What are you doing, exactly?’
‘I’m part of the Signal Intelligence Unit. We listen to radio messages, mainly from the Imperial Japanese Navy.’
‘Aren’t they in code?’
‘Yes, but you can learn a lot even without breaking the codes. It’s called traffic analysis. A sudden increase in the number of messages indicates that some action is imminent. And you learn to recognize patterns in the traffic. An amphibious landing has a distinctive configuration of signals, for example.’


We can also figure out where the signal originated, by triangulation. Given locations and the call signs, we can build up a pretty good picture of where most of the ships of the Japanese navy are, even if we can’t read the messages.’
‘So we know where they are, and what direction they’re taking, but not what their orders are,’ said Gus.
‘Frequently, yes.’
‘But if they wanted to hide from us, all they would have to do is impose radio silence.’
‘True,’ said Vandermeier. ‘If they go quiet, this whole operation becomes useless, and we are well and truly fucked up the ass.’
[...]
Gus frowned. ‘Radio silence. Has that ever happened before?’
‘Yes. Aircraft carriers go quiet when they return to home waters. So we assume that’s the explanation this time.’


Chuck was assigned to the radio room, a sensible posting that made use of his experience in
handling signals.

[Winter of the World, Ken Follet]

As it appears from the quotes extracted from the books radio had a great importance during World War II under multiple aspects, like checking enemies position (triangulation and radar) and actions (traffic analysis and signal configurations), controling the coasts, comunicating with other meber of the army or with a Soviet spy in Berlin and to control a missile and keep it on the route. There where though few problems about interferences and the fact that it can be easily tracked down.

If you wanna know more about history and functioning of Marconi's creature  check the links below:
http://s194214.blogspot.it/2013/05/la-radio.html (italian version by Alessia Rosace, 'Tecnologia e Comunicazione' blog)
http://it.wikipedia.org/wiki/Radio (english version - Wikipedia page on the radio as a technology feature)



About triangulation...in the link below you can find a video about triangulation method and its aplications in time:
http://www.youtube.com/watch?v=GYBbVNpMlUU


The image presents the general idea if this tracking technique










In the links below you can find more info regarding the Traffic Analysis:
http://www.nsa.gov/public_info/_files/tech_journals/intro_traffic_analysis.pdf (NSA introduction document)
http://en.wikipedia.org/wiki/Traffic_analysis (Wikipedia presentation of its applications in the military field during WWI and WWII)


Woman radio Operator during war times



May 17, 2013

Maps & Secret Services

Our professor Vittorio Marchis  suggested to find a carthography which was coherent with our blog theme and so I've founded not one but three maps, two of which are complementary, that in my opinion are a resumè of what my blog represents:

The first map describe the Organization of the buildings in Bletchley Park in different operating areas, meanwhile the second one depict the pattern followed by not yet analyzed messages




In the link below you can find a google map which illustrates the different positions assumed, in the course of time, by the SIS' Headquartes, the neuralgic centre of all inteligence operations. Londonhttps://maps.google.it/maps/ms?msid=210910011879806218578.0004dc6e3a581c0ae61ba&msa=0




64 Victoria Street - 1909


Ashley Mansions - 1909 'till 1911


Whitehall Court - 1911 'tll 1919


Melbury Road - 1919 'till 1926


Broadway Building - 1926 'till 1964


Century House - 1964 'till 1994




Vauxhall Cross (HQ) - 1994 'till present day

Curiosity: SIS HQ features in several Bond films, like GoldenEye, The World is Not Enough, Die Another Day and Skyfall.  The production company, Eon Productions, filmed several sequences outside Vauxhall Cross in cooperation with SIS.  The most impressive involved an explosion which causes a large hole in the side of the building and a speed boat launching into the Thames, this was actually filmed using a 50 foot high model of Vauxhall Cross constructed at Pinewood Studios.

The argument of this post is related to the ones contained in The Art in the Agency and in SIS, aka MI6...A little bit of History.


Source:
https://www.sis.gov.uk/our-history/buildings.html