Zum Hauptinhalt springen
Intelligence View
⚡ tsecurity.de Intelligence

Audit Filtering on Executable Pathname

As part of Linux 4.3 we added the ability to selectively filter based on an executable pathname and not just the executable’s current PID. This post is a quick …

Beitrag
0
Seite
0
↗ Quelle (paul-moore.com)
Cloud & Tech-Stack · 3 Min. Lesezeit
Quelle: paul-moore.com
Rubrik: Unix & Linux Server

As part of Linux 4.3 we added the
ability to selectively filter based on an executable pathname and not just
the executable’s current PID. This post is a quick introduction to the new
functionality using ‘/usr/bin/echo’ as a simple example.



In order to use the new audit by executable functionality you need to make
sure you are running Linux 4.3 or greater, and the audit userspace tools
version 2.5 or greater. For this example I’m using a Fedora Rawhide system
with a Linux 4.5 development kernel
and the audit v2.5 userspace.



# uname -r
4.5.0-0.rc3.git0.1.secnext.1.fc24.x86_64
# rpm -q audit
audit-2.5-1.fc24.x86_64

First, I’m going to clear any existing audit rules from the system and create a
new rule to generate an audit event whenever the ‘/usr/bin/echo’ application
calls the write() system call; I’m also going to have the kernel mark these
records with the ‘testing’ key for easier parsing by ‘ausearch’ later. It is
important to note that this is just a simple example to demonstrate the
functionality, the new ‘-F exe=…’ audit filter can used as part of larger,
more complex rules.



# auditctl -D
# auditctl -a always,exit -F arch=b64 -S write -F exe=/usr/bin/echo -k testing

With the new rule loaded into the kernel we simply need to execute
‘/usr/bin/echo’. It is important to specify the full path for the echo
command as some shells, including bash, default to a built-in if an absolute
executable path for echo is not given.



# /usr/bin/echo "hello world!"

We can now check the audit log to see if any events have occurred that match
the ‘testing’ key we used when we created our new audit by executable rule.



# ausearch -i -k testing
----
type=CONFIG_CHANGE msg=audit(02/12/2016 16:41:00.931:160) : auid=root ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 op="add_rule" key=testing list=exit res=yes
----
type=PROCTITLE msg=audit(02/12/2016 16:41:08.347:161) : proctitle=/usr/bin/echo hello world!
type=SYSCALL msg=audit(02/12/2016 16:41:08.347:161) : arch=x86_64 syscall=write success=yes exit=13 a0=0x1 a1=0x561daea04030 a2=0xd a3=0x561daea04030 items=0 ppid=881 pid=1057 auid=root uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=pts1 ses=2 comm=echo exe=/usr/bin/echo subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=testing

In this case we see two audit events have been recorded in the audit log. The
first event consists of a single CONFIG_CHANGE record and was generated
when we loaded the new rule into the kernel. The second event was generated
by our newly created audit by executable rule and show ‘/usr/bin/echo’ using
the write() syscall. For such a simple application as ‘/bin/true’ this is
exactly what we would expect, and an indication that everything is working
correctly.

Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:
✏️ Information ergänzen
🛡️ Versioniert via CMS-Revisions-Engine (Freigabe-Queue für Gäste)

💬 Community-Diskussion & Kommentare

🌐 Zum Hauptchat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.

Security Briefing Kostenlos · 1-Klick-Abmeldung

Intelligence Digest — kostenlos

Täglich die wichtigsten Security-News · jederzeit abbestellbar

Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität

Verwandte Story-Cluster & Quellen (Vektor-KI)

6 Cluster
19 Quellen
Bluetti Black Friday: Drei empfehlenswerte Powerstations günstiger
ifun.de vor 22 Min.
18 weitere Quellen
CNETvor 21 Std.I Test Air Fryers. Cuisinart’s Glass Model Is a Steal at $84 for Black Friday t3n.devor 1 Std.Black Friday: Diese 9 Fritzboxen, Repeater und Co. sind wirklich günstig Golem.devor 53 Min.Anzeige: Leises Rudergerät zum Black Friday günstig wie nie bei Amazon heise online Newsvor 42 Min.Black Friday: Bei Saugrobotern kräftig sparen – Topmodelle zum Tiefstpreis AppleInsider Newsvor 41 Min.Black Friday price war drops Apple's M6 MacBook Pro to $1,779 WinFuture Newsvor 1 Std.Black-Friday-Deal: Lymow One Plus, der Panzer unter den Mährobotern netzwelt.devor 2 Std.Xiaomi TV F Pro im Black-Friday-Check: Wie gut ist der Fernseher-Hit wirklich? netzwelt.devor 1 Std.Wer eine Nintendo Switch 2 sucht, sollte sich diese Black-Friday-Aktion bei congstar anschauen Computer Bildvor 1 Std.Black Friday: Die besten Girokonto-Deals PC-WELTvor 1 Std.Amazon Black Friday Woche am Dienstag: Die besten Technik-Deals im Überblick PC-WELTvor 1 Std.Fritzbox 7690 mit Wi-Fi 7 bei Amazon im Black-Friday-Angebot: Jetzt deutlich günstiger Latest from TechRadarvor 1 Std.Proton VPN Plus vs Surfshark One: which plan is the better Black Friday deal right now? Latest from TechRadarvor 1 Std.Black Friday Oura Ring deals: The best of the deals so far, picked by a wearable-tech expert CNETvor 6 JahrenOur Favorite Blenders of 2026 Are on Sale Ahead of Black Friday CNETvor 1 Std.Brighten Up Your Day by Saving 20% Off Flashlights With Olight’s Black Friday Sale CNETvor 1 Std.Live: Black Friday Deals Are Here. Shop Expert Picks Across Tech, Everyday Essentials and More at Up to 60% Off Golem.devor 1 Std.Anzeige: Logitech-Tastatur MX Keys S am Black Friday zum Sensationspreis auf Amazon PC-WELTvor 2 Std.Luminar zum Black Friday: KI-Bildbearbeitung für nur 79,20 Euro
17 Quellen
CVE-2026-133764 | Twig up to 3.31.0 Sandbox toString sandbox (EUVD-2026-133913)
VulDB Updates vor 52 Min.
16 weitere Quellen
VulDB Updatesvor 52 Min.CVE-2026-133763 | Symfony Twig up to 3.31.0 Sandbox toString sandbox (EUVD-2026-133912) VulDB Updatesvor 51 Min.CVE-2026-132270 | Significant-Gravitas AutoGPT up to 0.8.4 Autopilot authorization (EUVD-2026-133583) VulDB Updatesvor 51 Min.CVE-2026-136123 | Friendica up to 2026.05-1 ActivityPub compactProfile input validation (EUVD-2026-133909) VulDB Updatesvor 51 Min.CVE-2026-136124 | welovemedia ffmate up to 2.0.x wildcardReplacer argument injection (EUVD-2026-133908) VulDB Updatesvor 1 Std.CVE-2026-72522 | Libexpat up to 2.8.2 Unicode *_toUtf16 out-of-bounds (EUVD-2026-54990 / Nessus ID 385514) VulDB Updatesvor 1 Std.CVE-2026-133773 | Twig markdown-extra up to 3.31.0 HtmlConverter html_to_markdown options resource consumption (EUVD-2026-133922) VulDB Updatesvor 1 Std.CVE-2026-133772 | Twig up to 3.30.x Sandbox sandbox (EUVD-2026-133921) VulDB Updatesvor 1 Std.CVE-2026-133770 | Twig up to 3.31.0 Sandbox __construct sandbox (EUVD-2026-133919) VulDB Updatesvor 1 Std.CVE-2026-133769 | Symfony html-extra up to 3.31.0 Cva Cva::apply sandbox (EUVD-2026-133918) VulDB Updatesvor 1 Std.CVE-2026-133767 | Twig up to 3.31.0 Sandbox __toString sandbox (EUVD-2026-133916) VulDB Updatesvor 1 Std.CVE-2026-133766 | Twig up to 3.31.0 Sandbox toString sandbox (EUVD-2026-133915) VulDB Updatesvor 1 Std.CVE-2026-133765 | Symfony Twig up to 3.31.0 Sandbox sandbox (EUVD-2026-133914) VulDB Updatesvor 2 Std.CVE-2026-13137 | Hitachi Energy RTU500 CMU up to 13.9.1 User management/REST resolver/SPA-Bus buffer overflow (EUVD-2026-133827) VulDB Updatesvor 2 Std.CVE-2026-131717 | Liquid Web, StellarWP Event Tickets Plugin up to 5.31.1 on WordPress authorization (EUVD-2026-131354) VulDB Updatesvor 2 Std.CVE-2026-126605 | Proton Pass up to 1.21.0 Face ID App Lock improper authentication (EUVD-2026-133826) VulDB Updatesvor 2 Std.CVE-2026-103406 | Juniper Session Smart Conductor up to 7.0.4/7.1.6/7.2.2 AutomatedProvisioner os command injection (EUVD-2026-112215)
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Audit Filtering on Executable Pathname

Thematisch verwandte Begriffe: Audit, Filtering, Executable, Pathname · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag