Wiz and Netskope App Instance Integration


Userlevel 1

We are really excited to introduce the next phase of the Wiz and Netskope app instance integration. 

 

Overview

The risk of unauthorized data movement is very real and something we see security administrators often having to deal with - this includes the need to identify what’s going on, understand where data is moving to, and ultimately implement policies to limit this data movement and this is where instance controls can be very effective, giving administrators immense control over what to allow and what to ‘inspect’(for data loss prevention policies) and what to outright block. 

 

Netskope’s industry leading Secure Access Services Edge (SASE)  offering provides not only control of access to your SaaS and IaaS apps and environments, but this control extends to “instances” of these apps and environments.

 

What does this mean? Netskope not only has the ability to identify and control(block uploads, downloads etc.) the usage of AWS S3(say), you can also implement these controls to be specific to your instance of AWS S3, and block access to all other instances of S3, thus limiting which S3 bucket users access and upload data, and subsequently minimizing the risk of data movement to unsanctioned instances of S3.

 

Joint Solution

This integration takes advantage of the deep visibility that Wiz has into your cloud environments and 

The solution leverages Wiz Cloud Inventory API along with the Netskope App Instance API.A lambda function is deployed in the customer tenant to broker API calls between the two platforms.

Wiz provides a list of storage accounts across your AWS and GCP environments. This insight allows this integration to automatically create App Instances in the Netskope platform for each bucket. This simplifies policy and allows for more granular CASB and DLP capabilities on the Netskope platform.

AD_4nXd6l8qWWGRv4Cz9UZJRVnO2ZWlDty4224sQZgw2EBs_hfyckx6HjT1tFIRGm_3dLZC5F2VKgmIDQl6YxVizl-dGa9Raqj-ZxdMQIptt9N8kqbrsOgX6cRKMY-13leDQ8W54abYJ5860gWhQpfxVuJrwGxVY?key=xc3AtbcYwJX1WiiEZU4iPA

Deployment Steps

  1. Obtain your Wiz Client ID and Client Secret for your tenant. In addition you will also need your Wiz Graphql URL.
  2. Additionally, you will need to generate a REST API v1 (v2 is on the roadmap) token from your Netskope tenant. You will need the following endpoints added to your scope:

AD_4nXdngq8Oa7OrytYJ3bkFG2PX5Ou5VEyD1cnwuuvZuk7o3fx5GVqW3mX-uFu_9Vzt6JVNVqRuRPcbYQOebPPq2GcQm5CmOnlvdUoyG_z6zCJVAcjUTUZoN1Pi7t0wCey9owS5YIzR8ozjRvGRtmmwOE0HpBQ?key=xc3AtbcYwJX1WiiEZU4iPA

For more information on creating a Netskope API token and adding endpoints to the scope please reference: https://docs.netskope.com/en/netskope-help/admin-console/rest-api/netskope-platform-rest-apis/manage-app-instances-for-inline-enforcement/ 

 

Once you have the following credentials we can now deploy the lambda function in your AWS tenant.

  1. Log into your AWS console (https://console.aws.amazon.com/)
  2. Navigate to the AWS service Lambda:

AD_4nXeoM7m3_dC1jgokV2t-72UM2p9ND8zhKYTDJyCRuPAEGYWr2t0OAmrN4tA9dHDNG1_4gigWBmW2wmsVlJxF6kxfjrcr4cyzFZX8EI-GflG2Oh48fmymw1errMp-kGI5TIjxE7AQ2BdcbTXTn76w98RccJnV?key=xc3AtbcYwJX1WiiEZU4iPA

  1. Next Select Create function and select Use a blueprint at the top and have the Blueprint name as the Python 3.10 Schedule a periodic check of any URL

AD_4nXd1bnVmUswvKHcC2VqCUa_8ZIJeJWWAQcHjk-LtUG1EYque28Nmba402qwRghLZM8VO3njEG-WFQJwDQsOhWsEaT1Yn4-tImVgCRYiv6wJP0MF6_LvrCNdDXrVZyA3IHCE_UJ7omqX8X_DZtP6soHNsW7s?key=xc3AtbcYwJX1WiiEZU4iPA

  1. Provide a function Name and role information. (Recommended to Create a new role with basic Lambda permissions)
  2. Then we will need to define the EventBridge information including the frequency (Rate) that the function is invoked. This integration is configured for 5 minutes. You will need to fill out the following information as highlighted in the screenshot:

AD_4nXfgd8HD4_YLhoPQmNzKBU1TuYRW_7bz-asP7_Gi8ATON9-rv4fBw3XbT0UCdtDpYfH0qThxBwsF27R-NZd9sHtzNFH0Hv5GirMUb6U3C9y_9dovDZtOIjC_VJHFQ0RxmPGoeCBYISavNscU8umvkSCUMXv3?key=xc3AtbcYwJX1WiiEZU4iPA

  1. Additionally, Environmental variables will need to be set:

client_id

client_secret

netskope_api_token

netskope_tenant

wiz_graphql_url

 

AD_4nXfmPyeYcXkw34LbFcdNxyLVR69ZWvfGx8fsvpUMvNALcqVra59iH4EcvyB2n2vyaO7KZdmpfANdipmsiTK7_WNTXfPWq1l0j29C-FZaC_h8XjePJkNchuIRePCcgfdeYIlyKtwV7FMdI58MNPWIYUyPENCn?key=xc3AtbcYwJX1WiiEZU4iPA

  1. Finally scroll down to the bottom and select Create function

AD_4nXeCXp7xbBxTVO_1D0HQpWTBsqMJxgXZJTb1xfKSTHDs_wPkGC97exQWLO6bg4jw4hJX5W0R12IPNlBuPonQA7rFj_idkdHuMKdN_PjPihnFL3RbUoSmckjTAz_hC8mO9HmfPl81jdzt3aqbsjIDdbt3rJSz?key=xc3AtbcYwJX1WiiEZU4iPA

Once you have the Lambda deployed we can upload the code.

  1. Navigate to the code tab for your function:

AD_4nXdoB9Ba4yiKflMN8J1F4ETQndVu4AkU90TlBm_FlgRJq-CEaJvC6KUPF_FhUou6Nlm27j_Tv4q2wbxn6fQ155NJE16JRCoAWjaWBlhwX5UxNyfa-xMW1-A0-tZlmq6OdUW4JLaXh_RiZYoAF47ioFVTcYg?key=xc3AtbcYwJX1WiiEZU4iPA

  1. Remove all the existing python code and paste the code from this GIST into your function and click Deploy. 
    1. Gist Code Link: https://gist.githubusercontent.com/mitchellgulledge2/27bce3cf7ac3d52d1258dea0e707ab0a/raw/32872642d1f5775ee2266534632933125ee71eea/Netskope_Wiz_Serverless_Code_App_Instances.py 

 

And that's it! You are up and running and should be able to verify Wiz monitored buckets

 


0 replies

Be the first to reply!

Reply