https://github.com/nexusone23/noid-privacy-linux
๐ก๏ธ Privacy & Security Audit for Linux Desktops โ 300+ checks, 42 sections, zero dependencies, pure Bash. AI-powered fixes with --ai flag.
https://github.com/nexusone23/noid-privacy-linux
ai-tools audit bash cybersecurity debian desktop-security fedora hardening linux linux-desktop linux-security noid-privacy privacy privacy-audit privacy-tools security security-audit shell-script ubuntu zero-dependencies
Last synced: 20 days ago
JSON representation
๐ก๏ธ Privacy & Security Audit for Linux Desktops โ 300+ checks, 42 sections, zero dependencies, pure Bash. AI-powered fixes with --ai flag.
- Host: GitHub
- URL: https://github.com/nexusone23/noid-privacy-linux
- Owner: NexusOne23
- License: gpl-3.0
- Created: 2026-02-23T16:14:39.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-03-30T04:44:15.000Z (3 months ago)
- Last Synced: 2026-04-03T01:42:38.884Z (3 months ago)
- Topics: ai-tools, audit, bash, cybersecurity, debian, desktop-security, fedora, hardening, linux, linux-desktop, linux-security, noid-privacy, privacy, privacy-audit, privacy-tools, security, security-audit, shell-script, ubuntu, zero-dependencies
- Language: Shell
- Homepage: https://noid-privacy.com/linux.html
- Size: 354 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# ๐ก๏ธ NoID Privacy for Linux
### Hardening Posture Audit for Linux Desktops
[](https://github.com/NexusOne23/noid-privacy-linux/blob/main/LICENSE)
[](https://github.com/NexusOne23/noid-privacy-linux/releases)
[](https://github.com/NexusOne23/noid-privacy-linux)
[](https://github.com/NexusOne23/noid-privacy-linux)
[](https://github.com/NexusOne23/noid-privacy-linux)
[](https://github.com/NexusOne23/noid-privacy-linux/actions)
[](https://github.com/NexusOne23/noid-privacy-linux/stargazers)
[](https://github.com/NexusOne23/noid-privacy-linux/commits)
[](https://noid-privacy.com)
**420+ checks ยท 42 sections ยท Pure Bash ยท AI-friendly remediation prompts**
**Optimized for Fedora/RHEL ยท Tested on Ubuntu/Debian ยท Best-effort on Arch/openSUSE/Mint/Pop!_OS**
[Quick Start](#-quick-start) ยท [What it Checks](#-what-it-checks) ยท [AI Fixes](#-fix-with-ai) ยท [Comparison](#-comparison) ยท [Discussions](https://github.com/NexusOne23/noid-privacy-linux/discussions)
---
## โก Quick Start
```bash
curl -fsSL https://github.com/NexusOne23/noid-privacy-linux/raw/main/noid-privacy-linux.sh -o noid-privacy-linux.sh
sudo bash noid-privacy-linux.sh --ai
```
420+ privacy & security checks. Zero dependencies. The `--ai` flag generates a ready-to-paste prompt โ hand it to ChatGPT, Claude, or Gemini for **step-by-step fix suggestions for each finding** (you review and apply โ the audit itself never touches your system).
> **This tool is read-only.** It does not modify your system. No files changed, no configs touched, no services restarted.
> **๐ช Running Windows too?** The free open-source [NoID Privacy](https://github.com/NexusOne23/noid-privacy) engine hardens **630+ settings** (GPL-3.0, PowerShell) โ or get the [NoID Privacy Pro](https://noid-privacy.com) GUI for one-click Backup โ Apply โ Verify โ Restore (one-time purchase, no subscription).
---
## ๐ฏ Scope โ What this IS / NOT
NoID is a **hardening posture audit** โ it verifies your defense foundation is properly applied. The score reflects configuration state, not compromise resistance.
| โ
This tool **does** | โ This tool does **not** |
|---|---|
| Verify hardening recipes are applied | Replace an Intrusion Detection System |
| Detect privacy misconfigurations | Scan for active rootkits (use AIDE/IMA/chkrootkit) |
| Report drift from secure baselines | Find vulnerabilities (use OSV/Lynis-CVE) |
| Generate AI remediation prompts | Perform penetration testing (use OpenVAS/Nessus) |
| Audit 42 desktop-specific surfaces | Behavioral / memory-only malware detection |
**A 98% score means hardening recipes are well-applied โ not that the system is unhackable.** Defense in depth requires complementary layers:
- **Layer 1** โ
Configuration Hardening *(this tool)*
- **Layer 2** โ Integrity Detection *(AIDE, IMA, chkrootkit)*
- **Layer 3** โ Behavioral Monitoring *(auditd, EDR)*
Configuration is the foundation. The other layers detect what hardening cannot prevent.
---
## ๐ค Why This Exists
Most Linux security tools were built for **servers**. They check SSH configs and firewall rules โ but ignore your browser leaking DNS queries, apps phoning home, or the webcam accessible to every process.
**NoID Privacy for Linux** audits both **privacy and security** on Linux desktops:
| | Server Tools (Lynis, CIS) | NoID Privacy for Linux |
|---|:---:|:---:|
| Kernel hardening | โ
| โ
|
| Firewall & SSH | โ
| โ
|
| Browser privacy | โ | โ
|
| App telemetry | โ | โ
|
| DNS leak testing | โ | โ
|
| VPN kill-switch | โ | โ
|
| Webcam & Bluetooth | โ | โ
|
| AI-assisted fix prompts | โ | โ
|
---
## ๐ค Fix with AI
This is what sets NoID Privacy for Linux apart:
```bash
sudo bash noid-privacy-linux.sh --ai
```
The `--ai` flag generates a **structured prompt** at the end of the scan containing all your findings. Copy it. Paste it into ChatGPT, Claude, or Gemini. The AI can explain each finding, suggest commands to fix it, and prioritize by severity.
**Audit โ AI โ Fixed.** What used to take hours takes minutes.
```bash
# AI remediation prompt (recommended)
sudo bash noid-privacy-linux.sh --ai
# Plain text for manual review
sudo bash noid-privacy-linux.sh --no-color > report.txt
# Machine-readable JSON for scripts/dashboards
sudo bash noid-privacy-linux.sh --json
```
> Unlike Lynis, CIS, or privacy.sexy, NoID's `--ai` flag compiles the full findings list into a ready-to-paste remediation prompt โ the feature that sets it apart.
---
## ๐ What it Checks
### ๐ก๏ธ Security (Sections 01โ34)
| Category | Examples |
|---|---|
| **Kernel & Boot** | Secure Boot, kernel lockdown, LUKS encryption, UEFI, sysctl hardening |
| **Firewall & Network** | iptables/nftables rules, default policies, open ports, VPN, kill-switch, DNS leaks |
| **SSH & Auth** | Key-only auth, root login, password aging, PAM, sudo group |
| **Encryption** | LUKS cipher strength, key size, swap encryption, entropy, certificate store |
| **MAC & Integrity** | SELinux/AppArmor (auto-detected), rootkit scans, AIDE/Tripwire, package verification |
| **Updates & Packages** | Security patches, auto-updates, repo integrity, GPG verification (dnf/apt/pacman/zypper) |
| **Advanced** | Fail2Ban, USB Guard, containers, systemd sandboxing, kernel modules |
### ๐ Privacy & Desktop (Sections 35โ42)
| Category | Examples |
|---|---|
| **Browser Privacy** | Firefox telemetry, WebRTC leaks, DNS-over-HTTPS, tracking protection, Chrome warning |
| **App Telemetry** | GNOME telemetry, crash reporters, Flatpak sandbox escapes, Snap telemetry |
| **Network Privacy** | MAC randomization, mDNS, LLMNR, hostname privacy, IPv6 privacy extensions |
| **Data Privacy** | Recent file tracking, thumbnail caches, core dumps, bash history, journald retention |
| **Session Security** | Screen lock, idle detection, auto-login, lock-on-suspend, VNC/RDP |
| **Webcam & Audio** | Device permissions, microphone, PipeWire remote access, screen sharing |
| **Bluetooth** | Discoverability, pairable mode, active without usage |
| **Keyring & Secrets** | Password manager, GNOME Keyring auto-unlock, SSH agent timeout, plaintext secrets |
๐ **[Full Check Reference โ](Docs/CHECKS.md)** โ all 42 sections with descriptions
---
## ๐ธ Sample Output
```
$ sudo bash noid-privacy-linux.sh --ai
NoID Privacy for Linux v3.6.5 โ Hardening Posture Audit for Linux Desktops
YYYY-MM-DD HH:MM:SS | mydesktop | 6.19.x-200.fc43.x86_64
Arch: x86_64 | Distro: Fedora Linux 43 (Workstation Edition)
Checks: 420+ across 42 sections (actual count: see summary)
โโโ [01/42] KERNEL & BOOT INTEGRITY โโโ
โ
PASS Secure Boot: ENABLED
โ
PASS Kernel Lockdown: integrity
โ
PASS LUKS encryption active
โโโ [05/42] VPN & NETWORK โโโ
โ
PASS VPN interface wg0: active
โ
PASS Default route via VPN
โ
PASS IPv6: disabled/minimal
โโโ [35/42] BROWSER PRIVACY โโโ
โ
PASS Firefox telemetry disabled
โ
PASS WebRTC disabled โ no IP leak
โ ๏ธ WARN google-chrome installed โ Google telemetry risk
โโโ SUMMARY โโโ
Total checks: 420 (293 pass, 0 fail, 5 warn, 122 info)
Hardening posture is your defense foundation โ the layer
attackers must defeat first. Complement with:
โ AIDE / IMA โ file & kernel integrity
โ auditd โ behavioral monitoring
โ chkrootkit โ known-malware scanner
HARDENING POSTURE SCORE: 98% ๐ฐ FULLY HARDENED
Score formula: PASSร100 / (PASS + FAILร2 + WARN)
Exit codes: 0 = clean ยท 1 = FAIL present ยท 2 = WARN-only ยท 130/143 = interrupted
```
---
## โ๏ธ Options
| Flag | Description |
|------|-------------|
| `--ai` | Generate AI remediation prompt with all findings |
| `--json` | Machine-readable JSON output |
| `--no-color` | Disable colored output (for piping/logging) |
| `--skip SECTION` | Skip specific sections (repeatable) |
| `--help` | Show all available options and skip keywords |
44 skip keywords available โ run `--help` for the full list.
---
## ๐ Comparison
| Feature | **NoID Privacy for Linux** | **Lynis** | **privacy.sexy** | **CIS Benchmark** |
|---|:---:|:---:|:---:|:---:|
| **Focus** | Privacy + Security for desktops | Server compliance | Script generator | Server compliance |
| **Tests** | 420+ | 480+ | N/A | varies |
| **Browser privacy** | โ
| โ | โ ๏ธ Partial | โ |
| **App telemetry** | โ
| โ | โ
| โ |
| **DNS / VPN / MAC** | โ
| โ | โ | โ |
| **Webcam / Bluetooth** | โ
| โ | โ | โ |
| **AI remediation prompt** | โ
| โ | โ | โ |
| **JSON output** | โ
| โ
| N/A | โ |
| **Kernel & firewall** | โ
| โ
| โ ๏ธ Partial | โ
|
| **Zero compiled dependencies** | โ
| โ
| โ | โ |
| **Desktop-focused** | โ
| โ | โ
| โ |
| **Modifies system** | โ | โ | โ
| โ |
**[Lynis](https://cisofy.com/lynis/)** (15k โญ, since 2007) โ Gold standard for server compliance. Doesn't cover browser privacy, telemetry, webcams, or desktop-specific concerns.
**[privacy.sexy](https://privacy.sexy)** (5k โญ) โ Script generator for Windows/macOS/Linux. Modifies your system directly without auditing first.
---
## ๐ฅ Installation
| Requirement | Details |
|---|---|
| **OS** | Fedora 39+, Ubuntu 22.04+, Debian 12+, RHEL 9+, Arch Linux, openSUSE, Mint, Pop!_OS |
| **Shell** | Bash 4.3+ |
| **Privileges** | Root (`sudo`) for full system access |
| **Dependencies** | None |
```bash
# One-liner
curl -fsSL https://github.com/NexusOne23/noid-privacy-linux/raw/main/noid-privacy-linux.sh -o noid-privacy-linux.sh
sudo bash noid-privacy-linux.sh --ai
# Or clone
git clone https://github.com/NexusOne23/noid-privacy-linux.git
cd noid-privacy-linux
sudo bash noid-privacy-linux.sh --ai
```
---
## ๐ GitHub Action
Use NoID Privacy for Linux in your CI/CD pipeline to enforce privacy & security baselines:
```yaml
- name: Hardening Posture Audit
# SECURITY: Pin to specific version, never @main (supply chain risk)
uses: NexusOne23/noid-privacy-linux@v3.6.5
id: audit
with:
min-score: '70' # Fail if score < 70%
```
### Inputs
| Input | Default | Description |
|-------|---------|-------------|
| `min-score` | `0` | Minimum score to pass (0 = never fail). |
| `fail-threshold` | `''` | DEPRECATED alias for `min-score`. Use `min-score` in new workflows. |
| `ai` | `false` | Generate AI remediation prompt in summary |
| `skip` | `''` | Comma-separated sections to skip |
| `args` | `''` | Additional arguments for the script |
### Outputs
| Output | Description |
|--------|-------------|
| `score` | Hardening posture score (0-100) |
| `total` | Total checks performed |
| `pass` / `fail` / `warn` / `info` | Check counts by severity |
| `json` | Full JSON output |
### Example: Fail PR if score drops
```yaml
name: Security Gate
on: [pull_request]
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 โ pin to full SHA for supply-chain safety
- uses: NexusOne23/noid-privacy-linux@v3.6.5 # Pin to version, not @main
with:
min-score: '70'
```
Results appear as a rich **GitHub Actions Summary** with score, findings table, and optional AI fix prompt.
๐ See [`.github/workflows/example-noid-audit.yml`](.github/workflows/example-noid-audit.yml) for a full example.
---
## โ
Perfect For
- **Privacy-conscious developers** โ Know what your desktop is leaking
- **Power users** โ A second pair of eyes on your hardening
- **Team leads** โ Baseline audit for your team's workstations
- **Linux newcomers** โ Clear findings with AI-guided fix suggestions
- **Security consultants** โ Quick desktop audit with professional output
## โ Not For
- **Server admins** โ [Lynis](https://cisofy.com/lynis/)
- **Enterprise compliance (CIS/STIG)** โ [OpenSCAP](https://www.open-scap.org/)
- **Automated remediation** โ [privacy.sexy](https://privacy.sexy)
- **Windows** โ [NoID Privacy](https://github.com/NexusOne23/noid-privacy) (free engine, 630+ settings) or [NoID Privacy Pro](https://noid-privacy.com) (commercial GUI)
---
## ๐ The NoID Privacy Ecosystem
| Platform | Link |
|----------|------|
| ๐ **Website** | [NoID-Privacy.com](https://noid-privacy.com) โ All platforms, pricing, and documentation |
| ๐ช **Windows** | [NoID Privacy](https://github.com/NexusOne23/noid-privacy) โ open-source PowerShell engine (630+ settings, 7 modules, BAVR, GPL-3.0); commercial [NoID Privacy Pro](https://noid-privacy.com) GUI wraps the engine |
| ๐ง **Linux** | You're here! |
| ๐ฑ **Android** | [NoID Privacy on Google Play](https://play.google.com/store/apps/details?id=com.noid.privacy) โ 87 checks, 10 categories, permission audit, Chrome hardening, anti-theft |
---
## ๐ Privacy Promise
**No telemetry, no analytics, no phone-home.** This tool does not collect or transmit any data about you or your system. One file, pure Bash โ read every line yourself.
> **โ ๏ธ Default-mode network requests:** Three sections issue requests to third parties to test for connectivity/DNS/VPN leaks:
> - **Section 5 (vpn):** `curl detectportal.firefox.com` (Mozilla), `curl ifconfig.me` (Cloudflare-fronted)
> - **Section 5 (netleaks):** `dig whoami.akamai.net` (Akamai)
> - **Section 22 (interfaces):** `dig google.com` (Google)
>
> For a **fully offline audit** that makes zero outbound requests, use:
> ```bash
> sudo bash noid-privacy-linux.sh --skip vpn --skip interfaces --skip netleaks
> ```
> The leak tests themselves require these third-party endpoints to function โ there's no way to test "does my IP leak?" without contacting an external service.
---
## ๐ง Troubleshooting
| Issue | Solution |
|-------|----------|
| `Requires root` error | Run with `sudo bash noid-privacy-linux.sh` |
| False positive on a check | Open an [issue](https://github.com/NexusOne23/noid-privacy-linux/issues) with your distro and the finding |
| DNS leak test fails/hangs | Skip it: `--skip netleaks`. Requires `dig` and `curl`. |
| Score seems too low | Check if `--skip` sections are relevant to your setup. Desktop-only checks may warn on servers. |
| Script hangs on Bluetooth | Known `bluetoothctl` timeout issue. Skip: `--skip btprivacy` |
| Missing checks for my distro | Fedora/RHEL optimized; Ubuntu/Debian tested; Arch/openSUSE/Mint/Pop!_OS best-effort. Other distros may show more `info` results. |
---
## ๐ค Contributing
Contributions welcome โ new checks, bug fixes, distro support.
- [Contributing Guide](CONTRIBUTING.md) โ Code architecture, style, testing
- [Bug Reports](https://github.com/NexusOne23/noid-privacy-linux/issues) โ Found a false positive?
- [Feature Requests](https://github.com/NexusOne23/noid-privacy-linux/issues)
- [Discussions](https://github.com/NexusOne23/noid-privacy-linux/discussions)
- [Security Policy](SECURITY.md) โ Report vulnerabilities privately
---
## ๐ License
**GPL v3.0** โ Free for personal and commercial use. Derivatives must also be GPL v3.0.
For commercial licensing without GPL requirements, open a [Discussion](https://github.com/NexusOne23/noid-privacy-linux/discussions).
[Full License โ](LICENSE)
---
**[โญ Star this repo](https://github.com/NexusOne23/noid-privacy-linux)** if it's useful โ helps others find the project.
**NoID Privacy for Linux** โ *Know your system. Harden your privacy.*