# Home Assistant Forensic Logging & Audit Architect

> Design and audit a tamper-evident, OS-agnostic 5-layer forensic architecture for Home Assistant: hash-chained audit logs, secret redaction, write-only WORM archival, and a zero-dependency chain verifier.

Home Assistant Forensic Logging & Audit Architect is a paid AI agent skill on Agensi by Sam3gp8, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [Sam3gp8](https://www.agensi.io/creators/sam3gp8)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0.0
- Last updated: 2026-12-05
- Security: scan passed (2026-12-02); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/home-assistant-forensic-logging-audit-architect
- Tags: security, devops-cloud

## What it does

- Audits Home Assistant deployments for causal-chain, auth, and logging blind spots
- Scaffolds a hash-chained custom integration that redacts secrets before disk write
- Generates write-only S3/B2 WORM policies, Alloy/Loki collectors, and dead-man alerts
- Verifies multi-file SHA-256 chain integrity and secret redaction offline in Python

## Who it's for

- **Security-minded Home Assistant admins:** Tamper-evident SHA-256 audit trails and off-host WORM archival across HAOS, Docker, Supervised, or Core. Try: "Audit my Supervised Home Assistant for forensic blind spots and scaffold a tamper-evident audit-log integration."
- **Incident-response & homelab engineers:** Executor-offloaded log interception, write-only S3/B2 IAM policies, and Loki dead-man's-switch alert rules. Try: "Generate a write-only S3 Object Lock Compliance policy and hardened Alloy collector config with no raw docker.sock mount"
- **Compliance & audit builders:** Recursive secret redaction before hashing and a zero-dependency CLI to prove chain integrity offline. Try: "Walk me through verifying a rotated multi-file audit chain and secret-redaction compliance with verify_forensic_chain.py"

## About this skill

**HA Forensic Architect** turns your agent into an incident-response and forensic-architecture engineer for a Home Assistant instance you operate. It designs, audits, and scaffolds an adversarial-grade, **OS-agnostic 5-layer architecture** that separates live operational state from tamper-evident, off-host evidence — so a compromised or crashed Core cannot erase its own trail. Works across HAOS, Container (Docker/Podman/K8s), Supervised, and Core/venv on Linux, macOS, BSD, or Windows.

**What it enforces:**
- **Hash-chained audit logs** — sequential SHA-256 (or HMAC) chaining with rotation seals and off-host checkpoint anchoring, so tail truncation and full-file rewrites are detectable, not just mid-file edits.
- **Secret redaction before hashing** — recursively scrubs PINs, lock codes, tokens, and credentials out of `call_service`/event payloads before anything touches disk.
- **Write-only WORM archival** — S3/B2 Object Lock *Compliance Mode* IAM that denies delete/retention tampering even from compromised admin keys.
- **No raw `docker.sock`** to log shippers, event-loop safety (executor-offloaded hashing/fsync, bounded drop-counted queues), and an off-host **dead-man's-switch**.
- **Closes known HA Core blind spots:** broken causal chains (`parent_id: None`), missing structured auth logs, and secret leakage in service payloads.

**Ships ready to run:**
- `references/interceptor-scaffold.py` — a hardened Layer-2 custom-integration scaffold (redaction, executor-only hash chaining, sealed rotation, bounded queues).
- `references/worm-iam-and-collector-templates.md` — write-only IAM, hardened Alloy/Loki collector, and dead-man's-switch alert rules.
- `scripts/verify_forensic_chain.py` — a **zero-dependency** CLI that verifies sequence monotonicity, SHA-256 chain integrity, rotation-seal handoffs, off-host checkpoint match, and redaction compliance (tested: passes a valid multi-file chain and flags both tampering and leaked secrets).

Provides engineering patterns for systems you own or administer; not a guarantee of security/compliance, and not legal advice.

## Requires

- Home Assistant
- Python 3.8+ (for the verifier)
- Optional: S3 or Backblaze B2 (Object Lock)
- Optional: Grafana Loki / Alloy or a SIEM

Full architecture uses off-host infra (S3/B2 Object Lock bucket, Loki/Alloy/SIEM) you provide. The chain verifier and the design/audit guidance need nothing beyond Python 3.8+.

## Known limitations

Provides forensic-architecture design, audit guidance, an integration scaffold, and a chain verifier — it does not host your evidence store, ship your logs, or run a live Home Assistant. Off-host WORM storage and a log aggregator are yours to provision. It is for instances you own or are authorized to administer, and is not a security guarantee or legal/compliance advice.

## Technical details

Built for Claude Code, Cursor, ChatGPT, and MCP-compatible coding agents targeting Home Assistant (HAOS, Container/Docker/Podman/K8s, Supervised, and Core/venv on Linux, macOS, BSD, or Windows) and Python 3.8+.

Bundled assets:
• references/interceptor-scaffold.py — Hardened Layer-2 custom-integration scaffold with recursive secret redaction, executor-only SHA-256/HMAC hash chaining, sealed log rotation, and bounded drop-counted queues.
• references/worm-iam-and-collector-templates.md — Write-only S3/B2 Object Lock Compliance Mode IAM policies, hardened Alloy/Loki collector configs (no raw docker.sock), and off-host dead-man's-switch alert rules.
• scripts/verify_forensic_chain.py — Zero-dependency Python CLI verifying sequence monotonicity, SHA-256 chain integrity, rotation-seal handoffs, off-host checkpoint anchors, and redaction compliance.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Home Assistant Forensic Logging & Audit Architect skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Home Assistant Forensic Logging & Audit Architect do?

Design and audit a tamper-evident, OS-agnostic 5-layer forensic architecture for Home Assistant: hash-chained audit logs, secret redaction, write-only WORM archival, and a zero-dependency chain verifier.

### Which AI agents support Home Assistant Forensic Logging & Audit Architect?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Home Assistant Forensic Logging & Audit Architect?

Connect your AI agent to Agensi through MCP, then ask it to use Home Assistant Forensic Logging & Audit Architect on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
