Onboard a ServiceNow App to SSPM
Focus
Focus
SaaS Security

Onboard a ServiceNow App to SSPM

Table of Contents

Onboard a ServiceNow App to SSPM

Connect a ServiceNow instance to SSPM to detect posture risks.
Where Can I Use This?What Do I Need?
  • Strata Cloud Manager
  • SaaS Security Posture Management license
Or any of the following licenses that include the Data Security license:
  • CASB-X
  • CASB-PA
For SSPM to detect posture risks in your ServiceNow instance, you must onboard your ServiceNow instance to SSPM. Through the onboarding process, SSPM connects to a ServiceNow API by using OAuth 2.0 authorization. To enable OAuth 2.0 authorization, you first register an OAuth 2.0 integration application in ServiceNow before onboarding your ServiceNow instance in SSPM. During the onboarding process, SSPM prompts you to log in to ServiceNow and to grant SSPM the access it requires. After connecting to the ServiceNow API, SSPM scans your ServiceNow instance for misconfigured settings, third-party plugins, and account risks.
You can also use the OAuth 2.0 application to enable SSPM to create tickets in ServiceNow. To enable ServiceNow ticketing, you link SSPM to a ServiceNow instance from the Ticketing Settings page. To enable ticketing, SSPM requires the same information that it requires for onboarding ServiceNow. However, onboarding ServiceNow for scans and linking to ServiceNow for ticketing are two separate procedures. When you create your OAuth 2.0 application in ServiceNow, be aware that SSPM uses different redirect URLs depending on whether you onboard ServiceNow for scans or linking to ServiceNow for ticketing. Your OAuth 2.0 integration application can specify both of these redirect URLs.
To onboard your ServiceNow instance, SSPM requires the following information, which you specify during the onboarding process.
ItemDescription
Client IDSSPM accesses a ServiceNow API through an OAuth 2.0 application that you create. ServiceNow generates the Client ID to uniquely identify the application.
Client SecretSSPM accesses the ServiceNow API through an OAuth 2.0 application that you create. ServiceNow generates the Client Secret, which SSPM uses to authenticate to the application.
Instance URLThe unique URL for your ServiceNow instance.
To onboard your ServiceNow instance, you complete the following actions:
  1. From SSPM, get the redirect URLs that you need when you register your OAuth 2.0 application in ServiceNow.
    For onboarding, you must specify the redirect URL for onboarding for scans. If you also want to enable ServiceNow ticketing from SSPM, you must also specify the redirect URL for ticketing. To get the redirect URL, you begin the onboarding procedure in SSPM but do not complete the procedure.
    1. Log in to Strata Cloud Manager.
    2. Select ConfigurationSaaS SecurityPosture SecurityApplicationsAdd Application and select ServiceNow.
    3. Select Posture Security and click Add New.
    4. Select OAuth 2.0.
      SSPM displays a configuration page for onboarding a ServiceNow instance. The Redirect URL field displays the redirect URL value.
    5. Copy the redirect URL and paste it into a text file.
      Don’t continue to the next step unless you have copied the redirect URL. You must specify this URL later when you configure your OAuth 2.0 integration application.
    If you also want to link SSPM to the ServiceNow instance for ticketing, get the redirect URL for ticketing. To get this redirect URL, you begin the procedure for linking SSPM to ServiceNow for ticketing but do not complete the procedure.
    1. Select ConfigurationSaaS SecuritySettings Workflow Ticketing Settings.
    2. Add Link for ServiceNow.
      SSPM displays the login page for linking to a ServiceNow instance. The Redirect URL field displays the redirect URL value. Copy the redirect URL and paste it into a text file.
      Don’t continue to the next step unless you have copied the redirect URL. You must specify this URL later when you configure your OAuth 2.0 integration application.
  2. Create an authentication scope to limit access to ServiceNow REST APIs.
    During onboarding, you log in to a ServiceNow account and grant SSPM access to that account. SSPM gets access to your ServiceNow account through an OAuth 2.0 integration application that you create. By default, the OAuth token has full access to the REST APIs that the ServiceNow account can access. Although SSPM accesses only the Table API, the OAuth token allows more access than SSPM requires. Before you create the OAuth 2.0 integration application, create an authentication scope, which limits SSPM's access to only the Table API. You can create a scope that allows SSPM read-access only or full read and write access to the Table API. Later, you assign this scope to your OAuth 2.0 application.
    1. Log in to ServiceNow as an administrator.
    2. Make sure the REST API Auth Scope plugin (com.glide.rest.auth.scope) is activated in ServiceNow. To verify that the plugin is activated, select System Definition Plugins and use the search field to locate the plugin. If the plugin isn’t installed, refer to the ServiceNow documentation to install and activate the REST API Auth Scope plugin.
    3. Create the authentication scope.
      1. Navigate to the Authentication Scopes table (sys_auth_scope.list) by using the filter navigator.
      2. Click New to define the authentication scope.
      3. Specify a meaningful Name for your authentication scope, such as SSPM Connector. You can optionally specify a longer Description.
        Make note of the authentication scope name. You must specify this name later when you configure a REST API Auth Scope and your OAuth 2.0 integration application.
      4. Submit.
    4. Create a REST API Auth Scope and link it to your authentication scope.
      The REST API Auth Scope is where you limit SSPM access to the Table API only. You can allow SSPM full read and write access to perform all HTTP methods, or you can limit SSPM to read-only access (GET method only).
      1. Select System Web ServicesAPI Auth ScopesREST API Auth Scope to open the REST API Auth Scopes list.
      2. Click New to define the REST API Auth Scope.
      3. In Name, enter a name for your REST API Auth Scope.
      4. For REST API, choose Table API.
      5. Configure the REST API Auth Scope to allow SSPM full read and write access (all HTTP methods) to the Table API, or read-only access (HTTP GET method only).
        • Read-only Access: Configuring the REST API Auth Scope for reduced, read-only access enables SSPM to perform configuration scans, account scans, and third-party plugin scans. However, SSPM cannot perform automated remediation of misconfigured settings.
          To configure the REST API Auth Scope for read-only access, complete the following steps:
          1. Clear Apply auth scope to all http methods in this API.
          2. From the HTTP Method list, select GET.
        • Read and Write Access: Configuring the REST API Auth Scope for full read and write access enables SSPM to perform configuration scans, account scans, and third-party plugin scans. It also enables SSPM to perform automated remediation of misconfigured settings.
          To configure the REST API Auth Scope for Read and Write access, select Apply auth scope to all http methods in this API.
      6. In Auth Scope, enter the name of the authentication scope that you created earlier. This specification links the REST API Auth Scope to the authentication scope.
      7. Submit.
  3. Create your OAuth 2.0 application in ServiceNow.
    1. Log in to ServiceNow as an administrator.
    2. Select System OAuth Application Registry to open the Application Registries page.
    3. From the Application Registries page, create a New application.
    4. ServiceNow prompts you to select the type of OAuth application that you want to create. Specify that you want to Create an OAuth API endpoint for external clients.
      ServiceNow displays a dialog for configuring your OAuth 2.0 application.
    5. Fill in your OAuth 2.0 application details using the fields that ServiceNow provides.
      • Specify the Redirect URL for onboarding ServiceNow, and, optionally, the redirect URL for linking to ServiceNow for ticketing. If you add both redirect URLs, separate the two URLs with a comma.
      • Under Auth Scopes, add the authentication scope that you created earlier.
      • If the form includes Enforce Token Restrictions, make sure it is not selected. Depending on your ServiceNow version and installed security plugins, the form might not include this option.
    6. Submit.
      ServiceNow registers your new OAuth 2.0 application and displays the Application Registries page. The Application Registries page now lists your OAuth 2.0 application.
    7. Open your OAuth 2.0 application and copy the Client ID and Client Secret into a text file.
      Don’t continue to the next step unless you have copied the Client ID and Client Secret. You must provide this information to SSPM during the onboarding process.
  4. Ensure that SSPM can access ServiceNow tables.
    For SSPM to complete its scans, SSPM must be able to access the following tables in ServiceNow.
    • sys_plugins
    • sys_properties
    • sys_scope
    • sys_user
    • sys_user_has_role
    • sys_user_role
    • oauth_entity
    • oauth_credential
    • v_plugin
    • sys_db_object
    • pwd_reset_request
    To ensure that SSPM can access these tables, open the table definition record for each table and verify that external systems can access the table through the ServiceNow REST Table API.
    1. Select System Definition Tables to open the Tables page.
    2. For each of the tables that SSPM must be able to access, complete the following steps:
      1. Locate the table record in the list of tables and click its name to open the table record. To quickly locate a table record, you can use the Search field to filter the list.
      2. In the table record, select Application Access.
      3. In the table record, verify that Allow access to this table via web services is selected. If necessary, select Allow access to this table via web services and click Update to save your changes.
  5. Connect SSPM to your ServiceNow instance.
    In SSPM, complete the following steps to enable SSPM to connect to your ServiceNow instance.
    1. Log in to Strata Cloud Manager.
    2. Select ConfigurationSaaS SecurityPosture SecurityApplicationsAdd Application and select ServiceNow.
    3. Select Posture Security and click Add New.
    4. Select OAuth 2.0.
    5. On the configuration page, enter your Instance URL and the application credentials (Client ID and Client Secret).
    6. Specify whether you grant SSPM Read Permissions only or Read and Write Permissions.
      The option you choose depends on how you configured the authentication scope to limit access. If you configured the authentication scope to allow only the GET method, select Read Permissions. If you configured the authentication scope to allow access to all HTTP methods, select Read and Write Permissions.
      The onboarding page lists the API scopes that SSPM accesses to complete scans and to perform automated remediation.
    7. Click Connect.
      SSPM redirects you to the ServiceNow login page.
    8. Log in using a ServiceNow administrator account.
      The account you use must be assigned to the admin role in ServiceNow. Make sure the account is not also assigned to the snc_read_only role, which restricts the account to read-only access. If the account is restricted to read-only access, onboarding fails.
      ServiceNow displays a consent form.
    9. Review the consent form and Allow access to the account.
    10. If you also want to create ServiceNow tickets from SSPM, link SSPM to the ServiceNow instance. You link SSPM to ServiceNow from the Ticketing Settings page (ConfigurationSaaS SecuritySettings Workflow Ticketing Settings).