← Back to list

security-audit
by mhalder
Modular Linux development environment dotfiles managed with tuckr, featuring shell configurations, development tools, and automated installation hooks
⭐ 1🍴 0📅 Jan 24, 2026
SKILL.md
name: security-audit description: Audit system security configuration for vulnerabilities. Use when the user says "audit security", "harden server", "check security", "is my server secure", "security review", or asks about server hardening. allowed-tools: Bash, Read, Grep
Security Audit
Audit Linux system security configurations and recommend hardening measures.
Instructions
- Check each security category below
- Document findings with severity
- Provide specific remediation steps
- Prioritize critical issues
SSH configuration
# Check SSH config
grep -E "^(PermitRootLogin|PasswordAuthentication|PubkeyAuthentication|Port)" /etc/ssh/sshd_config
# Recommended settings
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
Critical: Flag if PermitRootLogin yes or PasswordAuthentication yes
Firewall
# UFW status
ufw status verbose
# iptables
iptables -L -n -v
ip6tables -L -n -v
# nftables
nft list ruleset
Critical: Flag if firewall is disabled or allows 0.0.0.0/0 on sensitive ports
User accounts
# Users with login shells
grep -v '/nologin\|/false' /etc/passwd
# Users with empty passwords
awk -F: '($2 == "") {print $1}' /etc/shadow
# Sudoers
grep -v '^#' /etc/sudoers /etc/sudoers.d/* 2>/dev/null
# Check for unauthorized sudo
grep NOPASSWD /etc/sudoers /etc/sudoers.d/*
File permissions
# World-writable files
find / -type f -perm -002 2>/dev/null
# SUID/SGID binaries
find / -type f \( -perm -4000 -o -perm -2000 \) 2>/dev/null
# SSH key permissions
ls -la ~/.ssh/
Services and ports
# Listening services
ss -tuln
# Enabled services
systemctl list-unit-files --state=enabled
# Running services
systemctl list-units --type=service --state=running
Updates
# Pending security updates
apt list --upgradable 2>/dev/null | grep -i security
dnf check-update --security 2>/dev/null
# Kernel version
uname -r
Output format
## Critical Issues
- [ ] SSH allows root login with password
## Warnings
- [ ] Firewall allows port 22 from any IP
## Recommendations
- [ ] Enable automatic security updates
- [ ] Configure fail2ban
## Passed Checks
- [x] No users with empty passwords
Rules
- MUST check all categories before concluding
- MUST prioritize by severity (critical > warning > info)
- MUST provide specific remediation commands
- Never disable security features without explicit approval
- Never expose found credentials or sensitive data
- Always recommend backup before making changes
Score
Total Score
70/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon