security-privacy-check
Skill0 starsChanged 3 months agoMITView on GitHub
Run a security + privacy posture sweep — Lynis system audit (hardening index, warnings, suggestions) plus GNOME privacy settings, location services, and Flatpak per-app permission overrides. Use when the user asks for a security check, privacy check, hardening review, or "what can see my camera/mic/location.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- end-sessionSkill
- etc-driftSkill
- handoverSkill
- host-checkSkill
- incidentSkill
- reset-triageSkill
- update-checkSkill
- vendor-updateSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 6
Run scripts/security-privacy-check.sh from the repo root and show its output as-is.
- Distinctive: line 47
After showing the output, always follow it with an action plan — the report alone isn't the deliverable, a reviewed and triaged list of …
- Very specific: line 65
If Flatpak overrides show camera/microphone/location/broad-filesystem access granted to an app the user doesn't recognize as needing it, …
- Distinctive: line 74
If a run turns up nothing beyond ostree artifacts and already-intentional overrides, say that plainly instead of manufacturing an action …
- Distinctive: line 96
Don't re-attempt a fix here.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run scripts/security-privacy-check.sh from the repo root and show its
output as-is.
It's report-only and side-effect-free — never installs anything, changes a
setting, or revokes a permission. Every run also writes a timestamped copy
of its full output to .claude/security-reports/ (gitignored — machine
state, not project narrative, same reasoning as .claude/audit/). The
script prints the exact path at the end; mention it so the user knows where
to find it for comparison against a later run.
Two independent halves:
- Lynis — a layered package (see
scripts/PACKAGES.md), reused rather than hand-rolled per CLAUDE.md's prior-art rule. Covers general OS hardening: boot/kernel, SELinux, SSH, cron, file integrity. Ifrpm -q lynisreports it missing, point atrpm-ostree install lynis(fromscripts/layer-packages.sh) rather than improvising the install command. Needs root, viapkexec(notsudo— the script has no TTY to prompt against when run non-interactively, andpkexecis CLAUDE.md's rule for root commands anyway). Expect the GNOME polkit dialog to appear on screen. Its boot/filesystem checks assume a traditional (non-ostree) layout — findings there can be an artifact of the image-based root, not a real issue. Read Lynis's own findings before treating any of them as actionable, and say so if one looks ostree-specific rather than proposing a fix for it. Known false positive: AUTH-9216 /grpck"no matching group file entry" for dozens of system groups —/etc/groupon this host only holds local entries (root,wheel, the user), the rest resolve viaaltfiles/systemdNSS sources pernsswitch.conf(getent groupshows the full merged set);grpckonly reads the flat files directly and doesn't know about the merge. Confirmed 2026-08-19 — no fix needed. Same root cause, same "no fix needed": AUTH-9228 /pwck—/etc/passwdsimilarly only holds local entries, everything else resolves viaaltfiles. - Native privacy checks — GNOME privacy settings (
gsettings), location services, and Flatpak permission overrides (system-wide and per-app). These aren't vendored from anywhere; they're the same thin-wrapper-over-a-native-tool pattern ashost-check.shandupdate-check.sh. There is no direct Lynis-equivalent for privacy auditing on Linux desktops — this is a checklist, not a scored framework, confirmed by search before this was written.
After showing the output, always follow it with an action plan — the report
alone isn't the deliverable, a reviewed and triaged list of what to do next
is. Don't stop at the summary numbers (hardening index / warning count /
suggestion count); go through Lynis's actual warnings and suggestions
(pkexec lynis show report, or re-run with --no-colors output already
captured in the report file) and the Flatpak/GNOME findings, and produce:
- Triage each finding into: ostree-layout artifact (say so, no action), already-intentional (e.g. a Flatpak override the user granted on purpose for a reason — note it, no action), or a real candidate fix.
- For each real candidate fix, treat it like any other host change
proposal per CLAUDE.md: show the exact command, name the reversibility
layer it falls under (
rpm-ostree rollback/etckeeper/ backups), and rank it — don't just dump all 30+ Lynis suggestions unranked. A missing AppArmor/SELinux boolean or an open unnecessary service is worth surfacing first; a coding-style nitpick in/etc/profileis not. - Ask before running anything — this skill itself stays report-only; the action plan is proposals, not auto-applied fixes.
- If Flatpak overrides show camera/microphone/location/broad-filesystem access granted to an app the user doesn't recognize as needing it, flag it explicitly — that's the actual "what can see my camera" answer this skill exists to give.
- Suggest
/etc-driftalongside this if it hasn't run recently — polkit rules and unit files are a security-relevant surface this script doesn't see, since it only reads Lynis's and GNOME's own state, not/etc's git history.
If a run turns up nothing beyond ostree artifacts and already-intentional overrides, say that plainly instead of manufacturing an action plan where there isn't one.
Already resolved (2026-08-19)
A future run may re-flag these as suggestions/warnings — check the full
narrative in the vault decision (_inbox capture referencing etckeeper
commit 5dc4784 in /etc) before treating any of them as new:
- FILE-7524 cron permissions — fixed (
cron.deny/crontab→ 600,cron.d/cron.daily/cron.hourly/cron.weekly/cron.monthly→ 700). Lynis re-scanning after this should show these as resolved, but note git only tracks the executable bit, never full permission bits —etckeeper's diff will never show this change even though it's real and applied. - KRNL-5820 core dumps — fixed via
* hard core 0in/etc/security/limits.conf. - NETW-3200 unused protocols —
/etc/modprobe.d/blacklist-unused-protocols.conf(dccp/sctp/rds/tipc) was added as reasonable defensive config, but this suggestion will never clear: confirmed 2026-08-19 that Lynis's NETW-3200 test unconditionally suggests reviewing these four protocols regardless of whether they're blacklisted or even loaded — it's not a live-state check. Don't re-attempt a fix here; a persistent "suggestion" for these four is expected forever. Also confirmed the hard way: explicitmodprobe <name>bypasses a blacklist entirely (blacklist only blocks automatic alias-triggered loading) — don't runmodprobeon these to "test" the blacklist, it will actually load the module into the live kernel. - KRNL-6000 sysctl deltas — fixed via
/etc/sysctl.d/99-hardening.conf, except three deliberately left alone (see below). - Deliberately left alone, do not propose changing without asking first:
kernel.sysrq(crash-forensics baseline, D33),kernel.modules_disabled(would break the pinned NVIDIA kmod / any layered module),kernel.unprivileged_bpf_disabled(Fedora's CAP_BPF-gated default is already better than Lynis's older binary-flag expectation). kernel.yama.ptrace_scope=1was applied — a deliberate trade-off, user-confirmed:gdb -p <pid>on an unrelated running process now needs sudo/pkexec. If a debugging workflow breaks and this setting is the reason, that's expected, not a regression to silently revert.- AUTH-9228
pwck— confirmed same NSS-altfiles false positive as AUTH-9216, see above. No fix needed. - PKGS-7420 auto-upgrade tool — fixed for real this time: enabled
rpm-ostreed-automatic.timer(was disabled). The earlier "already covered by rpm-ostree" reasoning in the first pass was wrong — the timer existing in the unit tree doesn't mean it's enabled; always checksystemctl is-enabledbefore treating an ostree-native equivalent as already covering a Lynis suggestion. - AUTH-9230/9286×2/9328 (
/etc/login.defs) — fixed:UMASK 027,PASS_MIN_DAYS 1,PASS_MAX_DAYS 365,SHA_CRYPT_MIN_ROUNDS 10000,SHA_CRYPT_MAX_ROUNDS 65536. Moderate values chosen deliberately — single-user laptop, not chasing aggressive rotation cadence.
Result of the full triage, both passes: hardening index 66 → 72 → 75.
This is treated as near the realistic ceiling for this machine — remaining
suggestions are either structurally capped (above) or would require
adopting server-oriented controls (AIDE/rkhunter, external syslog, login
banners, mod_evasive on a httpd that's only a disabled dependency of
gnome-user-share) that don't fit a single-user laptop's actual threat
model. Chasing 100 here would mean optimizing the number over the actual
security posture — don't propose those just to move the score.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

