Skip to content
ImagineWorld

Data Safeguarding

node_idnode-book_a-ciso-guide-to-cyber-resilience_chapter-06-data-safeguarding
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num6
chapter_titleData Safeguarding
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

This chapter is about backups. I know it sounds so boring. A chapter about backups, really? Yes, because good offline backups are paramount to securing your company’s data, ensuring your company’s data and computers are available, and keeping your company running. We will be discussing the importance of backups, testing your backups, and business continuity.

In this chapter, we’re going to cover the following main topics:

  • Offline backups
  • Testing your backups
  • Availability in the cloud
  • Business continuity
  • Disaster recovery

I was at a security conference, and I heard a talk by Sean McCloskey, the Chief of Cybersecurity for the Cybersecurity and Infrastructure Security Agency (CISA) Region 4. Sean spoke about the importance of good offline backups. He said that every single company that has suffered a ransomware attack where he was part of the incident response did not have good offline backups. Whenever I talk about backups, I always stress that they must be offline. You’re probably asking, What’s the deal with offline backups? Well, with ransomware, it will encrypt all connected online drives. If you are using iCloud or SharePoint as an online backup drive, it will also be encrypted if ransomware is run on your computer. Likewise, any online USB-connected drives will be encrypted.

It’s paramount that you have good offline backups. The way to do this is to configure incremental backups and disconnect access to the drive in between. Windows has a built-in incremental backup that can be configured. There are also backup-as-a-service offerings that will provide incremental backups. Remember, if you have a Mac computer, time machine provides this also. For a company, you will want to use managed Apple IDs so that the company can manage the corporate-owned Macbook computers. Apple provides free small business services in the United States, so that is something to consider. Even if your current backup was online and connected when ransomware is run on your computer, you can then go back to the last incremental backup and restore your data. The incremental backup can be set up and sent to an alternate server, cloud service, or a local storage device.

If you use a local backup drive, then only connect it periodically. I will say that some people advise keeping it connected all the time but periodically saving a backup to an offline drive. There are applications that can disconnect the drive when not backing up the computer. For compliance purposes, it is not recommended to allow for backups to local portable storage. NIST 800-53B control MP-7: Media Use restricts the use of portable storage for no identifiable owner. Essentially, unless your organization assigns a USB device to you, you should not use it. The reason is two-fold: you don’t want an unauthorized USB drive that could potentially have malware on it plugged into your computer. On the other hand, by allowing your employees to back up their computers to a local portable storage device, there is the potential that sensitive documentation might go with them once they leave the company.

When I was at Cisco, they would purchase a backup drive for each of the team members who worked from home. Once Cisco was trying to get FedRAMP certification, everything changed. They moved to a SaaS-based backup solution. I highly recommend the various SaaS backup services such as CrashPlan, Veeam, or Rubrik. CrashPlan is a no-frills backup solution that is cost-efficient at a low price and works well for backups with unlimited storage. It is a good solution for small- and medium-sized companies. There are large Fortune 500 companies using CrashPlan, so I don’t want you to think it is not a solution for large enterprises. They were the first to offer a SaaS backup solution. Veeam and Rubrik offer additional backup features that are more at the Advanced Enterprise level. Table 6.1 provides a comparison of three backup-as-a-service solutions. Another option I wanted to mention is Backblaze. It started out as a cloud-based backup solution for Silicon Valley customers but is now also a competitor of AWS, offering S3 bucket-type services at a much lower price:

FeaturesCrashPlanVeeamRubrik
Windows clientYesYesYes
Mac clientYesYesYes
SaaSYesYesYes
Encrypted at restYesYesYes
Incremental backupsYesYesYes
Backup and recoveryNoYesYes
Disaster recoveryYesYesYes
Alerts and notificationsNoYesYes
CostUSD TBDUSD TBDUSD TBD

Table 6.1 – Software evaluation backup-as-a-service

How does your company fulfill this as a startup or small company without the budget for a SaaS backup service? First of all, encourage all of your employees to save all of their company documents on the platform you use for document sharing. For example, if you are an M365 shop using SharePoint and Teams, then encourage your employees to work off of the server. There are options to open documents and spreadsheets that reside on the server on your desktop application, such as Word or Excel. The document is then stored and updated on the server.

Depending on the size and maturity of your security program, you can handle restricting local storage. First, for startups and small companies, you can address this in your security policy or backup policy. In the information security policy, you can state that local backups to a portable device are not allowed. This is a simple way to address the threat of data loss prevention by use of local storage devices. Definitely caution your employees not to trust USB drives or charging cables received in an unknown manner, such as found on the ground. This should be part of your security awareness training. We’ll cover this in more detail in Chapter 7.

Ideally, you will want to use a backup-as-a-service whether you are at the basic, medium, or advanced level. Remember, companies are in business to make money. Especially for small- and medium-sized businesses, you can forgo the backup-as-a-service if you are a cloud-first company. The cloud and SaaS have built-in availability, snapshots, and backups that can be relied upon. Based on your company’s budget, risk management, and cloud usage, you may be able to forego the backup-as-a-service.

Based on company size, your company’s backup solution may include the following:

  • Basic:
    • Use company-managed Windows Backup and iCloud for endpoints
      • Inform employees to work off of the server or upload work.
      • SharePoint - Teams - Git
      • Inform employees not to use unidentified USB sticks or local backups
      • Rely on SaaS and cloud-based availability and backups
      • Ensure backups of data center servers and device configurations
  • Medium:
    • Ensure compliance mandates for your industry are met
      • Offsite storage of backups can be stored in the cloud
  • Advanced:
    • Ensure offsite backup-as-a-service for endpoints and servers
      • Provide company-purchased USB drives to employees
      • Use software or implement Windows GPO to disallow USE use and local storage devices
      • Use data loss prevention (DLP) software

When I was a CISO at RedSeal, the Chief Executive Officer (CEO) came back from a training session with a Venture Capital firm. It was a security and leadership conference for all of the CEOs in the Venture Capital Company’s ecosystem. The CEO immediately reached out to me with the top actions that our company needed to take in order to be protected against ransomware. I had already done a lot of research on ransomware for a presentation that I did at the Healthcare Information and Management Systems Society (HIMSS) Conference, which is one of the largest IT Health conferences in the world.

Having good offline backups, as well as testing your backups, was a must. Many times, when it comes to being time to recover from a backup, the company realizes too late that they either don’t have good offline backups or their backups are corrupted in some way. Possibly, the data they thought were being backed up weren’t.

The best way to prepare for having to recover from your backups is to test them regularly. You can do this daily, weekly, monthly, or quarterly, depending on your company’s time and resource availability. I recommend testing the backups at least quarterly, along with the account reviews that have to be done for compliance. The account reviews ensure that the accounts of employees who have left the company have been disabled. There should be a regular process for this, but it is good to do a quarterly review of accounts to ensure one wasn’t missed. The account reviews can also be automated.

High-value data that would have a severe effect on the company if lost should be tested at least monthly. You should rotate the backups that are tested. If a subset of backups has been tested, ensure you rotate them. You don’t want the engineer always testing the same backups each time. Set a recurring task to ensure these are done based on the company’s agreed-upon timelines. Ensure your policies are properly updated to reflect the review and testing times. When your company is audited, the auditors will read your policies and request evidence that it was done. The evidence can be on a wiki or notion page with dates and the person doing the review.

Critical infrastructure servers, such as domain controllers, should be system-backed up and tested. In the case of ransomware, the domain controllers will most likely be compromised. Having a backup of domain controllers for a s system prior to the attack can drastically reduce the recovery time. Restoring a Windows domain from bare metal should be part of the backup tests.

Testing and validating your backups can be automated. By automating the testing and validation of your backups, you can easily move the timelines up for your most critical data to twice a day. Even by automating the testing, you should schedule a manual review of the backups at least quarterly or even monthly. This review can be done along with your account reviews. It is good for the administrator to take a look at the backups. It’s possible the testing passed, but there could be formatting or other changes to files or data. As part of your automation, if you compare the hashes of files, you should be fine. A cryptographic hash is similar to a digital fingerprint of the file or data.

When looking at best practices, such as meeting SOC 2 Type 2, you will test the failover and availability of your cloud or backups. You need to review the stored data. Take a look at the backup; do you see the correct logs and document information? Consider this:

  • Are they readable?
  • Do the dates look accurate for the backup day?

Ensure your company has either a backup policy or this information is included within the information security policy. Additionally, have the engineer performing the backup testing write a procedure so that if they leave the company, a written procedure will be in place for how the backups will be tested each quarter.

While we are talking about hashing, I wanted to explain what it is and why you want to use it. Ensure your company is using SHA-256 or above. SHA-1 has been deprecated due to a SHA-1 collision. A SHA-1 collision occurs when two distinct pieces of data hash to the same message digest. If an attacker can craft a collision, they can use it to create two different files that share the same SHA-1 hash value 1.

1 Stevens, Marc, and Elie Bursztein. Announcing the First Sha1 Collision. Google Online Security Blog, Google, 23 Feb. 2017, security.googleblog.com/2017/02/announcing-first-sha1-collision.html.

Although SHA-1 has been deprecated, hmac-sha-1 is still okay to use since it is a secret keyed hash value. What a hashing algorithm provides is integrity. It doesn’t actually encrypt the data, so you can’t read them. Hashing runs a mathematical function on the document that essentially fingerprints it. If anything in the document changes, then the hash value will also change, alerting you to the change. The reason this is important is that you know that the data or email has not changed while in transit.

If you have two documents with the same information in them and you run the SHA-256 hash on them, the hash value, which is 256 bits, will be the exact same. If anything changes in the document, even a space being added, then the hash value will change. This provides integrity. In Figure 6*.1*, you can see that two documents with the same information will result in the same 256-bit hash value:

Figure 6.1 – SHA 256 hashing example for matching

In Figure 6*.2*, you see where one document had “De” deleted and the hash value changes. Now, when the hashing validation is done and the two values are compared, the change causes the values to no longer be equal. The application will cause an error saying the hash value is invalid. This alerts the user that something has changed in the document, image, or application:

Figure 6.2 – SHA 256 hashing example for different

In a real-world example, the sender runs the SHA-256 hashing algorithm, and then, when the receiver opens the email, the same hashing algorithm is used to run the email. The original hashing value is encrypted with the sender’s private key. The recipient is able to decrypt the value with the sender’s public key. Next, the recipient will run the same hashing algorithm on the email. If they are not equal, then an error is received. When the hash value is encrypted, it’s called a digital signature. This also provides non-repudiation so that the person who “signs” it or encrypts the hash value can’t say that they didn’t send the email. This is why digital signatures that use secure hashing algorithms tied to the user can be upheld in court as an actual signature. This is how Docusign-signed documents work.

One of the great things about the cloud is that availability is built in. All of the cloud services provide this. Amazon’s relational database service (RDS) automatically backs up your database instance to Amazon S3 for the duration that you specify. Additionally, you have the option to manually create snapshots, which are retained until you choose to remove them. The snapshots are the same as full backups. In addition, in AWS, they have regions, and within each region, there are availability zones. There is built-in availability with automatic failover within the regions. This is a great cost savings for cloud-first startups. They can use these built-in availability cloud features and not have to purchase an additional backup-as-a-service.

The other thing to think about is that each SaaS service that you use provides automatic backups of the data within their service. For example, SalesForce provides at least 30 days of backups. For small- and medium-sized companies, you can rely on that. For a more robust backup solution, you can do your own backups of the data for forensics purposes. Large companies will have additional backups. You also have to remember to align your backup policy with any compliance that you have to meet. The SEC requires that event and incident logs be retained for up to 5 years. Not all logs need to be retained, but ones specific to an incident must be retained.

Business continuity is keeping your business running in the event of an incident. We’ve all heard of the nightmare ransomware attacks where companies have to literally stop work until they are able to stop and recover from the attack. Your business continuity plan covers the roles and responsibilities of the individuals involved as well as a line of succession or who will be contacted and in what order. The business continuity plan is typically more general in that you don’t list people’s names but their job titles. For example, under the line of succession section of the plan, it can be said that the CEO is responsible for the safety and security of the employees and will ensure the business continuity plan is followed during a disruption. Next, there might be a description of the Head of Engineering being responsible for recovering the IT infrastructure in the event of disruption. Additionally, explain what happens if the CEO is unavailable; who can fill in for them? An example would be a sentence about the Chief Operating Officer filling in for the CEO.

The recovery time objective (RTO) is the maximum acceptable length of time that a system can be down after a failure or disruption. It defines how quickly you need to restore a system to maintain business operations. For a small company or startup with one SaaS, a single RTO for your company can be set; for example, an RTO of 8 hours. This means in the event of a major disruption, at most, the company can only be down for 8 hours. Your company has to plan and prepare for availability measures that will ensure you can recover your systems and get operational within 8 hours.

For larger companies that have multiple products, the RTO can be broken out so that higher-impact systems have a shorter RTO than lower-impact systems. This can also be derived from the business impact analysis (BIA) and the categorization of assets. For example, a critical system such as the customer-facing SaaS may have a 3-hour RTO. The server where your source code is stored may be able to be down for 4 hours. Your HR systems may be able to be down for 6 hours. Remember, if you are using Github SaaS, then you can review the availability that the SaaS service provides.

The recovery point objective (RPO) is the maximum age of files that an organization must recover from backup storage for normal operations to resume after a disaster. It defines how much data loss is acceptable. You can think of this as an incremental backup that you can recover. For example, if you do incremental backups every hour, then you can recover back to the last hour. If your incremental backups are every 6 hours, then you can recover back to 6 hours. An RPO of 6 hours means that your company accepts that you can lose 6 hours and that it is acceptable to recover from that point in time. I recommend 3 hours.

The RPO quantifies the acceptable age of data that must be recovered in the event of a system failure. When defined in a time-based metric, an RPO of 4 hours implies that the data restored should be no older than four hours. This metric is calibrated considering the data’s importance, the time needed for restoration, and the potential business impact of data loss.

The RPO plays a crucial role in shaping an organization’s disaster recovery plan. Setting the RPO too high could leave the organization vulnerable to unacceptable levels of risk.

The maximum tolerable downtime (MTD) is the longest period of time that a system or business process can be unavailable without causing irreversible harm to the organization. It’s a metric used in business continuity planning to assess the impact of downtime and guide recovery strategies. MTD encompasses both RTO and RPO, providing a comprehensive view of tolerance for operational disruptions. MTD includes the time when you discovered there was an incident and have begun to assemble the incident response team. The MTD includes this time, so if your RTO is 8 hours, then the MTD has to be at least 10 hours, but it could be longer, such as 48 hours.

Succession planning in cybersecurity refers to the strategic process of identifying and developing new leaders who can replace old leaders when they leave, retire, or are unable to fulfill their duties due to unforeseen events. This is an essential component of business continuity planning, as it ensures that there is no loss of knowledge or leadership in the event that a key employee is no longer available.

This planning involves understanding the critical roles within the organization and ensuring that there are trained and capable employees ready to step into these roles at a moment’s notice. Succession planning ensures operational resilience and mitigates the risks associated with the loss of experienced leaders who hold critical cybersecurity knowledge and capabilities. It also includes cross-training employees, creating detailed job descriptions with the critical functions documented, and ensuring knowledge is shared and not siloed.

In the context of cybersecurity, succession planning is crucial because it prepares the organization for a smooth transition of responsibilities that includes maintaining the integrity and security of IT systems and sensitive data. This helps to preserve the organization’s defensive capabilities against cyber threats, even during periods of transition.

Even AWS, which provides 99.999% availability, has incurred major DDOS attacks in the past that slowed response times for various regions. In December of 2021, AWS-East1 suffered a major DDOS attack that affected multiple customers who run their companies in AWS-East-1. It was reported that Netflix, iRobot, Ring, and Disney were affected because their foundational services, such as internal DNS, monitoring, and authorization, are provided to AWS-EAST-1. When the DDOS occurred, affecting a large number of AWS clients, auto-scaling was triggered at an alarming rate, which overwhelmed this internal network, causing communication delays 2.

AWS engineers realized the congestion and one of the first things they did was move the DNS to another subnet, allowing customer traffic to connect to the DNS. This allowed them to review logs and figure out the root cause of the disruption. The engineers also disabled the auto-scaling while troubleshooting until they could properly remediate the issue. AWS has since made changes to its architecture in order to ensure an outage like this does not occur. The point is that even if a service or SaaS that your company relies on has given you 99.999% availability, it can still have delays. When you are deciding on your RTO, you should take this into account. This particular disruption affected AWS customer support from 7:33 PM to 2:25 PM PDT, which is 7 hours. AWS-East-1 wasn’t completely down, but customer communications were delayed and slowed. This is why you want to give yourself some time for the RTO. I recommend 8 hours. Most customers want to see that you have a business continuity plan with RTO, MTD, and RPO. If a potential customer doesn’t sign because you have an 8-hour RTO, then you can revisit and decide if you want to lower the number.

Important note

DNS is a foundational service used in networking. It translates domain and host names to IP addresses. When you go to https://www.google.com, this URL has to be translated to an IP address in order for you to communicate with Google. If the DNS goes down, then you won’t be able to communicate on the web. I was a DNS administrator at IBM in my early career. Most people don’t understand what an important role it plays in being able to connect over the internet. An easy way to check if your DNS is working properly is to open a command prompt (or terminal on Mac) and type www.google.com in lookup to see if you are reaching your DNS. You can easily build in availability with your DNS by adding two to your configuration. On a Mac, you go to Settings | Network | Wi-Fi | Details | DNS to verify you have two DNS servers configured. Typically, these will be given to you when you connect to your Wi-Fi. On Windows, you can right-click on the Windows button | Settings | Network & Internet | Wi-Fi | Hardware Properties | Edit.

Disaster recovery is extremely important to keep your company running in case of a disaster. It can be a natural disaster such as a flood, earthquake, or hurricane. It could also be man-made, such as a ransomware attack, that brings your company to a halt. Before the cloud, you had to have a secondary data center from your primary one that had a hot, warm, or cold setup. The secondary site would be in another region. For example, if your primary site was on the East Coast, then your secondary backup site would be in the Central time zone. Ideally, a disaster recovery site is located in a geographically separate region, far enough from the original site to not be affected by the same disaster (such as a flood or earthquake) but close enough to be reached in a timely manner if physical access is needed. The choice between a hot, warm, or cold site is a balance between cost, speed of recovery, and the importance of the systems that are being protected.

Hot site: A hot site is a replica of the original site of the organization, with full computer systems and near-complete backups of user data. Hot sites are fully functional data centers that companies can move to with little or no downtime in the event of a disaster. These are the most expensive to operate.

Warm site: A warm site has the necessary hardware and connectivity but does not have live data. Companies may have backups on hand at the warm site, and the recovery time is slower than with a hot site but faster than with a cold site. Warm sites are a cost-effective solution that provides a compromise between hot and cold sites.

Cold site: A cold site is the most basic type of recovery site for an organization. It does not have the hardware and software systems pre-installed. Instead, a cold site is simply a space where the infrastructure (e.g., space, power, and networking) is available. Companies using cold sites typically have a longer recovery time, as they need to set up systems or transport them from the affected site.

With the advent of the cloud, disaster recovery has gotten much easier because the cloud includes built-in availability and failover. The one detail to consider is that the built-in availability and failover are within the same region, only a few miles apart. If there was a flood in that region or another major event, your failover servers may be affected. Many companies just rely on the built-in failover and redundancy in the cloud. For best practices, I recommend configuring an automated backup to another region. All cloud services have this option for a fee. You can also backup to cold cloud storage, which is an inexpensive option offered by AWS. I’ve even heard that if your primary cloud is AWS, then some companies use AWS for their backup storage and vice versa. Apparently, at one point, two Azure regions went down at the same time.

When doing your disaster recovery planning, you have to think about redundancy in the architecture of your data center, and infrastructure refers to the incorporation of additional or duplicate systems, components, or functionalities within an IT infrastructure to ensure continuous operations in the event of a failure or disaster. The objective is to create a fail-safe environment where the system can rely on backup components without experiencing a significant interruption in service.

In practical terms, this can include multiple power sources, redundant data storage solutions (such as RAID arrays), clustered servers, or duplicated network paths and components. Redundancy can be applied at various layers of an organization’s architecture, including data, hardware, and connectivity.

The key aspect of redundancy is that it’s proactive; instead of reacting to a failure, systems are designed to automatically switch to standby systems that take over the load with minimal to no downtime. This approach is crucial for mission-critical applications where even a short period of unavailability can have significant adverse effects on the business.

Disaster recovery roles and responsibilities

Section titled “Disaster recovery roles and responsibilities”

In the case of a disaster, all staff, including contractors, are to assist in the recovery of IT systems to re-establish standard operations. Responsibilities are assigned as follows:

  • Executive Team
    • Declare the company as being in a state of disaster
      • Evaluate information to determine the maximum tolerable downtime
      • Authorize contracts essential for resuming operations
  • IT Team
    • Re-establish network services either at a secondary location or in the primary office location
      • Determine which servers or services are not functioning and re-establish functionality
      • Order the equipment necessary to re-establish services
      • Install and implement any tools, hardware, software, and systems
  • Operations Team
    • Directing employees to their respective work locations
      • Restoring and ensuring the functionality of telephone and internet services
      • Managing the conference call system and scheduling as required
      • Provisioning essential supplies for disaster response
      • Providing ample computer and laptop resources for the resumption of work

Testing your disaster recovery is made up of forcing a failover to ensure the availability of critical parts of your network. It can include testing your generators if you manage your own data center. We only had to test the generators when I worked at IBM, and we operated our own data centers. With the advent of the cloud, most companies simply test the failover of their critical assets in the cloud.

Tabletops are used to test your disaster recovery and incident response plans. A table top exercise is essentially a discussion-based simulation of a disaster. Key team members will discuss their roles during an emergency and walk through a specific disaster scenario to assess the plan’s effectiveness.

In summary, good backups, availability, business continuity, and disaster recovery are imperative to ensure that your company can maintain operations in the event of a disaster. Whether a natural disaster, terrorist attack, or man-made disaster occurs, your company will be prepared with thoroughly tested business continuity and disaster recovery plans.

In the next chapter, we will be covering security awareness training. When building a security program, ensuring you build a culture of security awareness is important. You can have excellent security safeguards, but one click on the wrong link or having a hacker trying to tailgate could open your company to attack.