Share E-Book

Beautiful Security Leading Security Experts Explain How They Think (Andy Oram, John Viega)(Z-Library)

Author

,

Rating 3.5 AI initial rating

Log in to rate

AI
Language English

Книга Beautiful Security: Leading Security Experts Explain How They Think Beautiful Security: Leading Security Experts Explain How They ThinkКниги Компьютерная безопасность Автор: Andy Oram, John Viega Год издания: 2009 Формат: pdf Издат.:O'Reilly Страниц: 281 Размер: 2,1 ISBN: 9780596527488 Язык: Английский0 (голосов: 0) Оценка:In this thought-provoking anthology, today's security experts describe bold and extraordinary methods used to secure computer systems in the face of ever-increasing threats. Beautiful Security features a collection of essays and insightful analyses by leaders such as Ben Edelman, Grant Geyer, John McManus, and a dozen others who have found unusual solutions for writing secure code, designing secure applications, addressing modern challenges such as wireless security and Internet vulnerabilities, and much more. Among the book's wide-ranging topics, you'll learn how new and more aggressive security measures work--and where they will lead us. Topics include:* Rewiring the expectations and assumptions of organizations regarding security* Security as a design requirement* Evolution and new projects in Web of Trust* Legal sanctions to enforce security precautions* An encryption/hash system for protecting user data* The criminal economy for stolen information* Detecting attacks through contextGo beyond the headlines, hype, and hearsay. With Beautiful Security, you'll delve into the techniques, technology, ethics, and laws at the center of the biggest revolution in the history of network security. It's a useful and far-reaching discussion you can't afford to miss.

Format PDF
Size 2.9 MB
(First 20 pages)

Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Page 1
(This page has no text content)
Page 2
(This page has no text content)
Page 3
Beautiful Security
Page 4
(This page has no text content)
Page 5
Beautiful Security Edited by Andy Oram and John Viega Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo
Page 6
Beautiful Security Edited by Andy Oram and John Viega Copyright © 2009 O’Reilly Media, Inc. All rights reserved. Printed in the United States of America. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://my.safaribooksonline.com/). For more information, contact our corporate/ institutional sales department: 800-998-9938 or corporate@oreilly.com. Production Editor: Sarah Schneider Copyeditor: Genevieve d’Entremont Proofreader: Sada Preisch Indexer: Lucie Haskins Cover Designer: Mark Paglietti Interior Designer: David Futato Illustrator: Robert Romano Printing History: April 2009: First Edition. O’Reilly and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. Beautiful Security, the image of a cactus, and related trade dress are trademarks of O’Reilly Media, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. ISBN: 978-0-596-52748-8 [V] 1239647579
Page 7
All royalties from this book will be donated to the Internet Engineering Task Force (IETF).
Page 8
(This page has no text content)
Page 9
C O N T E N T S PREFACE xi 1 PSYCHOLOGICAL SECURITY TRAPS 1 by Peiter “Mudge” Zatko Learned Helplessness and Naïveté 2 Confirmation Traps 10 Functional Fixation 14 Summary 20 2 WIRELESS NETWORKING: FERTILE GROUND FOR SOCIAL ENGINEERING 21 by Jim Stickley Easy Money 22 Wireless Gone Wild 28 Still, Wireless Is the Future 31 3 BEAUTIFUL SECURITY METRICS 33 by Elizabeth A. Nichols Security Metrics by Analogy: Health 34 Security Metrics by Example 38 Summary 60 4 THE UNDERGROUND ECONOMY OF SECURITY BREACHES 63 by Chenxi Wang The Makeup and Infrastructure of the Cyber Underground 64 The Payoff 66 How Can We Combat This Growing Underground Economy? 71 Summary 72 5 BEAUTIFUL TRADE: RETHINKING E-COMMERCE SECURITY 73 by Ed Bellis Deconstructing Commerce 74 Weak Amelioration Attempts 76 E-Commerce Redone: A New Security Model 83 The New Model 86 6 SECURING ONLINE ADVERTISING: RUSTLERS AND SHERIFFS IN THE NEW WILD WEST 89 by Benjamin Edelman Attacks on Users 89 Advertisers As Victims 98 vii
Page 10
Creating Accountability in Online Advertising 105 7 THE EVOLUTION OF PGP’S WEB OF TRUST 107 by Phil Zimmermann and Jon Callas PGP and OpenPGP 108 Trust, Validity, and Authority 108 PGP and Crypto History 116 Enhancements to the Original Web of Trust Model 120 Interesting Areas for Further Research 128 References 129 8 OPEN SOURCE HONEYCLIENT: PROACTIVE DETECTION OF CLIENT-SIDE EXPLOITS 131 by Kathy Wang Enter Honeyclients 133 Introducing the World’s First Open Source Honeyclient 133 Second-Generation Honeyclients 135 Honeyclient Operational Results 139 Analysis of Exploits 141 Limitations of the Current Honeyclient Implementation 143 Related Work 144 The Future of Honeyclients 146 9 TOMORROW’S SECURITY COGS AND LEVERS 147 by Mark Curphey Cloud Computing and Web Services: The Single Machine Is Here 150 Connecting People, Process, and Technology: The Potential for Business Process Management 154 Social Networking: When People Start Communicating, Big Things Change 158 Information Security Economics: Supercrunching and the New Rules of the Grid 162 Platforms of the Long-Tail Variety: Why the Future Will Be Different for Us All 165 Conclusion 168 Acknowledgments 169 10 SECURITY BY DESIGN 171 by John McManus Metrics with No Meaning 172 Time to Market or Time to Quality? 174 How a Disciplined System Development Lifecycle Can Help 178 Conclusion: Beautiful Security Is an Attribute of Beautiful Systems 181 11 FORCING FIRMS TO FOCUS: IS SECURE SOFTWARE IN YOUR FUTURE? 183 by Jim Routh Implicit Requirements Can Still Be Powerful 184 How One Firm Came to Demand Secure Software 185 Enforcing Security in Off-the-Shelf Software 190 Analysis: How to Make the World’s Software More Secure 193 12 OH NO, HERE COME THE INFOSECURITY LAWYERS! 199 by Randy V. Sabett viii C O N T E N T S
Page 11
Culture 200 Balance 202 Communication 207 Doing the Right Thing 211 13 BEAUTIFUL LOG HANDLING 213 by Anton Chuvakin Logs in Security Laws and Standards 213 Focus on Logs 214 When Logs Are Invaluable 215 Challenges with Logs 216 Case Study: Behind a Trashed Server 218 Future Logging 221 Conclusions 223 14 INCIDENT DETECTION: FINDING THE OTHER 68% 225 by Grant Geyer and Brian Dunphy A Common Starting Point 226 Improving Detection with Context 228 Improving Perspective with Host Logging 232 Summary 237 15 DOING REAL WORK WITHOUT REAL DATA 239 by Peter Wayner How Data Translucency Works 240 A Real-Life Example 243 Personal Data Stored As a Convenience 244 Trade-offs 244 Going Deeper 245 References 246 16 CASTING SPELLS: PC SECURITY THEATER 247 by Michael Wood and Fernando Francisco Growing Attacks, Defenses in Retreat 248 The Illusion Revealed 252 Better Practices for Desktop Security 257 Conclusion 258 CONTRIBUTORS 259 INDEX 269 C O N T E N T S ix
Page 12
(This page has no text content)
Page 13
Preface IF ONE BELIEVES THAT NEWS HEADLINES REVEAL TRENDS, THESE ARE INTERESTING times for computer security buffs. As Beautiful Security went to press, I read that a piece of software capable of turning on microphones and cameras and stealing data has been discovered on more than 1,200 computers in 103 countries, particularly in embassies and other sensitive government sites. On another front, a court upheld the right of U.S. investigators to look at phone and Internet records without a warrant (so long as one end of the conversation is outside the U.S.). And this week’s routine vulnerabilities include a buffer overflow in Adobe Acrobat and Adobe Reader—with known current exploits—that lets attackers execute arbitrary code on your system using your privileges after you open their PDF. Headlines are actually not good indicators of trends, because in the long run history is driven by subtle evolutionary changes noticed only by a few—such as the leading security experts who contributed to this book. The current directions taken by security threats as well as responses can be discovered in these pages. All the alarming news items I mentioned in the first paragraph are just business as usual in the security field. Yes, they are part of trends that should worry all of us, but we also need to look at newer and less dramatic vulnerabilities. The contributors to this book have, for decades, been on the forefront of discovering weaknesses in our working habits and suggesting unconventional ways to deal with them. xi
Page 14
Why Security Is Beautiful I asked security expert John Viega to help find the authors for this book out of frustration concerning the way ordinary computer users view security. Apart from the lurid descriptions of break-ins and thefts they read about in the press, average folks think of security as boring. Security, to many, is represented by nagging reminders from system administrators to create backup folders, and by seemingly endless dialog boxes demanding passwords before a web page is displayed. Office workers roll their eyes and curse as they read the password off the notepad next to their desk (lying on top of the budget printout that an office administrator told them should be in a locked drawer). If this is security, who would want to make a career of it? Or buy a book from O’Reilly about it? Or think about it for more than 30 seconds at a time? To people tasked with creating secure systems, the effort seems hopeless. Nobody at their site cooperates with their procedures, and the business managers refuse to allocate more than a pittance to security. Jaded from the endless instances of zero-day exploits and unpatched vulnerabilities in the tools and languages they have to work with, programmers and system administrators become lax. This is why books on security sell poorly (although in the last year or two, sales have picked up a bit). Books on hacking into systems sell much better than books about how to protect systems, a trend that really scares me. Well, this book should change that. It will show that security is about the most exciting career you can have. It is not tedious, not bureaucratic, and not constraining. In fact, it exercises the imagination like nothing else in technology. Most of the programming books I’ve edited over the years offer a chapter on security. These chapters are certainly useful, because they allow the author to teach some general principles along with good habits, but I’ve been bothered by the convention because it draws a line around the topic of security. It feeds the all-too-common view of security as an add-on and an afterthought. Beautiful Security demolishes that conceit. John chose for this book a range of authors who have demonstrated insight over and over in the field and who had something new to say. Some have designed systems that thousands rely on; some have taken high-level jobs in major corporations; some have testified on and worked for government bodies. All of them are looking for the problems and solutions that the rest of us know nothing about—but will be talking about a lot a few years from now. The authors show that effective security keeps you on your toes all the time. It breaks across boundaries in technology, in cognition, and in organizational structures. The black hats in security succeed by exquisitely exercising creativity; therefore, those defending against them must do the same. xii P R E F A C E
Page 15
With the world’s infosecurity resting on their shoulders, the authors could be chastised for taking time off to write these chapters. And indeed, many of them experienced stress trying to balance their demanding careers with the work on this book. But the time spent was worth it, because this book can advance their larger goals. If more people become intrigued with the field of security, resolve to investigate it further, and give their attention and their support to people trying to carry out organizational change in the interest of better protection, the book will have been well worth the effort. On March 19, 2009, the Senate Committee on Commerce, Science, and Transportation held a hearing on the dearth of experts in information technology and how that hurts the country’s cybersecurity. There’s an urgent need to interest students and professionals in security issues; this book represents a step toward that goal. Audience for This Book This book is meant for people interested in computer technology who want to experience a bit of life at the cutting edge. The audience includes students exploring career possibilities, people with a bit of programming background, and those who have a modest to advanced understanding of computing. The authors explain technology at a level where a relatively novice reader can get a sense of the workings of attacks and defenses. The expert reader can enjoy the discussions even more, as they will lend depth to his or her knowledge of security tenets and provide guidance for further research. Donation The authors are donating the royalties from this book to the Internet Engineering Task Force (IETF), an organization critical to the development of the Internet and a fascinating model of enlightened, self-organized governance. The Internet would not be imaginable without the scientific debates, supple standard-making, and wise compromises made by dedicated members of the IETF, described on their web page as a “large open international community of network designers, operators, vendors, and researchers.” O’Reilly will send royalties to the Internet Society (ISOC), the longtime source of funding and organizational support for the IETF. Organization of the Material The chapters in this book are not ordered along any particular scheme, but have been arranged to provide an engaging reading experience that unfolds new perspectives in hopefully surprising ways. Chapters that deal with similar themes, however, are grouped together. P R E F A C E xiii
Page 16
Chapter 1, Psychological Security Traps, by Peiter “Mudge” Zatko Chapter 2, Wireless Networking: Fertile Ground for Social Engineering, by Jim Stickley Chapter 3, Beautiful Security Metrics, by Elizabeth A. Nichols Chapter 4, The Underground Economy of Security Breaches, by Chenxi Wang Chapter 5, Beautiful Trade: Rethinking E-Commerce Security, by Ed Bellis Chapter 6, Securing Online Advertising: Rustlers and Sheriffs in the New Wild West, by Benjamin Edelman Chapter 7, The Evolution of PGP’s Web of Trust, by Phil Zimmermann and Jon Callas Chapter 8, Open Source Honeyclient: Proactive Detection of Client-Side Exploits, by Kathy Wang Chapter 9, Tomorrow’s Security Cogs and Levers, by Mark Curphey Chapter 10, Security by Design, by John McManus Chapter 11, Forcing Firms to Focus: Is Secure Software in Your Future?, by James Routh Chapter 12, Oh No, Here Come the Infosecurity Lawyers!, by Randy V. Sabett Chapter 13, Beautiful Log Handling, by Anton Chuvakin Chapter 14, Incident Detection: Finding the Other 68%, by Grant Geyer and Brian Dunphy Chapter 15, Doing Real Work Without Real Data, by Peter Wayner Chapter 16, Casting Spells: PC Security Theater, by Michael Wood and Fernando Francisco Conventions Used in This Book The following typographical conventions are used in this book: Italic Indicates new terms, URLs, filenames, and Unix utilities. Constant width Indicates the contents of computer files and generally anything found in programs. Using Code Examples This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a xiv P R E F A C E
Page 17
significant amount of example code from this book into your product’s documentation does require permission. We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “Beautiful Security, edited by Andy Oram and John Viega. Copyright 2009 O’Reilly Media, Inc., 978-0-596-52748-8.” If you feel your use of code examples falls outside fair use or the permission given here, feel free to contact us at permissions@oreilly.com. Safari® Books Online When you see a Safari® Books Online icon on the cover of your favorite technology book, that means the book is available online through the O’Reilly Network Safari Bookshelf. Safari offers a solution that’s better than e-books. It’s a virtual library that lets you easily search thousands of top tech books, cut and paste code samples, download chapters, and find quick answers when you need the most accurate, current information. Try it for free at http:// my.safaribooksonline.com/. How to Contact Us Please address comments and questions concerning this book to the publisher: O’Reilly Media, Inc. 1005 Gravenstein Highway North Sebastopol, CA 95472 800-998-9938 (in the United States or Canada) 707-829-0515 (international or local) 707-829-0104 (fax) We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at: http://www.oreilly.com/catalog/9780596527488 To comment or ask technical questions about this book, send email to: bookquestions@oreilly.com For more information about our books, conferences, Resource Centers, and the O’Reilly Network, see our website at: http://www.oreilly.com P R E F A C E xv
Page 18
(This page has no text content)
Page 19
C H A P T E R O N E Psychological Security Traps Peiter “Mudge” Zatko DURING MY CAREER OF ATTACKING SOFTWARE AND THE FACILITIES THEY POWER, many colleagues have remarked that I have a somewhat nonstandard approach. I tended to be surprised to hear this, as the approach seemed logical and straightforward to me. In contrast, I felt that academic approaches were too abstract to realize wide success in real-world applications. These more conventional disciplines were taking an almost completely random tack with no focus or, on the opposite end of the spectrum, spending hundreds of hours reverse-engineering and tracing applications to (hopefully) discover their vulnerabilities before they were exploited out in the field. Now, please do not take this the wrong way. I’m not condemning the aforementioned techniques. In fact I agree they are critical tools in the art of vulnerability discovery and exploitation. However, I believe in applying some shortcuts and alternative views to envelope, enhance, and—sometimes—bypass these approaches. In this chapter I’ll talk about some of these alternative views and how they can help us get inside the mind of the developer whose code or system we engage as security professionals. Why might you want to get inside the mind of the developer? There are many reasons, but for this chapter we will focus on various constraints that are imposed on the creation of code and the people who write it. These issues often result in suboptimal systems from the security viewpoint, and by understanding some of the environmental, psychological, and philosophical frameworks in which the coding is done, we can shine a spotlight on which areas of a system 1
Page 20
are more likely to contain vulnerabilities that attackers can exploit. Where appropriate, I’ll share anecdotes to provide examples of the mindset issue at hand. My focus for the past several years has been on large-scale environments such as major corporations, government agencies and their various enclaves, and even nation states. While many of the elements are applicable to smaller environments, and even to individuals, I like to show the issues in larger terms to offer a broader social picture. Of course, painting with such a broad brush requires generalizations, and you may be able to find instances that contradict the examples. I won’t cite counterexamples, given the short space allotted to the chapter. The goal here is not to highlight particular technologies, but rather to talk about some environmental and psychological situations that caused weak security to come into being. It is important to consider the external influences and restrictions placed on the implementers of a technology, in order to best understand where weaknesses will logically be introduced. While this is an enjoyable mental game to play on the offensive side of the coin, it takes on new dimensions when the defenders also play the game and a) prevent errors that would otherwise lead to attacks or b) use these same techniques to game the attackers and how they operate. At this point, the security game becomes what I consider beautiful. The mindsets I’ll cover fall into the categories of learned helplessness and naïveté, confirmation traps, and functional fixation. This is not an exhaustive list of influencing factors in security design and implementation, but a starting point to encourage further awareness of the potential security dangers in systems that you create or depend on. Learned Helplessness and Naïveté Sociologists and psychologists have discovered a phenomenon in both humans and other animals that they call learned helplessness. It springs from repeated frustration when trying to achieve one’s goals or rescue oneself from a bad situation. Ultimately, the animal subjected to this extremely destructive treatment stops trying. Even when chances to do well or escape come along, the animal remains passive and fails to take advantage of them. To illustrate that even sophisticated and rational software engineers are subject to this debilitating flaw, I’ll use an example where poor security can be traced back to the roots of backward compatibility. Backward compatibility is a perennial problem for existing technology deployments. New technologies are discovered and need to be deployed that are incompatible with, or at the very least substantially different from, existing solutions. At each point in a system’s evolution, vendors need to determine whether they will forcibly end-of-life the existing solutions, provide a migration path, or devise a way to allow both the legacy and modern solutions to interact in perpetuity. All of these decisions have numerous ramifications from both business and technology perspectives. But the decision is usually 2 C H A P T E R O N E
The above is a preview of the first 20 pages. Register to read the complete e-book.

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay

Every 10 yuan is 1 year of VIP; the remainder counts as months (5 yuan is 5 months, 100 yuan is 10 years). Signed-in users are enabled immediately and both you and the admin get an email. Guests receive an ID and are sent to register.

← Back to List