RMS encrypted standard text file is not detected by Data Loss Prevention (DLP).
DLP 14.x, 15.x, Windows 10
This is expected behavior as the default detection for RMS Encryption is for
You can create a custom file type to detect the RMS text file encryption:
You can use the code below to create the custom file detection type:
$pfileTag=ascii('.pfile');
$pfileBytes=getBinaryValueAt($data, 0x0,6);
assertTrue($pfileTag==$pfileBytes);