T05 · Unauthorized Access and Privilege Escalation
- Location
HOOK.md:9- Finding
Unused Cron Permission Violates Least Privilege
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is not clearly malicious, but it needs review because it requests managed-node and cron authority while shipping an incomplete scanner and unsafe root-level fix guidance.
Install only if you are comfortable granting managed-node execution and cron-related authority. Treat its audit results as unreliable until the mock executor is replaced with real OpenClaw node execution, and do not run the suggested sudo fixes on production systems without reviewing them, making backups, validating SSH and firewall changes, and planning rollback access.
HOOK.md:9Unused Cron Permission Violates Least Privilege
scripts/audit.js:17Unsafe Root-Level Remediation Commands Can Cause Persistent System Changes
scripts/audit.js:114Mock Command Executor Produces False Audit Results
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| Passwords | Password aging enabled, no default accounts | Medium |
| Services | Unnecessary services disabled (telnet, vsftpd) | Low |
| Logging | Auditd/rsyslog enabled and rotating | Medium |
| File Permissions | /etc/passwd, /etc/shadow correct perms | High |
**Total checks**: ~20 per node
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| Passwords | Password aging enabled, no default accounts | Medium |
| Services | Unnecessary services disabled (telnet, vsftpd) | Low |
| Logging | Auditd/rsyslog enabled and rotating | Medium |
| File Permissions | /etc/passwd, /etc/shadow correct perms | High |
**Total checks**: ~20 per node
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| Passwords | Password aging enabled, no default accounts | Medium |
| Services | Unnecessary services disabled (telnet, vsftpd) | Low |
| Logging | Auditd/rsyslog enabled and rotating | Medium |
| File Permissions | /etc/passwd, /etc/shadow correct perms | High |
**Total checks**: ~20 per node
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| Passwords | Password aging enabled, no default accounts | Medium |
| Services | Unnecessary services disabled (telnet, vsftpd) | Low |
| Logging | Auditd/rsyslog enabled and rotating | Medium |
| File Permissions | /etc/passwd, /etc/shadow correct perms | High |
**Total checks**: ~20 per node
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| Passwords | Password aging enabled, no default accounts | Medium |
| Services | Unnecessary services disabled (telnet, vsftpd) | Low |
| Logging | Auditd/rsyslog enabled and rotating | Medium |
| File Permissions | /etc/passwd, /etc/shadow correct perms | High |
**Total checks**: ~20 per node
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| Passwords | Password aging enabled, no default accounts | Medium |
| Services | Unnecessary services disabled (telnet, vsftpd) | Low |
| Logging | Auditd/rsyslog enabled and rotating | Medium |
| File Permissions | /etc/passwd, /etc/shadow correct perms | High |
**Total checks**: ~20 per node
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| Passwords | Password aging enabled, no default accounts | Medium |
| Services | Unnecessary services disabled (telnet, vsftpd) | Low |
| Logging | Auditd/rsyslog enabled and rotating | Medium |
| File Permissions | /etc/passwd, /etc/shadow correct perms | High |
**Total checks**: ~20 per node
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| Passwords | Password aging enabled, no default accounts | Medium |
| Services | Unnecessary services disabled (telnet, vsftpd) | Low |
| Logging | Auditd/rsyslog enabled and rotating | Medium |
| File Permissions | /etc/passwd, /etc/shadow correct perms | High |
**Total checks**: ~20 per node
The chained command edits sshd_config and immediately restarts SSH with root privileges, increasing the chance of an operator executing multiple impactful actions without intermediate validation. If the edit is incorrect or environment-specific, the restart can break remote access and cause immediate administrative lockout.
❌ HIGH RISK:
1. SSH password authentication is ENABLED
Fix: sudo sed -i 's/PasswordAuthentication yes/no/' /etc/ssh/sshd_config && sudo systemctl restart sshd
⚠️ MEDIUM:
2. Security updates available (5 packages)
Referenced artifact was not completely inspected
- **Script**: `scripts/audit.js` (~150 lines, Node.js)
The file header claims the script performs baseline security checks, but the only command runner is a stub that never executes any real checks. In a security-audit skill, this is dangerous because it can produce misleading reports and create false assurance that a node was assessed when it was not.
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
risk: 'high',
command: 'grep -E "^PasswordAuthentication" /etc/ssh/sshd_config | awk \'{print $2}\'',
expected: 'no',
fix: "sudo sed -i 's/PasswordAuthentication yes/no/' /etc/ssh/sshd_config && sudo systemctl restart sshd",
os: ['ubuntu', 'debian', 'centos']
},
{
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
risk: 'high',
command: 'grep -E "^PasswordAuthentication" /etc/ssh/sshd_config | awk \'{print $2}\'',
expected: 'no',
fix: "sudo sed -i 's/PasswordAuthentication yes/no/' /etc/ssh/sshd_config && sudo systemctl restart sshd",
os: ['ubuntu', 'debian', 'centos']
},
{
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
risk: 'high',
command: 'grep -E "^PasswordAuthentication" /etc/ssh/sshd_config | awk \'{print $2}\'',
expected: 'no',
fix: "sudo sed -i 's/PasswordAuthentication yes/no/' /etc/ssh/sshd_config && sudo systemctl restart sshd",
os: ['ubuntu', 'debian', 'centos']
},
{
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
risk: 'high',
command: 'grep -E "^PasswordAuthentication" /etc/ssh/sshd_config | awk \'{print $2}\'',
expected: 'no',
fix: "sudo sed -i 's/PasswordAuthentication yes/no/' /etc/ssh/sshd_config && sudo systemctl restart sshd",
os: ['ubuntu', 'debian', 'centos']
},
{
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
risk: 'high',
command: 'grep -E "^PasswordAuthentication" /etc/ssh/sshd_config | awk \'{print $2}\'',
expected: 'no',
fix: "sudo sed -i 's/PasswordAuthentication yes/no/' /etc/ssh/sshd_config && sudo systemctl restart sshd",
os: ['ubuntu', 'debian', 'centos']
},
{
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
risk: 'high',
command: 'grep -E "^PasswordAuthentication" /etc/ssh/sshd_config | awk \'{print $2}\'',
expected: 'no',
fix: "sudo sed -i 's/PasswordAuthentication yes/no/' /etc/ssh/sshd_config && sudo systemctl restart sshd",
os: ['ubuntu', 'debian', 'centos']
},
{
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
risk: 'high',
command: 'grep -E "^PasswordAuthentication" /etc/ssh/sshd_config | awk \'{print $2}\'',
expected: 'no',
fix: "sudo sed -i 's/PasswordAuthentication yes/no/' /etc/ssh/sshd_config && sudo systemctl restart sshd",
os: ['ubuntu', 'debian', 'centos']
},
{
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
risk: 'high',
command: 'grep -E "^PasswordAuthentication" /etc/ssh/sshd_config | awk \'{print $2}\'',
expected: 'no',
fix: "sudo sed -i 's/PasswordAuthentication yes/no/' /etc/ssh/sshd_config && sudo systemctl restart sshd",
os: ['ubuntu', 'debian', 'centos']
},
{
The skill advertises 'one-click fix commands' and automated scheduling for security changes without clearly warning users to review commands first or consider service impact. In a system-administration context, this can lead operators to run privileged remediation blindly, causing outages, lockouts, or unintended configuration drift.
The sample output includes direct system-modifying commands such as editing sshd_config, restarting SSH, and upgrading packages, but provides no caution about access loss, package side effects, or maintenance windows. Because the skill targets admins and small teams, users may treat the examples as safe defaults and apply them without validation.
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
⚠️ MEDIUM: 2. Security updates available (5 packages) Fix: sudo apt update && sudo apt upgrade -y
✅ All checks completed in 8 seconds.
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
risk: 'high',
command: 'grep -E "^PasswordAuthentication" /etc/ssh/sshd_config | awk \'{print $2}\'',
expected: 'no',
fix: "sudo sed -i 's/PasswordAuthentication yes/no/' /etc/ssh/sshd_config && sudo systemctl restart sshd",
os: ['ubuntu', 'debian', 'centos']
},
{
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
risk: 'high',
command: 'grep -E "^PasswordAuthentication" /etc/ssh/sshd_config | awk \'{print $2}\'',
expected: 'no',
fix: "sudo sed -i 's/PasswordAuthentication yes/no/' /etc/ssh/sshd_config && sudo systemctl restart sshd",
os: ['ubuntu', 'debian', 'centos']
},
{
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
risk: 'high',
command: 'grep -E "^PasswordAuthentication" /etc/ssh/sshd_config | awk \'{print $2}\'',
expected: 'no',
fix: "sudo sed -i 's/PasswordAuthentication yes/no/' /etc/ssh/sshd_config && sudo systemctl restart sshd",
os: ['ubuntu', 'debian', 'centos']
},
{