Showing posts with label security. Show all posts
Showing posts with label security. Show all posts

Tuesday, May 19, 2009

What are A5/1 & A5/2 Encryptions

A5/1 is a stream cipher used to provide over-the-air communication privacy in the GSM cellular telephone standard. It was initially kept secret, but became public knowledge through leaks and reverse engineering. A number of serious weaknesses in the cipher have been identified.

A5/1 is used in Europe and the United States. A5/2 was a deliberate weakening of the algorithm for certain export regions.[1] A5/1 was developed in 1987, when GSM was not yet considered for use outside Europe, and A5/2 was developed in 1989. Both were initially kept secret. However, the general design was leaked in 1994, and the algorithms were entirely reverse engineered in 1999 by Marc Briceno from a GSM telephone. In 2000, around 130 million GSM customers relied on A5/1 to protect the confidentiality of their voice communications.

Security researcher Ross Anderson reported in 1994 that "there was a terrific row between the NATO signal intelligence agencies in the mid 1980s over whether GSM encryption should be strong or not. The Germans said it should be, as they shared a long border with the Warsaw Pact; but the other countries didn't feel this way, and the algorithm as now fielded is a French design."[2]

A number of attacks on A5/1 have been published. Some require an expensive preprocessing stage after which the cipher can be attacked in minutes or seconds. Until recently, the weaknesses have been passive attacks using the known plaintext assumption. In 2003, more serious weaknesses were identified which can be exploited in the ciphertext-only scenario, or by an active attacker. In 2006 Elad Barkan, Eli Biham and Nathan Keller demonstrated attacks against A5/1, A5/3, or even GPRS that allow attackers to tap GSM mobile phone conversations and decrypt them either in real-time, or at any later time.In 2003, Barkan et al. published several attacks on GSM encryption.[8] The first is an active attack. GSM phones can be convinced to use the much weaker A5/2 cipher briefly. A5/2 can be broken easily, and the phone uses the same key as for the stronger A5/1 algorithm. A second attack on A5/1 is outlined, a ciphertext-only time-memory tradeoff attack which requires a large amount of precomputation.

How to hack network security cameras?

Adopt the following process and hack the network security cameras:

1. Go to Google.com
2. Type

intitle:"Live View /-AXIS"

and click search

3. Go to the searched links and control the security cameras working in the world

ENJOY IT

How do Authentication and Key generation work in a GSM network?

Encryption in the GSM network utilizes a Challenge/Response mechanism.

  1. The Mobile Station (MS) signs into the network.
  2. The Mobile Services Switching Center (MSC) requests 5 triples from the Home Location Register (HLR).
  3. The Home Location Register creates five triples utilizing the A8 algorithm. These five triples each contain:
    • A 128-bit random challenge (RAND)
    • A 32-bit matching Signed Response (SRES)
    • A 64-bit ciphering key used as a Session Key (Kc).
  4. The Home Location Register sends the Mobile Services Switching Center the five triples.
  5. The Mobile Services Switching Center sends the random challenge from the first triple to the Base Transceiver Station (BTS).
  6. The Base Transceiver Station sends the random challenge from the first triple to the Mobile Station.
  7. The Mobile Station receives the random challenge from the Base Transceiver Station and encrypts it with the Individual Subscriber Authentication Key (Ki) assigned to the Mobile Station utilizing the A3 algorithm.
  8. The Mobile Station sends the Signed Response to the Base Transceiver Station.
  9. The Base Transceiver Station sends the Signed Response to the Mobile Services Switching Center.
  10. The Mobile Services Switching Center verifies the Signed Response.
  11. The Mobile Station generates a Session Key (Kc) utilizing the A8 algorithm, the Individual Subscriber Authentication Key (Ki) assigned to the Mobile Station, and the random challenge received from the Base Transceiver Station.
  12. The Mobile Station sends the Session Key (Kc) to the Base Transceiver Station.
  13. The Mobile Services Switching Center sends the Session Key (Kc) to the Base Transceiver Station.
  14. The Base Transceiver Station receives the Session Key (Kc) from the Mobile Services Switching Center.
  15. The Base Transceiver Station receives the Session Key (Kc) from the Mobile Station.
  16. The Base Transceiver Station verifies the Session Keys from the Mobile Station and the Mobile Services switching Center.
  17. The A5 algorithm is initialized with the Session Key (Kc) and the number of the frame to be encrypted.
  18. Over-the-air communication channel between the Mobile Station and Base Transceiver Station can now be encrypted utilizing the A5 algorithm.

This process authenticates the GSM Mobile Station (MS) to the GSM network. One known security limitation of GSM networks is that the GSM network is never authenticated by the GSM Mobile Station (MS).

This one-way authentication makes it possible for an attacker to pretend to be a GSM network provider.