From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: Question about excluding rules Date: Thu, 20 Feb 2020 18:41:08 -0500 Message-ID: <2400991.fjeXDc8RHV@x2> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Thursday, February 20, 2020 6:36:46 PM EST Moshe Rechtman wrote: > Hello Experts, > > We have a big customer that facing the following issue on RHEL 6.2. > As per customer request I've configured the following rules: > > $ cat audit.rules > > # This file contains the auditctl rules that are loaded > # whenever the audit daemon is started via the initscripts. > # The rules are simply the parameters that would be passed > # to auditctl. > > # First rule - delete all > -D > > # Increase the buffers to survive stress events. > # Make this bigger for busy systems > -b 320 > > # Feel free to add below this line. See auditctl man page > > -a exit,always -F arch=b64 -F euid=0 -S execve -k rootact > -a exit,always -F arch=b32 -F euid=0 -S execve -k rootact > -a exit,always -F arch=b64 -F euid>=500 -S execve -k useract > -a exit,always -F arch=b32 -F euid>=500 -S execve -k useract > > > Audit start working as expected. Now customer is asking to exclude/ignore > the following from audit logs: > > type=SYSCALL msg=audit(1581664357.597:257516): arch=c000003e > syscall=59 success=yes exit=0 a0=3869161ea3 a1=7ffd15530c20 > a2=7ffd15534348 a3=3869617240 items=2 ppid=3350 pid=59266 > auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 > fsgid=0 tty=(none) ses=4294967295 comm="sh" exe="/bin/bash" > key="rootact" > type=EXECVE msg=audit(1581664357.597:257516): argc=3 a0="sh" a1="-c" > a2=2F62696E2F70732061757877777777 > type=CWD msg=audit(1581664357.597:257516): > cwd="/opt/microfocus/Discovery/bin" type=PATH > msg=audit(1581664357.597:257516): item=0 name="/bin/sh" inode=398 > dev=fd:01 mode=0100755 ouid=0 ogid=0 rdev=00:00 > nametype=NORMAL > type=PATH msg=audit(1581664357.597:257516): item=1 name=(null) > inode=4481 dev=fd:01 mode=0100755 ouid=0 ogid=0 rdev=00:00 > nametype=NORMAL > > ype=SYSCALL msg=audit(1581664357.601:257517): arch=c000003e syscall=59 > success=yes exit=0 a0=155c2f0 a1=155b8d0 a2=155b460 a3=18 items=2 > ppid=3350 pid=59266 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 > egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ps" > exe="/bin/ps" key="rootact" > type=EXECVE msg=audit(1581664357.601:257517): argc=2 a0="/bin/ps" > a1="auxwwww" type=CWD msg=audit(1581664357.601:257517): > cwd="/opt/microfocus/Discovery/bin" type=PATH > msg=audit(1581664357.601:257517): item=0 name="/bin/ps" inode=1451 > dev=fd:01 mode=0100755 ouid=0 ogid=0 rdev=00:00 > nametype=NORMAL > type=PATH msg=audit(1581664357.601:257517): item=1 name=(null) > inode=4481 dev=fd:01 mode=0100755 ouid=0 ogid=0 rdev=00:00 > nametype=NORMAL > > What would be the best way to exclude such audit? > Your help would be much appreciated. What's objectionable about these events? The fact that its got a key says they think they wanted it. -Steve From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D024C11D00 for ; Thu, 20 Feb 2020 23:44:04 +0000 (UTC) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 10081208CD for ; Thu, 20 Feb 2020 23:44:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QaoReckB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 10081208CD Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-audit-bounces@redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582242242; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=KILiC0MzuzLtgjnyGvOXafimhnztoHR4846fotC3nGc=; b=QaoReckBexul22C3u91GEUYZi81BjW7wB/LdV1EZMHgITC/jSmcB3BiU8OYMN2xDpM/a+1 2254mXW8+QpVO9UYtpcVmrRP7uLfQbehPeR2wuZTxTUFSt1TViTpxN3lE6cUzWkU4ycmzI OZ1c54nc+EoY9JhrI0yfIK5ZcMh+gD4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-48-wFJbximqO3qXfjrH2iQFDg-1; Thu, 20 Feb 2020 18:44:00 -0500 X-MC-Unique: wFJbximqO3qXfjrH2iQFDg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D7FF7804900; Thu, 20 Feb 2020 23:43:56 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8E05B19E9C; Thu, 20 Feb 2020 23:43:56 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E88BE35AF2; Thu, 20 Feb 2020 23:43:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 01KNfBo9022780 for ; Thu, 20 Feb 2020 18:41:11 -0500 Received: by smtp.corp.redhat.com (Postfix) id 3C2665C28E; Thu, 20 Feb 2020 23:41:11 +0000 (UTC) Received: from x2.localnet (ovpn-116-254.phx2.redhat.com [10.3.116.254]) by smtp.corp.redhat.com (Postfix) with ESMTP id F35195C553; Thu, 20 Feb 2020 23:41:08 +0000 (UTC) From: Steve Grubb To: linux-audit@redhat.com Subject: Re: Question about excluding rules Date: Thu, 20 Feb 2020 18:41:08 -0500 Message-ID: <2400991.fjeXDc8RHV@x2> Organization: Red Hat In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: linux-audit@redhat.com X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: <20200220234108.qBlRUfqVhnimVP82YOFV-dNM41BVbWBdLS3o9vs89TE@z> On Thursday, February 20, 2020 6:36:46 PM EST Moshe Rechtman wrote: > Hello Experts, > > We have a big customer that facing the following issue on RHEL 6.2. > As per customer request I've configured the following rules: > > $ cat audit.rules > > # This file contains the auditctl rules that are loaded > # whenever the audit daemon is started via the initscripts. > # The rules are simply the parameters that would be passed > # to auditctl. > > # First rule - delete all > -D > > # Increase the buffers to survive stress events. > # Make this bigger for busy systems > -b 320 > > # Feel free to add below this line. See auditctl man page > > -a exit,always -F arch=b64 -F euid=0 -S execve -k rootact > -a exit,always -F arch=b32 -F euid=0 -S execve -k rootact > -a exit,always -F arch=b64 -F euid>=500 -S execve -k useract > -a exit,always -F arch=b32 -F euid>=500 -S execve -k useract > > > Audit start working as expected. Now customer is asking to exclude/ignore > the following from audit logs: > > type=SYSCALL msg=audit(1581664357.597:257516): arch=c000003e > syscall=59 success=yes exit=0 a0=3869161ea3 a1=7ffd15530c20 > a2=7ffd15534348 a3=3869617240 items=2 ppid=3350 pid=59266 > auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 > fsgid=0 tty=(none) ses=4294967295 comm="sh" exe="/bin/bash" > key="rootact" > type=EXECVE msg=audit(1581664357.597:257516): argc=3 a0="sh" a1="-c" > a2=2F62696E2F70732061757877777777 > type=CWD msg=audit(1581664357.597:257516): > cwd="/opt/microfocus/Discovery/bin" type=PATH > msg=audit(1581664357.597:257516): item=0 name="/bin/sh" inode=398 > dev=fd:01 mode=0100755 ouid=0 ogid=0 rdev=00:00 > nametype=NORMAL > type=PATH msg=audit(1581664357.597:257516): item=1 name=(null) > inode=4481 dev=fd:01 mode=0100755 ouid=0 ogid=0 rdev=00:00 > nametype=NORMAL > > ype=SYSCALL msg=audit(1581664357.601:257517): arch=c000003e syscall=59 > success=yes exit=0 a0=155c2f0 a1=155b8d0 a2=155b460 a3=18 items=2 > ppid=3350 pid=59266 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 > egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ps" > exe="/bin/ps" key="rootact" > type=EXECVE msg=audit(1581664357.601:257517): argc=2 a0="/bin/ps" > a1="auxwwww" type=CWD msg=audit(1581664357.601:257517): > cwd="/opt/microfocus/Discovery/bin" type=PATH > msg=audit(1581664357.601:257517): item=0 name="/bin/ps" inode=1451 > dev=fd:01 mode=0100755 ouid=0 ogid=0 rdev=00:00 > nametype=NORMAL > type=PATH msg=audit(1581664357.601:257517): item=1 name=(null) > inode=4481 dev=fd:01 mode=0100755 ouid=0 ogid=0 rdev=00:00 > nametype=NORMAL > > What would be the best way to exclude such audit? > Your help would be much appreciated. What's objectionable about these events? The fact that its got a key says they think they wanted it. -Steve -- Linux-audit mailing list Linux-audit@redhat.com https://www.redhat.com/mailman/listinfo/linux-audit