<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Root &amp; Secure on Medium]]></title>
        <description><![CDATA[Stories by Root &amp; Secure on Medium]]></description>
        <link>https://medium.com/@rootandsecure?source=rss-2154b98c2bbb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NEGLj4AumUL_yHTyIbr4JA.png</url>
            <title>Stories by Root &amp;amp; Secure on Medium</title>
            <link>https://medium.com/@rootandsecure?source=rss-2154b98c2bbb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:39:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rootandsecure/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Your AIDE Init Locked. Your Nessus Server Is Why.]]></title>
            <link>https://systemweakness.com/your-aide-init-locked-your-nessus-server-is-why-ae3f532c1ac1?source=rss-2154b98c2bbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae3f532c1ac1</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Root & Secure]]></dc:creator>
            <pubDate>Fri, 08 May 2026 00:00:39 GMT</pubDate>
            <atom:updated>2026-05-08T08:07:27.563Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PnATuGK4pdtwyoDvMNG7pA.png" /></figure><p>The CIS RHEL9 hardening playbook ran clean on two dev servers. Same playbook, same roles, same variables. Then it hit the Tenable server and locked mid-run on the AIDE init task. No error message that pointed anywhere useful. Just a process that wouldn’t finish.</p><p>This is what happened, why the Tenable server specifically caused it, and the fix that handles it cleanly.</p><h3>// what aide init actually does</h3><p>When Ansible runs aide --init, AIDE walks the entire filesystem, checksums every file it&#39;s configured to monitor, and writes the result to /var/lib/aide/aide.db.new.gz. On a clean dev server with a minimal footprint that takes 2–5 minutes. On a server running Nessus it can take 30 minutes or more — and that&#39;s when the lock conflict probability spikes.</p><p>AIDE and Nessus are competing for the same file handles. Nessus continuously reads plugin files, writes scan databases, and updates log files. AIDE is trying to open and checksum those same files. The lock isn’t always fatal — sometimes the playbook just hangs waiting for a file handle that never frees. Sometimes the aide --init process errors with a lock file conflict. Either way the task stalls.</p><h3>// why the dev servers didn’t have this problem</h3><p>The dev servers had no database, no active scanning agent, and no files being continuously written. AIDE init ran against a static filesystem. The Tenable server had:</p><ul><li>Nessus plugin directory — thousands of files, updated frequently</li><li>Active scan result databases being written during the run</li><li>Nessus process files constantly changing</li><li>Log files being appended in real time</li></ul><p>That’s significantly more filesystem activity than a vanilla RHEL server. The original Ansible task only asked one question before running aide --init:</p><pre>when: not aide_db.stat.exists</pre><p>Does aide.db.gz exist? No? Run init. That logic works fine when nothing else is touching the filesystem. It fails when Nessus is running because it doesn&#39;t account for a partially completed init, a currently running AIDE process, or files locked by another process.</p><h3>// the original task and why it failed</h3><pre>- name: Initialize AIDE database<br>  ansible.builtin.command: aide --init<br>  when: not aide_db.stat.exists<br>  async: 3600<br>  poll: 30</pre><p>One condition. No awareness of whether AIDE was already running. No check for aide.db.new.gz which is the intermediate file AIDE writes before the final database exists. If a previous run started aide --init and got interrupted, aide.db.new.gz exists but aide.db.gz doesn&#39;t — and the original task would fire again, creating a second AIDE process trying to init against the same filesystem at the same time.</p><p>That’s the exact scenario that produces the lock conflict on the Tenable server.</p><h3>// the fix — 5-task wait loop</h3><p>The fix replaces the single task with five tasks that cover every scenario:</p><pre>- name: &quot;1.3.1 | Check if AIDE database exists&quot;<br>  ansible.builtin.stat:<br>    path: /var/lib/aide/aide.db.gz<br>  register: aide_db</pre><pre>- name: &quot;1.3.1 | Check if AIDE init already in progress&quot;<br>  ansible.builtin.stat:<br>    path: /var/lib/aide/aide.db.new.gz<br>  register: aide_db_new</pre><pre>- name: &quot;1.3.1 | Wait for any running AIDE process to complete&quot;<br>  ansible.builtin.shell: |<br>    timeout=120<br>    while pgrep -x aide &gt; /dev/null &amp;&amp; [ $timeout -gt 0 ]; do<br>      sleep 5<br>      timeout=$((timeout - 5))<br>    done<br>    pgrep -x aide &gt; /dev/null &amp;&amp; echo &quot;running&quot; || echo &quot;clear&quot;<br>  register: aide_wait<br>  changed_when: false<br>  when:<br>    - not aide_db.stat.exists<br>    - not aide_db_new.stat.exists</pre><pre>- name: &quot;1.3.1 | Initialize AIDE database&quot;<br>  ansible.builtin.command: aide --init<br>  async: 3600<br>  poll: 30<br>  when:<br>    - not aide_db.stat.exists<br>    - not aide_db_new.stat.exists<br>    - aide_wait.stdout is defined<br>    - aide_wait.stdout == &#39;clear&#39;</pre><pre>- name: &quot;1.3.1 | Move AIDE database into place&quot;<br>  ansible.builtin.command: &gt;<br>    mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz<br>  when: &gt;<br>    not aide_db.stat.exists and<br>    (aide_db_new.stat.exists or<br>    (aide_wait.stdout is defined and aide_wait.stdout == &#39;clear&#39;))</pre><p>The original task asked one question. This asks three before running init:</p><p>Does aide.db.gz exist? If yes — done, skip everything. Does aide.db.new.gz exist? If yes — a previous init completed or is in progress, skip init and go straight to the move task. Is AIDE currently running? If yes — wait up to 120 seconds for it to finish, then check again.</p><p>Only when all three conditions are clear does init fire.</p><h3>// the nessus exclusion problem</h3><p>Fixing the init conflict surfaces a second issue specific to Tenable servers. Once AIDE initializes successfully, the daily aide --check cron will generate significant noise because Nessus plugin files update constantly. Every plugin update, every scan result write, every log rotation shows as a file integrity change.</p><p>The fix is excluding Nessus directories from AIDE monitoring entirely:</p><pre>- name: &quot;1.3.1 | Configure AIDE exclusions for Nessus&quot;<br>  ansible.builtin.blockinfile:<br>    path: /etc/aide.conf<br>    block: |<br>      !/opt/nessus/.*<br>      !/var/opt/nessus/.*<br>    marker: &quot;# {mark} AIDE NESSUS EXCLUSIONS&quot;<br>  when: ansible_hostname is search(&#39;nessus|tenable|scanner&#39;)</pre><p>Run this exclusion task before aide — init. If you add exclusions after initialization, the existing database reflects the full filesystem including Nessus files. Your next aide — check will flag every Nessus file as changed.</p><p>The exclusion targets the Nessus installation and data directories. AIDE still monitors everything that matters for compliance — OS binaries, system configs, PAM files, sudoers, SSH configuration. It just stops chasing Nessus plugin updates that will never stop changing.</p><h3>// what to watch for on other security tool servers</h3><p>The same conflict can occur on any server running a tool that continuously reads or writes large numbers of files. DTEX endpoint agent, Microsoft Defender, CrowdStrike Falcon, and other EDR agents all have similar filesystem activity patterns. Before running AIDE init on any server running a security agent:</p><p>Check what’s running:</p><pre>ps aux | grep -E &quot;nessus|falcon|dtex|defender|sentinel&quot;</pre><p>Check what the agent’s data directory looks like:</p><pre>du -sh /opt/nessus /var/opt/nessus 2&gt;/dev/null<br>find /opt/nessus -newer /etc/hostname -type f 2&gt;/dev/null | wc -l</pre><p>If the agent directory has thousands of recently modified files, add exclusions before init.</p><h3>// check, fix, verify</h3><p>Run the playbook with the updated AIDE tasks:</p><pre>ansible-playbook cis-rhel9-l1.yml --tags aide -l tenable_servers</pre><p>Confirm the database initialized correctly:</p><pre>ls -lh /var/lib/aide/aide.db.gz<br>aide --check | head -20</pre><p>Verify Nessus exclusions are in the AIDE config:</p><pre>grep -A3 &quot;NESSUS&quot; /etc/aide.conf</pre><p>Confirm no duplicate AIDE processes:</p><pre>pgrep -x aide</pre><p>The Tenable server isn’t a problem. It just required the hardening playbook to be aware of what else is running on it. Same CIS controls, same compliance target — the implementation just needs to account for the environment it’s running against.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae3f532c1ac1" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/your-aide-init-locked-your-nessus-server-is-why-ae3f532c1ac1">Your AIDE Init Locked. Your Nessus Server Is Why.</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Copy Fail: The Linux Kernel Flaw That Gives Anyone Root]]></title>
            <link>https://systemweakness.com/copy-fail-the-linux-kernel-flaw-that-gives-anyone-root-d0ad5abda125?source=rss-2154b98c2bbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0ad5abda125</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[Root & Secure]]></dc:creator>
            <pubDate>Fri, 01 May 2026 01:00:04 GMT</pubDate>
            <atom:updated>2026-05-02T23:19:15.401Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AWGn3rAaCak9jCrILW4dqw.png" /></figure><p>This one is different from the PackageKit flaw we covered last week. That was a daemon you could disable. This one lives in the kernel itself — and it’s been there since 2017.</p><p>CVE-2026–31431, dubbed Copy Fail, is a logic flaw in the Linux kernel’s cryptographic subsystem that lets a local unprivileged user gain full root access. A 732-byte Python script. 100% reliability in testing. Every major distribution affected. If you’re running Linux — desktop, server, cloud, container — you need to read this.</p><h3>// what the bug actually does</h3><p>The flaw lives in the authenc template inside the kernel&#39;s crypto processing pipeline. The attack combines two standard Linux interfaces: AF_ALG, which exposes kernel cryptographic functions to userspace, and splice(), which is normally used for efficient data transfer between file descriptors.</p><p>Under normal conditions those two interfaces have no business interacting the way this exploit makes them interact. The result is a controlled 4-byte write into the page cache of any readable file. Four bytes sounds small. Point those four bytes at a setuid-root binary and you control what that binary does. From there the path to root is straightforward.</p><p>4-byte page cache write + setuid-root binary = full root access. That’s the entire chain.</p><h3>// where it came from</h3><p>The root cause is a performance optimization introduced in kernel 4.14 in 2017. The change allowed in-place buffer reuse in the crypto pipeline — instead of maintaining separate input and output buffers, the kernel reused the same buffer. Faster, leaner, and quietly broken for nine years.</p><p>The Linux kernel maintainers fixed it by reverting that optimization entirely, restoring separate buffer handling. The fix is clean but it took a decade to find the problem.</p><h3>// how it was found</h3><p>Theori, an offensive security firm, found it using their AI-assisted penetration testing platform Xint Code. Automated analysis of the kernel’s cryptographic subsystem. Total time from start to discovery: approximately one hour.</p><p>Disclosed to the kernel security team March 23, 2026. Patched within a week. Public proof-of-concept released shortly after, which is why this is urgent now rather than theoretical.</p><p>This is the second major CVE disclosure in two weeks where an AI platform was credited as part of the discovery workflow. The pattern is real. Automated tools are compressing vulnerability research timelines from weeks to hours — which means the gap between patch availability and active exploitation is shrinking on both sides.</p><h3>// who is affected</h3><p>Theori confirmed successful exploitation against Ubuntu 24.04 LTS, Amazon Linux 2023, Red Hat Enterprise Linux 10.1, SUSE Linux Enterprise 16, and Debian. Their claim is that any Linux distribution shipping kernel 4.14 or later is potentially affected — which covers essentially everything released since late 2017.</p><p>High-risk environments that should treat this as a P1:</p><p>Multi-tenant servers, Kubernetes clusters, CI/CD pipelines, and any cloud environment executing user-provided code. In those contexts a low-privileged user hitting root can mean full infrastructure compromise or lateral movement across workloads.</p><h3>// how it compares to dirty pipe</h3><p>CVE-2022–0847, Dirty Pipe, used a similar mechanism — unauthorized page cache modification to escalate privileges. Copy Fail is a direct evolutionary step beyond it. Dirty Pipe had kernel version constraints and required specific patching states. Copy Fail spans a decade of kernels, requires no complex offsets or environment tuning, and achieved 100% reliability versus Dirty Pipe’s more conditional success rate.</p><p>If you patched Dirty Pipe and moved on, that mental model doesn’t transfer here. This is broader.</p><h3>// check, mitigate, verify, patch</h3><p>Work through this in order. Don’t skip to patch without confirming your exposure first.</p><p><strong>Step 1 — Check your kernel version</strong></p><pre>uname -r</pre><p>If the output is below 6.18.22, 6.19.12, or 7.0, you are running a vulnerable kernel. Note your current version before you do anything else.</p><p><strong>Step 2 — Check if the vulnerable module is loaded</strong></p><pre>lsmod | grep algif_aead</pre><p>If this returns output, the attack interface is active on your system right now.</p><p><strong>Step 3 — Apply the temporary mitigation</strong></p><p>This blocks the attack vector by preventing AF_ALG socket creation for the affected crypto interface. It is not a fix — it buys you time to patch.</p><pre># Block the module from loading on next boot<br>echo &quot;install algif_aead /bin/false&quot; &gt; /etc/modprobe.d/disable-algif.conf</pre><pre># Remove it from the running kernel immediately<br>rmmod algif_aead</pre><p><strong>Step 4 — Verify the mitigation took effect</strong></p><pre># Confirm module is no longer loaded<br>lsmod | grep algif_aead<br><br># Confirm the modprobe rule is in place<br>cat /etc/modprobe.d/disable-algif.conf</pre><p>lsmod should return nothing. The conf file should show install algif_aead /bin/false. If either check fails, the mitigation did not apply correctly — do not proceed assuming you are protected.</p><p><strong>Step 5 — Patch the kernel</strong></p><pre># RHEL / Rocky Linux<br>sudo dnf update kernel<br>sudo reboot<br><br># Debian / Ubuntu<br>sudo apt update &amp;&amp; sudo apt upgrade linux-image-generic<br>sudo reboot</pre><p><strong>Step 6 — Confirm patched kernel is running after reboot</strong></p><pre>uname -r</pre><p>Output should reflect the patched version. If it doesn’t, your bootloader may still be loading the old kernel — check grub configuration and confirm the default boot entry.</p><p>Do not remove the modprobe mitigation until you have confirmed the patched kernel is running. Keep both in place during the transition.</p><p><strong>Step 7 — Remove the temporary mitigation after patching</strong></p><p>Once you’ve confirmed the patched kernel is running, clean up the workaround:</p><pre>rm /etc/modprobe.d/disable-algif.conf<br>sudo dracut -f  # RHEL/Rocky — rebuild initramfs<br># or<br>sudo update-initramfs -u  # Debian/Ubuntu</pre><h3>// a note on advisories</h3><p>Some distributions have already pushed patched kernels without publishing formal advisories that reference CVE-2026–31431 by name. If you’re waiting on a Red Hat Security Advisory or Ubuntu USN before acting, you may be waiting longer than the risk warrants. Check for kernel updates directly and don’t gate your patching on advisory publication.</p><h3>// the takeaway</h3><p>Copy Fail is a kernel-level privilege escalation with near-perfect reliability, a public proof-of-concept, and a nine-year exposure window. The mitigation is a one-liner. The patch is a kernel update and a reboot. Neither is complicated.</p><p>The question isn’t whether this is serious. It is. The question is how fast you can work through the six steps above and confirm your systems are no longer running the vulnerable interface.</p><p>Check. Mitigate. Verify. Patch. Confirm.</p><p>In that order.</p><p><em>These posts come from real production environments — not labs, not documentation. If that’s the kind of writing you want more of, follow Root &amp; Secure on </em><a href="https://medium.com/@rootandsecure"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0ad5abda125" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/copy-fail-the-linux-kernel-flaw-that-gives-anyone-root-d0ad5abda125">Copy Fail: The Linux Kernel Flaw That Gives Anyone Root</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A 12-Year-Old Flaw, an AI, and Root Access: What CVE-2026–41651 Says About Linux Security]]></title>
            <link>https://systemweakness.com/a-12-year-old-flaw-an-ai-and-root-access-what-cve-2026-41651-says-about-linux-security-e22cbedcb978?source=rss-2154b98c2bbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e22cbedcb978</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Root & Secure]]></dc:creator>
            <pubDate>Sun, 26 Apr 2026 01:29:51 GMT</pubDate>
            <atom:updated>2026-05-02T17:04:14.381Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0N6uk1pjvYoFcOEo7hId2A.png" /></figure><p>PackageKit has been shipping with Linux distributions since 2014. It runs quietly in the background, handling software installs and updates, sitting between your package manager and whatever is requesting changes. Most sysadmins never think about it. That’s exactly the problem.</p><p>CVE-2026–41651, dubbed Pack2TheRoot, lived inside PackageKit for nearly 12 years before anyone noticed. Not because it was hidden — because nobody was looking. The Deutsche Telekom Red Team found it during an internal investigation, and what they found wasn’t subtle: a local user with limited privileges could install or remove system packages without authentication. From there, the path to root is short.</p><p>CVSS 8.8. Medium severity label. High real-world impact. You know how that math works.</p><h3>// how ai changed the scope of what they found</h3><p>After identifying the initial flaw, the researchers used Claude Opus to analyze PackageKit’s behavior further. The AI didn’t find the vulnerability — the red team did. But it helped them map exploitation scenarios they might not have formalized on their own, accelerating the path from “we found something” to “here’s how bad it can get.”</p><p>This is becoming a pattern. Security researchers are now citing AI tools openly in CVE disclosures and vulnerability write-ups. Not as a gimmick — as a legitimate part of the research workflow. Claude Opus being named in a formal disclosure from Deutsche Telekom’s red team is a signal that AI-assisted vulnerability analysis is no longer experimental. It’s operational.</p><p>For Linux sysadmins, this cuts both ways. The same tooling that helps researchers find and formalize flaws faster is also available to threat actors. The window between disclosure and weaponization is getting shorter.</p><h3>// what’s actually vulnerable</h3><p>PackageKit’s broad adoption is what makes this significant. Confirmed affected systems include Ubuntu desktop and server (including LTS releases), Debian Trixie 13.4, Rocky Linux, and Fedora desktop and server editions. The researchers were explicit: any distribution with PackageKit installed and enabled should be considered potentially at risk.</p><p>That covers a lot of ground. Desktop Linux environments almost always have it. Server builds vary — but it ends up in more places than it should.</p><h3>// the 12-year problem</h3><p>A daemon running with elevated privileges, processing package management requests, shipping in major distributions for over a decade — and nobody caught the authentication bypass until a red team went looking for it.</p><p>This isn’t an indictment of open source. It’s a reminder that widespread adoption is not the same as thorough audit. PackageKit was trusted because it was mature. Maturity without scrutiny is just age.</p><p>Local privilege escalation vulnerabilities tend to get less attention than remote code execution. They require an existing foothold, which feels like a higher bar. But in shared environments, developer workstations, multi-user servers, or any system where someone else has local access, that bar is lower than it looks.</p><h3>// what to do right now</h3><p>Check if PackageKit is installed:</p><pre># Debian/Ubuntu<br>dpkg -l | grep -i packagekit</pre><pre># RHEL/Rocky/Fedora<br>rpm -qa | grep -i packagekit</pre><p>Check if it’s running:</p><pre>systemctl status packagekit</pre><p>If you’re on a server and PackageKit has no business being there, disable it:</p><pre>sudo systemctl disable --now packagekit</pre><p>If you need it, patch to 1.3.5 or later:</p><pre># Debian/Ubuntu<br>sudo apt update &amp;&amp; sudo apt upgrade packagekit<br># RHEL/Rocky/Fedora<br>sudo dnf update packagekit</pre><p>Exploitation attempts cause an assertion failure in the PackageKit daemon, triggering a crash. If systemd is restarting it automatically, you may not notice — but the logs will show it:</p><pre>journalctl -u packagekit --since &quot;7 days ago&quot;</pre><p>Unexpected PackageKit daemon crashes are your indicator of compromise. If you see systemd restarting the service repeatedly, treat it as a potential exploitation attempt and investigate immediately.</p><h3>// the takeaway</h3><p>Pack2TheRoot isn’t the most sophisticated vulnerability ever disclosed. It doesn’t need to be. It’s a local privilege escalation in a daemon that’s been quietly trusted for 12 years, running on systems that were never hardened against it because nobody thought to look.</p><p>The fact that an AI helped formalize the exploitation scope isn’t the headline — it’s the footnote that tells you where security research is heading. Faster discovery. Faster formalization. Faster exploitation if you’re not keeping up.</p><p>Patch it. Disable it if you don’t need it. Check your logs.</p><p>That’s the job.</p><p><em>These posts come from real production environments — not labs, not documentation. If that’s the kind of writing you want more of, follow Root &amp; Secure on </em><a href="https://medium.com/@rootandsecure"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e22cbedcb978" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/a-12-year-old-flaw-an-ai-and-root-access-what-cve-2026-41651-says-about-linux-security-e22cbedcb978">A 12-Year-Old Flaw, an AI, and Root Access: What CVE-2026–41651 Says About Linux Security</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tenable Says Authentication Successful — So Why Is Credentialed Scan Still No?]]></title>
            <link>https://systemweakness.com/tenable-vm-authentication-successful-but-credentialed-scan-shows-no-b3742fece9a1?source=rss-2154b98c2bbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3742fece9a1</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Root & Secure]]></dc:creator>
            <pubDate>Thu, 16 Apr 2026 19:11:30 GMT</pubDate>
            <atom:updated>2026-05-02T23:42:13.933Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jTCLP-hpZF3fSxkKuRursg.png" /></figure><p>Authentication: Successful. Credentialed Scan: No. If you’ve seen that combination in Tenable VM and spent time troubleshooting credentials that were never the problem — this is the post you needed. The two columns are measuring completely different things, and confusing them is one of the most common compliance documentation mistakes in the platform.</p><h3>// what the two columns actually mean</h3><p>Tenable VM reports these separately for a reason. Authentication success means Tenable was able to log into the device using the credentials you provided — SSH key accepted, username and password validated. The session was established.</p><p>Credentialed scan success is a different question entirely. It means Tenable was able to run its plugins against the device using that authenticated session to collect system-level data — installed packages, registry keys, running services, patch levels, configuration values. For a credentialed compliance scan to work, Tenable needs plugins that are built to interrogate that specific device type.</p><p><em>Authentication success + Credentialed scan No = Tenable connected but has no plugins capable of running a compliance assessment on that device type.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iWsZPpLfYC8ZT8QXyQrHzw.png" /></figure><h3>// where this shows up in practice</h3><p>This situation is most common with network appliances and specialty management platforms — devices like Aruba AirWave, HPE iLO, certain network switches, and other vendor-specific management interfaces. These devices may accept SSH connections and authenticate Tenable’s scan account successfully, but Tenable simply doesn’t have compliance plugins written for them.</p><p>Aruba AirWave is a good example. The AMPCLI interface accepts SSH authentication, so Tenable will show authentication as successful. But because AirWave runs a locked-down management CLI rather than a standard Linux shell, Tenable’s Linux plugins can’t execute. The credentialed scan column shows No and no compliance data is collected.</p><p>This is not a configuration error. It is not a credentials error. It is a plugin coverage gap — and it’s important to document it correctly in your compliance posture rather than treating it as a scan failure to troubleshoot indefinitely.</p><h3>// what to do instead</h3><p>When you encounter this situation, Tenable compliance scanning is not the right tool for that device. The path forward is vendor-provided assessment tooling. Most network vendors publish their own security configuration guides and assessment tools that are designed specifically for their platforms:</p><p>For Aruba devices, HPE publishes security hardening guides and the AirWave platform has its own configuration audit capabilities. For network switches and routers from Cisco, Palo Alto, and others, CIS publishes device-specific benchmarks and the vendors provide their own compliance tooling.</p><p>The key is to document the gap formally. In a federal environment, a device that cannot be assessed by Tenable needs to be captured in your asset inventory with a note explaining why credentialed scanning is infeasible, and the alternative assessment method used. This is exactly the kind of entry that belongs in a POA&amp;M or as supporting documentation in a compliance exception.</p><h3>// the key takeaway</h3><p>Authentication successful but credentialed scan No is not something to keep troubleshooting from the Tenable side. Once you’ve confirmed credentials are valid and the device is reachable, recognize it as a plugin coverage limitation and route to vendor assessment tooling. Document it, note the alternative method, and move on. Spending hours trying to force a Tenable credentialed scan on a device it was never designed to assess is wasted effort.</p><p><em>These posts come from real production environments — not labs, not documentation. If that’s the kind of writing you want more of, follow Root &amp; Secure on </em><a href="https://medium.com/@rootandsecure"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3742fece9a1" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/tenable-vm-authentication-successful-but-credentialed-scan-shows-no-b3742fece9a1">Tenable Says Authentication Successful — So Why Is Credentialed Scan Still No?</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Ansible Playbook Passed. Your Server Is Still Not Hardened.]]></title>
            <link>https://systemweakness.com/why-your-ansible-cis-playbook-passes-on-one-host-and-fails-on-another-6437208da9db?source=rss-2154b98c2bbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6437208da9db</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Root & Secure]]></dc:creator>
            <pubDate>Thu, 16 Apr 2026 01:28:35 GMT</pubDate>
            <atom:updated>2026-05-02T23:40:33.090Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*puHsJOLHuzGHGlHR7RBWXQ.png" /></figure><p>You’ve run your CIS RHEL 9 Ansible playbook. The tasks complete without errors. You re-run the Tenable VM compliance scan expecting green — and several controls are still failing on certain hosts. The playbook ran. The task reported ok or changed. So why is Tenable still flagging it?</p><p>The answer is almost always the same: your servers were built from different base images, and those images shipped with different default values in their configuration files.</p><h3>// the problem</h3><p>When you use ansible.builtin.lineinfile to enforce a CIS control, you&#39;re typically looking for a specific string pattern and replacing or inserting a line. The assumption baked into most playbooks is that the target line either doesn&#39;t exist yet, or exists in a predictable format.</p><p>That assumption breaks when different base images have already written different values to the same file. A RHEL 9 image from one vendor might ship with PASS_MAX_DAYS 99999 in /etc/login.defs. Another image ships with PASS_MAX_DAYS 365 — same key, different whitespace, different value. A third image has the line commented out entirely.</p><p>Your lineinfile task with regexp: &#39;^PASS_MAX_DAYS&#39; will match the first two but silently behave differently depending on the existing value. On the commented-out variant it may insert a duplicate line rather than replacing the commented one, leaving Tenable to find a non-compliant value still present.</p><p>Key insight: Ansible reporting changed does not mean the file is now in a compliant state. It means Ansible made a change. Those are different things.</p><h3>// what it looks like in practice</h3><p>Here’s a common pattern that fails silently across mixed images:</p><pre>- name: &quot;5.4.1.1 | Ensure password expiration is 365 days or less&quot;<br>  ansible.builtin.lineinfile:<br>    path: /etc/login.defs<br>    regexp: &#39;^PASS_MAX_DAYS&#39;<br>    line: &#39;PASS_MAX_DAYS 365&#39;<br>    state: present</pre><p>This works fine on a clean image. But on a system where PASS_MAX_DAYS was previously commented out as #PASS_MAX_DAYS 99999, the regexp doesn&#39;t match the commented line, so Ansible appends a new PASS_MAX_DAYS 365 line — but the old commented value remains. Depending on how Tenable&#39;s plugin evaluates the file, it may still flag the control as non-compliant.</p><h3>// the fix</h3><p>The most reliable approach is to broaden your regexp to catch commented variants and alternate whitespace, and combine it with a backup or block replacement where the control is critical:</p><pre>- name: &quot;5.4.1.1 | Ensure password expiration is 365 days or less&quot;<br>  ansible.builtin.lineinfile:<br>    path: /etc/login.defs<br>    regexp: &#39;^#?\s*PASS_MAX_DAYS&#39;<br>    line: &#39;PASS_MAX_DAYS 365&#39;<br>    state: present</pre><p>The ^#?\s* prefix catches commented lines and any leading whitespace variation. This makes the task idempotent across images regardless of how the base was configured.</p><p>For controls where the entire block needs to be controlled — SSH configuration is a good example — prefer ansible.builtin.blockinfile or a templated config file over lineinfile. This removes the dependency on what the base image shipped entirely.</p><h3>// the broader lesson</h3><p>Before running a CIS playbook across a mixed fleet, inventory your base images and diff the relevant config files. A quick ad-hoc command against your host groups will surface the variance before you assume uniformity that doesn’t exist:</p><pre>ansible all -m shell -a &quot;grep PASS_MAX_DAYS /etc/login.defs&quot; -i inventory</pre><p>Know what you’re working with before you automate against it. The playbook is only as reliable as the assumptions it makes about the environment.</p><p><em>These posts come from real production environments — not labs, not documentation. If that’s the kind of writing you want more of, follow Root &amp; Secure on </em><a href="https://medium.com/@rootandsecure"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6437208da9db" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/why-your-ansible-cis-playbook-passes-on-one-host-and-fails-on-another-6437208da9db">Your Ansible Playbook Passed. Your Server Is Still Not Hardened.</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>