agentleFS
skyvanguardskyvanguard/infra-ops/skills/security-auditor/SKILL.md

security-auditor

Skill1 starsChanged 10 months agoMITView on GitHub

Use when the user wants to check system security posture, find misconfigurations, audit permissions, or verify hardening. Checks common security issues across platforms.

  • Reads credentials

62 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use infrastructure-setup, proofreader 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.
  • madeincartelSkill

    infrastructure-setup

    Sets up dev infrastructure for new projects: framework init, folder structure, Docker, pre-commit hooks (gitleaks), testing infrastructure, .gitignore.

    Also in 3 projects that use this

  • xcrrrSkill

    proofreader

    Use this skill when reviewing written content for grammar, spelling, punctuation, style consistency, and tone—before publishing, submitting, or sending. Trigger phrases: 'proofread this', 'check my writing', 'review this for errors', 'edit this email/report/essay'. Do NOT use when structural rewrites or content changes are needed—proofreading fixes surface errors, not substantive problems.

    Also in 3 projects that use this

  • peopleforresterSkill

    refactoring-guide

    Safe refactoring patterns and techniques. Use when the user wants to improve code structure, reduce duplication, or make code more maintainable without changing behavior. Emphasizes incremental changes with test coverage.

    Also in 3 projects that use this

  • madeincartelSkill

    user-spec-planning

    Creates user-spec.md through adaptive interview with codebase scanning and dual validation.

    Also in 3 projects that use this

  • zwjbendnSkill

    habit-builder

    Designs and manages healthy habits for sustainable weight loss through lifestyle change. Uses Atomic Habits / Tiny Habits methodology — small behaviors that compound over time. Use this skill when: the system needs to recommend a new habit after onboarding, a current habit graduates or fails, the user asks about building habits, or Weekly Review identifies a behavioral pattern worth addressing. Also use when evaluating habit progress, deciding when a habit has "graduated," or handling a restart after the user falls off. This skill does not send its own reminders — habit check-ins are woven into meal conversations managed by Notification Composer. This skill owns the check-in logic (when, how often, tone); Notification Composer provides the conversation vehicle.

    Also in 3 projects that use this

  • nilecuiSkill

    documentation-writing

    Writing clear, discoverable software documentation following the Eight Rules and Diataxis framework. Use when creating README files, API docs, tutorials, how-to guides, or any project documentation. Automatically enforces docs/ location, linking requirements, and runnable examples.

    Also in 3 projects that use this

  • +3 more from madeincartel

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 53 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NEVER attempt to exploit any vulnerability found

    line 190
  2. Distinctive:

    NEVER modify security settings without explicit user permission

    line 191
  3. Distinctive:

    NEVER access or display password hashes or private keys content

    line 192
  4. Distinctive:

    If audit requires elevated privileges, ask user to run specific commands

    line 195
  5. Distinctive:

    Do NOT install scanning tools.

    line 196

“Common” is measured: kept by at least 6 in 10 of the 53 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

Security Auditor

Overview

Audit system security configuration by checking for common misconfigurations, exposed services, weak permissions, and missing patches. Produces a security posture report with severity ratings.

Process

Step 1: Scope the Audit

Determine what to audit based on user request:

ScopeWhat to check
Full systemAll categories below
Network exposureOpen ports, listening services, firewall
User/permissionsAccounts, sudo, file permissions
Updates/patchesMissing security updates
ServicesRunning services, unnecessary daemons
SSH/RemoteSSH config, remote access
File systemWorld-writable, SUID, sensitive files

Step 2: Open Ports and Services

Listening services:

PlatformCommand
WindowsGet-NetTCPConnection -State Listen | Select LocalAddress, LocalPort, @{N='Process';E={(Get-Process -Id $_.OwningProcess).Name}} | Sort LocalPort
Linuxss -tlnp
macOSlsof -iTCP -sTCP:LISTEN -n -P

Firewall status:

PlatformCommand
WindowsGet-NetFirewallProfile | Select Name, Enabled
Linuxufw status 2>/dev/null || iptables -L -n 2>/dev/null || firewall-cmd --state 2>/dev/null
macOSpfctl -s info 2>/dev/null | head -5

External exposure check:

# Check if common dangerous ports are exposed
# 21 (FTP), 23 (Telnet), 3389 (RDP), 5900 (VNC), 6379 (Redis), 27017 (MongoDB)

Step 3: User Accounts and Privileges

User accounts:

PlatformCommand
WindowsGet-LocalUser | Select Name, Enabled, LastLogon, PasswordRequired
Linux`awk -F: '$3 >= 1000$3 == 0 {print $1, $3, $7}' /etc/passwd`
macOS`dscl . list /Users UniqueID | awk '$2 >= 500$2 == 0'`

Privileged access:

PlatformCommand
WindowsGet-LocalGroupMember -Group "Administrators"
Linuxgetent group sudo wheel 2>/dev/null and cat /etc/sudoers.d/* 2>/dev/null | grep -v "^#"
macOSdscl . -read /Groups/admin GroupMembership

Password policy:

PlatformCommand
WindowsGet-ADDefaultDomainPasswordPolicy 2>/dev/null || net accounts
Linuxcat /etc/login.defs | grep -E "^PASS_MAX_DAYS|^PASS_MIN_DAYS|^PASS_MIN_LEN"

Step 4: SSH Configuration (Linux/macOS)

# SSH config issues
grep -E "^(PermitRootLogin|PasswordAuthentication|PermitEmptyPasswords|X11Forwarding|Protocol)" /etc/ssh/sshd_config 2>/dev/null

# Authorized keys (check for unexpected)
find /home -name "authorized_keys" -exec wc -l {} \; 2>/dev/null
cat ~/.ssh/authorized_keys 2>/dev/null | wc -l

Security checks:

SettingSecure ValueRisk if Wrong
PermitRootLoginnoDirect root access
PasswordAuthenticationnoBrute force attacks
PermitEmptyPasswordsnoNo-password login
Protocol2Weak protocol

Step 5: System Updates

Pending security updates:

PlatformCommand
WindowsGet-HotFix | Sort-Object InstalledOn -Descending | Select -First 5
Ubuntu/Debianapt list --upgradable 2>/dev/null | grep -i securi
RHEL/CentOSyum check-update --security 2>/dev/null || dnf check-update --security 2>/dev/null
macOSsoftwareupdate -l 2>&1

Last update date:

PlatformCommand
Windows(Get-HotFix | Sort InstalledOn -Desc | Select -First 1).InstalledOn
Linuxstat /var/cache/apt/pkgcache.bin 2>/dev/null || rpm -qa --last | head -1

Step 6: File System Security

World-writable files (Linux/macOS):

find / -type f -perm -o+w -not -path "/proc/*" -not -path "/sys/*" 2>/dev/null | head -20

SUID/SGID binaries (Linux/macOS):

find / -type f \( -perm -4000 -o -perm -2000 \) -not -path "/proc/*" 2>/dev/null | head -20

Sensitive file permissions:

# Check critical file permissions
ls -la /etc/shadow /etc/passwd /etc/sudoers ~/.ssh/id_* 2>/dev/null

Windows sensitive locations:

# Check for credentials in common locations
Get-ChildItem -Path $env:USERPROFILE -Include *.pem,*.key,*.pfx,id_rsa -Recurse -ErrorAction SilentlyContinue | Select FullName

Step 7: Running Services Audit

Unnecessary services check:

PlatformCommand
WindowsGet-Service | Where-Object {$_.Status -eq 'Running'} | Select Name, DisplayName | Sort DisplayName
Linuxsystemctl list-units --type=service --state=running

Common risky services to flag:

ServiceRiskRecommendation
telnetHIGHReplace with SSH
ftpHIGHReplace with SFTP
rsh/rloginHIGHRemove immediately
unbound RedisHIGHAdd auth, bind localhost
unbound MongoDBHIGHAdd auth, bind localhost
SMBv1MEDIUMDisable, use SMBv2+
SNMP v1/v2MEDIUMUpgrade to v3

Step 8: Present Security Report

## Security Audit Report
**Host:** [hostname] | **OS:** [os] | **Date:** [timestamp]

### Security Score: [X/10]

### Findings by Severity

#### CRITICAL
- [ ] [finding with evidence]

#### HIGH
- [ ] [finding with evidence]

#### MEDIUM
- [ ] [finding with evidence]

#### LOW / Informational
- [ ] [finding]

### Summary
| Category | Status | Issues |
|----------|--------|--------|
| Network Exposure | [PASS/WARN/FAIL] | [count] |
| User Accounts | [PASS/WARN/FAIL] | [count] |
| SSH Config | [PASS/WARN/FAIL] | [count] |
| Updates | [PASS/WARN/FAIL] | [count] |
| File Permissions | [PASS/WARN/FAIL] | [count] |
| Services | [PASS/WARN/FAIL] | [count] |

### Remediation Priority
1. [Critical items first]
2. [High items]
3. [Medium items]

Rules

  • NEVER attempt to exploit any vulnerability found
  • NEVER modify security settings without explicit user permission
  • NEVER access or display password hashes or private keys content
  • Report findings objectively with evidence
  • Flag false positives when context suggests they're intentional (e.g., dev machine)
  • If audit requires elevated privileges, ask user to run specific commands
  • Do NOT install scanning tools; use only built-in OS commands

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.