Skip to content

Conversation

@shivamvish160
Copy link
Contributor

Sensitive Data Detector – Flow Designer Action

This Flow Designer Action scans a specified field in a ServiceNow record for sensitive data patterns such as credit card numbers, Social Security Numbers (SSNs), and passwords. It helps prevent data leaks and supports compliance with data protection standards.

Features

  • Detects sensitive data using regex patterns.
  • Supports scanning for:
    • Credit Card numbers
    • SSNs
    • Password-like strings
  • Returns a list of matches and a flag indicating if sensitive data was found.

Inputs

Name Type Description
record_table String Table name (e.g., incident)
record_sys_id String Sys ID of the record
field_name String Field to scan

Outputs

Name Type Description
contains_sensitive_data Boolean true if sensitive data is found
matches_found Array of Strings List of matched patterns
error_message String Error message if any issue occurs

Example Usage

Use this action in a flow triggered by record creation or update. If contains_sensitive_data is true, you can:

  • Notify a compliance officer
  • Block email notifications
  • Log the incident for review

Here is the latest execution
This is the incident record in which i have provided dummy credit card date in short description field
Screenshot 2025-10-17 223656
And here is the execution
Screenshot 2025-10-17 223552

@github-actions
Copy link

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@bird-03 bird-03 self-assigned this Oct 17, 2025
@bird-03
Copy link
Contributor

bird-03 commented Oct 17, 2025

@shivamvish160

Thanks for your contribution!

Looks good and it can add a lot of value to sensitive data handling for various use cases. Specially for transaction and banking sector!!
Keep contributing with such ideas

@bird-03 bird-03 merged commit 400ac96 into ServiceNowDevProgram:main Oct 17, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants