Industrial IoT Authors: Zakia Bouachraoui, William Schmarzo, Elizabeth White, Stackify Blog, Yeshim Deniz

Blog Feed Post

Cloud-Aware Tokenization: Helping to Build PCI-Compliant Applications in the Cloud

Last year the Open Data Center Alliance published an excellent whitepaper that defined the concept of “cloud-aware” applications.  The ODCA paper sets forth the following recommendations:

  1. Everything is a Service
  2. Use RESTful APIs
  3. Separate Compute and Persistence
  4. Design for Failure
  5. Architect for Resilience
  6. Operationalize Everything
  7. Security at Every Layer

I will likely revisit these concepts in future posts, but in this post I want to highlight how our multi-datacenter tokenization function can help to build PCI-compliant applications that are cloud-aware, hitting points 4, 5, and 7 above.  This is because we designed our tokenization broker as a cloud-aware application with built-in intelligence to work across disparate networks and datacenters while maintaining a low cost proxy implementation model.

 What is Tokenization?

For the uninitiated, tokenization is the process that removes personally-identifiable information (PII) or any PAN (primary account number) from a record, replacing it with an encrypted, randomized, or hashed object (or “token”) that represents the PII.  The token-to-PII mapping is stored in a separate, highly-secured database, which has the added benefit of simplifying the audit process for the custodian of the data.  The token itself is meaningless, requiring a detokenization function to extract the original, cleartext data.

A token is therefore only usable in limited contexts, compartmentalizing risk if it is compromised.  In layman’s terms, if someone steals my credit card number they can use it to make purchases anywhere until the card is canceled, but if they get the token that represents my credit card then the data is useless.  Tokenization is a best practice used to protect credit card numbers, social security numbers, and even names and addresses (for example in Personal Health Records).  It provides added security at the data layer, ensuring that customer data remains secure even if a transaction database is compromised. Tokenization also has unique applications for PCI compliance. Aside from security, tokenized credit card numbers enjoy reduced PCI scope in most cases, driving down business costs.

Why Multi-DC?

There are many reasons for an application to span data centers.  The most common reasons are to improve availability and performance (I touched on elastic scaling of APIs in an earlier blog).  Also, multiple datacenters are often an outgrowth of business expansion as traditional organizations grow into new business models utilizing public, private or hybrid clouds.

To improve availability, many applications are deployed to different availability zones within a region.  This allows multiple instances of an application (or API) to run in parallel, with the ability to route around failures all the way up to the data center level (design for failure; architect for resilience).  Performance can be improved by adding additional regions (for example, east coast and west coast) to reduce latency between the user and the application.

There may also be business process drivers for multiple data centers.  Consider, for example, a retailer with a both online and brick-and-mortar businesses.  These two channels may be run from different data centers, headquartered in different cities.  However, customer satisfaction depends on being able to buy an item online and return or exchange it in store, and may even support in-store purchases being returned via the online channel.  This requires transaction information to be visible to both channels.  While this could be handled by calling out to the other channel’s API, the best customer experience will be delivered by recognizing a customer as a single entity across both channels, regardless of where that customer originated.  To do this, the retailer may have a single customer database that spans its brick & mortar and online data centers.

 Multi-DC Tokenization

Since tokens uniquely identify data, it is critical that there is a one-to-one mapping between the tokens and the data they represent.  This effectively requires all participating data centers to agree upon roles for the tokenization process. This would seem to be at odds with the eventual consistency model I described earlier in this post. However, the importance of avoiding collisions or duplications in the tokenization process dictates that this state be shared and carefully coordinated across all sites with adequate performance and resiliency in the face of datacenter downtime.

Our approach relies on a combination of PAN partitioning and a distributed secure vault.

When a new request comes in, we route the request to the appropriate data center based on the PAN range.  The authoritative DC computes the token, returns it (via API), and stores the result in our distributed secure vault.  Subsequent references of the token can then be performed at any data center, once the secure vault synchronizes state, which happens nearly instantly (modulo network latency). On the off chance that the application attempts a read-after-write (i.e. detokenization request a few milliseconds after the tokenization request), it is possible that the secure vault will not yet be in sync – anticipating that, we will retry a failed request at the authoritative DC for the token.

By managing this shared token state independently of the application, the developer can treat the tokenization process as a black box. Data can be tokenized from nearly any source over any protocol and PAN data is extracted using common regular expressions or XPath at the application level. No SDKs or application changes are needed. The persistence state is effectively decoupled from compute, and the application’s business logic can be written as if it were a stateless app.  This reduces overhead that goes along with planning and testing for collisions, race conditions, and other corner cases, allowing the developer to spend more time focusing on their core business logic.


Multi-DC tokenization is a good use of the facade proxy pattern for API security.  Like our touchless Hadoop security, it allows an application to be secured without being modified.  APIs run in the cloud (for that matter, APIs run the cloud) — and thus they need to be cloud-aware.  Building all of that support into each application requires significant effort.  The proxy façade pattern allows developers to focus on their core business – the differentiating features – rather than investing time creating and maintaining non-differentiating capabilities.  With Expressway Token Broker’s cloud-aware tokenization, we manage your distributed token state so you don’t have to.


The post Cloud-Aware Tokenization: Helping to Build PCI-Compliant Applications in the Cloud appeared first on Application Security.

Read the original blog entry...

More Stories By Application Security

This blog references our expert posts on application and web services security.

IoT & Smart Cities Stories
Dynatrace is an application performance management software company with products for the information technology departments and digital business owners of medium and large businesses. Building the Future of Monitoring with Artificial Intelligence. Today we can collect lots and lots of performance data. We build beautiful dashboards and even have fancy query languages to access and transform the data. Still performance data is a secret language only a couple of people understand. The more busine...
Nicolas Fierro is CEO of MIMIR Blockchain Solutions. He is a programmer, technologist, and operations dev who has worked with Ethereum and blockchain since 2014. His knowledge in blockchain dates to when he performed dev ops services to the Ethereum Foundation as one the privileged few developers to work with the original core team in Switzerland.
René Bostic is the Technical VP of the IBM Cloud Unit in North America. Enjoying her career with IBM during the modern millennial technological era, she is an expert in cloud computing, DevOps and emerging cloud technologies such as Blockchain. Her strengths and core competencies include a proven record of accomplishments in consensus building at all levels to assess, plan, and implement enterprise and cloud computing solutions. René is a member of the Society of Women Engineers (SWE) and a m...
Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereal. Andrew's role at ConsenSys Enterprise is a mul...
Whenever a new technology hits the high points of hype, everyone starts talking about it like it will solve all their business problems. Blockchain is one of those technologies. According to Gartner's latest report on the hype cycle of emerging technologies, blockchain has just passed the peak of their hype cycle curve. If you read the news articles about it, one would think it has taken over the technology world. No disruptive technology is without its challenges and potential impediments t...
If a machine can invent, does this mean the end of the patent system as we know it? The patent system, both in the US and Europe, allows companies to protect their inventions and helps foster innovation. However, Artificial Intelligence (AI) could be set to disrupt the patent system as we know it. This talk will examine how AI may change the patent landscape in the years to come. Furthermore, ways in which companies can best protect their AI related inventions will be examined from both a US and...
In his general session at 19th Cloud Expo, Manish Dixit, VP of Product and Engineering at Dice, discussed how Dice leverages data insights and tools to help both tech professionals and recruiters better understand how skills relate to each other and which skills are in high demand using interactive visualizations and salary indicator tools to maximize earning potential. Manish Dixit is VP of Product and Engineering at Dice. As the leader of the Product, Engineering and Data Sciences team at D...
Bill Schmarzo, Tech Chair of "Big Data | Analytics" of upcoming CloudEXPO | DXWorldEXPO New York (November 12-13, 2018, New York City) today announced the outline and schedule of the track. "The track has been designed in experience/degree order," said Schmarzo. "So, that folks who attend the entire track can leave the conference with some of the skills necessary to get their work done when they get back to their offices. It actually ties back to some work that I'm doing at the University of San...
When talking IoT we often focus on the devices, the sensors, the hardware itself. The new smart appliances, the new smart or self-driving cars (which are amalgamations of many ‘things'). When we are looking at the world of IoT, we should take a step back, look at the big picture. What value are these devices providing. IoT is not about the devices, its about the data consumed and generated. The devices are tools, mechanisms, conduits. This paper discusses the considerations when dealing with the...
Bill Schmarzo, author of "Big Data: Understanding How Data Powers Big Business" and "Big Data MBA: Driving Business Strategies with Data Science," is responsible for setting the strategy and defining the Big Data service offerings and capabilities for EMC Global Services Big Data Practice. As the CTO for the Big Data Practice, he is responsible for working with organizations to help them identify where and how to start their big data journeys. He's written several white papers, is an avid blogge...