1 Raindrop

Gunnar Peterson's loosely coupled thoughts on distributed systems, security, and software that runs on them.

Recent Posts

  • Asleep at the Wheel
  • Security > 140 Conversation with Gerry Gebel on XACML and ABAC
  • James Lewis on Myths
  • Better Metrics
  • Perils of Top Down Thinking
  • Enterprise API Management for Mobile Part 2 - Don't Trust. And Verify
  • Limitations of Statistics on Measuring Risk
  • A Cloud Risk That Is Different In Kind
  • Berkshire Hathaway Annual Meeting 2013 Notes
  • Quantifying Risk Tolerance

Blogroll

  • Adding Simplicity - An Engineering Mantra
  • Adventures of an Eternal Optimist
  • Andy Steingruebl
  • Andy Thurai
  • Anton Chuvakin
  • Arnon Rotem-Gal-Oz's Cirrus Minor
  • Beyond the Beyond
  • cat slave diary
  • Ceci n'est pas un Bob
  • cgisecurity
  • ConnectID
  • Cryptosmith
  • Diggings
  • Emergent Chaos: Musings from Adam Shostack on security, privacy, and economics
  • Enterprise Integration Patterns: Gregor's Ramblings
  • Financial Cryptography
  • Global Guerrillas
  • infosec daily: blogs
  • James Kobielus
  • James McGovern
  • John Hagel
  • Justice League [Cigital]
  • Kim Cameron's Identity Weblog
  • Krypted - Charles Edge's Notes from the Field
  • Light Blue Touchpaper
  • MAKE: Blog
  • Mark O'Neill
  • O'Reilly Radar
  • Off by On
  • ongoing
  • Patrick Harding
  • Perilocity
  • Pushing String
  • Rational Survivability
  • rdist: setuid just for you
  • Rich Salz
  • RiskAnalys.is
  • Ross Mayfield's Weblog
  • Rudy Rucker
  • Software For All Seasons
  • Spire Security Viewpoint
  • TaoSecurity
  • The New School of Information Security
  • Thomas P.M. Barnett :: Weblog
  • Windley's Technometria
  • WorldChanging: Tools, Models and Ideas for Building a Bright Green Future
  • zenpundit
Blog powered by TypePad

The Real Migration Problem

Preview of Tom Friedman's thinking for his new book - Hot, Flat and Crowded. Killer quote (emphasis added):


FP: And what about drilling? Republican presidential candidate Sen. John McCain, his running mate Gov. Sarah Palin, and President George W. Bush are implying that lifting environmental restrictions on drilling is the way to promote energy independence.


TF: Well, I think it’s patent nonsense. No one believes that somehow offshore, there’s enough oil in any near term and even the long term to provide us oil independence. It’s the wrong approach because in a world that’s hot, flat, and crowded, fossil fuels—and particularly crude oil—are going to be expensive and exhausting. Therefore the focus should be on the next great global industry: clean energy technology. When I hear McCain pounding the table for “drill, drill, drill,” it reminds me of someone pounding the table for IBM Selectric typewriters on the eve of the IT revolution.


I’m not against offshore drilling, by the way, because I believe the technology and the safety has improved far beyond where it was back in the 70s, 80s, and 90s, even. What I’m against is making it the centerpiece of our energy policy. If all McCain said was, “Let’s drill, but let’s also throw everything into innovating the next generation of clean-energy technologies,” I’d say, “You’ve got it exactly right, pal.”


Its funny because as someone who has done a half dozen legacy migration projects (with mental and emotional scars to prove it), I was thinking the same thing. The entrenched mindset. "If we just dig our trench deeper (in this case literally) then we will be ok."...at least until the person in question retires...

One of the legacy migration project I worked on, I was the third consultant that tried to get this company off of mainframe and onto distributed systems (which are no panacea but this company really did need to make the move). The core developers of the mainframe were actively hostile to change, as opposed to simply passive aggressive, which we expect. For example, if you asked about how a piece of functionality worked, say a report writer, the developer would not answer, stand up, walk out of the room, come back with a 800 page "data model", slam it on the table and walk out of the room. Good times.

A chief objection beyond fear of the unknown was the perceived lack of elegance in the distributed systems as opposed to the control from say JCL. Anyway, what progress I made was due to analogizing that we were leaving Greece which has a rich culture, history, philosophy and moving to Rome which maybe was not as elegant as Greece but still people like circuses, roads and acqueducts. So when, several times a day, a perceived go/ no go issue arose, I would gently remind  the developers that "we are now in Rome and things work differently here."

Intransigently digging the trench deeper is not the way, instead we need to better understanding the energy  problem in a larger context, and finding deployable technologies to help address it. If you think drill, drill, drill is the answer, then I think the answer for you is the same as someone who knows COBOL and flat refuses to learn modern languages even when that is required - a nice retirement house on a golf course somewhere.

September 09, 2008 in Enterprise Architecture, Politics | Permalink | Comments (0)

RNC

Yup, we have the RNC here in MN. Downtown is locked down pretty tight, you would need the combined powers of Chuck Norris and Bruce Schneier to even get a cup of coffee down there. Here is the round up from The Economist's blog


You'll have to pardon me this morning if the round-up seems a bit off. I'm still a little stunned at the spectacle of an arena full of (seemingly sober and sane) adults chanting, "Drill, baby, drill".


So let's see, what's in the news? Well, last night Republicans trotted out a Massachusetts venture capitalist and governor, the former mayor of New York City, former executives of eBay and HP, and an Alaskan neophyte pol who as mayor of a small town delivered $4,000 in federal pork for every man, woman, and child, in railing against coastal elites and Washington politics, while supporting a candidate who's been in the Senate for 26 years.

September 04, 2008 in Politics | Permalink | Comments (0)

inNOvation

It is amazing to me that in a seemingly tight Presidential race that NEITHER candidate has made innovation an issue, this article from the NYT on former Cisco CTO Judy Estrin:


“I am generally not an alarmist, but I have become more and more concerned about the state of our country and its innovation,” she said last week, explaining why she wrote her book, “Closing the Innovation Gap,” which arrives in bookstores Tuesday. “We have a national innovation deficit.”


Ms. Estrin’s book is the latest call to action during the last several years by scientists, technologists and political leaders worried about the country’s future competitiveness in technology.

In 2005, the National Academies published “Rising Above the Gathering Storm,” a report requested by Congress, which found that federal financing of research in the physical sciences was 45 percent less in 2004 than in 1976 and that 93 percent of students in grades five through eight learn science from teachers who do not hold degrees or certifications in the topics.

...

“There is a remarkable telescoping in of vision and an unwillingness to make long-term bets,” said Vinton G. Cerf, the chief Internet evangelist at Google.


Geez, its like no one ever read
"The Only Sustainable Edge" or something...


September 02, 2008 in Politics | Permalink | Comments (2)

Dems were for Web 2.0 before they were against it

zenpundit aka Mark Safranski on the congressional Democrats war on Web 2.0


Nor was one of the leading Web 2.0 experts, Clay Shirky, reassured either, writing at

Open House Project: “They can enforce it the way we enforce parking rules, which is to miss most violations, and then bring in draconian enforcement of enough violations to have a chilling effect. This will also allow the Rules Committee to wield enforcement selectively as a stick.” Representative Capuano, who has described the internet as “a necessary evil,” would be one of the enforcers and he is part of a larger Democratic House leadership whose speaker, Nancy Pelosi, also supports a revival of the long-defunct “Fairness Doctrine” that made it unprofitable for broadcast networks to permit robust political expression on air.

...

More ominous still would be the precedent of the U.S. government designating “official” external websites — imagine having the power to select “official” newspapers — that would have to hew to House regulations and be as free as possible from political or commercial advertising. Given the ubiquity of blogads, most blogs, bulletin boards, and discussion forums would be shut out of the conversation with our nation’s elected officials. Essentially, Capuano is demanding that the internet adapt itself to the House of Representatives instead of the House adapting to the reality of the internet.

Looks like a good diversion from normal critical DC wealth destroying activities, and baseball steroid and NFL team filming practices investigations,

July 15, 2008 in Politics | Permalink | Comments (1)

Volcker Endorses Obama

Volckerpaul Wow. This is already the most interesting presidential election of my lifetime (no incumbent, wide open field), and now this - Paul Volcker throws his hat in the ring for the Senator from Illinois:

“After 30 years in government, serving under five Presidents of both parties and chairing two non-partisan commissions on the Public Service, I have been reluctant to engage in political campaigns. The time has come to overcome that reluctance. However, it is not the current turmoil in markets or the economic uncertainties that have impelled my decision. Rather, it is the breadth and depth of challenges that face our nation at home and abroad. Those challenges demand a new leadership and a fresh approach.

It is only Barack Obama, in his person, in his ideas, in his ability to understand and to articulate both our needs and our hopes that provide the potential for strong and fresh leadership. That leadership must begin here in America but it can also restore needed confidence in our vision, our strength, and our purposes right around the world.”

Conservative commentator Larry Kudlow has more context:

Mr. Hard Money, anti-deficit, sound financial himself -- has endorsed Senator Obama for President.

This is a big deal.

Once upon a time, many years ago, I was a Volcker speechwriter at the New York Fed. He’s a great American. He’s a classic conservative. He’s a man of fiscal and monetary rectitude. While he was originally appointed Fed Chair by Jimmy Carter, Volcker ultimately teamed up with Ronald Reagan to put the kibosh on runaway inflation. He would not have made this endorsement on a whim. Believe me. He never gets involved in these kinds of political decisions.

As a pragmatist myself, I am partial to people who work both sides of the aisle to get stuff done instead of posturing. He seems to be picking up a lot of momentum and endorsements, even including my old hometown newspaper the Aspen Times. My Dad's take - "I wish Volcker were at the Fed right now"

Splash_family

February 01, 2008 in Politics | Permalink | Comments (0)

Way to tell you are on a project that's likely to fail

Key indicators:

* The project has been "rebranded" or renamed
* None of the requirements have changed
* None of the participants have changed

September 11, 2007 in Politics | Permalink | Comments (0)

REST Security (or lack thereof) part deux

Update: see this post on REST Threat Models and Attack surface for more ideas

Some people in the REST community are able to see the need for message level security so this is heartening somewhat. If the data is distributed and the security model is point to point (at best), we have a problem. It is a gap in REST today that due to REST's reliance on HTTP, that message level security is an exercise left to the implementer with no open, proven standards to back them up. It doesn't always have to be this way. Maybe some smart software organization can build something that provides these properties for the REST crowd, and get them reviewed. For the time being it is still a gap for REST, which Don Park knew back in 2002:

It is not a key exchange issue. With SOAP, you can easily separate routing information and data so that you can encrypt head and body elements independently, REST does not. Cool thing about SOAP approach is that you can sign with multiple keys so that no only routers don't know about the content, routers themselves don't know where it will eventually end up.

If you do come up with some standard structure to do the same in REST,
you are basically reinventing SOAP.

Right. we don't want the postal worker reading the contents of the envelope, just the addressing header to name on example. I don't have a dog in the REST vs. WS-* hunt, my main concern is the security issues. As Don Smith says - "The message is the king and the contract is the queen." If you want to shrink your perimeter to the message level you can use WS-Security or attempt to roll your own with REST.

Pete Lacey's post restates a bunch transport level security mechansism which offer no message level security:

The standard RESTful security approach is, of course, HTTP Basic or HTTP Digest or SSL certificate-based mutual authentication for propagating identity credentials (the actual act of authentication and authorization being the purview of the server) and SSL for data integrity (digital signatures) and data protection (encryption)

SSL helps with channel security (while rendering the IDS and NSM people blind I might add). He goes on to say

Gunnar notes that these technologies were state of the art in 1995, with the implication they are no longer sufficient for meeting the security needs of the 21st century. This is an example of what I call the “Gilligan, you can’t fly” argument; that is stating that something can’t be done even as somebody else is doing it. The fact is that billions of dollars of worth of business is conducted every year over because of SSL.

Yes, Pete, I honestly do believe that attacker have evolved since 1995. The above statement (and I have heard it many times so he is not alone) tells you what we are up against from a software security standpoint.

Luckily, Robert Sayre agrees that RESTians can learn from the AWS developer token example with regard to dealing with spoofing:

"Sending reusable credentials and messages over HTTP+TLS is extremely common, so the goal of the discussion should focus on preventing the endpoint from impersonating the sender. That’s why I agree with you that AWS is a good example we should build on."

AWS is the best publicly used example I have seen so far. He also has a good post here that gets to one of the main issues:

When I read posts like that, I often wonder how the following sentence from the REST thesis fits in.

"REST component interactions are structured in a layered client-server style, but the added constraints of the generic resource interface create the opportunity for substitutability and inspection by intermediaries."

We have a thriving credential theft industry on our hands, so I'm not sure we can claim TLS is an undeniable success. It's true that many phishing sites don't bother turning on TLS. They don't have to, because lots of banks and things don't serve their credential forms over TLS. They don't have a pleasant choice. It should be obvious that a data stream opaque to intermediaries has several desirable properties, but scalability and reusability are not among them. Besides, it's not like it's impossible to improve on Basic, Digest, and Forms with Cookies. Here is a Python example.

"Both of these standards address identity propagation, message encryption, and message integrity only, and neither will protect you from the threats just mentioned."

Well, some of WS-Security might. I am afraid to read it. I can tell you that the example above will prevent hostile servers from reusing credentials, unless they have broken more than one cryptographic primitive.

I cannot remember an app since 1998-99 that didn't have layers and layers of intermediaries.

Paul Downey says:

I trust the water piped directly to my house, but I’m more careful when it comes to packages which flop through my letterbox. A signed-sealed envelope delivered by a courier boosts my confidence, but helps a lot more if I know who sent it. So whilst WS-Security offers a little more than just TLS, it’s the thought and effort being expended to establish and exchange identity that currently gives WS-* the security edge over REST. It’s great to see that RESTians are starting to at least see the issue

And I totally agree with Don Park's assertion that:

As far as I am concerned, REST and SOAP are both tools. It’s better to focus on what each tool is better at than fighting over which is better.

If I need message level security today, my choices are limited. So just in case people are sitll wondering why we'd need message level security in some cases perhaps this story is helpful

“Using the methods outlined by the researchers, a hacker could siphon off thousands of PIN codes and compromise hundreds of banks, said Odelia Moshe Ostrovsky, the report’s principal author. Criminals could then print phony debit cards and simultaneously withdraw vast amounts of cash using ATMs around the world, she said. ... Word of the apparent security flaw first surfaced two weeks ago, when Ostrovsky and other researchers at Algorithmic Research (ARX) published a paper stating that it would be possible for someone with access to the ATM network to attack the special computers that transmit bank account numbers and PIN codes, called hardware security modules.

When consumers enter their personal identification numbers, or PINs, into an ATM, the PIN and account number must travel through several computers on a special network before they arrive at their home bank for verification. The data is encrypted immediately after it’s entered at the ATM into what is known as a PIN block, then sent on its way.

Rarely does the transmission go directly to a consumer’s bank. Instead, it is handed off several times on a banking network run by several third parties. Each time a bank passes the data along, it goes through a switch that contains the hardware security module and the PIN block is unscrambled and then rescrambled. It is at these intermediate points where hackers could trick the machines into divulging PINs, the ARX researchers said.

Any similarity between this and corporate data centers is strictly uninentional

“We show in these attacks that using only (a single) function we can reveal the content of every PIN block as if it’s not encrypted,” said Ostrovsky.

PINs thought to be unassailable in transit
The attack theory is significant because it has long been considered impossible to access PINs as they are traveling through the ATM network without the encryption key used by the card-issuing bank. But the ARX report said issuer keys are not necessary because computers along the network can be tricked into revealing PINs through a series of electronic queries that would enable criminals to make educated guesses about – and possibly break — the encryption code.”

Ostrovsky said her company shared the research with the Visa credit card association’s risk management team and other U.S. financial industry security experts six months ago, and recommended systemwide ATM network changes. But U.S. banks weren’t reacting fast enough to the risk, she said, so ARX decided to go public with its information and two weeks ago published a paper titled “The Unbearable Lightness of PIN cracking,” which is now available on the Internet (in Adobe Acrobat format).

Kim Bruce, a spokeswoman for the Secret Service, confirmed that the agency had been in contact with ARX to discuss the paper’s findings, but declined to provide additional detail.

Some questions to ponde. Where does your app terminate SSL? AT the firewall? At F5? At the web server? What is the lifecycle of the data that your REST app sent? How is the message itself protected?

Russian-language Web sites are abuzz with discussions about ATM network attacks, including discussion of the Israeli report, according to data gathered by the Secret Service and viewed by MSNBC.com.

“In the fall of 2005 work for everyone was so successful because an employee of one of America's processors sold a database of material that went through its processing center,” wrote a hacker who belongs to an online gang called Mazafaka, according to an English translation of a Russian Web site compiled by the Secret Service. “This material was then successfully exploited by our carder friends. The consequences of this deal could even be monitored on CNN, as well as in our own work (this applies to cashers). You may have noticed that after this event, ATMs more and more frequently give ‘transaction declined’ notices or give a small sum on the first transaction and then block the card.”

In another exchange cited in the Secret Service memo, a hacker offers to pay for databases of encrypted PINs, which theoretically should be useless someone had discovered a way to translate the data into valid PINs. In still another post, one claims to have recovered account data by “hijacking” hardware security modules

The biggest issue beyond he point to point nature of SSL is that it is an all or nothing proposition

The attacks described in the ARX paper could not be conducted remotely over the Internet. They would require a criminal to be on the same local network as the hardware security module. Because ATM switches are heavily guarded and monitored, such access is unlikely, argued a BITS representative, who spoke on condition of anonymity.

But such ATM switches can be located anywhere in the world, Ostrovsky countered. That creates a “weakest link” vulnerability in which one poorly guarded switch could theoretically be used to compromise every bank whose debit cards have flowed through that switch, she said.

Each switch contains a hardware security module, which is a simple computer in a tamper-proof box designed to perform a few PIN-related functions, beginning with decrypting and encrypting. But the boxes also contain other small programs, or functions, which allow the machines to change a customer’s PIN or calculate other PIN-related values. Most ATM switches don’t need these tools; however, they are often available by default.

This unnecessary software is exploited in some of the attacks described by ARX, which recommends that switch operators turn off the unnecessary functions. But even that’s not enough, Ostrovsky said. The one essential function of a switch -- encrypting and decrypting, a process known as “translate” -- is all an attacker needs to trick the machine into divulging PINs, a hack that would put nearly every ATM switch at risk, she said.

“This is not an attack on a certain configuration or installation. This is an attack on the protocol itself. It must be updated,” Ostrovsky said.

There are competing protocols, or PIN block formats, in use in the ATM network, and each machine must support all those formats, she explained. In one version, the 16-digit PIN block contains two formatting characters, four PIN characters, and 10 additional slots with information about the customer’s account number. That’s the standard used in the U.S. Another standard combines the formatting characters and PIN characters with random digits, and sends the account number separately.

The translate function not only assists in encrypting – it also allows the machine to translate the PIN block from one format to another. This allows an attacker to take advantage of the weaknesses of both, creating“least-common denominator” vulnerability, Ostrovsky said.

The BITS representative who spoke on condition of anonymity conceded such attacks are feasible, but called the risk “very, very, very, very remote.” He added that bank robbers have much easier ways of stealing money than complicated PIN prediction tactics.

Litan is not so sure. She said the research paper undermines the basic premise of ATM network security – the idea that only a computer loaded with the encryption key created by the issuing bank can reveal a PIN.

“The premise was ‘It doesn't matter what happens along the path,’ so even people who could access the PIN blocks couldn’t do anything with them,” she said. “This blows that out of the water.”

And finally

Bank industry officials point out that the attacks must be carried out by someone with direct access to an ATM switch, limiting the potential for abuse. But Litan said the limitation is hardly reassuring.

“It’s not much comfort that they have to be on the inside,” she said. “As we’ve already seen, it’s easy for criminals to open up their own ATM network. And banks do have insiders with flaws.”

I think a technology that is geared towards interoperability, should be able to have an end to end security model which accepts there will be multiple intermediaries in play. Brian Snow termed this "if we cannot trust, how can we safely use?"

December 02, 2006 in Politics, Religion, REST, Security, Software Architecture, Web 2.0, Web Services | Permalink | Comments (5)

Blaine Burnham on Election Risks

Everyone's favorite election judge, Avi Rubin's work on crippling vulnerabilities in Diebbold reminded me of Usenix security 2000, and what Blaine Burnham said in his speech (he was talking about Internet voting, but the same concepts apply):

So we're putting money at risk. With ecommerce were putting large money at risk, but if Coca-Cola lost its secret formula today, we'd be out Coca-Cola. It's not the end of the world, its just Coca-Cola, for crying out loud. And on a given day taste tests can't tell 'em apart anyway. With remote surgery, with invasive medicine, we're putting people at risk. The game is changing. And with Internet voting we're putting the very fabric of the country at risk...because of this changing threat model and because of what we are putting at risk, the game is no longer a game. We have to get extraordinarily serious about what we are doing.

Blaine Burnham also said in his talk that "Las Vegas is the monument to the failure of high school mathematics teachers." Hopefully this election won't be the monument to the failure of computer security.

October 19, 2006 in Assurance, Election, Politics, Risk Management, Security | Permalink | Comments (0)

My Photo

SOS: Service Oriented Security

  • Directions in Incident Detection and Response
  • Security > 140
  • Open Group Security Architecture
  • Reference Monitor for the Internet of Things
  • Cloud Security: The Identity Factor
  • Don't Trust. And Verify.
  • Monitoring Up the Stack
  • Security Gateway Buyer's Guide
  • How to Do Application Logging Right
  • 10 Quick, Dirty, & Cheap Things You Can Do to Improve Enterprise Security
  • Thinking Person's Guide to the Cloud, Part 1
  • Software Assumptions Lead to Preventable Errors
  • Logging in the Age of Web Services
  • Service-Oriented Security Indications for Use
  • The Economics of Finding and Fixing Vulnerabilities in Distributed Systems

Archives

  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012

More...

Add me to your TypePad People list
Subscribe to this blog's feed