# linux-audit

> Complete security audit for Linux systems and WSL2. Checks kernel CVEs, SSH, firewall, users, and more hardening in one shot.

linux-audit is a paid AI agent skill on Agensi by SkillBill, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [SkillBill](https://www.agensi.io/creators/f)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-06-29
- Security: scan passed (2026-06-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/linux-audit
- Tags: linux-security, server-hardening, cve-scanner, sysadmin, linux, security, hardening, audit

## About this skill

Run a full Linux server security audit in seconds. This skill inspects your server across 12 security domains and delivers a severity-rated report with exact fix commands, no manual research needed.

What gets checked:
- Kernel CVEs — Copy Fail (CVE-2026-31431), Dirty Frag (CVE-2026-43284/43500), and Fragnesia (CVE-2026-46300), the three critical root escalation vulnerabilities from April–May 2026
- SSH hardening — PermitRootLogin, PasswordAuthentication, MaxAuthTries, port
- Firewall — UFW status, default rules, open ports
- Users & root — UID 0 accounts, empty passwords, sudoers wildcards
- Fail2ban — installed and active?
- DNS & hostname — reachable nameservers, correct hostname
- NTP sync — clock synchronized?
- Kernel parameters — rp_filter, tcp_syncookies, randomize_va_space
- Unnecessary services — telnet, rsh, FTP, and other legacy daemons
- File permissions — world-writable files, unexpected SUID binaries
- System patches — pending security updates

WSL2 support included. The skill automatically detects WSL and skips incompatible checks (UFW, auditd, NTP) with a clear explanation of what was skipped and why.

Output is a structured report with 🔴 Critical / 🟠 High / 🟡 Medium / 🟢 OK ratings and copy-paste fix commands for every finding.

Works with Claude Code, Codex CLI, Cursor, OpenClaw, and all SKILL.md-compatible agents.

## Known limitations

WSL2: UFW, auditd, and NTP checks are skipped (kernel limitations).
Requires sudo access for full audit, some checks return partial results without it.
IPsec/VPN users should not apply the esp4/esp6 module blacklist without testing first.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the linux-audit skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specifically does the linux-audit skill do for my server security?

This skill performs an automated 12-domain security scan of your Linux environment, identifying vulnerabilities like the 2026 Kernel CVEs and SSH misconfigurations, while providing exact copy-paste commands to fix every issue found.

### Can I safely run this audit on a Windows Subsystem for Linux (WSL2) instance?

Yes, the skill features built-in logic that detects WSL2 environments and automatically skips incompatible system checks like UFW or hardware NTP, providing a tailored report that focuses only on what applies to your virtualized setup.

### Which AI agents and CLI tools are compatible with this skill?

The skill is fully compatible with any tool that supports the SKILL.md standard, including Claude Code, Cursor, Codex CLI, and OpenClaw, allowing you to run audits directly from your preferred AI terminal.

### Do I need to be a security expert to understand the audit results?

No deep technical research is required; the output provides a severity-rated report (Critical to OK) along with the specific shell commands needed to remediate each vulnerability immediately.

### What is required to set up and start using the linux-audit skill?

The skill is designed to be 'plug-and-play' with no complex installation—simply add the skill to your agent's library and execute it against any local or remote Linux environment you have access to.

### Does this skill cover the most recent 2026 Kernel CVEs?

The skill is specifically updated to detect the major April–May 2026 'Copy Fail,' 'Dirty Frag,' and 'Fragnesia' vulnerabilities, ensuring your server is protected against the latest known root escalation exploits.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
