Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B0F84C6379F for ; Fri, 13 Jan 2023 23:06:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673651169; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=zJndiczg9qfv75vkCocFr1KuJUpkV3iq0tx8k6Q2r2U=; b=if551ubk92V6mYR2RfmAtRfwYDULX4Hvb3/WmgYAOt00hFbLIaLNRNIXLyW3DdEJUcQE0v IL/0hhHVT5gwWNb9VXWHX81/yMP9zHu6eM0ep7e+AZINtXsOdZC/b7JgQOvGZSXR97jUPi ClsKsdTH/EXr/nqC0oDG5+tRmGjCAjM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-397-LLy44X0WNjWeLUnxcDHJhg-1; Fri, 13 Jan 2023 18:06:06 -0500 X-MC-Unique: LLy44X0WNjWeLUnxcDHJhg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6DC361869B70; Fri, 13 Jan 2023 23:06:03 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8BB3B492B00; Fri, 13 Jan 2023 23:06:00 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 54EF519459C6; Fri, 13 Jan 2023 23:06:00 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id B4E64194706F for ; Fri, 13 Jan 2023 23:05:58 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A46741121315; Fri, 13 Jan 2023 23:05:58 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast09.extmail.prod.ext.rdu2.redhat.com [10.11.55.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9B8681121314 for ; Fri, 13 Jan 2023 23:05:58 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 79B0F280BCB3 for ; Fri, 13 Jan 2023 23:05:58 +0000 (UTC) Received: from aplegw01.jhuapl.edu (aplegw01.jhuapl.edu [128.244.251.168]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-502-qFLNZtD_OauNjOPRuGDadg-1; Fri, 13 Jan 2023 18:05:56 -0500 X-MC-Unique: qFLNZtD_OauNjOPRuGDadg-1 Received: from pps.filterd (aplegw01.jhuapl.edu [127.0.0.1]) by aplegw01.jhuapl.edu (8.17.1.19/8.17.1.19) with ESMTP id 30DM2wMN005464 for ; Fri, 13 Jan 2023 17:47:27 -0500 Received: from aplex24.dom1.jhuapl.edu (aplex24.dom1.jhuapl.edu [10.114.162.9]) by aplegw01.jhuapl.edu (PPS) with ESMTPS id 3n1k4muv34-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 13 Jan 2023 17:47:27 -0500 Received: from APLEX26.dom1.jhuapl.edu (10.114.162.11) by APLEX24.dom1.jhuapl.edu (10.114.162.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.20; Fri, 13 Jan 2023 17:47:27 -0500 Received: from APLEX26.dom1.jhuapl.edu ([fe80::8b67:5cb8:8fbe:fd18]) by APLEX26.dom1.jhuapl.edu ([fe80::8b67:5cb8:8fbe:fd18%12]) with mapi id 15.02.1118.020; Fri, 13 Jan 2023 17:47:27 -0500 From: "Wieprecht, Karen M." To: "Linux-audit@redhat.com" Subject: audit rules to help watch for potential threat? Thread-Topic: audit rules to help watch for potential threat? Thread-Index: AdknlqZjme7lhk3URhm4uyi6dzqNLg== Date: Fri, 13 Jan 2023 22:47:27 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.114.162.26] MIME-Version: 1.0 X-CrossPremisesHeadersFilteredBySendConnector: APLEX24.dom1.jhuapl.edu X-OrganizationHeadersPreserved: APLEX24.dom1.jhuapl.edu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-13_10,2023-01-13_02,2022-06-22_01 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-audit-bounces@redhat.com Sender: "Linux-audit" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Steve, Audit team, My colleagues and I were discussing ways we might better monitor for potential insider threat. We can easily see the commands our SAs run when they use sudo in front of the command, but if the sysadmin uses "sudo su -", then we don't have good visibility into the commands they perform while they are su'd unless there happens to be an audit rule monitoring the specific files/commands they are accessing/running. We've talked about possible way to improve our visibility in this situation, but most of the options we came up with are easily thwarted and/or would cause the logs to blow up to the point that it's difficult to spot nefarious activity. Some options we considered included having splunk monitor the shell history files, and possibly enabling ps auditing. Can you recommend any audit rules that would audit the interactive commands being issued by a sysadmin who is su'd as root without causing the logs to blow up? Any assistance you can provide would be much appreciated. Thank you, Karen Wieprecht The Johns Hopkins Applied Physics Laboratory -- Linux-audit mailing list Linux-audit@redhat.com https://listman.redhat.com/mailman/listinfo/linux-audit