<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikicyber.org/index.php?action=history&amp;feed=atom&amp;title=Draft%3AIntermediate_Service_Auditing</id>
	<title>Draft:Intermediate Service Auditing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikicyber.org/index.php?action=history&amp;feed=atom&amp;title=Draft%3AIntermediate_Service_Auditing"/>
	<link rel="alternate" type="text/html" href="https://wikicyber.org/index.php?title=Draft:Intermediate_Service_Auditing&amp;action=history"/>
	<updated>2026-09-24T04:43:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wikicyber.org/index.php?title=Draft:Intermediate_Service_Auditing&amp;diff=171&amp;oldid=prev</id>
		<title>MigrationBot: Backfill (v3.0 review queue): added to the review queue</title>
		<link rel="alternate" type="text/html" href="https://wikicyber.org/index.php?title=Draft:Intermediate_Service_Auditing&amp;diff=171&amp;oldid=prev"/>
		<updated>2026-09-22T05:42:42Z</updated>

		<summary type="html">&lt;p&gt;Backfill (v3.0 review queue): added to the review queue&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:42, 22 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l50&quot;&gt;Line 50:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 50:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Linux Service Auditing|027]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Linux Service Auditing|027]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Migrated from cypat.guide]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Migrated from cypat.guide]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Pending review]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikicyber:diff:1.41:old-91:rev-171:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>MigrationBot</name></author>
	</entry>
	<entry>
		<id>https://wikicyber.org/index.php?title=Draft:Intermediate_Service_Auditing&amp;diff=91&amp;oldid=prev</id>
		<title>MigrationBot: Import from cypat.guide: docs/linux/service_auditing/intermediate_service_auditing.md</title>
		<link rel="alternate" type="text/html" href="https://wikicyber.org/index.php?title=Draft:Intermediate_Service_Auditing&amp;diff=91&amp;oldid=prev"/>
		<updated>2026-09-18T17:06:22Z</updated>

		<summary type="html">&lt;p&gt;Import from cypat.guide: docs/linux/service_auditing/intermediate_service_auditing.md&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Submit}}&lt;br /&gt;
&amp;lt;!-- Migrated from https://cypat.guide/docs/linux/service_auditing/intermediate_service_auditing (source: docs/linux/service_auditing/intermediate_service_auditing.md) --&amp;gt;&lt;br /&gt;
Author(s): Matthias Lee (ml2322) &amp;lt;br /&amp;gt; Last Updated: 7-17-2025&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;mw-collapsible mw-collapsed wikitable&amp;quot; style=&amp;quot;width:100%&amp;quot;&lt;br /&gt;
! Recommended Prerequisites (click to expand)&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Introduction to Service Auditing&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== More robust service auditing techniques ===&lt;br /&gt;
&lt;br /&gt;
==== Directly interact with systemd ====&lt;br /&gt;
&lt;br /&gt;
A better way to look for unauthorized services is to look at &amp;#039;&amp;#039;all&amp;#039;&amp;#039; enabled services on the system, and see which ones are not supposed to be there. You can do this with &amp;lt;code&amp;gt;systemctl&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;user@system:~$ systemctl list-unit-files | less&lt;br /&gt;
UNIT FILE                                  STATE           VENDOR PRESET&lt;br /&gt;
proc-sys-fs-binfmt_misc.automount          static          enabled      &lt;br /&gt;
-.mount                                    generated       enabled      &lt;br /&gt;
boot-efi.mount                             generated       enabled      &lt;br /&gt;
dev-hugepages.mount                        static          enabled      &lt;br /&gt;
....&lt;br /&gt;
nginx.service                              enabled         enabled&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Here, we can see that I have &amp;lt;code&amp;gt;nginx&amp;lt;/code&amp;gt; enabled.&lt;br /&gt;
&lt;br /&gt;
==== Baselines ====&lt;br /&gt;
&lt;br /&gt;
The one problem with the above solution is that it&amp;#039;s tedious to look through every enabled service and see which aren&amp;#039;t supposed to be there. The solution to this is to, on a clean machine of the same OS, export the systemctl services to a baseline:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;user@clean-system:~$ systemctl list-unit-files &amp;gt; baseline.txt&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
You can then copy this file onto the machine you&amp;#039;re working with. Now, on that machine, do the same command to export the current services to a list too:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;user@system:~$ systemctl list-unit-files &amp;gt; services.txt&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Now, you can use diff to compare them:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;user@system:~$ diff baseline.txt services.txt&lt;br /&gt;
329a330&lt;br /&gt;
&amp;gt; nginx.service                              enabled         enabled&lt;br /&gt;
380c381&lt;br /&gt;
&amp;lt; 377 unit files listed.&lt;br /&gt;
---&lt;br /&gt;
&amp;gt; 378 unit files listed.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
And we see here that &amp;lt;code&amp;gt;nginx&amp;lt;/code&amp;gt; is, again, enabled, and should be removed.&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux Service Auditing|027]]&lt;br /&gt;
[[Category:Migrated from cypat.guide]]&lt;/div&gt;</summary>
		<author><name>MigrationBot</name></author>
	</entry>
</feed>