LeoCybSec

Our Pricing

Billed Monthly

Billed Yearly (save
15%)

Request
Demo

$0

Description of the tier list will go here, copy should be concise and impactful.

    Smart

    $25

    / user / month

    All the security software you need

    Protection Level

    Advanced

    $50

    / user / month

    Everything in Smart Plus…

    Protection Level

    SAML IdP with Splunk Platform

    How to set Google Workspace as a SAML IdP for Splunk Platform

    Leo CybSec Team

    Introduction

    Today, with the expansion of IT infrastructure and the increasing number of IoT devices, the number of machines generating valuable data for companies is also on the rise. This leads to a massive amount of data being generated every second from various sources, often in unstructured and complex formats. Consequently, it becomes more difficult to analyse the machine state in real-time, visualise the data, and detect any potential issues or risks. 

    This is where a tool like Splunk comes in handy. Splunk is a software, designed to search, analyse and visualise data in real time coming from various sources such as websites, applications, devices, sensors, and other components of IT infrastructure. It enables users to monitor their system, receive alerts and event notifications when a machine state changes, and learn from their data thanks to its sophisticated search and visualisation features. This blog post will be focused on illustrating all the steps required to configure Google Workspace as SAML Idp with Splunk Platform as SP. 

    But before starting with step-by-step instructions, let’s first explain what SAML is. 

    SAML (Security Assertion Markup Language) is a protocol used for securely exchanging authentication and authorization data between organisations. So, with the help of SAML a user in an organisation can use their existing identity in Google Workspace and then with SSO (Single Sign-on) they can easily access the Splunk Application. 

    So, let’s dive in with instructions steps…

    Login flow for SAML IdP federation with Splunk Cloud Platform

    Step 1: Create a Custom SAML app on Google

    Step 2: Enable the Splunk App

    Step 3: Create Groups on Google

    Step 4: Mapping the SAML Attributes

    Step 5: Enable SAML on Splunk

    Step 6: Create a Group on Splunk

    Step 7: Testing

    Implementation Guide 

    Note: Before starting with the implementation of SAML with Google, It is assumed that the business requirements of organisations and company policies are clear and the architecture is ready to be implemented. 

    Step 1: Create a Custom SAML app on Google

    Let’s start by creating a custom SAML application.

    1. Log into the  Google Admin Console.
    2. From the Admin console choose AppsWeb Mobile Apps.
    3. Click on Add custom SAML app from the Add App dropdown.
    4. In the App details screen, fill all the necessary fields and then upload an optional app icon to identify the SAML application. Then, click Continue.
    Create a Custom SAML app on Google

    Figure 1: Naming the custom SAML app and setting the icon

    1. Under IdP metadata, click Download Metadata and save this to the download folder. This file is necessary later on for configuring the Splunk portion of the SAML setup.
    Naming the custom SAML app and setting the icon

    Figure 2: Download the metadata file

    1. Fill in the following values for ASC URL, Entity ID, Name ID format and Name ID
      1. Replace your Splunkdomain.com with your Splunk URL Instance
    2. Click Continue.
    Download the metadata file

    Figure 3: Fill the fields

    1. Click the Finish button. The Mapping will be added later. 
    Click Finish

    Figure 4: Click Finish to continue in the next step.

    Step 2: Enable the Splunk App

    1. Click on the newly created APP and then click on User access and select the status ON for everyone to make the new Splunk custom application visible to all users in the Google Workspace. Click Save.
    Enable the Splunk App

    Figure 5: Saving the custom app settings

    Step 3: Create groups on Google

    1. Sign In into the Google Admin Console.
    1. From Homepage, click Directory > Groups and click on Create Groups.
    2. Configure the Group Details.
    3. For enhanced security, turn on the security label. When you’re done, click NEXT.
    Create groups on Google

    Figure 6: Create groups on Google. 

    1. The access type and security settings will be determined by your business requirements. After you are satisfied with the configuration, select Create Group
    groups are created on Google

    Figure 7: The groups are created on Google.

    1. After creating the group, provide the email address of the person you wish to grant access to and choose an owner for the group.

    Step 4: Mapping the SAML Attributes

    When integrating SAML, Splunk expects to get the following request parameters. Error will occur if they are not present.

    • Name
    • Email
    • Role
    1. In the Google Admin console click on Apps > Web Mobile Apps, then choose the created Splunk app
    2. Ensure the attributes are set in the following manner:
      1. Primary email → Email
      2. First name → Name
      3. Gws groups created in the previous step → role
    Mapping the SAML Attributes

    Figure 8: Mapping the SAML attributes. 

    Step 5: Enable SAML on Splunk

    1. After logging in to Splunk with a local user, navigate to Settings > User and Authentication from the menu, then choose Authentication Methods from the drop-down list.
    Enable SAML on Splunk

    Figure 9: Choose Authentication Method.

    1. Click on SAML in the External checkbox under the Authentication Methods section.
    Choose SAML as Authentication Method

    Figure 10: Choose SAML as Authentication Method.

    1. Click on SAML configuration.
    button SAML Configuration

    Figure 11: Click on the button SAML Configuration.

    1. On the SAML configuration, click on the Select file next to Metadata XML file and upload the file downloaded earlier.  This process will fill most of the configuration settings except  for specific fields such as:
    • Entity ID :  https://YOUR-INSTANCE.com/ 
    • Fully qualified domain name orIP of the load balancer: https://YOUR-INSTANCE.com/
    • Redirect port – load balancer port: 443
    • Redirect to URL after logout: enter a custom URL you want your user to be redirected after log out
    1. Click SAVE after the configuration has been given.

    Step 6: Create a Group on Splunk

    Splunk allows the implementation of fine-grained access control, allowing for careful management of data access and options within the Splunk platform. Out of the box Splunk comes with predefined roles but there is the option to create custom Roles based on your business requirements.  In this instance a pre-defined role will be assigned  to a group  

    1. From the SAML group page, click on New Group.
    2. Add a group name and assign a specific Role to the Group and click on Save.
      1. The group name should match with the group name created in GWS. If there is GWS group called splunk_admin we must create a group in splunk called splunk_admin
    Create a new SAML group

    Figure 12: Create a new SAML group.

    1. The SAML group page is where the created groups will be visible.
    groups are listed.

    Figure 13: All of the created groups are listed.

    Step 7: Testing

    1. When a user visits https://myaccount.google.com/, the portal authenticates their identity. Following a successful login, the user chooses the nine dots in the top right corner, which brings up a list of programs, one of which allows the user to log into Splunk Application. 
    Google account after successful login

    Figure 14: Google account after successful login

    1. After successfully logging in, the user will have access to Splunk.
    Visit Splunk application 

    Figure 15: Visit Splunk application 

    Contact us

    Learn more about our cyber security solutions and address any questions you may have.

    Get in touch with us today, we are here for you.

    London Office

    167-169
    Great Portland Street,
    London, England,
    W1W 5PF.
    London: +44 7463239665

    Dubai Office

    Business Bay,
    Ontario Tower Building,
    SR-G-01-042, Dubai,
    United Arab Emirates
    Dubai: +971 501716764