/ubuntu-security:spyware-checkfrom ubuntu-security
Look for spyware, unwanted telemetry and suspicious software on an Ubuntu machine — installed packages, snaps, flatpaks and /opt software from unknown origins, telemetry and crash-reporting services (apport, whoopsie, popularity-contest, ubuntu-report, vendor agents), unexpected outbound connections and the processes behind them, autostart entries, and browser extensions with broad permissions. Reports what is present and what it sends; removes or disables only what the user picks. Use when the user says "check for spyware", "is anything phoning home", "what telemetry is running", "audit installed software for privacy", "suspicious outbound connections", or "check my browser extensions".
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.
Report what is present, where it came from, and what it talks to. Removal and opt-outs only for the items the user chooses.
apt-mark showmanual | wc -l
grep -rhE '^(deb|Types|URIs)' /etc/apt/sources.list /etc/apt/sources.list.d/ 2>/dev/null | sort -u # third-party repos
apt list --installed 2>/dev/null | grep -F '[installed,local]' # .debs installed by hand, in no repo
ls /var/lib/apt/lists/ | grep '_Packages$' | cut -d_ -f1 | sort -u | grep -vE 'ubuntu\.com$|canonical\.com$' # third-party repo hosts
snap list 2>/dev/null
flatpak list --app --columns=application,origin 2>/dev/null
ls -1 /opt /usr/local/bin 2>/dev/null
Simpler origin view: apt-cache policy <pkg> shows the repo for one package.
Software in /opt or /usr/local is outside the package manager; name the vendor
and how it updates itself.
| Component | Check | What it sends | Opt out |
|---|---|---|---|
| apport (crash reports) | systemctl is-enabled apport | crash dumps, on user confirmation | sudo systemctl disable --now apport; /etc/default/apport enabled=0 |
| whoopsie (error tracker) | systemctl is-active whoopsie | crash metadata to errors.ubuntu.com | sudo systemctl disable --now whoopsie |
| popularity-contest | dpkg -l popularity-contest | installed package list, weekly | sudo apt purge popularity-contest |
| ubuntu-report / ubuntu-insights | ls ~/.cache/ubuntu-report ~/.config/ubuntu-insights 2>/dev/null | install-time hardware info, opt-in | ubuntu-report -f send no / ubuntu-insights consent -s false |
| motd-news | grep ENABLED /etc/default/motd-news | fetches news, sends release + uptime-ish UA | ENABLED=0 |
| snapd | always contacts the Snap Store for refreshes | device + snap revisions | inherent to snaps |
| VS Code, Chrome, vendor apps | app settings | usage telemetry | in-app setting (telemetry.telemetryLevel: off for VS Code) |
Report state; only change what the user asks.
sudo ss -tupnH state established | awk '{print $NF, $(NF-1)}' | sort | uniq -c | sort -rn | head -30
For unfamiliar remote addresses: getent hosts <ip> / dig -x <ip> +short, and
whois <ip> | grep -iE 'orgname|org-name|netname'. Map each to its process and
package (ps -o pid,user,cmd -p <pid>, dpkg -S $(readlink -f /proc/<pid>/exe)).
Flag: processes not owned by any package, binaries running from /tmp, /dev/shm,
or a hidden directory, and connections to unusual ports from processes that have no
reason to make them. For a longer view, sudo nethogs or
sudo tcpdump -ni any -c 200 'not port 22' (only if the user wants a capture).
ls ~/.config/autostart /etc/xdg/autostart 2>/dev/null
systemctl list-unit-files --state=enabled --no-pager | grep -vE '^(systemd|dbus|getty|snap\.)' | head -50
systemctl --user list-unit-files --state=enabled --no-pager 2>/dev/null
crontab -l 2>/dev/null; sudo ls /etc/cron.d /var/spool/cron/crontabs 2>/dev/null
grep -lE 'curl|wget|nc |base64' ~/.bashrc ~/.profile ~/.bash_profile 2>/dev/null
Unknown services, user units and cron entries that fetch-and-run from the network are the ones to name.
# Firefox (deb or snap profile paths)
for f in ~/.mozilla/firefox/*/extensions.json ~/snap/firefox/common/.mozilla/firefox/*/extensions.json; do
[ -f "$f" ] && jq -r '.addons[] | select(.type=="extension") | [.defaultLocale.name, .id, .active, (.userPermissions.permissions // [] | join(","))] | @tsv' "$f"
done
# Chrome / Chromium / Brave: one folder per extension id, manifest.json has name + permissions
for d in ~/.config/google-chrome/*/Extensions ~/.config/chromium/*/Extensions ~/snap/chromium/common/chromium/*/Extensions ~/.config/BraveSoftware/Brave-Browser/*/Extensions; do
[ -d "$d" ] && for m in "$d"/*/*/manifest.json; do jq -r '[.name, (.permissions // [] | join(",")), (.host_permissions // [] | join(","))] | @tsv' "$m"; done
done 2>/dev/null
Names starting with __MSG_ are localised; read them from _locales/en/messages.json.
Flag extensions with <all_urls>, *://*/*, webRequest, cookies, history,
nativeMessaging, and ones the user doesn't recognise.
Sections: unknown-origin software, telemetry components (on/off), notable outbound
connections (process → destination org), autostart oddities, broad-permission
extensions. Each item: what, where it came from, evidence. Then ask which to remove
or disable. Pair with malware-scan if anything looks actively malicious.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
18 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"./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.ubuntu-security@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin ubuntu-security