Security Audit logo

Security Audit

Organization
serversathome
security-audit

Read-only security-posture review of a managed host or the whole estate: pending updates, listening services and open ports, SSH hardening, user accounts and sudo, failed logins, firewall state, and platform-specific exposure. Use whenever the user asks to audit, harden, or security-check a box, or asks "is this exposed", "what ports are open", "any security issues", "are we patched", or wants a hardening review. Diagnose and report first; propose fixes and get an explicit go-ahead before changing anything.

Overview

Publisherserversathome
Repositoryhomelabhero
Skill namesecurity-audit
Stars
104
Forks
4
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by serversathome on GitHub. Read the source before you install it.

Installation

Install the Security Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/security-audit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/serversathome/homelabhero.git /tmp/homelabhero
mkdir -p .claude/skills
cp -r /tmp/homelabhero/ops/.claude/skills/security-audit .claude/skills/security-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Security Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Security Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Security Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Security audit

Read-only first. Sweep a host (or all hosts) for common exposure, report findings ranked by risk, then propose hardening for the user to approve. Everything runs through hh run <alias> "<command>". Change nothing without an explicit go-ahead - this is diagnosis.

Checks (per host)

Patching:

apt-get -s upgrade 2>/dev/null | grep -c ^Inst      # Debian/Ubuntu/Proxmox: count
apt list --upgradable 2>/dev/null | tail -n +2      # what, specifically
# TrueNAS: midclt call update.check_available

Listening services / exposure (the highest-signal check):

ss -tulpn                                   # what listens, on which IPs
# Flag anything bound to 0.0.0.0 / :: that should be LAN- or localhost-only.

SSH hardening:

sshd -T 2>/dev/null | grep -Ei \
  'permitrootlogin|passwordauthentication|pubkeyauthentication|permitemptypasswords'
# Want: PermitRootLogin no|prohibit-password, PasswordAuthentication no,
#       PubkeyAuthentication yes, PermitEmptyPasswords no.

Accounts and privilege:

awk -F: '$3==0{print $1}' /etc/passwd               # UID-0 accounts (expect only root)
getent passwd | awk -F: '$7 ~ /(bash|sh|zsh)$/{print $1}'   # login shells
awk -F: '($2==""){print $1}' /etc/shadow    # empty passwords (should be none)
cat /etc/sudoers /etc/sudoers.d/* 2>/dev/null | grep -v '^#'  # broad NOPASSWD?

Intrusion signals:

lastb 2>/dev/null | head                    # failed logins
grep -iE 'fail|invalid user' /var/log/auth.log 2>/dev/null | tail

Firewall (is anything actually filtering?):

nft list ruleset 2>/dev/null || iptables -S 2>/dev/null || ufw status

Platform specifics

  • Proxmox: web UI on 8006 - who can reach it? pveum user list, is 2FA on, is the Datacenter/Node firewall enabled?
  • TrueNAS: exposed shares (SMB/NFS/iSCSI) and the UI on 443; midclt call user.query for accounts; is root login disabled and 2FA on? Use the truenas-middleware skill for method details.
  • Docker hosts: containers publishing to 0.0.0.0, running as root, or --privileged: docker ps then docker inspect the suspicious ones.

Report, then propose

  1. Rank findings by severity - service exposed on 0.0.0.0 or password SSH = high; missing updates or broad sudo = medium; cosmetic = low - and cite the evidence (the command output) for each.
  2. Propose specific, minimal fixes; for each say what it changes and the risk of applying it.
  3. Change nothing until the user approves. Then apply, re-check, and if it was a real remediation, add a runbook entry.

Note: the HomelabHero control plane has its own deliberate posture (the privilege-separated broker, the vault, the narrow sudoers rule). Auditing it is fine, but do not "fix" a finding by weakening the vault, broker, or sudoers - that separation is intentional.

Read CLAUDE.md for why, and in particular the section on how strongly each integration is fenced: the three tiers are not the same, and a finding that looks like "this one is less locked down than that one" is usually describing a difference that is deliberate. The capability catalogs carry the per-platform detail. (The repository README covers the same ground for a reader on GitHub, but it is not installed here - only ops/ is - so do not send anyone to it from this box.)

Frequently asked questions

What does the Security Audit AI skill do?

Read-only security-posture review of a managed host or the whole estate: pending updates, listening services and open ports, SSH hardening, user accounts and sudo, failed logins, firewall state, and platform-specific exposure. Use whenever the user asks to audit, harden, or security-check a box, or asks "is this exposed", "what ports are open", "any security issues", "are we patched", or wants a hardening review. Diagnose and report first; propose fixes and get an explicit go-ahead before changing anything.

Why use Security Audit on TypingMind?

Because you install it once and use it with any model. Security Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Security Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/security-audit. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Security Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Security Audit?

As many as you like. As long as a model supports skills, you can use Security Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Security Audit AI skill free?

It is published on GitHub by serversathome. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇