OBLYTECH Logo
OBLYTECH Logo

Build a Custom API Connector in Security Posture Control

Security Posture Control (SPC) includes a connector builder for custom API connectors. You create the connector, add test credentials, enter the vendor’s input parameters, map the returned fields to SPC attributes, then validate and publish. Publishing starts the import of asset data into your CMDB. Mitigation controls use a separate set of API integrations, covered further down this page.

What the connector builder needs before you start

The builder lives in the Security Posture Control workspace. On the Brazil release it expects the applications below at these versions. Installing and activating them takes the admin role.

Application Application ID Version
Security Posture Control API Connectors sn_spc_cxf 2.0.0
Security Posture Control sn_sec_spc_core 7.0.1
Asset Security Posture Management sn_sec_caasm 5.5.1
Mitigation Controls Monitoring sn_sec_mit_ctrl 4.1.4
Integrations Commons for CMDB sn_cmdb_int_util 2.20.0

The developer role, sn_sec_spc_core.developer, lets a user view and configure connectors. The advanced scripting role, sn_spc_cxf.admin, is needed for scripting beyond the standard options.

Step 1: Enter the connector metadata

Open Workspaces > Security Posture Control > Connector builder, then select an existing connector or choose New connector. The form asks for four things: a unique connector name (adding “CXF” helps separate builder connectors from vendor connectors), a vendor from the list or a vendor name and URL you add yourself, one connector category, and a unique description. Select Save and continue, because the next step does not open until the record is saved.

Step 2: Create the credential alias and connection

Step 2 is the connector alias and connection credentials step. Complete it before entering inputs, because input values can reference fields in the credential table.

Step 3: Provide input values and test the connection

  • Object list path points to the list of assets inside the response body. The example value is $.list.
  • API endpoint relative path is the path after the host name.
  • API query parameters are key-value pairs for filtering. A value can be a static string, a script, or a reference to a credential field.
  • Pagination parameters take a name, a location (Query, Header or Body), a path in the response that gives the next value, and an optional default.

The Offset pagination example uses two query parameters: a start parameter defaulting to 0 and a count parameter defaulting to 5. A custom parameter can read another signal, such as a hasMore value at $.hasMore sent as a header with a default of 1.

Select Get sample response. A message confirms the connection worked. Changing any input after a test means you must test again before the mapping step opens.

Step 4: Map the response to SPC attributes

Host name and Asset identifier are required. Everything else is optional. The reference panel shows the response sample and the response schema. The schema is aggregated, so switch the reference list to API response schema to see all observed properties.

The asset identifier deserves careful thought. It is a combination of properties that identifies a configuration item. Adding properties such as address or assetType helps the import recognize the same asset when two security tools report it under different fields, which helps you avoid duplicate findings.

Create a custom attribute when the defaults do not cover a property. For an operating system name, find the object and property in the response sample, select Add attribute, set the Collection filter to the operating system object, choose the API attribute, and choose a Type, which is required. The Transformer field is optional and can cast the value, for example to a Date.

Any attribute can be scripted with the script toggle. Commit the script with Save and Close script.

Step 5: Validate, publish, and monitor

Validate the connector before publishing, whether you typed the parameters yourself or the AI skill filled them in. Publishing is what starts the import. Afterwards, monitor the connector on the SPC API Integrations tab.

Using the generative AI skill for steps 3 to 5

The SPC Setup Connector skill can handle steps 3 to 5. It is on by default and available to users with the right role. Using vendor documentation you supply, it picks a template, sets the inputs, runs the connection test, produces a sample response and maps it. Steps 1 and 2 still come first, by hand.

The skill is included with ServiceNow Otto for Unified Security Exposure Management. On Zurich and Australia, it needs Zurich Patch 4 of that application. Starting with Zurich Patch 12, Now Assist for Vulnerability Response is being prepared for future deprecation.

How mitigation controls differ from custom connectors

Mitigation controls monitoring shows which threats to your assets are mitigated by the controls on them, based on how security tools are configured. For the policies and findings side of the product, see the Security Posture Control overview.

Its data comes from API integrations with web application firewalls and endpoint protection tools. These are separate from service graph connectors, which import different data and are installed and configured from their own ServiceNow Store listings. The API integrations are configured in the SPC workspace. Service graph connectors and ITOM Discovery are still needed. For example, CrowdStrike endpoint mitigations require both the CrowdStrike service graph connector and the CrowdStrike API integration.

Exploit protection through a web application firewall

The WAF category uses an API integration with tools such as F5 BIG-IP, plus network traffic data from ITOM IP-based Discovery where needed. It imports Web ACL rules and their load balancers, then works out which rules protect each virtual machine. For F5, ITOM IP-based Discovery must be active where the F5 device and its application servers run, and the F5 API integration must be active in the workspace.

AWS uses two applications, installed in this order:

  1. Define Web ACLs and rules in the AWS service account. AWS managed rules are a reasonable starting point. Custom rules in this integration cover two attack types: SQL injection and cross-site scripting.
  2. Install and activate Discovery and Service Mapping Patterns, which discovers each Web ACL’s name and default action (allow or block).
  3. Set the MID Server property for AWS app pool members to true.
  4. Install and activate Mitigation Controls Monitoring, which imports the Web ACL rules and their links to load balancers.

To configure it, go to All > Security Posture Control Workspace > Connectors and use cases setup, open the SPC API Integrations tab, and select the AWS WAF tile. Create a service account with a name, account ID and the AWS Datacenter type. Then build a discovery schedule with AWS as the provider, a MID selection, and the Discover VMs by IP address toggle. The test account validation must succeed before you continue. Finish with Finish and Run.

Exploit protection through endpoint protection agents

Endpoint tools can enable settings such as Force ASLR and Force DEP. SPC detects them through its included policies and an API integration with the tool.

Vendor Needed for detection Mitigations covered
CrowdStrike Service graph connector and API integration Force ASLR, Force DEP, NULL page allocation
Microsoft Defender SCCM credentials with the Script Authors role, and an active SCCM integration Control Flow Guard, Data Execution Prevention, Mandatory and Bottom-Up ASLR
SentinelOne Service graph connector and API integration Application control and exploit and threat detection settings

Policies that ship with mitigation controls

Users in the SPC Admin Group or SPC Analyst Group find the mitigation policies at Workspaces > Security Posture Control > Policies and findings > All. Twenty are included: SEH Overwrite and Heap spray, three CrowdStrike policies, three Microsoft Defender policies, and twelve SentinelOne policies. You create the AWS WAF policies yourself.

Release history for both applications

Application Version Released Change
SPC API Connectors 2.0.0 December 2025 Introduced the connector builder framework
SPC API Connectors 2.1.1 June 2026 Builder changes for request and response mapping, and more authentication patterns
Mitigation Controls Monitoring 4.0.2 May 2025 Added AWS WAF detections
Mitigation Controls Monitoring 4.2.2 June 2026 Query ACLs, scoped roles on SPC broker ACLs, hardened read-only fields

Frequently asked questions

Is Mitigation Controls Monitoring required to build a custom connector?

Yes. The Brazil builder lists it at version 4.1.4. Having it installed does not make a custom connector a mitigation integration, which you configure separately on the SPC API Integrations tab.

Does a changed input need a new connection test?

Yes. Changing any input after a test means you must test again before you can continue to the mapping step.

Does the AI skill replace validation?

No. Validate the connector before publishing, whether you typed the parameters yourself or the AI skill filled them in.

Does the AWS WAF integration need a MID Server?

Yes. The discovery schedule requires you to choose a MID Server option, and one of the setup steps is setting the MID Server property for AWS app pool members to true.