← All projects
Project record1 mention
Originally shared on Hacker News

Maat

Maat is an AI agent for diagnosing Ubuntu systems: its tools run as an MCP server inside a strictly confined snap that can read the journal, systemd units, processes, and disks but refuses internet sockets, file writes, and D-Bus actions. The model cannot run commands; it proposes a typed fix plan citing the log lines it relied on, which the user applies via a separate polkit-gated tool, with every step recorded in a hash-chained audit trail. Released as a developer preview for Ubuntu 24.04 on the Snap Store edge channel, written in Go, GPL-3.0.

Last shared
01 / The problem

What it addresses

Troubleshooting Linux machines with an AI agent without handing it a shell, since logs can be written by strangers (log injection) and one successful injection through a shell can do anything the user can.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Maat

    Maat is an AI agent for diagnosing Ubuntu systems: its tools run as an MCP server inside a strictly confined snap that can read the journal, systemd units, processes, and disks but refuses internet sockets, file writes, and D-Bus actions. The model cannot run commands; it proposes a typed fix plan citing the log lines it relied on, which the user applies via a separate polkit-gated tool, with every step recorded in a hash-chained audit trail. Released as a developer preview for Ubuntu 24.04 on the Snap Store edge channel, written in Go, GPL-3.0.

    Problem: Troubleshooting Linux machines with an AI agent without handing it a shell, since logs can be written by strangers (log injection) and one successful injection through a shell can do anything the user can.

    Posted by @boulesmarzouk · Original source ↗

    Story title · @boulesmarzouk · · Source ↗

    Show HN: Maat – AI agents that can diagnose Ubuntu but can't change it

    Submitted URL · @boulesmarzouk · · Source ↗

    https://github.com/bolesawny7/maat

    Source text · @boulesmarzouk · · Source ↗

    I built maat because I wanted an AI agent to help me troubleshoot Linux machines without handing it a shell.

    Source text · @boulesmarzouk · · Source ↗

    The problem with a shell is that logs are written by strangers. An SSH login attempt puts the username into the auth log as typed, and so does anything a local user sends through logger. An agent reading logs is reading text that can be written for it, and with a shell, one successful injection can do anything you can.

    Source text · @boulesmarzouk · · Source ↗

    The agent's tools run as an MCP server inside a strictly confined snap. It can read the journal, systemd units, processes and disks, but AppArmor and seccomp refuse internet sockets, writes to your files, and even RestartUnit over D-Bus.

    Source text · @boulesmarzouk · · Source ↗

    The model can't run commands. It can only propose a typed plan, such as restarting one failed .service unit, citing the log lines it relied on.

    Source text · @boulesmarzouk · · Source ↗

    You apply the plan with a separate tool that goes through polkit, the same prompt systemctl uses, and it checks the result. Every step goes into a hash-chained audit trail.

    Source text · @boulesmarzouk · · Source ↗

    It's a developer preview: Ubuntu 24.04 tested, on the Snap Store's edge channel, written in Go, GPL-3.0.