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

41 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use api-designer, test-engineer and 9 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.
  • AutumnsGroveSkill

    api-designer

    Design and document RESTful and GraphQL APIs with OpenAPI/Swagger specifications, authentication patterns, versioning strategies, and best practices. Use for: (1) Creating API specifications, (2) Designing REST endpoints, (3) GraphQL schema design, (4) API authentication and authorization, (5) API versioning strategies, (6) Documentation generation

    Also in 5 projects that use this

  • JohnJBorenSkill

    test-engineer

    Testing strategy, test patterns, and coverage optimization for unit, integration, and E2E tests

    Also in 4 projects that use this

  • VercelSkill

    technical-writer

    Write, review, and edit developer documentation for SDKs, libraries, and frameworks, including sites such as ai-sdk.dev and chat-sdk.dev. Use for getting-started guides, tutorials, API references, conceptual explanations, integration guides, migration guides, troubleshooting, and code examples.

    Also in 6 projects that use this

  • JeffallanSkill

    devops-engineer

    Creates Dockerfiles, configures CI/CD pipelines, writes Kubernetes manifests, and generates Terraform/Pulumi infrastructure templates. Handles deployment automation, GitOps configuration, incident response runbooks, and internal developer platform tooling. Use when setting up CI/CD pipelines, containerizing applications, managing infrastructure as code, deploying to Kubernetes clusters, configuring cloud platforms, automating releases, or responding to production incidents. Invoke for pipelines, Docker, Kubernetes, GitOps, Terraform, GitHub Actions, on-call, or platform engineering.

    Also in 4 projects that use this

  • lotosbinSkill

    ui-ux-designer

    UI/UX 设计师专家,精通界面设计、交互设计、用户体验和设计系统

    Also in 3 projects that use this

  • glinckerSkill

    qa-engineer

    QA specialist agent for test planning, execution, and regression analysis

    Also in 3 projects that use this

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 39 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 39 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.