Zero Trust Security
Security is the most critical part of your application to implement correctly. Failing to secure your users’ data can be very expensive and can make customers lose their faith in your ability to protect their sensitive data. A recent IBM-sponsored study showed that the average cost of a data breach is $3.92 million, with healthcare being the most expensive industry with an average of $6.45 million per breach. What else might be surprising is that the average time to identify and contain a breach is 279 days, while the average lifecycle of a malicious attack from breach to containment is 314 days.
Traditionally network security has been based on having a strong perimeter to help thwart attackers, commonly known as the moat-and-castle approach. This approach is no longer effective in a world where employees expect access to applications and data from anywhere in the world, on any device. This shift is forcing organizations to evolve at a rapid rate to stay competitive in the market, and has left many engineering teams scrambling to keep up with employee expectations. Often this means rearchitecting systems and services to meet these expectations, which is often difficult, time consuming, and error prone.
In 2010 Forester coined the term ‘Zero Trust’ where they flipped the current security models on their heads by changing how we think about cyberthreats. The new model is to assume you’ve been compromised, but may not yet be aware of it. A couple years later, Google announced they had implemented Zero Trust into their networking infrastructure with much success. Fast forward to 2019 and the plans to adopt this new paradigm have spread across industries like wildfire, mostly due to the massive data breaches and stricter regulatory requirements.
Here are the key Zero Trust Networking Principles:
- Networks should always be considered hostile.
- Just because you’re inside the “castle” does not make you safe.
- Network locality is not sufficient for deciding trust in a network.
- Just because you know someone next to you in the “castle”, doesn’t mean you should trust them.
- Every device, user, and request is authenticated and authorized.
- Ensure that every person entering the “castle” has been properly identified and is allowed to enter.
- Network policies must be dynamic and calculated from as many sources of data as possible.
- Ask as many people as possible when validating if someone is allowed to enter the “castle”.
Transitioning to Zero Trust Networking can dramatically increase your security posture, but until recent years, it has been a time consuming and difficult task that required extensive security knowledge within engineering teams, sophisticated internal tooling that could manage workload certificates, and service level authentication and authorization. Thankfully service mesh technologies, such as Istio, allow us to easily implement Zero Trust Networking across our microservices and clusters with little effort, minimal service disruption, and does not require your team to be security experts.
Zero Trust Networking With Istio
Istio provides the following features that help us implement Zero Trust Networking in our infrastructure:
- Service Identities
- Mutual Transport Layer Security (mTLS)
- Role Based Access Control (RBAC)
- Network Policy
One of the key Zero Trust Networking principles requires that “every device, user, and request is authenticated and authorized”. Istio implements this key foundational principle by issuing secure identities to services, much like how application users are issued an identity. This is often referred to as the SVID (Secure and Verifiable Identification) and is used to identify the services across the mesh, so they can be authenticated and authorized to perform actions. Service identities can take different forms based on the platform Istio is deployed on, for example:
- When deployed on:
- Kubernetes: Istio can use Kubernetes service accounts.
- Amazon Web Services (AWS): Istio can use AWS IAM user and role accounts.
- Google Kubernetes Engine (GKE): Istio can use Google Cloud Platform (GCP) service accounts.
Mutual Transport Layer Security (mTLS)
To support secure Service Identities and to secure data in transit, Istio provides mTLS for encrypting service-to-service communication and achieving non-repudiation for requests. This layer of security reduces the likelihood of a successful Man-in-The-Middle attack (MiTM) by requiring all parties in a request to have valid certificates that trust each other. The process for certificate generation, distribution, and rotation is automatically handled by a secure Istio service called Citadel.
Role Based Access Control (RBAC)
Authorization is a critical part of any secure system and is required for a successful Zero Trust Networking implementation. Istio provides flexible and highly performant RBAC via centralized policy management, so you can easily define what services are allowed to communicate and what endpoints services and users are allowed to communicate with. This makes the implementation of the principle of least privilege (PoLP) simple and reduces the development teams’ burden of creating and maintaining authorization specific code.
With Istio’s centralized policy management, you can enforce networking rules at runtime. Common examples include, but are not limited to the following:
- Whitelisting and blacklisting access to services, so that access is only granted to certain actors.
- Rate limiting traffic, to ensure a bad actor does not cause a Denial of Service attack.
- Redirecting requests, to enforce that certain actors go through proper channels when making their requests.
Cyber Attacks Mitigated by Zero Trust Networking With Istio
The following are example attacks that can be mitigated:
- Service Impersonation – A bad actor is able to gain access to the private network for your applications, pretends to be an authorized service, and starts making requests for sensitive data.
- Unauthorized Access – A legitimate service makes requests for sensitive data that it is not authorized to obtain.
- Packet Sniffing – A bad actor gains access to your applications private network and captures sensitive data from legitimate requests going over the network.
- Data Exfiltration – A bad actor sends sensitive data out of the protected network to a destination of their choosing.
Applying Zero Trust Networking in Highly Regulated Industries
To combat increased high profile cyber attacks, regulations and standards are evolving to include stricter controls to enforce that organizations follow best practices when processing and storing sensitive data.
The most common technical requirements across regulations and standards are:
- Authentication – verify the identity of the actor seeking access to protected data.
- Authorization – verify the actor is allowed to access the requested protected data.
- Accounting – mechanisms for recording and examining activities within the system.
- Data Integrity – protecting data from being altered or destroyed in an unauthorized manner.
As you may have noticed, applying Zero Trust Networking within your application infrastructure does not only increase your security posture and help mitigate cyber attacks, it also addresses control requirements set forth in regulations and standards, such as HIPAA, PCI-DSS, GDPR, and FISMA.
Use Istio to Achieve Zero Trust the Easy Way
High profile data breaches are at an all time high, cost an average of $3.92 million, and they take upwards of 314 days from breach to containment. Implementing Zero Trust Networking with Istio to secure your microservice architecture at scale is simple, requires little effort, and can be completed with minimal service disruption. If you would like to discuss the most effective way for your organization to achieve zero trust, grab some time to talk through your use case and how Aspen Mesh can help solve your security concerns.