ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

black-fortress

Pre-installation agentic sandboxing protocol. 5-layer defense: semantic neutralization, hard quarantine, kernel ground-truth, trusted output rendering, and sterile autopsy.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/almohalhel1408/black-fortress
Or

Black-Fortress Protocol

Pre-Installation Agentic Sandboxing & Interrogation.

This fortress does not monitor intentions. It enforces physical laws.

A feature that cannot survive this protocol does not deserve execution.


Architecture Overview

┌─────────────────────────────────────────────────────────────────┐
│                    BLACK-FORTRESS ORCHESTRATOR                   │
│                  Deterministic Python — Zero LLM                 │
├─────────┬───────────┬──────────────┬─────────────┬──────────────┤
│ Layer 1 │  Layer 2  │   Layer 3    │   Layer 4   │   Layer 5    │
│ Semantic│  Hard     │   Kernel     │   Trusted   │   Sterile    │
│ Neutral-│  Quarantine│  Ground-Truth│   Output    │   Autopsy    │
│ ization │           │              │  Rendering  │              │
├─────────┴───────────┴──────────────┴─────────────┴──────────────┤
│              GATE: ALL 5 LAYERS PASS = APPROVE                  │
│              ANY FAIL = REJECT (Fail-Closed)                    │
├─────────────────────────────────────────────────────────────────┤
│              ANTI-GHOST: VM deletion + audit log chain          │
└─────────────────────────────────────────────────────────────────┘

When to Use

  • Before installing any third-party agent/skill/feature into production
  • Before executing untrusted code from external sources
  • When validating AI-generated code for deployment
  • When a feature's behavior must be verified beyond code review

Requirements

RequirementDetails
Python3.9+ (required for orchestrator and all layer scripts)
DockerDocker Desktop (macOS) or Docker Engine (Linux 20.04+)
Pillow (PIL)Required — Layer 4 image recompression fails closed without it
PrivilegesNon-root for Docker mode; root only for optional Firecracker micro-VM mode
OSmacOS 12+ (Docker Desktop) or Linux (Ubuntu 20.04+, seccomp support)
Disk~100MB for distroless sandbox image
NetworkNone required at runtime (Docker --network=none)

No API keys, no cloud accounts, no external services. The entire protocol runs locally.

The Semantic Paradox (Security Feature)

Black-Fortress Layer 1 obfuscation is designed to preserve AST (Abstract Syntax Tree) logic while destroying all surface-level semantics. This means:

  • ✅ Control flow (if/else, loops, exceptions) is preserved exactly
  • ✅ Function signatures (arity, return types) are preserved
  • ✅ Import structure is preserved
  • ❌ Variable names, function names, class names → randomized hashes
  • ❌ Comments, docstrings → stripped entirely
  • ❌ String literals >50 chars → truncated

Any code that relies on hardcoded string-reflection (e.g., getattr(obj, "user_input"), eval(), exec() with dynamic strings, __name__ comparisons) will intentionally break under obfuscation.

Metadata

Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-almohalhel1408-black-fortress": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.