agentleFS
sentineldesksentineldesk/agent/skills/security-audit/SKILL.md

security-audit

Skill0 starsChanged 3 months agoApache-2.0View on GitHub

Audit and harden this Linux machine — users and SSH, firewall, open ports, file permissions, updates, backups — working read-first through the MCP tools. Inspection runs freely; every change is explained and confirmed before it runs, including how it could lock you out. Use when asked to audit, harden, or secure the box.

  • Reads credentials

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-stories, story-done and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • lilangMaxSkill

    create-stories

    Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.

    Also in 11 projects that use this

  • lilangMaxSkill

    story-done

    End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.

    Also in 11 projects that use this

  • nicepkgSkill

    community-led-growth

    Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.

    Also in 5 projects that use this

  • nicepkgSkill

    ph-community-outreach

    Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.

    Also in 5 projects that use this

  • +7 more from lilangMax
  • +1 more from nicepkg

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 173 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Firewall: add the allow rules (SSH first) *before* setting default-deny.

    line 49
  2. Very specific:

    After any change, re-run the matching read step and show the before/after.

    line 58

“Common” is measured: kept by at least 6 in 10 of the 173 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

The rule that outranks the checklist

Inspection is read-only and runs freely. Every change is explained first — including how it could lock you out — and waits for a person, because the mistakes here are the ones that end your own access: a firewall default-deny before the SSH rule is in, PasswordAuthentication no before a key is proven to work, a permission change on /etc that breaks sudo. Use ask_human for the change itself, not for the reading.

Everything below runs through run_command (visible, exit code returned) or the dedicated tools. There is no quiet path and you should not want one — an audit whose steps are not on the record is not an audit.

Read first — this whole block is safe and needs no confirmation

  • Who has access: run_command "getent passwd | awk -F: '$3>=1000'", then the sudoers: read_file /etc/sudoers and list_directory /etc/sudoers.d.
  • SSH posture: read_file /etc/ssh/sshd_config — look for PermitRootLogin, PasswordAuthentication, PermitEmptyPasswords, X11Forwarding. Read ~/.ssh/authorized_keys for every human account.
  • What is listening: run_command "ss -tulpn". Every listening port is a question: what is it, does it need to face the network, is it meant to be there. Cross-check with list_processes.
  • Firewall state: run_command "ufw status verbose" or run_command "nft list ruleset".
  • Pending updates: search_packages / run_command "apt list --upgradable", and whether unattended-upgrades is on.
  • SUID/SGID surface: run_command "find / -perm -4000 -type f 2>/dev/null" — a long read, so run it as a job if it drags.
  • World-writable and unowned files in sensitive trees; ~/.ssh perms (700, keys 600); /etc/shadow is 640 root:shadow.

Summarize what you found and flag concerns before proposing a single change.

The change half — explain the lock-out, then ask

Order matters and each ordering is a way people lock themselves out:

  • Firewall: add the allow rules (SSH first) before setting default-deny. State the port you are keeping open and confirm you can still reach it.
  • SSH hardening: prove key auth works in a second session before disabling passwords or root login. Never both in one step.
  • Updates: a kernel or libc upgrade may need a reboot the person did not plan for — say so. Prefer a job (job_start) and read the result.
  • fail2ban / firewall daemons: install via install_packages, enable via service_control, then read the status back and prove the rules loaded.

After any change, re-run the matching read step and show the before/after. A hardening that returned ok and did not take is the worst outcome — the box looks secured and is not.

Scope

Audit and harden the machine you are on, and machines you were explicitly asked to reach (ssh_*). Do not scan or probe hosts nobody named. The trace protects you here: everything you ran is on the action log, which is exactly what makes an authorized audit defensible and an unrequested scan indefensible.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.