/ubuntu-security:av-installfrom ubuntu-security
Install and initialise malware and rootkit scanning on Ubuntu — the core set (ClamAV engine + clamd daemon + freshclam updater, ClamTk GUI on desktops, rkhunter) and, on request, the advanced layer (Lynis hardening audit, chkrootkit, AIDE file-integrity baseline, debsecan). Detects what is already installed, picks a reports folder, runs the first definitions update and baselines. Use when the user says "install antivirus", "set up clamav", "install rkhunter / lynis / aide / chkrootkit", "set up malware scanning", or when malware-scan finds no scanners installed.
Ships in ubuntu-security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Installation and initialisation only; no scans here (that is malware-scan).
. /etc/os-release; echo "$PRETTY_NAME"
for b in clamscan clamdscan freshclam clamtk rkhunter chkrootkit lynis aide debsecan; do
printf '%-10s %s\n' "$b" "$(command -v $b || echo -)"; done
systemctl is-active clamav-freshclam clamav-daemon 2>/dev/null
echo "${XDG_CURRENT_DESKTOP:-no desktop session}"
Report what is present. Don't reinstall what is there; just initialise what isn't.
Scan reports are the user's data. Default ~/security-reports/; confirm or take
their path. Remember the choice in the plugin config:
CFG_DIR="${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/ubuntu-security"
mkdir -p "$CFG_DIR" ~/security-reports
cat > "$CFG_DIR/config.json" <<EOF
{ "reports_dir": "$HOME/security-reports", "configured_at": "$(date -Is)" }
EOF
If a previous linux-av-manager config exists
(.../claude-plugins/linux-av-manager/config.json), reuse its scans_dir as
reports_dir.
| Tool | Package(s) | Role |
|---|---|---|
| ClamAV | clamav clamav-daemon clamav-freshclam | signature scanner, daemon for fast scans, auto-updater |
| ClamTk | clamtk | GUI front-end (desktops only; skip on servers) |
| rkhunter | rkhunter | rootkit / suspicious-file checks |
sudo apt update
sudo apt install -y clamav clamav-daemon clamav-freshclam rkhunter
sudo apt install -y clamtk # desktop only
Initialise:
# first signature download; the service holds a lock, so stop it for the manual run
sudo systemctl stop clamav-freshclam
sudo freshclam
sudo systemctl enable --now clamav-freshclam clamav-daemon
clamscan --version # shows engine + signature date
clamav-daemon won't start until signatures exist (that's why freshclam goes first).
clamd keeps ~1 GB of signatures in RAM; on small servers (<2 GB RAM) skip the daemon
(sudo systemctl disable --now clamav-daemon) and let malware-scan use clamscan.
rkhunter on Ubuntu ships with updates disabled. Make --update work, then baseline:
sudo sed -i -E 's/^#?UPDATE_MIRRORS=.*/UPDATE_MIRRORS=1/; s/^#?MIRRORS_MODE=.*/MIRRORS_MODE=0/; s|^WEB_CMD=.*|WEB_CMD=""|' /etc/rkhunter.conf
sudo rkhunter --update
sudo rkhunter --propupd # baseline file properties
--propupd records the current state as "known good". Only run it on a system the
user believes is clean; say so and let them defer.
| Tool | Package | Role | Post-install |
|---|---|---|---|
| Lynis | lynis | hardening audit with a score | none |
| chkrootkit | chkrootkit | second-opinion rootkit checks | none |
| AIDE | aide | file-integrity database | sudo aideinit (several minutes); creates /var/lib/aide/aide.db |
| debsecan | debsecan | CVE list for installed packages | reads the Debian tracker; on Ubuntu pro security-status (see security-updates) is the accurate source |
sudo apt install -y lynis chkrootkit aide # whichever were picked
sudo aideinit # AIDE only; baseline = current state
Ubuntu's aide package installs a daily cron/timer (dailyaidecheck) that mails
root; mention it so the user isn't surprised. The Ubuntu lynis package lags
upstream; that's fine for auditing.
One status line per tool: installed version, service state, signature date (ClamAV),
baseline created (rkhunter / AIDE). Then point to malware-scan (run now) or
scan-schedule (periodic).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
18 skills in this plugin
/av-update-definitionsRefresh signature databases and data for every installed scanner on Ubuntu — freshclam (ClamAV), rkhunter --update, Lynis version check, debsecan CVE list — and report one status line per tool, without re-baselining rkhunter or AIDE. Also explains stale ClamAV signatures (freshclam service down, mirror rate-limiting). Use when the user says "update antivirus definitions", "refresh signatures", "update clamav", "is clamav up to date", or before a scan when signatures are old./complementary-pluginsList and install plugins that complement ubuntu-security: hardware-auth-keys, security-auditor, ubuntu-admin. Use on "related plugins"./fail2banInstall, configure and operate fail2ban on Ubuntu — sshd jail reading the systemd journal, ban time and retry thresholds, ignoring the LAN/VPN so the user can't ban themselves, list active jails and banned IPs, unban an address, and check whether fail2ban is the reason a client can't connect. Use when the user says "set up fail2ban", "protect ssh from brute force", "who is banned", "unban <ip>", "fail2ban banned me", or "is fail2ban working"./fingerprint-setupSet up a fingerprint reader for login, lock screen and sudo on an Ubuntu laptop or desktop — check the reader is supported by libfprint, install fprintd and libpam-fprintd, enroll fingers, enable fingerprint auth with pam-auth-update, verify, and troubleshoot unsupported or flaky readers. Use when the user says "set up the fingerprint reader", "enable fingerprint login", "fingerprint for sudo", "enroll my fingerprint", or "fingerprint reader not working"./firewall-allowAdd a scoped firewall exemption with ufw on an Ubuntu desktop or server — open a port, port range or app profile (OpenSSH, CUPS, KDE Connect, Samba, Syncthing...) to the LAN, a VPN interface, one host, or anywhere, with a comment, without duplicating existing rules, and verify it actually took effect. Use when the user says "open port X", "allow <service> through the firewall", "add a firewall exemption", "let my phone/printer/other machine connect", "unblock <port>", or when another skill finds ufw blocking something it needs./firewall-diagnoseWork out whether the host firewall (ufw) is what is blocking a connection on an Ubuntu desktop or server, and if so which rule or policy — reads UFW BLOCK lines from the kernel log (journalctl -k) and /var/log/ufw.log, checks logging is on, walks first-match rule order, interface and address-family mismatches, services bound to localhost, and Docker-published ports that bypass ufw. Diagnoses only; hands the fix to firewall-allow / firewall-remove. Use when the user asks "is the firewall blocking X?", "why can't my phone / other machine connect to this one", "KDE Connect / Samba / printer / SSH doesn't work", "port X is unreachable", "ufw is blocking something", or "I opened the port but it still doesn't work".ubuntu-security@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin ubuntu-security