Conditional Data Masking with Event Mapping

Using Event Mapping to perform field level data masking is an idea that I have toyed with since the release of Event Mapping in PeopleTools 8.55.  Event Mapping is a desirable tool for field level data masking in PeopleSoft because it can allow for bolt on runtime application logic to determine if a user should have the ability to view a particular piece of data.  I am unfortunately not here to say that Event Mapping can deliver us a (much needed) data masking framework for PeopleSoft applications.  However, I have recently found that Event Mapping is capable of satisfying one particular field level data masking requirement that I threw at it.  In this post, I will be sharing a proof of concept project that I’ve used to perform conditional data masking on a read only data field within a delivered Fluid page.

Project Overview and Requirements

My requirement is to mask the Social Security number that shows up on the Fluid Personal Details within Campus Solutions.

Personal Details Before

The field needs to get masked at component load time and it shall have the ability to be conditionally unmasked based on custom logic that evaluates the user’s session attributes.  The SSN field will get replaced with an image that provides an on click event.

Personal Details After

The outcome of the click event is determined at component load time and it provides for three possible outcomes: Click-To-Deny, Click-To-View, or Click-To-Challenge.  Below I will explain these three scenarios and how they are achieved.

Click-To-Deny:

This scenario is for when you do not want the user to have the ability to see the unmasked SSN.  When the user clicks the lock icon, a modal pops up that tells the user they are unauthorized to view the data.

Click To Deny

This scenario is achieved by discarding the SSN value in the component buffer at component load time and injecting an onload script that contains the logic to display the popup modal on the onclick event.

Click-To-View:

This scenario is used for when you want to allow for the user to view the data, but you still want the data to be masked at runtime.  This is desirable in circumstances where you want to prevent unnecessary sensitive data leakage.  If the user is performing a transaction on the page that requires the knowledge of the SSN, then the user can simply click to view the SSN.  Otherwise, the SSN will never be exposed to the client.

For the Click-To-View functionality to work, the original SSN value is encrypted at component load time and is communicated to the client’s browser via an injected onload script.  If the user needs to view the masked data, the encrypted value is sent to an IScript in the onclick event that will validate the request, log the transaction details, and respond back with the decrypted value.

Click-To-Challenge:

This is by far the most interesting scenario as it exercises a field level multifactor authentication solution for PeopleSoft.  In this scenario, if a user wants to view the masked data, then they will be prompted for a secondary form of authentication on the click event.

Click To Challenge

The Click-To-Challenge functionality is achieved via a combination of the methodologies used in the Click-To-Deny and Click-To-View functionalities.   One difference is that the popup modal contains an input form to allow receipt of the user’s secondary form of authentication.  The other difference is in the call to the IScript on the form submit.  The IScript behaves identical to the Click-To-View IScript except that it also validates the user’s secondary form of authentication before responding back with the decrypted value.

Project Implementation

If you are interested in implementing this proof of concept solution for the Campus Community Fluid Personal Details page in your Campus Solutions application, then follow the steps below.

CLICK HERE to download App Designer Project and import it into app designer. Map the included Related Content Service using Event Mapping to the Fluid Personal Details CREF.

Personal Details CREF

Map the PSM_MASK_PROFILE_SSN service to the Post Build/Post Process event

Map Event

Last, set the permission for the Click-To-View IScript and the Click-To-Challenge IScript.

Set Permissions

Note: You will need to implement a multi-factor authentication solution and extend the Click-To-Challenge IScript for it to serve its intended purpose.  I have documented how I’ve implemented Google Authenticator in PeopleSoft if you are interested in this form of secondary authentication.

It should be clear that this type of data masking solution will not work on every field in the application.  There are a couple of prerequisites that must be met in order for a solution like this to be considered.  This solution requires that the field to be masked must be read only and reside on a Fluid page.   Even then however, there still may be some nuances that will prevent this solution from working properly.  This demonstration was done on a Campus Solutions 9.2 application running PeopleTools 8.56.

Comments

Colton Fischer

This technique makes use of functionalities that are delivered in PeopleTools 8.56 and does not require any application-specific functionality to work. This technique will work on any HCM, FSCM, ELM, etc. PeopleSoft application as long as they are running PeopleTools 8.56.

Leave a comment

Your email address will not be published. Required fields are marked *

Loading...