<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic USER_TTY - should it display NON root data ? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/USER-TTY-should-it-display-NON-root-data/m-p/419553#M51148</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have the Linux Auditd add working perfectly! IMO one of the best Splunk I have ever used.&lt;/P&gt;

&lt;P&gt;Quick question:  I can see all keystroke data executed by root by not by any other users. Is this expected behaviour? Or should I see keystrokes data for ALL users in the USER_TTY panel ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;-Alex&lt;/P&gt;</description>
    <pubDate>Sat, 26 May 2018 13:39:30 GMT</pubDate>
    <dc:creator>alexgwilkinson</dc:creator>
    <dc:date>2018-05-26T13:39:30Z</dc:date>
    <item>
      <title>USER_TTY - should it display NON root data ?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/USER-TTY-should-it-display-NON-root-data/m-p/419553#M51148</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have the Linux Auditd add working perfectly! IMO one of the best Splunk I have ever used.&lt;/P&gt;

&lt;P&gt;Quick question:  I can see all keystroke data executed by root by not by any other users. Is this expected behaviour? Or should I see keystrokes data for ALL users in the USER_TTY panel ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;-Alex&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 13:39:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/USER-TTY-should-it-display-NON-root-data/m-p/419553#M51148</guid>
      <dc:creator>alexgwilkinson</dc:creator>
      <dc:date>2018-05-26T13:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: USER_TTY - should it display NON root data ?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/USER-TTY-should-it-display-NON-root-data/m-p/419554#M51149</link>
      <description>&lt;P&gt;Thanks for the feedback &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/112763"&gt;@alexgwilkinson&lt;/a&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I think the issue might be that PAM is configured on the host/s to only log for the root user. To check, run the following search then look at the auid field: [|inputlookup auditd_indicies] [|inputlookup auditd_sourcetypes] type="USER_TTY"&lt;/P&gt;

&lt;P&gt;If there are only events for auid=0, then it supports the theory of a problem with the PAM config, specifically the "enable" parameter to pam_tty_audit.so. Please see an example here of how to configure it to log for all users: &lt;A href="https://github.com/doksu/splunk_auditd/wiki/About-Auditd#enable-tty-logging" target="_blank"&gt;https://github.com/doksu/splunk_auditd/wiki/About-Auditd#enable-tty-logging&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:42:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/USER-TTY-should-it-display-NON-root-data/m-p/419554#M51149</guid>
      <dc:creator>doksu</dc:creator>
      <dc:date>2020-09-29T19:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: USER_TTY - should it display NON root data ?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/USER-TTY-should-it-display-NON-root-data/m-p/419555#M51150</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Running the aforementioned search returns the auid populated e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;type=USER_TTY msg=audit(1527122575.703:2401630): pid=104782 uid=0 auid=571 ses=40954 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 data="ls"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have followed your documentation with a fine tooth comb. This is what I have for PAM (on RHEL 7.5):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/etc/pam.d/password-auth

session     required      pam_tty_audit.so enable=*

/etc/pam.d/system-auth

session     required      pam_tty_audit.so enable=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Interestingly the following command yields zero results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#sudo grep USER_TTY /var/log/audit/audit.log
#
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you point me in a direction as to how to make this work ? &lt;/P&gt;

&lt;P&gt;I presume from your response the expected behavior of the USER_TTY panel is to present non uid 0 keystroke data ?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;-Alex&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 02:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/USER-TTY-should-it-display-NON-root-data/m-p/419555#M51150</guid>
      <dc:creator>alexgwilkinson</dc:creator>
      <dc:date>2018-05-28T02:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: USER_TTY - should it display NON root data ?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/USER-TTY-should-it-display-NON-root-data/m-p/419556#M51151</link>
      <description>&lt;P&gt;Running the following I most definitely get user tty output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#sudo aureport --tty -ts today

...

336. 28/05/18 12:22:23 2490591 571 ? 43278 zsh &amp;lt;^L&amp;gt;,"cd /op",&amp;lt;tab&amp;gt;,"spl",&amp;lt;tab&amp;gt;,"bin",&amp;lt;tab&amp;gt;,&amp;lt;^U&amp;gt;,"cd",&amp;lt;backspace&amp;gt;,&amp;lt;backspace&amp;gt;,&amp;lt;backspace&amp;gt;,"cd doc",&amp;lt;tab&amp;gt;,"pro",&amp;lt;tab&amp;gt;,&amp;lt;nl&amp;gt;,"ls -l",&amp;lt;nl&amp;gt;,"cd spl",&amp;lt;tab&amp;gt;,"app",&amp;lt;tab&amp;gt;,&amp;lt;nl&amp;gt;,"cd Li",&amp;lt;tab&amp;gt;,&amp;lt;nl&amp;gt;,"ls ",&amp;lt;^U&amp;gt;,"less Li",&amp;lt;tab&amp;gt;,&amp;lt;^L&amp;gt;,&amp;lt;nl&amp;gt;,&amp;lt;^D&amp;gt;

...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 May 2018 02:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/USER-TTY-should-it-display-NON-root-data/m-p/419556#M51151</guid>
      <dc:creator>alexgwilkinson</dc:creator>
      <dc:date>2018-05-28T02:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: USER_TTY - should it display NON root data ?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/USER-TTY-should-it-display-NON-root-data/m-p/419557#M51152</link>
      <description>&lt;P&gt;The search in the User TTY dashboard uses user=* by default in the search arguments. That user field is automatically populated by the posix_identities lookup (via props.conf) by translating the auid field value to user, so if that lookup can't translate an auid to a user it may result it events not showing up in the dashboard. For this reason I suspect that the identities may not be populated correctly. I suggest checking your identities are being populated correctly by looking at each of the panes in the Help Dashboard.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 00:52:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/USER-TTY-should-it-display-NON-root-data/m-p/419557#M51152</guid>
      <dc:creator>doksu</dc:creator>
      <dc:date>2018-05-29T00:52:34Z</dc:date>
    </item>
  </channel>
</rss>

