Google Cloud | Networking

How To Use Packet Mirroring For IDS In different VPC Designs

When migrating from on-premises to the cloud, many Google Cloud customers want scalable solutions to detect and alert on higher-layer network anomalies, keeping the same level of network visibility they have on-prem. The answer may be to combine Packet Mirroring with an Intrusion Detection System (IDS) such as the open-source Suricata, or some other preferred threat detection system. This type of solution can provide the visibility you need in the cloud to detect malicious activity, alert, and perhaps even implement security measures to help prevent subsequent intrusions. 

However, design strategies for Packet Mirroring plus IDS can be confusing, considering the number of available VPC design options. For instance, there’s Google’s global VPCShared VPCs and VPC Peerings. In this blog, we’ll show you how to use Packet Mirroring and virtual IDS instances in a variety of VPC designs, so you can inspect network traffic while keeping the ability to use the supported VPC options that Google Cloud provides. 

Packet Mirroring basics

But first, let’s talk some more about Packet Mirroring, one of the key tools for security and network analysis in a Google Cloud networking environment. Packet Mirroring is functionally similar to a network tap or a span session in traditional networking: Packet Mirroring captures network traffic (ingress and egress) from select “mirrored sources,” copies the traffic, and forwards the copy to “collectors.” Packet Mirroring captures the full payload of each packet, not just the headers. Also, because Packet Mirroring is not based on any sampling period, you can use it for in-depth packet-level troubleshooting, security solutions, and application-layer network analysis.

Packet Mirroring relies on a “Packet Mirroring policy” with five attributes:

  1. Region
  2. VPC network(s)
  3. Mirrored source(s)
  4. Collector (destination)
  5. Mirrored traffic (filter)

Here’s a sample Packet Mirroring policy:

When creating a Packet Mirroring policy, consider these key points:

  • Mirrored sources and collectors must be in the same region, but can be in different zones—or even different VPCs or projects.
  • Collectors must be placed behind an Internal Load Balancer (ILB).
  • Mirrored traffic consumes additional bandwidth on the mirrored sources. Size your instances accordingly.
  • The collectors see network traffic at Layer 3 and above the same way that the mirrored VMs see the traffic. This includes any NATing and/or SSL decryption that may occur at a higher layer within Google Cloud.

There are two user roles that are especially relevant for creating and managing Packet Mirroring:

  • “compute.packetMirroringUser” – This role allows users rights to create, update, and delete Packet Mirroring policies. This role is required in the project where the Packet Mirroring Policy will live.
  • “<a href="https://cloud.google.com/compute/docs/access/iam#compute.packetMirroringAdmin" target="_blank" rel="noreferrer noopener">compute.packetMirroringAdmin</a>” – This role allows users to mirror the desired targets to collect their traffic. 

Using Packet Mirroring to power IDS

An IDS needs to see traffic to be able to inspect it. You can use Packet Mirroring to feed traffic to a group of IDSs; this approach has some significant benefits over other methods of steering traffic to an IDS instance. For example, some cloud-based IDS solutions require special software (i.e., an agent) to run on each source VM, and that agent duplicates and forwards traffic to the IDS. With Packet Mirroring, you don’t need to deploy any agents on VMs and traffic is mirrored to IDS in a cloud-native way. And while an agent-based solution is fully distributed and prevents network bottlenecks, it requires that the guest operating system support the software. Furthermore, with an agent-based solution, CPU utilization and network traffic on the VM will most certainly increase because the guest VM and its resources are tasked with duplicating traffic. High CPU utilization related to network throughput is a leading contributor to poor VM performance.

Another common approach is to place a virtual appliance “in-line” between the network source and destination. The benefit of this design is that the security appliance can act as an Intrusion Prevention System (IPS) and actually block or deny malicious traffic between networks. However, an in-line solution, where traffic is routed through security appliances, doesn’t capture east-west traffic within VMs in the same VPC. Because subnet routes are preferred in a VPC, in-line solutions which are fed traffic via static routes, can’t alert on intra-VPC traffic. Thus, a large portion of network traffic is left unanalyzed; a traditional in-line IDS/IPS solution only inspects traffic at a VPC or network boundary. 

Packet Mirroring solves both these problems. It doesn’t require any additional software on the VMs, it’s fully distributed across each mirrored VM, and traffic duplication happens transparently at the SDN layer. The Collector IDS is placed out-of-path behind a load balancer and receives both north-south traffic and east-west traffic.

Using Packet Mirroring in various VPC configurations

Packet Mirroring works across a number of VPC designs, including:

  • Single VPC with a single region
  • Single VPC with multiple regions
  • Shared VPC
  • Peered VPC

Here are a few recommendations that apply to each of these scenarios:

  • Use a unique subnet for the mirrored instances and collectors. This means if the mirrored sources and the collectors are in the same VPC, create multiple subnets in each region. Place the resources that need to be mirrored in one subnet and place the collectors in the other. There is no default recommended size for the collector subnet, but make sure to allocate enough space for all the collectors that might be in that region plus a little more. Remember, you can always add additional subnets to a region in Google Cloud.
  • Don’t assign public IPs to virtual IDS instances. Rather, use CloudNAT to provide egress Internet access. Not assigning a public IP to your instances helps them from being exposed externally to traffic from the internet.
  • If possible, use redundant collectors (IDS instances) behind the ILB for high availability.

Now, let’s take a look at these designs one by one. 

Single VPC with a single region
This is the simplest of all the supported designs. In this design, all mirrored sources exist in one region in a standard VPC. This is most suitable for small test environments or VPCs where network management is not dedicated to a networking team. Note that the mirrored sources, Packet Mirroring policy, collector ILB and the IDS instances, are all contained to the same region and same VPC. Lastly, CloudNAT is configured to allow the IDS instances internet access. Everything is contained in a single region, single VPC, and single project.

Single VPC with multiple regions
Because mirrored instances and collectors must be in the same region, it stands to reason that a VPC that contains subnets in multiple regions needs multiple collectors, multiple ILBs and multiple Packet Mirroring policies. To account for multiple regions, simply stamp out a similar deployment to the one above multiple times. We still recommend using CloudNAT. 

The following example shows a single VPC that spans two different regions, however, a similar architecture can be used for a VPC with any number of regions.

Shared VPC
Packet Mirroring also supports Shared VPC. In this example, the collectors (IDSs), ILB and the Packet Mirroring policy all exist inside the host project. The collectors use their own non-shared subnet. The mirrored sources (WebServers), however, exist inside their service project using a shared subnet from the Shared VPC. This allows the deployment of an IDS solution to be left up to the organization’s cloud network operations group, freeing application developers to focus on application development. CloudNAT is configured to allow the IDS instances Internet access.

Peered VPC
Packet Mirroring also supports when collectors and mirrored sources are in different VPCs that are peered together, such as in a hub-and-spoke design. The same requirements for mirroring traffic between VPCs are applicable. For example, the collector and mirrored sources must be in the same region. In the below example, the mirrored sources (WebServers) and the Packet Mirroring policy exist in VPC_DM_20 in the DM_20 project. On the other side, the ILB and collectors (IDSs) exist in the peered VPC named VPC_SECURITY in the DM_IDS project. This allows the users in the source VPC to selectively choose what traffic is forwarded to the collector across the VPC peering. CloudNAT is configured to allow the IDS instances internet access. Keep in mind the Packet Mirroring role requirements between the different projects. Proper IAM permissions must be configured.

Don’t sacrifice network visibility

Using Packet Mirroring to power a cloud IDS solution, whether it’s open-source or proprietary, is a great option that many Google Cloud customers use. The key is where to place your collectors, ILBs and the Packet Mirroring policy itself—especially when you use a more advanced VPC design. Once multiple VPCs and GCP projects get introduced into the deployment, the implementation only becomes more complex. Hopefully, this blog has shown you how to use Packet Mirroring with an IDS in some of the more common VPC designs. For a hands-on tutorial, check out QwikLabs’ Google Cloud Packet Mirroring with OpenSource IDS, which walks you through creating a VPC, building an IDS instance, installing Suricata and deploying Packet Mirroring.

By Jonny Almaleh(PSO Network Specialist)
Source: Google Cloud Blog



For enquiries, product placements, sponsorships, and collaborations, connect with us at hello@globalcloudplatforms.com. We'd love to hear from you!


Our humans need coffee too! Your support is highly appreciated, thank you!

Total
0
Shares
Previous Article
Google Cloud | Data Analytics

Introducing Apache Spark Structured Streaming Connector For Pub/Sub Lite

Next Article
Google Cloud | Training | Certifications

Earn The New Google Kubernetes Engine Skill Badge For Free

Related Posts

Santa Casa da Misericórdia de Lisboa Delivering Telehealth Services on IBM Cloud

Patients can now schedule appointments and receive remote medical care through a mobile teleconsultation solution ARMONK, N.Y., Oct. 15, 2020 /PRNewswire/ -- IBM and Santa Casa da Misericórdia de Lisboa (SCML), a Portuguese institution of public utility recognized for its social, health and education work in the community, announced today they have worked together with IBM Garage and IBM Services to develop a teleconsultation solution running on IBM public cloud. The solution was designed to help people prioritize their health during the COVID-19 pandemic. IBM helped SCML develop a platform running on IBM public cloud that allows their patients to schedule and access teleconsultation services and remote medical care directly on their mobile phones. In addition to helping patients stay up-to-date with regular medical checkups, the platform is designed to reduce the need for patients to travel to a medical office or hospital and therefore, can help patients reduce exposure to COVID-19 when seeking medical care. The platform is designed so that patients can easily communicate with their medical providers and psychologists to get the assistance they need, quickly and from home. After the medical appointment is requested, the patient receives a notification by email or SMS with date and time information and the access link. Using a smartphone, the patient has to click on the link to start the teleconsultation. To date, SCML patients have used the platform to schedule nearly 300 medical appointments. For medical providers, the platform will enable them to initiate sessions through a phone call, video call or chat. Data and content only visible to the participants for the duration of the call, can build confidence for patients that their files are exchanged in a security rich, managed environment. Additionally, once the video call begins, it is kept between the doctor and patient without any third-party service or entity involved.   The IBM public cloud is the industry's most secure and open cloud for business, offering its  commercially-available state-of-art cryptographic technology for the cloud called "Keep Your Own Key."1 This gives enterprises the ability to retain control of their own encryption keys -- and the hardware security modules that protect them -- so customers are the only ones who can control access to their data. For clients in regulated industries like SCML, this need to protect client data is critical. Working together with a group of IBMers from the IBM Garage and IBM Services teams, SCML was able to develop this teleconsultation solution specifically tailored to its needs. As part of IBM's commitment to help organizations tap into the power of our many services and applications so they can maintain productivity in remote work environments during COVID, SCML was able to access a set of IBM services via the IBM public cloud at no cost for three months. Since most of SCML's patients will access the platform from a smartphone, the first adaption was to move from a computer-based telehealth solution that needed an email address for ID validation, to a solution that could be used on a mobile phone through SMS, audio calls and/or video calls. Running on IBM public cloud, the solution benefits from various features and functionalities supported by a robust containerized platform, able to scale according to demand. Additional foundational services were used for solution monitoring, access logging and user authentication. This solution assumes even more relevance as traditional methods have to be adapted as the world fights against COVID-19.  Portugal continues to face hundreds of new confirmed cases per day in the fall of 2020, mainly in the Metropolitan Area of Lisboa affirming this importance. Francisco Pessoa e Costa, Digital Transformation Manager of Santa Casa da Misericórdia de Lisboa adds, "We expect that this project will have great impact providing health care services in this pandemic period, especially among elderly, vulnerable and disadvantaged populations that we serve. In the middle of the pandemic situation in which we are living and all the instability and uncertainty that it brings, we are trying to do the best we can to protect those who need us. The entire SCML team is very proud and deeply involved in making this project a success and expanding its use among our users." "Challenges such as reimagining traditional operations during the COVID-19 pandemic give us an opportunity to apply cloud technology to make a real difference where it matters the most," said Gonçalo Costa Andrade, Enterprise Sales Manager, IBM Portugal. "This platform we helped build with SCML will enable its users to securely and conveniently access important medical, nutrition and psychology services." [1] Based on IBM Hyper Protect Crypto Service, the only service in the industry built on FIPS 140-2 Level 4-certified hardware. FIPS 140-2 Security Level 4 provides the highest level of security defined in this standard. At this security level, the physical security mechanisms provide a comprehensive envelope of protection around the cryptographic module with the intent of detecting and responding to all unauthorized attempts at physical access. About SCML SCML has more than five centuries of existence and a strong role in the Social Area. It's also developing important work in the Health, Education and Training, Culture, Research and Innovation areas, as well as in the area of Social Economy of Entrepreneurship. SCML guides its actions with the community by defending fundamental social values, in a perspective of proximity, respect and advocacy for good causes. About IBM Cloud For further information visit: www.ibm.com/cloud/ CONTACT:Kate GazzilloIBM Communicationskate.gazzillo@ibm.com  SOURCE IBM

IBM Watson Health and OrbitalRX to Launch Integrated Solution to Assist Hospital Pharmacy Providers in Managing Drug Shortages

Joint offering pairs pharmacy supply chain management capabilities with evidence-based drug content, designed to help hospital pharmacy teams manage drug shortages CAMBRIDGE, Mass. and WINSTON-SALEM, N.C., Sept. 1, 2020 /PRNewswire/ -- IBM (NYSE: IBM) Watson Health and OrbitalRX® today announced a strategic collaboration that aims to help address the emerging drug shortage crisis. The companies are combining OrbitalRX's Drug Shortage Management Platform and IBM® Micromedex® into one unified solution called "OrbitalRX and Micromedex," designed to create a single source for healthcare providers and pharmacy teams to access evidence-based treatment information alongside a hospital's current drug inventory status and drug sourcing options. This one solution aims to quickly analyze the supply chain and identify clinical alternatives for drugs that are in short supply. The global drug shortage crisis has accelerated at an alarming rate during the COVID-19 crisis. According to the American Society of Health-Systems Pharmacists (ASHP), close to 200 drugs are currently on the drug shortage list in the U.S. alone. Management of these shortages is further complicated by the fact that shortages vary by drug and location, as noted by the American Medical Association (AMA). The new solution, OrbitalRX and Micromedex, will be designed to evaluate important drug information, clinical evidence, and comparative efficacy, alongside the hospital's drug inventory, purchase history, and utilization data, enabling hospital providers, pharmacists and pharmacy technicians to proactively manage drug shortages. "As hospitals around the world experience shortages of life-saving therapies, there is an immediate, critical need for evidence-based information around clinical alternatives," said Todd Nolen, General Manager, IBM Micromedex Solutions, IBM Watson Health. "We are addressing this critical need by combining our Micromedex content with powerful insights from the OrbitalRX platform. Our goal is to deliver a trusted platform to help pharmacists and other healthcare providers streamline workflow and rapidly respond to drug shortages with appropriate, safe and effective alternative therapies." IBM Micromedex is one of the largest online reference databases for medication information. It is used by more than 4,500 hospitals and health systems worldwide to help support decision-making in medication therapy management, disease and condition management, toxicology, alternative medicine and patient education. OrbitalRX is the only platform designed by hospital pharmacists, for hospital pharmacists, to unify supply chain and clinical utilization to manage drug shortages and deliver the power of real-time situational awareness in hospital pharmacy workflows. "Patient safety can be compromised by supply chain interruptions, limited drug access due to high medication costs, and unforeseen events like COVID-19. OrbitalRX and Micromedex aim to help health system pharmacy departments mitigate these workflow challenges by identifying drug alternatives from a clinical and supplier perspective," said OrbitalRX co-founder and CEO, Adam Orsborn, PharmD, MS. "Rooted in cloud-based technology and evidence-based insights, this new, unified solution is designed to deliver workflow efficiencies that will empower pharmacists and providers to prioritize therapeutic needs."  "Hospital resources are scarcer than ever, especially with drug shortages and supply chain inefficiencies conspiring daily to upend the rigorous efforts of health systems to improve care quality while reducing cost," said OrbitalRX co-founder and Chief Product Officer, Nate Peaty, PharmD, MS. "With these challenges in mind, OrbitalRX and Micromedex plan to provide health systems with a highly intelligent and automated solution designed to help them with one of the most frustrating issues they face today."   OrbitalRX and Micromedex is anticipated to be available in Q4 2020. Please visit www.ibm.com/products/orbitalrx-micromedex.com to learn more about the solution, schedule a live demo, or to register for a webinar on September 24 to learn more. About IBM Watson HealthIBM Watson Health is a data, analytics, and technology partner for the health industry. Supported by the innovation of IBM and intelligence of Watson, we are committed to helping build smarter health ecosystems. Through the combination of our deep industry expertise in health, data and analytics, actionable insights, and reputation for security and trust, Watson Health is working together with its clients and partners to help them achieve simpler processes, better care insights, faster breakthroughs, and improved experiences for people around the world. Learn more at www.ibm.com/watson-health. For more information about IBM visit, www.ibm.com. Statements regarding IBM's future direction and intent are subject to change or withdrawal without notice and represent goals and objectives only.  About OrbitalRX Co-founded by health-system pharmacy leaders, OrbitalRX offers a one-of-a-kind drug shortage management platform which helps to identify risk factors using internal and external data for when a medication shortage could cause harm in your health-system. We offer everything you need to anticipate, evaluate, take action, follow-up, and report in a single, powerful platform designed to improve your overall shortage management strategy. To learn more about how we're changing the way hospital pharmacies monitor their supply and manage shortages in the supply chain, visit www.orbitalrx.com.   IBM Media ContactMatthew Henson917-930-7147matthew.henson@ibm.com OrbitalRX Media Contact  Emily Nichols emily@orbitalrx.com SOURCE IBM Watson Health