VyoPath

Building a Machine Learning Model to Prevent Network Attacks

We recently completed a project for our client VyoPath, where we developed a Machine Learning model to detect various network attacks. The model was trained using Netflow as the base networking protocol, incorporating data from public datasets, synthetic data, and custom computing captures.

A hand is holding a tablet with a global cloud icon, representing the strategic use of tech.

outcomes

  • Time savings in model training, with no development time required.
  • Reduced errors and increased efficiency through minimal human interaction.
  • Improved traceability of changes and performance metrics.
  • Prevention of model drift, leading to increased accuracy and robustness.
  • Enhanced market position and revenue growth.

tools & technology

  • KubeFlow
  • CatBoost
  • Google Cloud Platform (GCP):
  • Cloud Scheduler
  • Cloud Functions
  • Vertex AI
  • Monitoring
  • Cloud Storage
  • IAM

The Challenge

Empowering Network Security with Automated Machine Learning

One of our latest projects for our customer VyoPath consisted on building a Machine Learning model capable of detecting different types of network attacks. Using Netflow as the base networking protocol, the model was trained on different data sources including public datasets, synthetically generated data, and data captured using custom computing. 

After the initial training, our client continued to capture data on an ongoing basis. Doing so gave VyoPath a great opportunity to enable periodic model re-training in order to keep it updated and protected against data-drifting. 

Due to the inherent dynamic characteristics of network threats and future attack modalities, the client required an automated solution to leverage the incoming stream of data and recursively update the Machine Learning Model. Ideally, this solution would involve little to no  human intervention and maintenance over time. 

The Solution

Streamlined Model Re-training

Since data was stored in the cloud in a raw format, we had to perform several extracting, cleansing and transforming tasks before being able to re-train the model. Our proposed solution included a KubeFlow pipeline that would create isolated blocks for each task and connect them in a logical way to finally orchestrate on-schedule runs.

The KubeFlow pipeline was run in the Google Cloud as a client requirement. As a result, Vertex AI Pipelines were used to run and keep track of the pipeline runs, as well as store artifacts, log events and send alerts – all while providing seamless integration with other GCP services.

The following diagram is an overview of the architecture we used to solve the client’s needs:

Figure 1 – Proposed Solution Diagram

As the name suggests, the Data capture block is where the data is captured. Using the data collector and business rules, the data is then labeled and moved to a Google Cloud Storage bucket (Input data bucket). 

The next block, Automatic model re-training, contains a Cloud Scheduler event and a Cloud Function to trigger a KubeFlow pipeline with an on-schedule run through the Vertex AI GCP service. 

The pipeline consumes data from the Input data bucket, while the KubeFlow configuration files and current production model pulls from the Artifact bucket. If the newly trained model outperforms the existing production version, then the new model is pushed to the model repository located in the Artifact bucket. It’s then ready to be leveraged by users and applications.

The figure below shows a simplified diagram of the KubeFlow pipeline created to perform the data cleansing, data transformation and model training tasks. It also includes the performance comparison module that decides which model performs better so that it can then export it to the model repository.

Figure 2 – Architecture of the KubeFlow Pipeline

The Results

Unleashed Accurate Detection and Revenue Growth

Due to our expertise in the NetFlow security field and our familiarity with the defined tech stack, VyoPath chose Allata to improve the detection capabilities of its machine learning model.

The main benefits of our automated pipeline solution included:

Once the solution was deployed, the client was able to leverage the new labeled data, which prevented the machine learning model from drifting over time. As a result, this increased the accuracy and robustness of the detection system. 

Ultimately, having a more accurate and reliable machine learning model should better position VyoPath in the market and lead to a direct increase in revenue.

Innovation starts with a conversation.

Fill out this email form and we’ll connect you with the right person for your needs.