Skip to content

ServiceNow Ticket Actions

ServiceNow integration enables automated incident ticket creation in ServiceNow when Hydden Discovery events occur. Use ServiceNow workflows to create tickets for threat detection, collection failures, data validation issues, and classification changes.

Overview

ServiceNow providers connect to your ServiceNow instance's Table API to automatically create incident tickets. Each workflow can create tickets with:

  • Short Description: Brief ticket title with template variables
  • Description: Detailed ticket body with event context
  • Automatic Creation: Tickets created immediately when events occur
  • Template Variables: Dynamic content from trigger events

Prerequisites

Before configuring ServiceNow integration:

  • ServiceNow Instance: An active ServiceNow instance with the Incident Management module
  • ServiceNow Credential: A ServiceNow user account with incident creation permissions
  • Network Access: Hydden Discovery must be able to reach your ServiceNow instance endpoint
  • Account Type: ServiceNow account should be marked as Web Service Access Only for API access
  • Permissions: The ServiceNow user must have the itil role or equivalent permissions to create incidents

NOTE

For ServiceNow incident management creation, the ServiceNow account should be marked as a Web Service Access Only account. Custom roles are not required, but the account must have permission to POST to /api/now/table/incident.

Creating a ServiceNow Provider

To add a ServiceNow provider:

  1. In Hydden, navigate to Configuration > Automate.
  2. On the Providers tab, click + Add New.
  3. From the Type drop-down, select ServiceNow.
  4. For Name, enter a descriptive provider name (e.g., "ServiceNow Production", "SNOW Dev Instance").
  5. For Description, provide an optional description of the provider's purpose.
  6. For Endpoint, enter your ServiceNow instance URL:
    • Format: https://[instance-name].service-now.com
    • Example: https://dev12345.service-now.com
    • Do NOT include the API path - only the base instance URL
  7. From the Credential drop-down, select a pre-configured ServiceNow credential containing:
    • Username: ServiceNow user account (Web Service Access Only recommended)
    • Password: ServiceNow user password
    • Create the credential in Configuration > Settings > Credentials before adding the provider
  8. Click Save.

ServiceNow Endpoint Format

The endpoint should be your ServiceNow instance base URL:

  • Correct: https://instance.service-now.com
  • Correct: https://dev12345.service-now.com
  • Incorrect: https://instance.service-now.com/api/now/table/incident (do not include API path)
  • Incorrect: http://instance.service-now.com (use HTTPS, not HTTP)

Hydden Discovery automatically appends /api/now/table/incident to the endpoint when creating tickets.

Creating a ServiceNow Workflow

Connection Succeeded example

Connection Failed example

To create a ServiceNow workflow:

  1. Navigate to Configuration > Automate.
  2. On the Workflow tab, select + Add New.
  3. For Name, enter a descriptive workflow name (e.g., "Create Ticket for High-Risk Threats").
  4. For Description, provide an optional workflow purpose description.
  5. From the Trigger drop-down, select the event that should create tickets:
    • Threat Detected: Create tickets when threats are detected
    • Collection Failed: Create tickets when data source collections fail
    • Data Validation Failed: Create tickets when data validation fails
    • Classification Added: Create tickets when specific classifications are applied
    • Other available triggers (see Triggers for complete list)
  6. From the Action drop-down, select your configured ServiceNow provider.
  7. For Short Description, provide a brief ticket title:
    • Supports template variables (e.g., Threat Detected: {ThreatName})
    • Keep concise (under 150 characters recommended)
    • This becomes the ServiceNow incident short_description field
    • Variables auto-display when you type { in the field
  8. For Description, provide detailed ticket content:
    • Supports template variables for event details
    • Include relevant context and remediation guidance
    • This becomes the ServiceNow incident description field
    • See Triggers for available variables by trigger type
  9. (Optional) Configure filter options to scope the workflow (see Workflows)
  10. Click Save.
  11. Toggle the workflow switch to on to activate it.

NOTE

A collection must be run successfully at least once before actions can be triggered.

ServiceNow API Integration

API Endpoint

Hydden Discovery uses the ServiceNow Table API to create incidents:

  • Full Endpoint: {endpoint}/api/now/table/incident
  • HTTP Method: POST
  • Authentication: HTTP Basic Auth
  • Content-Type: application/json
  • Accept: application/json

Request Payload

Hydden Discovery sends the following JSON payload to ServiceNow:

json
{
  "short_description": "Rendered short description with variables",
  "description": "Rendered description with variables and details"
}

ServiceNow automatically populates other incident fields with default values:

  • State: New (1)
  • Impact: 3 - Low (default)
  • Urgency: 3 - Low (default)
  • Priority: 5 - Planning (calculated from Impact and Urgency)
  • Caller: The authenticated ServiceNow user
  • Assignment Group: None (can be set via Business Rules in ServiceNow)

Authentication

ServiceNow workflows use HTTP Basic Authentication:

  • Username: From configured credential
  • Password: From configured credential
  • Header: Authorization: Basic <base64(username:password)>

The credential is retrieved from Hydden Discovery's credential vault using the provider's credential_id and credential_type.

Response Handling

  • Success: HTTP 200 or 201 status code indicates successful incident creation
  • Failure: Any other status code is logged as an error
  • No Retry: ServiceNow integration does not automatically retry failed requests (to avoid duplicate tickets)

Template Variables

ServiceNow workflows support all template variables available for the selected trigger type. Use {VariableName} syntax to include dynamic event data.

Example Templates

Threat Detection Ticket:

Short Description: SECURITY ALERT: {ThreatName} detected on {Platform}
Description:
Threat Name: {ThreatName}
Threat ID: {ThreatID}
Platform: {Platform}
Affected Accounts: {Accounts}
Risk Score: {Score}
Site: {Site}
Detection Time: {JobTime}

Action Required:
1. Review affected accounts: {Names}
2. Investigate threat details in Hydden Discovery
3. Remediate identified risks
4. Update ticket status when resolved

Collection Failure Ticket:

Short Description: DATA COLLECTION FAILED: {JobName} on {Platform}
Description:
Collection Job: {JobName}
Platform: {Platform}
Site: {Site}
Error Message: {JobError}
Job ID: {JobID}
Last Successful Run: {LastRun}

Action Required:
1. Review error message and identify root cause
2. Verify data source credentials and connectivity
3. Retry collection after resolving issue
4. Monitor for successful completion

Data Validation Failure Ticket:

Short Description: DATA QUALITY ISSUE: {JobName} validation failed
Description:
Validation Job: {JobName}
Platform: {Platform}
Site: {Site}
Error: {JobError}
Job ID: {JobID}

Action Required:
1. Review data quality error details
2. Check data source configuration
3. Validate data schema requirements
4. Re-run validation after corrections

See Triggers for complete variable lists by trigger type.

ServiceNow Configuration Best Practices

ServiceNow User Configuration

  1. Create Dedicated Integration User:

    • Username: hydden_integration or similar
    • Mark as "Web Service Access Only"
    • Assign itil role (or equivalent permissions for incident creation)
    • Use a strong, unique password
  2. Service Account Security:

    • Store credentials in Hydden Discovery credential vault
    • Rotate passwords periodically
    • Monitor user activity in ServiceNow audit logs
    • Restrict user permissions to minimum required (incident creation only)

ServiceNow Business Rules

Configure ServiceNow Business Rules to enhance ticket creation:

  1. Auto-Assignment: Automatically assign tickets to appropriate groups based on:

    • Short description keywords (e.g., "SECURITY ALERT" → Security Operations)
    • Custom fields populated by Hydden
    • Urgency and impact calculations
  2. Priority Calculation: Adjust priority based on:

    • Threat risk scores from Hydden
    • Platform criticality
    • Business impact
  3. Notification: Send notifications to:

    • Assigned groups
    • Managers
    • Security operations center (SOC)
  4. Custom Fields: Populate custom fields with:

    • Hydden threat IDs
    • Platform identifiers
    • Risk scores
    • Direct links back to Hydden Discovery

ServiceNow Incident Template

Consider creating a custom incident template in ServiceNow for Hydden Discovery tickets:

  • Category: Security / Data Management
  • Subcategory: Threat Detection / Collection Issue
  • Configuration Item: Link to relevant CI in CMDB
  • Custom Fields: Add fields for Hydden-specific data (threat ID, risk score, etc.)

Common Use Cases

Security Operations

High-Risk Threat Tickets:

Name: Create Ticket for Critical Threats
Trigger: Threat Detected
Filter: threatid: critical-threats
Action: ServiceNow Production
Short Description: 🚨 CRITICAL THREAT: {ThreatName} on {Platform}
Description: [Detailed threat information with remediation steps]

Threat Resolution Tracking:

Name: Update Ticket on Threat Resolution
Trigger: Threat Resolved
Action: ServiceNow Production (with custom integration to update existing ticket)

Operations Monitoring

Collection Failure Alerts:

Name: Collection Failure Ticket
Trigger: Collection Failed
Action: ServiceNow Production
Short Description: Collection Failed: {JobName} on {Platform}
Description: [Error details and troubleshooting steps]

Data Quality Issues:

Name: Data Validation Failure Ticket
Trigger: Data Validation Failed
Action: ServiceNow Production
Short Description: Data Quality Issue: {JobName}
Description: [Validation error details]

Compliance & Audit

Privileged Account Discovery:

Name: New Privileged Account Alert
Trigger: Classification Added
Filter: classificationid: privileged-account
Action: ServiceNow Production
Short Description: New Privileged Account Discovered: {Name}
Description: [Account details and compliance review requirements]

Troubleshooting

IssueSolution
Tickets not createdVerify workflow is enabled, check ServiceNow provider configuration, confirm credentials are valid
Authentication failureVerify ServiceNow username and password, check user is marked as "Web Service Access Only", confirm user has itil role
403 Forbidden errorVerify ServiceNow user has permission to create incidents, check ACL rules in ServiceNow
404 Not Found errorVerify endpoint URL is correct (base instance URL, not full API path), check ServiceNow instance is accessible
Connection timeoutCheck network connectivity to ServiceNow instance, verify firewall rules, confirm endpoint URL uses HTTPS
Duplicate ticketsServiceNow workflows do not have built-in deduplication - implement Business Rules in ServiceNow to prevent duplicates
Variables not substitutingVerify variable names match trigger type (see Triggers), check syntax uses {Variable} format
Wrong incident fieldsServiceNow uses default values for fields not specified in payload - configure Business Rules to populate additional fields

Advanced Integration

Updating Existing Tickets

To update existing ServiceNow tickets instead of creating new ones:

  1. Configure a custom webhook integration instead of ServiceNow provider
  2. Use ServiceNow Table API to query for existing tickets
  3. Update tickets using PATCH method to /api/now/table/incident/{sys_id}
  4. Include logic to match Hydden events to ServiceNow ticket numbers

Custom Field Population

To populate custom fields in ServiceNow incidents:

  1. Modify the ServiceNow incident table to include custom fields
  2. Use ServiceNow Business Rules to extract data from description field
  3. Parse structured data from Hydden ticket descriptions
  4. Populate custom fields based on extracted data

Alternatively, use webhook integration for full control over payload structure.

CMDB Integration

Link Hydden Discovery tickets to ServiceNow CMDB:

  1. Map Hydden platforms/systems to ServiceNow Configuration Items (CIs)
  2. Include CI sys_id in ticket description or use Business Rules
  3. Automatically link incidents to affected CIs
  4. Enable impact analysis based on CI relationships

Hydden Documentation and Training Hub