All of lore.kernel.org
 help / color / mirror / Atom feed
* auditd rule error
@ 2018-06-11 12:39 Joshua Ammons
  2018-06-11 14:27 ` Steve Grubb
  0 siblings, 1 reply; 3+ messages in thread
From: Joshua Ammons @ 2018-06-11 12:39 UTC (permalink / raw)
  To: linux-audit@redhat.com


[-- Attachment #1.1: Type: text/plain, Size: 407 bytes --]

On a server running RHEL 7.2 the audit rules fail to load due to an error on this rule:

-a always,exit -F arch=b64 -S setuid -F a0=0 -F exe=/usr/bin/su -F key=10.2.5.b-elevated-privs-session

>From what I have found it seems "exe" may not be a valid field on this specific O.S. - is this correct?  Does anyone have any recommendations on how to track elevated privileges for all RHEL 6/7 systems?



[-- Attachment #1.2: Type: text/html, Size: 2321 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: auditd rule error
  2018-06-11 12:39 auditd rule error Joshua Ammons
@ 2018-06-11 14:27 ` Steve Grubb
  2018-06-11 14:49   ` Joshua Ammons
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Grubb @ 2018-06-11 14:27 UTC (permalink / raw)
  To: linux-audit

On Monday, June 11, 2018 8:39:26 AM EDT Joshua Ammons wrote:
> On a server running RHEL 7.2 the audit rules fail to load due to an error
> on this rule:
> 
> -a always,exit -F arch=b64 -S setuid -F a0=0 -F exe=/usr/bin/su -F
> key=10.2.5.b-elevated-privs-session
>
> From what I have found it seems "exe" may not be a valid field on this
> specific O.S. - is this correct?

That might have been targeted for the 7.4 kernel.

> Does anyone have any recommendations on how to track elevated privileges
> for all RHEL 6/7 systems?

The exe field is used for what we call audit by executable. This is for when 
you want to zero in on a particular program performing some action like 
calling accept. If you simply want notification that an application was 
invoked, the you would just setup a watch for execute.

-a always,exit -F path=/usr/bin/su -F perm=x -F key=10.2.5.b-elevated-privs-
session

That should work across RHEL 6 & 7. Also, you will get events from pam as the 
user authenticates and starts the session. So, you should be able to find 
those with this search:

ausearch --start today -x /usr/bin/su -m USER_START -w -i

-Steve

^ permalink raw reply	[flat|nested] 3+ messages in thread

* auditd rule error
  2018-06-11 14:27 ` Steve Grubb
@ 2018-06-11 14:49   ` Joshua Ammons
  0 siblings, 0 replies; 3+ messages in thread
From: Joshua Ammons @ 2018-06-11 14:49 UTC (permalink / raw)
  To: Steve Grubb, linux-audit@redhat.com

Perfect, thanks so much Steve.

Joshua Ammons Senior SIEM Engineer, Cybersecurity 
Global Business Services
Office 479.204.4472 | Mobile 479.595.2291
Joshua.Ammons@walmart.com

Walmart  
805 Moberly Ln
Bentonville, AR  72716
Save money. Live better.



-----Original Message-----
From: Steve Grubb [mailto:sgrubb@redhat.com] 
Sent: Monday, June 11, 2018 9:28 AM
To: linux-audit@redhat.com
Cc: Joshua Ammons <Joshua.Ammons@walmart.com>
Subject: EXT: Re: auditd rule error

On Monday, June 11, 2018 8:39:26 AM EDT Joshua Ammons wrote:
> On a server running RHEL 7.2 the audit rules fail to load due to an 
> error on this rule:
> 
> -a always,exit -F arch=b64 -S setuid -F a0=0 -F exe=/usr/bin/su -F 
> key=10.2.5.b-elevated-privs-session
>
> From what I have found it seems "exe" may not be a valid field on this 
> specific O.S. - is this correct?

That might have been targeted for the 7.4 kernel.

> Does anyone have any recommendations on how to track elevated 
> privileges for all RHEL 6/7 systems?

The exe field is used for what we call audit by executable. This is for when you want to zero in on a particular program performing some action like calling accept. If you simply want notification that an application was invoked, the you would just setup a watch for execute.

-a always,exit -F path=/usr/bin/su -F perm=x -F key=10.2.5.b-elevated-privs- session

That should work across RHEL 6 & 7. Also, you will get events from pam as the user authenticates and starts the session. So, you should be able to find those with this search:

ausearch --start today -x /usr/bin/su -m USER_START -w -i

-Steve

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-11 14:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-11 12:39 auditd rule error Joshua Ammons
2018-06-11 14:27 ` Steve Grubb
2018-06-11 14:49   ` Joshua Ammons

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.