micromize

module
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2025 License: Apache-2.0

README

micromize is a security hardening tool designed to detect and break the post-exploit kill chain for containerized applications, leveraging BPF LSM.

Demo

Overview

Traditional container security often involves creating complex profiles (like Seccomp or SELinux) for each application to audit or restrict its capabilities. micromize flips this model. Instead of defining what each container can do, micromize applies a broad set of sensible restrictions to all containers running on a node, auditing and blocking dangerous flows that are rarely needed by legitimate containerized workloads and often used for container escapes.

By deploying micromize to your nodes, you instantly harden the entire node. You then manage exclusions for specific workloads that require broader permissions, rather than managing restriction profiles for everyone else.

How it Works

micromize leverages BPF LSM to enforce policies at the kernel level. It is built on top of Inspektor Gadget, using a modular architecture to load and execute eBPF programs.

Getting Started

Prerequisites

Micromize is under active development and wasn't tested on a broad set of environments. Currently, development is done on Linux kernel 6.11 with BPF LSM support.

We are using the ig cli v0.46.0 for building gadgets (eBPF programs) that are embedded into the tool.

Building

make build-all

Running

micromize can run in two modes:

  1. Enforce Mode (Default): Blocks restricted actions and logs them.

    sudo dist/micromize-linux-[amd64|arm64] --enforce=true
    
  2. Audit Mode: Logs events without blocking. Useful for profiling workloads.

    sudo dist/micromize-linux-[amd64|arm64] --enforce=false
    

Output

Events are output in JSON format to stdout.

{"filename":"/mnt/ls","k8s":{"containerName":"","hostnetwork":false,"namespace":"","node":"","owner":{"kind":"","name":""},"podLabels":"","podName":""},"process":{"comm":"nope\n","creds":{"gid":0,"uid":0},"mntns_id":4026532763,"parent":{"comm":"nope\n","pid":2855519},"pid":2855685,"tid":2855685},"runtime":{"containerId":"a60a9c1bfe276bb228edc5b69799e93f81ad22b48df38352a61a4dab979de15a","containerImageDigest":"sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab","containerImageName":"ubuntu:latest","containerName":"angry_satoshi","containerPid":2855519,"containerStartedAt":1764281145433600315,"runtimeName":"docker"},"timestamp_raw":5666551227589565}

Directories

Path Synopsis
cmd
micromize command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL