linux-security-audit

linux-security-audit is a skill for Claude Code from jonaslejon/linux-security-audit-plugin. It costs 149 tokens per session (5,851 once invoked), scanned B, original, MIT.

A read-only audit tool for checking how securely a Linux computer is configured. Linux is an operating system, and security hardening means reducing unsafe settings and exposed services.

In plain words
What is it for?
Use it to inspect the kernel and boot process, filesystems, access controls, accounts, sudo, SSH, firewall, open ports, TLS, web servers, services, and installed packages.
Why use it?
It ranks security risks across the host and explains what to fix, without changing configuration by default.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT variable. Also seen: reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the linux-security-audit plugin — 1 skill shipped together

Good fit Use it to inspect the kernel and boot process, filesystems, access controls, accounts, sudo, SSH, firewall, open ports, TLS, web servers, services, and installed packages.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add jonaslejon/linux-security-audit-plugin
Claude Code
/plugin install linux-security-audit

Made for: Claude Code.

Or install linux-security-audit, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for linux-security-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/jonaslejon/linux-security-audit-plugin/linux-security-audit/github.svg)](https://agentmods.dev/skills/jonaslejon/linux-security-audit-plugin/linux-security-audit)
Your own site
<a href="https://agentmods.dev/skills/jonaslejon/linux-security-audit-plugin/linux-security-audit"><img src="https://agentmods.dev/badge/skills/jonaslejon/linux-security-audit-plugin/linux-security-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for linux-security-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/jonaslejon/linux-security-audit-plugin/linux-security-audit"><img src="https://agentmods.dev/badge/skills/jonaslejon/linux-security-audit-plugin/linux-security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 149 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,851 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 4 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00149 $0.05851
Opus 5.5 $0.00060 $0.02340
Sonnet 5.5 $0.00030 $0.01170
Haiku 4.5 $0.00015 $0.00585

Measured 1mo ago against content hash 72a4d6a53cc5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

linux-security-audit scanned grade B with 4 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/lsa-collect.sh, scripts/lsa-trace.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Establish: which host(s), is root/sudo available, is it production, and is there a baseline to

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

SK="$(find -L "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}" "$HOME/.claude/plugins" "$HOME/.claude/skills" \

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Enumerates other installed skillslowAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

SK="$(find -L "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}" "$HOME/.claude/plugins" "$HOME/.claude/skills" \

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`proxy_ssl_verify` left at its off default, or a `curl -k` in a cron job are all "TLS is on" and
plugins/linux-security-audit/skills/linux-security-audit/SKILL.md · 349 lines

How it starts

The opening of the file, as written. The whole thing — 349 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Linux Security Audit

Audits how hardened a Linux system is and reports what to fix, in risk order, with the exact change and its blast radius. Auditing is the default; changing the system is a separate, explicitly approved step.

What this does to the system

Designed to be run against production, so here is the precise inventory rather than a blanket warning: an overstated caution just gets ignored.

scripts/lsa-collect.sh writes nothing by default. No config is modified, no service is started, stopped or reloaded, no package is installed. Two side effects worth knowing:

  • Active checks open loopback connections: a TLS ClientHello to each listening port and an HTTP HEAD to 127.0.0.1, plus NTP peer queries. Harmless, but they appear in the audited service's own logs as connections from localhost. --passive removes them entirely.
  • --apt-update is opt-in and off by default. It is the only thing that writes anything (refreshing /var/lib/apt/lists), and it exists only because verifying that every repo is signed requires it.

Load, not risk, is the real production consideration: the whole-filesystem walks (SUID, world-writable, secrets) and package checksum verification (dpkg --verify, rpm -Va) do read I/O proportional to disk size, and on a large host the package pass alone can run for minutes. Use --quick to skip both on large or slow storage. The output header reports total elapsed time and the slowest sections, so quote those rather than guessing.

scripts/lsa-trace.sh is different and is deliberately kept separate. --live is read-only, but --unit restarts a service and --boot arm writes audit rules and needs a reboot. Every mode runs --preflight first, prints exactly what it will do, and requires --yes. It refuses outright rather than half-working when hardening blocks it.

So: run the collector on production. Run the tracer on a staging clone unless you have a specific reason not to.

Rules of engagement

Read the full file on GitHub · 349 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 349 lines · 149 tokens per session scan B 72a4d6a53cc5

Subscribe to this mod's changes

linux-security-audit is a skill published in the GitHub repository jonaslejon/linux-security-audit-plugin (14 stars, last pushed 2mo ago), licensed MIT. It adds 149 tokens to every session and 5,851 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it B with 4 findings (asks for root, reads agent configuration directories, enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

component-fixtures

Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.

microsoft/vscode · 53 tokens