From 8e645706742885ea14626b7e513c2fdf4e55a43b Mon Sep 17 00:00:00 2001 From: TheMindDev <236810990+theMindDeveloper@users.noreply.github.com> Date: Fri, 9 Oct 2026 09:26:09 +0000 Subject: [PATCH] AdGuard: login fixed; runbook checks users: and lockout --- docs/11-hardening.md | 4 ++++ .../2026-10-08-ai-agent-least-privilege.md | 3 +++ runbooks/03-adguard-home-dns.md | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+) diff --git a/docs/11-hardening.md b/docs/11-hardening.md index 3995e56..3e72c54 100644 --- a/docs/11-hardening.md +++ b/docs/11-hardening.md @@ -131,6 +131,10 @@ AdGuard Home resolves for every device. Blocks ad and tracker domains, and incidentally a good share of malware command-and-control domains, for devices that cannot run any security software of their own. +Its admin UI has a login and locks out after 5 wrong tries. That matters more +than it sounds: whoever controls DNS can send every device in the house to a +fake site. → [AdGuard runbook](../runbooks/03-adguard-home-dns.md) + ### Encrypted upstream DNS Since September 2026 AdGuard forwards to Quad9 over DoH and DoT instead of diff --git a/docs/reports/2026-10-08-ai-agent-least-privilege.md b/docs/reports/2026-10-08-ai-agent-least-privilege.md index 89d211c..bd79e65 100644 --- a/docs/reports/2026-10-08-ai-agent-least-privilege.md +++ b/docs/reports/2026-10-08-ai-agent-least-privilege.md @@ -133,6 +133,9 @@ The first look already paid for itself: The nightly job in [`docs/07`](../07-backup-and-recovery.md) is not actually running. - 🟠 **AdGuard has no login.** Anyone on the LAN could change DNS for the house. + *Update 2026-10-09: fixed. AdGuard now has a login, plus a separate user for + the exporter, and locks out after 5 wrong tries. The steps are in + [runbook 03](../../runbooks/03-adguard-home-dns.md#5--verify).* - 🟡 **The NAS is `.79`.** The NFS storage points there, which settles the `.49`/`.79` disagreement in these docs. - 🟡 **`check-secrets.sh` doesn't block in pre-commit mode.** Findings are diff --git a/runbooks/03-adguard-home-dns.md b/runbooks/03-adguard-home-dns.md index cb1fa0a..c704fe4 100644 --- a/runbooks/03-adguard-home-dns.md +++ b/runbooks/03-adguard-home-dns.md @@ -77,6 +77,21 @@ container, published as 8000, so the admin UI ends up at | Username | not `admin` | | Password | generated, stored in Vaultwarden | +The wizard asks for this login, but check it stuck: in +`conf/AdGuardHome.yaml`, `users:` must not be `[]`. This lab ran without a +login for months before anyone noticed. While you're in that file, turn on the +lockout (AdGuard's own defaults; `0` means off): + +```yaml +auth_attempts: 5 # wrong passwords before a lockout +block_auth_min: 15 # minutes locked out +``` + +AdGuard has no read-only role. Anything that reads its API (the +[exporter](21-logs-and-crowdsec.md), the Glance widget) gets its own user, +so its password can change without touching yours. Add more users in that +`users:` list as a name plus a bcrypt hash, with AdGuard stopped. + ### Upstream resolvers Settings → DNS settings. Updated September 2026, see @@ -150,6 +165,9 @@ everyone and step 4 did not take effect.* dig @192.168.178.178 example.com # resolves dig @192.168.178.178 doubleclick.net # expect 0.0.0.0 or NXDOMAIN dig @192.168.178.178 grafana.theminddev.com # expect 192.168.178.178 + +# the UI must refuse you without a login +curl -s -o /dev/null -w '%{http_code}\n' http://192.168.178.178:8000/control/status # expect 401 ``` Then open the query log in the UI. Every device on the network should be