26
Tue, Nov
1 New Articles

5 Essentials of Encryption Key Management

Compliance / Privacy
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

These days, encryption is essential. Be sure you're doing it right.

 

Encryption key management is a crucial part of any data encryption strategy. It's designed to protect credit card numbers, social security numbers, or any other sensitive information you need to protect in data files. A failure in encryption key management can result in the loss of your sensitive data and can lead to severe penalties and legal liability. Unlike public/private key technology, which maintains the security of two separate endpoints, database encryption uses a single secret key, and its loss compromises your data. That's why good encryption key management is so important to your data security strategy.

 

As criminals get more sophisticated at stealing sensitive data, a disturbing trend has been developing in attacks on encryption keys and their management. Recent data losses have been accomplished by attacking weak encryption keys and weak key management systems. It's a good time to review your strategy for protecting keys.

 

Let's talk about the five essentials of good encryption key management.

 

Create Strong Encryption Keys

Encryption key management starts with the creation of strong encryption keys and extends through the life of the key. Creating a strong encryption key is an important first step. There are several common methods of creating encryption keys:

•·                     Random number generation

•·                     Key derivation from passwords

•·                     Passphrases used as keys

 

All modern key management systems support standards-based key generation. Keys based on random numbers should be created with either a Cryptographically Secure Pseudo Random Number Generator (CS-PRNG) or a true random number generator. Passwords are rarely secure enough for use as encryption keys, but strong keys can be derived from passwords by using Password-Based Encryption (PBE), which combines a pass phrase, a random number, and hash or encryption operations. Passphrases alone make very poor encryption keys, and their use as keys should be avoided. All good key management solutions create strong keys using proven methods.

 

It's amazingly difficult to create good encryption keys, and it's easy to get it wrong. Just recently, a major error was discovered in Debian-based OpenSSL implementations.  A one-line code change destroyed the strength of all encryption keys, and attacks on Debian-based OpenSSL have already occurred.

 

Store Keys Securely and Protect Access to Key Management

Once a good key has been created, it has to be stored securely until it is used. Encryption keys should not be stored in the clear in a database file. Good key management solutions will use a variety of techniques to securely store keys, including these:

•·                     Encrypting the key with one or more master encryption keys

•·                     Protecting the key database with native file security

•·                     Detecting key corruption or substitution

•·                     Optionally storing keys in secure hardware modules

•·                     Controlling and reporting access to key management

 

Key management systems work hard to ensure that only those users authorized to access keys can do so and to prevent the substitution or corruption of keys.

 

Good key management systems also implement strong controls over who can manage encryption keys. Some systems require two or more authorized users to validate before access is granted to key management. Others use biometric or smart-card access controls. All good key management systems provide system logging to record and report access to the key management application.

 

Manage Keys Through Their Life Cycle

Encryption key management solutions should help you implement your security policies throughout the life of the encryption key. You should be able to define when a key becomes active, when it is no longer available for use, when it gets backed up, and who can use the key. These policies help prevent unauthorized access. Here are some examples of policy controls that good key management systems implement:

•·                     Activation and deactivation dates for keys

•·                     User controls on access to keys

•·                     Application controls on access to keys

•·                     Backup, escrow, and archival policies

•·                     Automatic or manual key change (rollover) and change interval

•·                     Key distribution and export policy

 

These attributes help you implement proper security controls over access to encryption keys. When paired with good system logging and reporting, you can have a high degree of confidence that encryption keys are being accessed and used appropriately.

 

Secure and Authenticated Key Retrieval

Increasingly, compliance auditors are insisting that encryption keys be stored separately from the data they are protecting. By separating the encryption keys from the data, you further minimize the potential for key loss through poor backup strategies or through the physical loss of a server or hard drive. This means you may have to deploy a key management system on a separate server or in a separate logical partition and then provide access over a network connection. It is important that your key management solution support this architecture and provide for secure network access.

 

Of course, if your staff is retrieving a key via a network connection, you must ensure that the connection is encrypted so that the key is not exposed during transport. This is normally done by implementing an encrypted Transport Layer Security (TLS) network connection. In addition to encrypting the encryption key when it is retrieved, the secure TLS connection can authenticate both the client and server by using public/private key technology.

 

You will want to move sensitive data between your internal applications without decrypting and re-encrypting. This means that your key management solution should provide encryption keys to a wide variety of application and server environments. Be sure that your IBM i, Windows, Linux, UNIX, and System z applications can retrieve keys using standard methods implemented by your key management system. Does your key management vendor provide example applications in Java, .NET, RPG, and other common languages? This will be crucial to the success of your key management strategy.

 

Never accept a key management solution that does not implement encrypted transfer of keys. Many recent data losses have occurred when criminals captured data on internal networks. You don't want them capturing your encryption keys!

 

Disaster Recovery and High Availability

As encryption permeates your business applications, key management solutions become an important keystone in your IT infrastructure. The loss of a key management system will mean the loss of critical information in your applications. Here are some questions to consider:

•·                     How does your key management solution fit into your data mirroring and high availability strategy?

•·                     Do you have offsite backups of your encryption keys and policies for recovery?

•·                     Are encryption keys separated from your backup data?

•·                     If you use a third-party disaster recovery service, how will your key management system be restored to this site?

 

If you are using an IBM i high availability mirroring solution, be sure that your key management solution fits into this strategy. Because encryption keys may change at any time due to automatic key rollover or manual change, you will want these changes to be reflected in your high availability environment as quickly as possible. If your key management solution involves hardware-based master keys, ask your key management vendor how these keys are mirrored, too.

 

Many IBM i customers use a third-party business recovery service with backup systems at a remote location. You should let your vendor know that you are using a key management solution and then work with the vendor on the steps that will be needed to restore the key management solution. If the key management solution must be restored before the data is restored, your vendor's recovery team will need to know this and have explicit instructions on the sequence of steps to take. Remember, if you are storing your encryption key backups with a separate data archival service, let your vendor know the procedures for key recovery.

 

If you are using an IBM i or appliance-based key server solution, you must plan for deploying the server at your disaster recovery site. If you are using a Power Systems server, your vendor will need to know the minimum requirements for it. If you are using a key server appliance, your vendor will need to know the rack and power requirements.

Lastly, as many of us have learned the hard way, a disaster recovery plan that hasn't been tested is not worth the paper it is written on! Be sure to include key management recovery in your DR tests.

 

Resources

Here are a couple of key management resources that you might find helpful:

•·       NIST recommendations for encryption key management

•·       PKCS#5 Password-Based Key Derivation

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: