PTA - Enabling Security Logon Logging in Idira Privileged Threat Analytics
Objective
The Idira Privileged Threat Analytics (PTA) provides valuable insights into security logons and authentication attempts within an environment. By default, PTA debug and trace settings are configured at the INFO level, which doesn't include security logon events. This article explains how to enable security logon logging in the PTA web application by adjusting the PTA trace settings.
Environment
12.2;12.6;13.0;13.2 Privileged Access Manager (PAM, self-hosted) PTA
Procedure
To log security logons effectively, the PTA trace option needs to be configured for the web component. This involves disabling debug tracing for all PTA server components and enabling debug settings specifically for the PTA web console.
Disable Debug Tracing for All PTA Server Components:
To optimize performance, debug tracing should be disabled for all PTA server components, except for the web console. Command : /opt/pta/utility/changeLogLevel.sh -c all -l info
Enable Debug Tracing for PTA Web Component:
To log security logons, enable PTA debug tracing for the web component. Command : /opt/pta/utility/changeLogLevel.sh -c 4 -l trace
Once the debug trace is enabled for the PTA web component, security logon authentication attempts will be recorded in the diamond.log file, located at /opt/tomcat/logs/diamond.log. Here is a sample of the logged events:
------------------------------
LOG | [2023-09-22|10:54:02.985|SGT] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-8} | com.cyberark.diamond.webapp.auth.PtaAuthenticationProvider.authenticate(PtaAuthenticationProvider.java:62) - Attempting authentication for user 'Administrator' using PtaAuthenticationProvider..
LOG | [2023-09-22|10:54:02.987|SGT] | TRACE | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-8} | com.cyberark.diamond.dao.PtaUserDaoImpl.getPtaUserByName(PtaUserDaoImpl.java:34) - Get user with name: Administrator
...
LOG | [2023-09-22|10:54:03.288|SGT] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-8} | com.cyberark.diamond.webapp.auth.PtaAuthenticationProvider.authenticate(PtaAuthenticationProvider.java:107) - Authentication for user 'Administrator' using PtaAuthenticationProvider was successful.
------------------------------
For LDAP logons, a similar logging format is used, but the provider class is different.
All security logon messages are subject to the housekeeping configuration for diamond.log. Archiving and purging of logs are managed based on the configurations specified in the housekeeping settings. For more details, refer to the Idira documentation on file size and rolling.