/ubuntu-security:security-updatesfrom ubuntu-security
Check the security-patch state of an Ubuntu host — pending upgrades from the -security pocket, Ubuntu Pro / ESM coverage via `pro security-status`, whether a specific CVE or USN is fixed, whether unattended-upgrades is actually running and when it last applied something, and whether a reboot or service restart is needed to load patched code. Read-only unless the user asks to apply the security updates. Use when the user asks "are there security updates", "is this machine patched", "am I affected by CVE-XXXX", "is unattended-upgrades working", "do I need to reboot", or "apply security updates only".
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.
Read-only by default. Configuring the auto-update policy (which origins, auto-reboot windows) is general package management, not covered here.
sudo apt update -qq
apt list --upgradable 2>/dev/null | grep -- '-security' # security pocket only
apt list --upgradable 2>/dev/null | grep -vc -- '-security' # other pending upgrades (count)
Ubuntu-specific: pro (package ubuntu-pro-client, preinstalled) knows which
packages come from main/universe and whether ESM covers them:
pro security-status # summary: packages from main, universe, third-party, ESM coverage
pro security-status --esm-apps # universe packages with fixes only available via ESM
pro status # attached? esm-infra / esm-apps / livepatch enabled?
Universe packages receive security fixes through esm-apps (Ubuntu Pro, free for
personal use on a few machines). If pro security-status shows fixes "available with
esm-apps", that is a fact to report, not a sales pitch.
pro fix CVE-2024-6387 --dry-run # or USN-6859-1; says fixed / not affected / needs action
Without pro: find the package, compare the installed version with the fixed version
on https://ubuntu.com/security/<CVE-ID>:
dpkg -l <package> | tail -1
apt changelog <package> 2>/dev/null | grep -m3 -i <CVE-ID>
apt-config dump | grep -E '^APT::Periodic::(Update-Package-Lists|Unattended-Upgrade) ' # want "1"
systemctl is-enabled unattended-upgrades apt-daily.timer apt-daily-upgrade.timer
systemctl list-timers apt-daily-upgrade.timer --no-pager
sudo tail -20 /var/log/unattended-upgrades/unattended-upgrades.log
grep -h ' install \| upgrade ' /var/log/dpkg.log | tail -5
"Working" = the timer ran recently and the log shows packages installed (or "No
packages found that can be upgraded unattended"). Common breakages: a held package
(apt-mark showhold), a dpkg lock left by a crashed run (sudo dpkg --audit),
a third-party repo with an expired key making apt update fail, or the machine being
off when the timer fires (desktops; it catches up on next boot).
[ -f /var/run/reboot-required ] && cat /var/run/reboot-required.pkgs
uname -r; ls -1 /boot/vmlinuz-* | tail -1 # running vs newest installed kernel
sudo needrestart -b 2>/dev/null # services still running old libraries (servers)
canonical-livepatch status 2>/dev/null # kernel patched live?
sudo unattended-upgrade -v # applies whatever the security policy allows, logs as usual
# or, explicit:
sudo apt install --only-upgrade $(apt list --upgradable 2>/dev/null | grep -- '-security' | cut -d/ -f1)
On a server, say which services will restart (needrestart prompts on Ubuntu
22.04+; NEEDRESTART_MODE=a restarts automatically). Don't reboot unless asked.
One line: N security updates pending (M with a newer kernel), unattended-upgrades working yes/no (last run date), reboot required yes/no. Then the package list if the user wants it.
What SKILL.md sets; muted values are Claude Code's defaults
ubuntu-security@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin ubuntu-security18 skills in this plugin
/av-installInstall 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./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".Other plugins' skills for the same job