Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Containers
  3. bane

bane

MITGov0.4.4

A custom AppArmor profile generator for Docker containers that simplifies container security.

GitHubGitHub
1.2k stars91 forks0 contributors

What is bane?

Bane is a custom AppArmor profile generator designed specifically for Docker containers. It automates the creation of security profiles that restrict container capabilities, such as filesystem access, network operations, and process execution. This tool solves the problem of manually crafting complex AppArmor rules, which is tedious and error-prone, by generating profiles from simple configuration files.

Target Audience

System administrators, DevOps engineers, and security-focused developers who deploy Docker containers in production and need to enforce strict security policies without manual AppArmor configuration.

Value Proposition

Developers choose Bane because it drastically simplifies AppArmor profile management for Docker, offering a declarative configuration approach that reduces human error and saves time compared to writing profiles by hand. Its seamless Docker integration and focus on practical security make it a pragmatic tool for hardening containers.

Overview

Custom & better AppArmor profile generator for Docker containers.

Use Cases

Best For

  • Hardening Docker containers with custom AppArmor policies
  • Automating security profile generation for containerized applications
  • Restricting container capabilities to prevent privilege escalation
  • Auditing filesystem access and write operations in containers
  • Enforcing least-privilege security models in Docker deployments
  • Simplifying AppArmor configuration for DevOps teams

Not Ideal For

  • Environments using SELinux or other Linux Security Modules instead of AppArmor
  • Teams wanting fully automated, zero-configuration security without manual TOML file setup
  • Dynamic container workloads requiring runtime security policy updates without profile recompilation

Pros & Cons

Pros

Automated Profile Creation

Generates AppArmor profiles from simple TOML files, eliminating the need to write complex AppArmor syntax manually, as demonstrated in the sample.toml config for nginx.

Flexible Filesystem Control

Supports file globbing patterns (e.g., wildcards, directory exclusions) for defining allowed or denied paths, enabling fine-grained access control without hardcoding every file.

Seamless Docker Integration

Installs profiles directly and applies them with Docker's --security-opt flag, making it easy to enforce security on running containers without extra steps.

Enhanced Security Auditing

Includes LogOnWritePaths for configurable logging of write operations, helping monitor and debug security events, as shown in the dmesg output examples.

Cons

AppArmor Dependency

Only works on Linux systems with AppArmor enabled, making it unsuitable for environments using SELinux or other security modules, which limits its portability.

Manual Configuration Overhead

Requires users to write and maintain TOML configuration files, which can be error-prone and demands a good understanding of the container's security needs and AppArmor concepts.

Proof-of-Concept Limitations

Originally a proof of concept for Docker integration, as noted in the README, implying it might lack full production-ready features, active maintenance, or native Docker engine support.

Frequently Asked Questions

Quick Stats

Stars1,232
Forks91
Contributors0
Open Issues3
Last commit5 years ago
CreatedSince 2015

Tags

#container-security#devops#docker-security#apparmor#security-hardening#cli-tool#security#system-administration#linux-security#docker#cli#linux#opencontainers#containers#go

Built With

G
Go

Included in

Containers2.0k
Auto-fetched 1 day ago

Related Projects

gvisorgvisor

Application Kernel for Containers

Stars18,521
Forks1,635
Last commit2 days ago
Docker bench securityDocker bench security

The Docker Bench for Security is a script that checks for dozens of common best-practices around deploying Docker containers in production.

Stars9,655
Forks1,039
Last commit10 days ago
gossgoss

Quick and Easy server testing/validation

Stars5,904
Forks490
Last commit6 days ago
docker-explorerdocker-explorer

A tool to help forensicate offline docker acquisitions

Stars554
Forks45
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub