Works with the AI Agents you already use

    Home Assistant Forensic Logging & Audit Architect

    by Sam3gp8

    1

    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.

    $19

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    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 asking: “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 asking: “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 asking: “Walk me through verifying a rotated multi-file audit chain and secret-redaction compliance with verify_forensic_chain.py”

    Home Assistant Forensic Logging & Audit Architect

    Home Assistant Forensic Logging & Audit Architect

    Example session with this skill installed

    Audit my Supervised Home Assistant for forensic blind spots and scaffold a tamper-evident audit-log integration.

    • Read your context and instructions
    • Compiled the home assistant forensic

    Forensic Blind-Spot Audit (Supervised / Debian Stack)

    SeverityBlind SpotRemediation Applied
    CRITICALLocal SQLite/journald logs live on the same host as Core; a compromised root shell can truncate or rewrite historySplit into 5-layer architecture with off-host SHA-256 checkpoint anchoring and write-only S3/B2 WORM archival
    CRITICALService-call payloads (call_service) leak PINs, lock codes, and long-lived tokens into raw event streamsAdded recursive pre-hash secret redaction in custom_components/forensic_audit/ before disk write
    HIGHMQTT and webhook triggers drop parent_id: None, breaking causal attribution during incident reconstructionInjected correlation metadata and structured auth-event capture at Layer 2
    HIGHLog shipper container mounts raw /var/run/docker.sock, granting trivial host root escalationReplaced with hardened Grafana Alloy config reading bind-mounted read-only log volumes + Loki dead-man's-switch alert

    Layer-4 Write-Only WORM IAM Policy (worm-iam-and-collector-templates.md)

    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "AllowAppendOnlyEvidenceUpload",
          "Effect": "Allow",
          "Action": ["s3:PutObject", "s3:PutObjectRetention"],
          "Resource": "arn:aws:s3:::ha-forensic-worm/evidence/*"
        },
        {
          "Sid": "DenyDeleteOrBypassComplianceLock",
          "Effect": "Deny",
          "Action": [
            "s3:DeleteObject",
            "s3:DeleteObjectVersion",
            "s3:BypassGovernanceRetention",
            "s3:PutBucketLifecycleConfiguration"
          ],
          "Resource": "*"
        }
      ]
    }
    

    Offline Chain Verification (scripts/verify_forensic_chain.py)

    $ python3 scripts/verify_forensic_chain.py \
        --log-dir /var/log/ha-forensic \
        --checkpoint s3-anchor-2026-12-04.json
    
    [PASS] Sequence monotonicity: 14,820 records (seq 1..14820, 0 gaps)
    [PASS] SHA-256 chain & rotation seals: 4 segments verified, handoffs intact
    [PASS] Off-host checkpoint match: head hash matches WORM anchor
    [PASS] Secret redaction scan: 0 unredacted tokens, PINs, or lock codes detected
    RESULT: CHAIN INTEGRITY VERIFIED
    

    Next Step: Deploy custom_components/forensic_audit/ (executor-offloaded hashing, bounded drop-counted queue), provision your S3/B2 bucket with Object Lock in Compliance Mode, and wire the Loki dead-man's-switch alert before cutting over.

    Connects securely to your tools. The creator never sees your data.

    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.

    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.

    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

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 3 days ago

    Software
    Home AssistantPython 3.8+ (for the verifier)
    Optional
    S3
    orBackblaze B2 (Object Lock)
    Grafana Loki / Alloy
    ora 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+.

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Scaffolds integration code in your repo and runs the offline chain verifier. The skill itself makes no network calls; the templates configure YOUR off-host S3/B2/Loki endpoints.

    Listed3 days ago
    Updatedtoday

    What's inside

    Frequently Asked Questions

    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.

    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.

    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.

    New in Security

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.