|
The Evolution of Security
on the Web: An Introduction to Cryptosystems of the Internet
Contents
-Introduction -Public and Private Keys -One-Way Functions -Keys and "Strong Cryptography" -How Hackers Are Able to Break the Systems -The Importance of Standards -Toward a Standard for Encryption and Authentication -Microsoft's Run at Security on the Internet -Bibliography and Suggestions for Further Reading Introduction Along with the growth of digital global connectivity commonly called the Internet, a new breed of electronic vandals has emerged. Their favorite targets are the data streams and deep pools of information once thought by government, corporations, and even ourselves to be secure from interlopers. www.tartoos.com The current perpetrators of these digital break-ins, kidnappings, and black marketeering include students, researchers, mathematicians, hackers, activists, and joyful troublemakers from around the world. They are not necessarily carrying on in the spirit of the virus writers of the 1980s. In fact, many of them have hacked through corporate firewalls and intercepted secure and encrypted messages with a diverse collection of goals in mind—such as a nonlethal means to notoriety, a way of earning a bounty for discovering holes in the ether, or even academic pursuit. Indeed, much of the encryption-hacking done today has served to make the systems that protect our privacy more secure. Apparently, that's just exactly what happened when Eric Perlman, a 15-year-old tenth grader in Berkeley, California, recently found at least four serious bugs in JavaScript™, including one that enabled him to track visitors to different Web sites and to capture information from their "cookie" files. Cookie files are where Internet browsers such as Microsoft® Internet Explorer and Netscape Navigator store vital user information including registration numbers and even, potentially, credit card information.www.tartoos.com Fortunately, his ability to manipulate Netscape's code was no fluke. He and his father, an Internet guru for Pacific Bell, were Netscape beta testers who reviewed prereleased versions of the software. Although his bugs have been addressed, Perlman's exploits raise potentially serious questions about the security of JavaScript. www.tartoos.com Why has data become so threatened? Reasons abound. For one thing, the quantity and breadth of electronic data has increased dramatically from a few years ago. These data now include financial information, corporate secrets, source code, and passwords, in addition to the simple e-mail or the job control language (JCL) that constitutes the main diet of data sent to mainframes in past years. Furthermore, that vulnerability has been extended to more fronts. In the context of the Internet, security now refers to protecting the published information of the site itself, to storing security information at the site, and to the secure transmission of data between the client and the server. So, while protective measures are far more robust than before, there is not only more economic motivation for hackers, but also more computing resources and advanced algorithms available for code-breaking. www.tartoos.com The message offered by Robert Morris, Sr., a recently retired senior scientist at the National Security Agency (NSA) at Crypto '95 at the University of California at Santa Barbara seems to be the following: "Never underestimate the time, expense, and effort an opponent will expend to break a code." For accounts of attacks on government and corporations, see the article "Your Worst Nightmare" (Violino 1996). We are now aware that the attacks on our security Internet are coming, but that knowledge is not always enough to suggest precisely which countermeasures to launch. www.tartoos.com This article provides an introduction to the key concepts of security: encryption, authentication, private and public keys, digital signatures, secure commerce, code signing, and certificate authorities. www.tartoos.com Public and Private Keys The science of concealing messages has been vital to diplomatic and military security for centuries. Cryptographic techniques, of course, have come a long way since the simple substitution ciphers that date back to the days of Julius Caesar.www.tartoos.com Modern security systems rely on encryption, which is the transformation of data into a form unreadable by anyone without a "decryption key" (kind of like a secret decoder ring). In a multi-user setting, encryption allows secure communication over an insecure channel.www.tartoos.com Until recently, cryptography systems used the same key to encrypt and decrypt a file. With these systems, the strength of the algorithm and the key determined the level of security. The best algorithms are those that retain their strength even if the algorithm is public. These systems are called private-key, or symmetric, cryptosystems, and their advantage is speed. A major disadvantage of private-key cryptography, however, is key management, since each pair of individuals who wants to communicate must have a unique shared key. For example, if you needed to encrypt communication with five people, you would need to generate five keys to keep your data secure (using the same private key with all five would allow each to access information intended for the others). Since an intruder who learned a key would be able to read any messages encrypted by that key, you must distribute private keys for symmetric systems securely, which may be difficult if you communicate over a network.www.tartoos.com To address the problems of key management, public-key or asymmetric cryptography was developed. In this scheme, each key actually consists of two parts: the encryption half (the "public key") and the decryption half (the "private key," which unlocks data encrypted with the matching public key). www.tartoos.com This "fail-safe" system allows a more convenient key distribution method—anyone who wants to communicate with you can use your public key. Moreover, intruders can't use an intercepted public key to decrypt files. The downside is that public key cryptosystems are typically slower than private ones. Until recently, there weren't any easy-to-use programs that implemented public key cryptography. The advent in the early 1990s of Pretty Good Privacy (PGP), a high-security cryptographic software application for MS-DOS®, UNIX, VAX/VMS and other computers helped change that. Now, the ease-of-use barrier is becoming a thing of the past.www.tartoos.com One-Way Functions A one-way function is a mathematical function that is significantly easier to perform in one direction (the forward direction) than in the inverse direction. One might, for example, compute the function in minutes but only be able to compute the inverse in months or years. A trapdoor one-way function is a one-way function where the inverse direction is easy if you know a certain piece of information (the trapdoor), but is difficult otherwise. www.tartoos.com Public-key cryptosystems are based on (presumed) trapdoor one-way functions. The public key gives information about the particular instance of the function; the private key gives information about the trapdoor. Whoever knows the trapdoor can perform the function easily in both directions, but anyone not knowing the trapdoor can perform the function only in the forward direction. The forward direction is used for encryption and signature verification; the inverse direction is used for decryption and signature generation.www.tartoos.com In almost all public-key systems, the larger the key, the greater the difference between the efforts necessary to compute the function in the forward and inverse directions (for someone lacking the trapdoor). For a digital signature to be secure for years, for example, it is necessary to use a trapdoor one-way function with inputs great enough that someone without the trapdoor would need many years to compute the inverse function. www.tartoos.com All practical public-key cryptosystems are based on functions thought to be one-way, but which have not been proven to be so. This means that it is theoretically possible that an algorithm could be discovered that can compute the inverse function easily without a trapdoor; this development would render any cryptosystem based on that one-way function insecure and useless. The fact that most cryptosystems employ keys that expire after a year partly serves to provide a safety net for this theoretical flaw.www.tartoos.com Keys and "Strong Cryptography" The "key" is what locks and unlocks the encryption on secured messages or data. It is a very large number—typically the factor of an even larger prime number. Just how large is extremely important. The larger the number, the more difficult it is (geometrically) to figure it out and crack the encryption. www.tartoos.com Government agencies consider "strong" encryption systems (such as RSA, a public key cryptosystem named for its inventors: Ron Rivest, Adi Shamir, and Len Adelman) those which use asymmetric algorithms with key sizes of more than 512 bits or symmetric algorithms (such as DES, IDEA, and RC5) with key sizes of more than 40 bits (often referred to as "40/512 crypto"). Remember that because the public key is known in an asymmetric system, more bits would be required to keep it secure than in a private, or symmetric, system.www.tartoos.com Since government encryption policy is heavily influenced by the agencies responsible for gathering domestic and international intelligence—the FBI and the NSA, respectively—the government is compelled to balance the conflicting requirements of making strong cryptography available for commercial purposes while still making it possible for those agencies to break those codes, if need be.www.tartoos.com Most cryptographers, however, don't consider 40/512 cryptography "strong" at all. In fact, RSA's mathematicians have for several years considered 40/512 cryptography to be "commercially inadequate," and currently recommend that domestic customers use at least 80/768 cryptography. www.tartoos.com Government agencies often prefer to use the terms "strategic" and "standard" to differentiate encryption systems. "Standard" refers to algorithms that have been drafted and selected as a federal standard—DES (Data Encryption Standard) is the primary example. The government defines "strategic" as any algorithm that requires "excessive work factors" to attack successfully. Unfortunately, the government rarely publishes criteria for what it defines as "acceptable" or "excessive" work factors.www.tartoos.com If, however, the key size is, say, more than 40 digits, then its exportability (and whether or not it can be used legally in certain applications) becomes an issue. The U.S. government usually classifies strong cryptography on the U.S. Munitions List as an export-controlled commodity, just like tanks and missiles. The reasoning is that during wartime, strong cryptography in an enemy's hands can be used to decipher crucial communications or can be used for criminal purposes.www.tartoos.com How Hackers Are Able to Break the Systems Former NSA scientist Morris has outlined two general ways to crack a cryptosystem. One is to exploit an unintended weakness or mistake. As Morris put it, "Look for plaintext." In the jargon of the field, plaintext is a message in words that anyone can read—before the message gets scrambled. No matter how baffling the task of code breaking might seem, very fallible human beings are the ones who must employ the sophisticated means of encryption, and sometimes they fail. Sometimes, when one least expects it, a passage—or even an entire message—might somehow lie unencoded within seemingly impenetrable code. In that case, you can read it as easily as a newspaper. The other method is to unleash a frontal assault on the crypto by directing more resources—both computational and intellectual—toward breaking the code than the system designers would have ever thought possible.www.tartoos.com Perhaps a good way to distinguish between the two methods is to imagine you have your friend Jerry's ATM card. It's your challenge to crack his PIN. You might begin by trying his address or the last 4 digits of his phone number. You might try each of them backwards and if that fails, perhaps his birthday or even the numbers he always plays at the track. If you guess correctly, your success is a measure of Jerry's lack of subtlety. www.tartoos.com Employing a frontal assault, on the other hand, you start with 0000. If that doesn't work you try 0001, and so on. This is obviously a much more tedious and time-consuming method, but with only 10,000 combinations to process, it is bound to work eventually.www.tartoos.com The Significance of Factoring in Cryptography But what about much larger numbers? "Factoring" is the underlying, presumably difficult-to-solve problem upon which several public-key cryptosystems, including RSA, are based. Factoring is the act of splitting an integer into a set of factors. For example, the factors of 15 are 3 and 5; the factoring problem is to find 3 and 5 when given 15. That's easy. But what about 63,354,827,631? Or how about a 254-digit number? Prime factorization requires splitting an integer into factors that are prime numbers; every integer has a unique prime factorization. Multiplying two prime integers together is easy, but as far as we know, factoring the product is much more difficult.www.tartoos.com Factoring an RSA key or "modulus" would allow an attacker to figure out the private key; thus, anyone who can factor the modulus can decrypt messages and forge signatures. The security of RSA, therefore, depends on making factoring difficult, although significant advances in the mathematics of factoring have emerged in recent decades that make the task somewhat easier. Therefore, factoring researchers still consider the possibility that a quick-and-easy factoring method might be discovered quite remote.www.tartoos.com Suffice it to say, factoring large numbers takes more time than factoring smaller numbers. This is why the size of the modulus in RSA determines how secure an actual use of RSA is: The larger the modulus, the longer it takes to factor, and thus the more resistant to attack the RSA implementation is. For a complete discussion of the science of factoring and the higher mathematics brought to bear, visit the RSA Secure Data site. www.tartoos.com Cracking the Code The RSA system was the first manifestation of the breakthrough in theoretical public key cryptography. To prove the system's soundness, Rivest, Shamir, and Adelman were asked in the late 1970s to devise a challenge. Rivest picked an RSA key of 129 digits, encoded a message with it and offered U.S.$100 to anyone who could decode the message. The three inventors felt their C-note was as secure as their code. After all, Rivest estimated that it would take a supercomputer 40 quadrillion years (that's a 40 with 15 zeros) to break the code. Even if one did not accept that time frame (which Rivest later said was a miscalculation), a much shorter time—say a billion years, or even a few million—would ensure that anyone breathing today would be long gone before the secret of the RSA-129 message would be revealed. Fifteen years later, the public-key encryption scheme had spread into many security systems, and the RSA-129 key was still unbroken. That's when, in 1992, a 21-year-old M.I.T. electrical engineering graduate student named Derek Atkins first saw the PGP program, which was based on the RSA key. Atkins immediately recognized its importance and joined the worldwide, unpaid development team that works on new versions of the software. But as Atkins talked to friends about the program, he began to wonder what attacks might work against it. It is worth noting that since 1977 when Rivest posited his RSA-129 challenge, advancements in the mathematics of factoring had advanced at a steady pace. Thus, with the help of these advancements and the software written by Atkins and his team to gather what they called the "needles"—the possible factors of very large prime numbers—they set out to crack RSA-129. From September 1992 to April 1993, they employed more than 1,600 computers, from desktop PCs to Bellcore's 16,000-processor MasPar supercomputer, the equivalent of about 5,000 MIPS years. When Atkins and the others guessed that they had enough unit vectors, or "needles," for the calculation, they gathered them to find the private key. On April 26, 1993—roughly eight months after they started—Atkins posted the key for RSA-129 on the Net: We are happy to announce that RSA-129 = 11438162575788886766923577997614661201021829672124236256256184293 5706935245733897830597123563958705058989075147599290026879543541 = 3490529510847650949147849619903898133417764638493387843990820577 * 327691329932667709549961988190834461413177642967992942539798288533 Applying the key yielded the message: "The magic words are squeamish ossifrage." An ossifrage is a large predatory bird of the vulture family, ranging from the mountainous regions of southern Europe to China and having a wide wingspan and black plumage. Not surprisingly, Rivest had forgotten what the message contained. Atkins and his team donated the money to the Free Software Foundation. It is only fair to report that Rivest, aware of recent advancements in factoring algorithms, had resolved to himself that one day he might have to write the check for $100. "[My original estimate of 40 quadrillion years] was probably accurate for the analysis of the fastest algorithm we knew about at the time, but technology was moving fast on the factoring frontier," Rivest said. www.tartoos.com It is also important to note that breaking the RSA-129 does not mean that PGP in particular, or RSA encryption in general, is weak. An RSA key based on a 129-digit prime is only 425 bits long. Atkins later calculated that had his team attempted the same task, using the same factoring algorithm with the recommended RSA key of 1,024 bits, their computers would still be working on the problem—for a few more million years.www.tartoos.com The Importance of Standards We have touched upon a number of concepts and terminology associated with sophisticated cryptography in the sections above. Now, let's move on to some of the other key issues and how they relate to the strategy Microsoft is planning for the future. Microsoft has made a strong commitment to supporting existing Internet standards. Microsoft is actively participating in the Internet Engineering Task Force (IETF), World Wide Web Consortium (W3C), and other organizations. Recent examples include the Personal Information Exchange (PFX) protocol submitted to the W3C Digital Signature Initiative; the code signing proposal submitted to the W3C; and the Transport Layer Security (TLS) standard aimed at creating a single secure channel standard. Standards are the force behind the success and power of the Internet. These include:
|
| PC school | ãÔÇßá ÇäÊÑäÊ | ÇáÕÝÍÉ ÇáËÇáËÉ | ÇáÕÝÍÉ ÇáËÇäíÉ | ÇáÕÝÍÉ ÇáÃæáì |
|
| Home | Syria | ÓæÑíÉ | ÃÑæÇÏ | Amrit | ÚãÑíÊ | ÇáãÌáÉ ÇáØÈíÉ | ãÏÑÓÉ ÇáßãÈíæÊÑ | Ïáíá ÇáãæÇÞÚ ÇáÚÑÈíÉ |
| ááÓíÏÇÊ ÝÞØ | ÇáãÚáæãÇÊ | ãÚÌã ÇáßãÈíæÊÑ | ÇáãÌáÉ ÇáØÈíÉ | áãÍÉ Úä ØÑØæÓ | ÕæÑ ãä ØÑØæÓ | ÕæÑ ãä ÓæÑíÉ | Ïáíá ÇáãæÇÞÚ ÇáÃÌäÈíÉ | |
|
© 2006 LBCI Corporation. All rights reserved Eng.Hanna Ata Lahoud |
||||||||