How to Mask Sensitive Data in Attachment Files (e.g., Driver License, Passport) in Incident Table?

DhinakarS
Kilo Contributor

Hi everyone,

I'm working on a use case in my ServiceNow Personal Developer Instance (PDI) where I need to automatically mask sensitive information (like driver license and passport numbers) when a file is attached to the Incident table.

Goal:

  • Detect patterns like:

    • Driver license number: VIC1234567

    • Passport number: N1234567

  • Automatically mask them as:

    • VIC*******

    • N*******

  • This should happen immediately after the file is attached.

This is my requirement can I get any suggestions how can be it done.
Thanks in advance. 

3 REPLIES 3

Robert H
Mega Sage

Hello @DhinakarS ,

 

That's not possible.

ServiceNow has data redaction features, but only for inbound emails and data added to a record itself.

Not for attachments. Also consider that someone could just attach a screen shot that shows these sensitive numbers.

 

Regards,

Robert

Ankur Bawiskar
Tera Patron
Tera Patron

@DhinakarS 

you can't read attachment content and mask particular info within it.

why not use Column level encryption and show attachments only to the users passing encryption context?

check these links

Column Level Encryption in ServiceNow 

Encryption Breakthrough: Secure ServiceNow Attachments with CLE 

Column Level Encryption 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Maik Skoddow
Tera Patron
Tera Patron

Hi @DhinakarS 

you forgot to mention which types of files you are referring to: Plain Text? Images? Write protected PDFs?

Do you really expect for all these different types a generic solution?

Maik