An open API service indexing awesome lists of open source software.

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: 24 days ago
JSON representation

๐Ÿ›ก๏ธ Privacy & Security Audit for Linux Desktops โ€” 300+ checks, 42 sections, zero dependencies, pure Bash. AI-powered fixes with --ai flag.

Awesome Lists containing this project

README

          

# ๐Ÿ›ก๏ธ NoID Privacy for Linux

### Privacy & Security Audit for Linux Desktops

[![License: GPL-3.0](https://img.shields.io/badge/license-GPL--3.0-blue.svg)](https://github.com/NexusOne23/noid-privacy-linux/blob/main/LICENSE)
[![Version](https://img.shields.io/badge/version-3.5.0-green.svg)](https://github.com/NexusOne23/noid-privacy-linux/releases)
[![Pure Bash](https://img.shields.io/badge/pure-bash-4EAA25.svg?logo=gnu-bash&logoColor=white)](https://github.com/NexusOne23/noid-privacy-linux)
[![Zero Dependencies](https://img.shields.io/badge/dependencies-zero-brightgreen.svg)](https://github.com/NexusOne23/noid-privacy-linux)
[![Checks](https://img.shields.io/badge/checks-390%2B-orange.svg)](https://github.com/NexusOne23/noid-privacy-linux)
[![CI](https://github.com/NexusOne23/noid-privacy-linux/actions/workflows/ci.yml/badge.svg)](https://github.com/NexusOne23/noid-privacy-linux/actions)
[![GitHub Stars](https://img.shields.io/github/stars/NexusOne23/noid-privacy-linux?style=flat&logo=github)](https://github.com/NexusOne23/noid-privacy-linux/stargazers)
[![Last Commit](https://img.shields.io/github/last-commit/NexusOne23/noid-privacy-linux?style=flat)](https://github.com/NexusOne23/noid-privacy-linux/commits)
[![Website](https://img.shields.io/badge/Website-noid--privacy.com-0078D4?style=flat)](https://noid-privacy.com)

**390+ 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
```

390+ privacy & security checks. Zero dependencies. The `--ai` flag generates a ready-to-paste prompt โ€” hand it to ChatGPT, Claude, or Gemini to **fix every finding automatically**.

> **This tool is read-only.** It does not modify your system. No files changed, no configs touched, no services restarted.

> **๐ŸชŸ Running Windows too?** [NoID Privacy for Windows](https://noid-privacy.com) hardens **630+ settings** with full Backup โ†’ Apply โ†’ Verify โ†’ Restore. One-time purchase, no subscription.

---

## ๐Ÿค” 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-powered fixes | โŒ | โœ… |

---

## ๐Ÿค– 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 will explain each finding, provide exact commands to fix it, and prioritize by severity.

**Audit โ†’ AI โ†’ Fixed.** What used to take hours takes minutes.

```bash
# AI-ready 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
```

> No other Linux audit tool generates an AI remediation prompt. The `--ai` flag is our USP.

---

## ๐Ÿ“‹ 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.5.0 โ€” Privacy & Security 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: 390+ across 42 sections

โ”โ”โ” [01/42] KERNEL & BOOT INTEGRITY โ”โ”โ”
โœ… PASS Secure Boot: ENABLED
โœ… PASS Kernel Lockdown: integrity
โœ… PASS LUKS encryption active

โ”โ”โ” [05/42] VPN & NETWORK โ”โ”โ”
โœ… PASS VPN interface proton0: 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: 460 (298 pass, 0 fail, 5 warn, 157 info)
SECURITY & PRIVACY SCORE: 98% ๐Ÿฐ FORTRESS

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-ready fix 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** | 390+ | 480+ | N/A | varies |
| **Browser privacy** | โœ… | โŒ | โš ๏ธ Partial | โŒ |
| **App telemetry** | โœ… | โŒ | โœ… | โŒ |
| **DNS / VPN / MAC** | โœ… | โŒ | โŒ | โŒ |
| **Webcam / Bluetooth** | โœ… | โŒ | โŒ | โŒ |
| **AI-ready output** | โœ… | โŒ | โŒ | โŒ |
| **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+ |
| **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: Privacy & Security Audit
# SECURITY: Pin to specific version, never @main (supply chain risk)
uses: NexusOne23/noid-privacy-linux@v3.5.0
id: audit
with:
min-score: '70' # Fail if score < 70%
```

### Inputs

| Input | Default | Description |
|-------|---------|-------------|
| `min-score` | `0` | Minimum score to pass (0 = never fail). Canonical name since v3.5.0. |
| `fail-threshold` | `''` | DEPRECATED alias for `min-score`. Will be removed in v4.0. |
| `ai` | `false` | Generate AI remediation prompt in summary |
| `skip` | `''` | Comma-separated sections to skip |
| `args` | `''` | Additional arguments for the script |

### Outputs

| Output | Description |
|--------|-------------|
| `score` | Privacy & security 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@v4.2.2
- uses: NexusOne23/noid-privacy-linux@v3.5.0 # 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 fixes
- **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 PRO](https://noid-privacy.com) โ€” 630+ settings, full hardening framework

---

## ๐Ÿ”— The NoID Privacy Ecosystem

| Platform | Link |
|----------|------|
| ๐ŸŒ **Website** | [NoID-Privacy.com](https://noid-privacy.com) โ€” All platforms, pricing, and documentation |
| ๐ŸชŸ **Windows** | [NoID Privacy PRO](https://noid-privacy.com) โ€” 630+ settings, 7 modules, Backup โ†’ Apply โ†’ Verify โ†’ Restore |
| ๐Ÿง **Linux** | You're here! |
| ๐Ÿ“ฑ **Android** | [NoID Privacy on Google Play](https://play.google.com/store/apps/details?id=com.noid.privacy) โ€” 81 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, Ubuntu/Debian, Arch, and openSUSE are fully supported. 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.*