Skip to content

Workflows

Workflows connect triggers (events) to action providers (responses) in Hydden Discovery's automation system. Each workflow defines when an action should execute, what action to perform, and how to format the payload using template variables.

Overview

Workflows are the core orchestration component of automation in Hydden Discovery:

  • Trigger: The event that initiates the workflow (threat detection, collection failure, classification change, etc.)
  • Action: The provider that executes the response (email, ServiceNow, webhook, vault)
  • Payload/Configuration: Template customization using variables from the trigger event
  • Filters: Optional rules to scope workflows to specific events (e.g., specific threat rules)
  • Approval: Optional requirement for manager approval before execution
  • Enable/Disable: Toggle workflows on or off without deleting configuration

List of configured workflows with on/off switches indicating which ones are active

Key Concepts

Workflow Lifecycle

  1. Event Generation: System event occurs (threat detected, collection failed, etc.)
  2. Trigger Matching: Workflow coordinator matches enabled workflows to the event type
  3. Filter Evaluation: Workflows with filter options check if event matches criteria
  4. Approval Check: If approval required, workflow waits for manager sign-off
  5. Template Rendering: Payload/configuration fields are rendered with event data
  6. Action Execution: Provider executes the action (send email, create ticket, vault account)
  7. Result Logging: Success or failure is logged for audit and troubleshooting

Workflow States

Workflows have two states controlled by the enable/disable toggle:

  • Enabled: Workflow actively processes matching events
  • Disabled: Workflow configuration is preserved but does not execute

Toggle workflows on or off using the switch in the workflow table grid.

Template Variable Substitution

Workflows support template variables using {VariableName} syntax. Variables are automatically populated from the triggering event.

Example:

Subject: Threat Detected: {ThreatName} on {Platform}
Body: Account {Name} triggered threat rule {ThreatName} with a score of {Score}.

When a threat is detected, variables are substituted with actual values:

Subject: Threat Detected: Dormant Admin Account on Active Directory
Body: Account admin_prod triggered threat rule Dormant Admin Account with a score of 85.

See Triggers for complete variable lists by trigger type.

Creating Workflows

Email Workflow (SendGrid/SMTP)

Email workflows send notifications when events occur.

To create an email workflow:

  1. In Hydden, navigate to Configuration > Automate.
  2. On the Workflows tab, click + Add New.
  3. For Name, enter a descriptive workflow name (e.g., "Collection Failure Alert").
  4. For Description, enter an optional description of the workflow's purpose.
  5. From the Trigger drop-down, select the event that should initiate this workflow:
    • Certification Status
    • Classification Added
    • Classification Removed
    • Collection Failed
    • Collection Succeeded
    • Data Validation Failed
    • Data Validation Succeeded
    • Entity Alert
    • Scheduled Report
    • Threat Detected
    • Threat Resolved
  6. From the Action drop-down, select your configured email provider (SendGrid or SMTP).
  7. For To, enter recipient email address(es):
    • Single recipient: admin@example.com
    • Multiple recipients: admin@example.com, ops@example.com
    • Template variables: {AssignedToEmail} — resolves to the event value at runtime. Empty values are skipped automatically.
  8. For Subject, enter the email subject line:
    • Supports template variables (e.g., Collection Failed: {JobName})
    • Keep under 100 characters for best email client compatibility
  9. For Body, enter the email message content:
    • Supports template variables for event details
    • Plain text format (HTML not currently supported)
    • Variables auto-display when you type { in the field
    • See Triggers for available variables
  10. (Optional) Configure filter options to scope the workflow (see Filtering Workflows)
  11. (Optional) Configure approval requirements (see Approval Workflows)
  12. Click Save.
  13. Toggle the workflow switch to on to activate it.

Example email workflow:

Connection Succeeded example

ServiceNow Workflow

ServiceNow workflows create incident tickets automatically when events occur. See ServiceNow Ticket Actions for detailed configuration.

To create a ServiceNow workflow:

  1. Navigate to Configuration > Automate.
  2. On the Workflows tab, click + Add New.
  3. For Name and Description, provide a descriptive workflow name and purpose.
  4. From the Trigger drop-down, select the event (e.g., Threat Detected, Collection Failed).
  5. From the Action drop-down, select your configured ServiceNow provider.
  6. For Short Description, provide a brief ticket title:
    • Supports template variables (e.g., Threat Detected: {ThreatName})
    • This becomes the ServiceNow incident short_description field
  7. For Description, provide detailed ticket content:
    • Supports template variables for event details
    • This becomes the ServiceNow incident description field
  8. Click Save.
  9. Toggle the workflow switch to on to activate it.

Example ServiceNow workflow:

Connection Succeeded example

Webhook Workflow

Webhook workflows send HTTP requests to external systems. See Using Webhooks for detailed configuration.

To create a webhook workflow:

  1. Navigate to Configuration > Automate.
  2. On the Workflows tab, click + Add New.
  3. For Name and Description, provide a descriptive workflow name and purpose.
  4. From the Trigger drop-down, select the event.
  5. From the Action drop-down, select your configured webhook provider.
  6. For Payload, provide the webhook request body:
    • Supports template variables
    • Can be JSON, XML, or any text format
    • If empty or {}, the entire event object is sent as JSON
  7. Click Save.
  8. Toggle the workflow switch to on to activate it.

Add to Vault Workflow

Add to Vault workflows automatically onboard accounts to PAM systems when classifications are applied. See Add to Vault for detailed configuration.

Filtering Workflows

Workflows can be scoped to specific events using filter options. This allows multiple workflows for the same trigger type, each handling different scenarios.

Threat Detection Filters

Filter threat workflows by specific threat rule identifiers:

  • Filter Option: threatid
  • Filter Value: The threat rule identifier (e.g., dormant-admin-90)

Example: Create separate workflows for high-severity vs. low-severity threats:

  • Workflow 1: Trigger = Threat Detected, Filter = threatid: high-risk-threats, Action = Create ServiceNow incident
  • Workflow 2: Trigger = Threat Detected, Filter = threatid: low-risk-threats, Action = Send email notification

Classification Filters

Filter classification workflows by specific classification rule identifiers:

  • Filter Option: classificationid
  • Filter Value: The classification rule identifier (e.g., auto-vault-privileged)

Example: Auto-vault accounts with specific classifications:

  • Workflow 1: Trigger = Classification Added, Filter = classificationid: add-to-cyberark, Action = Add to CyberArk vault
  • Workflow 2: Trigger = Classification Added, Filter = classificationid: add-to-beyondtrust, Action = Add to BeyondTrust vault

Entity Alert Filters

Filter entity workflows by entity identifier or alert type:

  • Filter Option: entityid - Filter by specific entity
  • Filter Option: entityalerttype - Filter by change type (Create, Update, Delete)

Example: Track privileged account creation:

  • Workflow 1: Trigger = Entity Alert, Filter = entityalerttype: Create, Action = Send email to security team

Approval Workflows

Workflows can require manager approval before executing actions. This is useful for high-impact actions like account vaulting or ticket creation.

Configuring Approvals

To require approvals for a workflow:

  1. When creating or editing a workflow, enable Approval Required.
  2. Specify the Approval Count: Number of managers who must approve.
  3. Specify Manager list: Email addresses or user identifiers of approvers.

Approval Process

  1. Event occurs: Trigger event is generated (e.g., Classification Added).
  2. Approval created: System creates an approval entity with correlation ID.
  3. Notification sent: Managers are notified of pending approval (via separate notification workflow).
  4. Managers approve: Managers sign off on the action via UI or API.
  5. Threshold met: Once ApprovalCount managers have approved, workflow executes.
  6. Action executes: The action provider performs the response (e.g., vault account).

NOTE

Approval workflows require additional configuration of notification workflows to alert managers. Contact your Hydden administrator for approval workflow setup assistance.

Special Workflow Considerations

Threat Detection Workflows

To activate threat detection workflows:

  1. Create the workflow with Threat Detected or Threat Resolved trigger.
  2. Enable the workflow (toggle to on).
  3. Enable workflow trigger on the threat detection rule:
    • Navigate to Configuration > Identify > Threat Detection
    • Edit the threat detection rule
    • Enable the Allow Workflow Trigger checkbox
    • Save the rule

Active allow workflow trigger checkbox

IMPORTANT

Threat workflows will not execute unless the Allow Workflow Trigger checkbox is enabled on the threat detection rule configuration.

Classification Workflows

To activate classification workflows:

  1. Create the workflow with Classification Added or Classification Removed trigger.
  2. Enable the workflow (toggle to on).
  3. Enable workflow trigger on the classification rule:
    • Navigate to Configuration > Identify > Classification Rules
    • Edit the classification rule
    • Enable the Allow Workflow Trigger checkbox
    • Save the rule

NOTE

Classification workflows will not execute unless the Allow Workflow Trigger checkbox is enabled on the classification rule configuration.

Collection and Validation Workflows

Collection and data validation workflows do not require special configuration on rules. They automatically execute when enabled.

NOTE

A collection must be run successfully at least once before Collection Failed triggers can fire. Similarly, a collection must complete at least once before Collection Succeeded triggers fire.

Managing Workflows

Editing Workflows

To modify an existing workflow:

  1. Navigate to Configuration > Automate.
  2. On the Workflows tab, find the workflow in the table.
  3. Click the Edit action in the workflow row.
  4. Update the desired fields.
  5. Click Update to save changes.

Enabling/Disabling Workflows

To activate or deactivate a workflow without deleting it:

  1. Navigate to Configuration > Automate.
  2. On the Workflows tab, find the workflow in the table.
  3. Toggle the switch in the workflow row:
    • On: Workflow is enabled and will process events
    • Off: Workflow is disabled and will not process events

Deleting Workflows

To permanently remove a workflow:

  1. Navigate to Configuration > Automate.
  2. On the Workflows tab, find the workflow in the table.
  3. Click the Delete action in the workflow row.
  4. Confirm deletion.

Testing Workflows

The best way to test a workflow is to trigger the associated event:

Testing Collection Workflows:

  1. Run a data source collection (or force a failure by using invalid credentials)
  2. Check that the workflow executes (check email inbox, ServiceNow instance, or webhook endpoint)

Testing Threat Workflows:

  1. Ensure threat detection rule has Allow Workflow Trigger enabled
  2. Run a collection that will trigger the threat rule
  3. Verify workflow executes when threat is detected

Testing Classification Workflows:

  1. Ensure classification rule has Allow Workflow Trigger enabled
  2. Manually apply classification to an account or run a collection that triggers the classification
  3. Verify workflow executes when classification is added

Workflow Execution Monitoring

Workflow execution is logged for audit and troubleshooting purposes:

  • Success: Workflow executed successfully and action completed
  • Failure: Workflow failed to execute (check logs for error details)
  • Pending Approval: Workflow awaiting manager approval
  • Disabled: Workflow is disabled and did not execute

Check the Hydden Discovery logs for detailed workflow execution information:

  • Workflow trigger events
  • Template rendering results
  • Action execution status
  • Error messages and stack traces

Common Use Cases

Security Operations

High-Severity Threat Response:

Name: Critical Threat Alert
Trigger: Threat Detected
Filter: threatid: critical-threats
Action: ServiceNow Production
Short Description: CRITICAL: {ThreatName} on {Platform}
Description: Threat detected requiring immediate attention...

Threat Resolution Notification:

Name: Threat Resolved Notification
Trigger: Threat Resolved
Action: Email to Security Team
Subject: Threat Resolved: {ThreatName}
Body: The threat {ThreatName} affecting {Accounts} has been resolved.

Operations Monitoring

Collection Failure Alert:

Name: Collection Failure Alert
Trigger: Collection Failed
Action: Email to Ops Team
Subject: Collection Failed: {JobName} on {Platform}
Body: Error: {JobError}
      Please investigate and retry the collection.

Daily Collection Summary:

Name: Collection Success Summary
Trigger: Collection Succeeded
Action: Email to Data Stewards
Subject: Collection Completed: {JobName}
Body: Collection completed successfully in {JobTime} seconds.

Privileged Access Management

Auto-Vault Privileged Linux Accounts:

Name: Auto-Vault Linux Root Accounts
Trigger: Classification Added
Filter: classificationid: linux-privileged
Action: Add to CyberArk
(Additional vault configuration fields...)

Auto-Vault Windows Admin Accounts:

Name: Auto-Vault Windows Admins
Trigger: Classification Added
Filter: classificationid: windows-admin
Action: Add to BeyondTrust
(Additional vault configuration fields...)

Compliance & Audit

Track Privileged Account Creation:

Name: New Privileged Account Alert
Trigger: Entity Alert
Filter: entityalerttype: Create
Action: Email to Compliance Team
Subject: New Account Created: {Name} on {Platform}
Body: A new account {Name} was created on {Platform} at {JobTime}.

Troubleshooting

IssueSolution
Workflow not executingVerify workflow is enabled (toggle to "on"), check trigger matches event type, ensure action provider is configured correctly
Threat workflow not firingVerify threat detection rule has "Allow Workflow Trigger" enabled, check that workflow is enabled, confirm threat rule matches accounts
Classification workflow not firingVerify classification rule has "Allow Workflow Trigger" enabled, check filter options match classification ID, ensure workflow is enabled
Variables not substitutingVerify variable names match available variables for trigger type (see Triggers), check template syntax uses {Variable} format
Email not sendingVerify email provider configuration, check credentials are valid, test network connectivity to mail server
ServiceNow ticket not createdVerify ServiceNow provider configuration, check endpoint URL and credentials, ensure ServiceNow user has incident creation permissions
Webhook failingVerify webhook provider configuration, check URL is accessible, review webhook endpoint logs for errors
Approval not workingVerify approval count and manager list are configured, check that managers have signed off, review approval entity in datastore
Wrong action executingCheck that correct action provider is selected in workflow, verify action provider kind matches workflow type

Best Practices

Workflow Design

  • Descriptive Names: Use clear, descriptive workflow names that indicate trigger, action, and purpose
  • Focused Workflows: Create separate workflows for different scenarios rather than one complex workflow
  • Test Workflows: Test workflows with sample events before enabling in production
  • Document Purpose: Use the description field to explain the workflow's purpose and scope

Filter Strategy

  • Specific Filters: Use filters to create targeted workflows for specific threat rules or classifications
  • Avoid Over-Filtering: Don't create too many filters that make workflows hard to manage
  • Default Workflows: Consider creating a "catch-all" workflow without filters for general cases

Template Design

  • Clear Messages: Write clear, actionable messages in email bodies and ticket descriptions
  • Include Context: Include relevant variables that help recipients understand the event
  • Action Items: Provide clear next steps or remediation guidance in notifications
  • Test Variables: Verify all variables work as expected before enabling workflow

Operational Management

  • Enable Gradually: Enable workflows gradually in production to avoid alert fatigue
  • Monitor Execution: Review workflow execution logs regularly to ensure they're working as expected
  • Update Templates: Keep email bodies and ticket descriptions up-to-date as processes change
  • Review Periodically: Periodically review workflows to ensure they're still relevant and effective

Hydden Documentation and Training Hub