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=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 8E471C2D0E4 for ; Tue, 17 Nov 2020 17:12:46 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A3C43238E6 for ; Tue, 17 Nov 2020 17:12:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A3C43238E6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=tlinx.org Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=linux-audit-bounces@redhat.com 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-25-bu7-wJONNaCopSiMpCdLvw-1; Tue, 17 Nov 2020 12:12:42 -0500 X-MC-Unique: bu7-wJONNaCopSiMpCdLvw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 048991800D42; Tue, 17 Nov 2020 17:12:38 +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 3595F10013D0; Tue, 17 Nov 2020 17:12:37 +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 3559D8C7A1; Tue, 17 Nov 2020 17:12:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0AHFNood019571 for ; Tue, 17 Nov 2020 10:23:50 -0500 Received: by smtp.corp.redhat.com (Postfix) id F2207A9F42; Tue, 17 Nov 2020 15:23:49 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id ECB4E5AB6B for ; Tue, 17 Nov 2020 15:23:47 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7CA6F102F1E0 for ; Tue, 17 Nov 2020 15:23:47 +0000 (UTC) Received: from Ishtar.sc.tlinx.org (ishtar.tlinx.org [173.164.175.65]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-415-czMC-9BrMq2QDOhaTdNmcA-1; Tue, 17 Nov 2020 10:23:43 -0500 X-MC-Unique: czMC-9BrMq2QDOhaTdNmcA-1 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 0AHFMBwL091093; Tue, 17 Nov 2020 07:22:13 -0800 Message-ID: <5FB3EAB0.3040503@tlinx.org> Date: Tue, 17 Nov 2020 07:22:24 -0800 From: L A Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: Paul Moore Subject: Re: Identifying thread/process termination References: <5549003.MhkbZ0Pkbq@x2> <1c3736b4-c72e-fc87-90af-3d336a8a6c64@magitekltd.com> <5FB21F35.4070309@tlinx.org> In-Reply-To: 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 2.79 on 10.11.54.5 X-loop: linux-audit@redhat.com X-Mailman-Approved-At: Tue, 17 Nov 2020 12:12:33 -0500 Cc: 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.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=linux-audit-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" On 2020/11/16 05:43, Paul Moore wrote: > The most important thing to keep in mind is that all of the threads > inside a process share the same memory space. It is the lack of a > strong, enforceable boundary between threads which makes it difficult, > if not impossible, to view threads as individual entities from a > security perspective. --- Depends on how much your security policy relies on recognizing abnormal behavior. If a program splits function across well defined areas by a named thread, one may develop a baseline of "normal" functionality associated with given threads. Determining that a thread is operating outside it's normal range can allow for a earlier detection and better monitoring of "safe" and/or secure operation. How programs operate, especially in regards to what work is normal for a given thread can only be done with thread level monitoring. While given threads _can_ access global-user memory, that involves how they are coded or programmed to run. That, in turn, can be used to help define boundaries and integrity levels of various processes in a system. For example, even though a logging thread might gather data from other threads, knowing that it can only write to output to specific configured destinations would allow swift detection of aberrations. -- Linux-audit mailing list Linux-audit@redhat.com https://www.redhat.com/mailman/listinfo/linux-audit