internal/skills/catalog/auditctl/SKILL.md
# auditctl — Linux Audit Rule Management ## Category Log Analysis ## License GPLv2 (audit) ## Source https://github.com/linux-audit/audit-userspace (Linux Audit Framework) ## Purpose Configure the Linux Audit Framework rules at runtime. Companion to `ausearch`/`aureport` — `auditctl` defines *what* to audit, while `ausearch` queries the results. ## Use Cases - Add audit rules to monitor access to sensitive files (shadow, passwd, SSH keys) - Watch for privilege escalation syscalls (execve, s
npx skillsauth add ggp1/mitiga internal/skills/catalog/auditctlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Log Analysis
GPLv2 (audit)
https://github.com/linux-audit/audit-userspace (Linux Audit Framework)
Configure the Linux Audit Framework rules at runtime. Companion to ausearch/aureport — auditctl defines what to audit, while ausearch queries the results.
# List all current audit rules
auditctl -l
# Watch for modifications to /etc/passwd
auditctl -w /etc/passwd -p wa -k passwd_changes
# Watch for modifications to SSH configuration
auditctl -w /etc/ssh/sshd_config -p wa -k sshd_config
# Monitor execve syscalls (process execution)
auditctl -a always,exit -F arch=b64 -S execve -k exec_monitor
# Watch for changes to the audit configuration itself
auditctl -w /etc/audit/ -p wa -k audit_config
# Monitor privilege escalation attempts
auditctl -a always,exit -F arch=b64 -S setuid -S setgid -k privesc
# Check audit system status
auditctl -s
auditctl are not persistent across reboots — they must be written to /etc/audit/rules.d/ for persistence. Use auditctl for runtime/investigation rules only.auditctl -l) before adding new ones to avoid duplicates.CAP_AUDIT_CONTROL capability.development
# who / w — Logged-in Users ## Category User & Group Management ## License GPLv3+ (GNU coreutils) / GPLv2 (procps-ng) ## Source Included in all Linux distributions. ## Purpose Show who is currently logged in and what they are doing. ## Use Cases - Detect unauthorized active sessions - Monitor interactive logins in real-time - Identify login sources (IP, terminal) - Review idle times for active sessions ## Examples ```bash # All login information who -a # Currently logged-in users with act
development
# useradd / usermod / userdel — User Account Management ## Category User & Group Management ## License BSD-3-Clause (shadow-utils) ## Source https://github.com/shadow-maint/shadow (included in all Linux distributions) ## Purpose Create, modify, and delete user accounts. ## Use Cases - Create service accounts for Mitiga components - Modify user group memberships - Disable or remove compromised accounts - Audit account configurations ## Examples ```bash # Create a system service account (no
development
# ufw — Uncomplicated Firewall ## Category System Hardening ## License GPLv3 ## Source https://code.launchpad.net/ufw (included in Ubuntu/Debian) ## Purpose Simplified interface for managing iptables/nftables rules. ## Use Cases - Quick firewall status checks - Rule modifications on systems using ufw - Block malicious sources during incident response ## Examples ```bash # Show firewall status and rules ufw status verbose # Block a malicious IP ufw deny from <malicious_ip> # Allow a speci
development
# trivy — Comprehensive Vulnerability Scanner ## Category Vulnerability Scanning ## License Apache 2.0 ## Source https://github.com/aquasecurity/trivy (CNCF project) ## Purpose Scan filesystems, container images, Git repositories, and IaC configurations for known vulnerabilities (CVEs), misconfigurations, and exposed secrets. ## Use Cases - Audit project dependencies for known CVEs - Scan configuration files for misconfigurations - Detect embedded secrets in repositories - Scan container im