Skip to main content

R4t — Active Directory Red Team Framework

R4t is a comprehensive Active Directory (AD) exploitation and reconnaissance framework written in Go. It is designed to run from within an already-accessed environment, giving red team operators a single, integrated tool for enumerating, assessing, and exploiting AD environments. R4t is not a command-and-control (C2) framework. It is an operator-side tool — you run it from your attacking machine or a foothold box to interact with a target AD forest. Transparent GIF

What R4t Does

R4t covers the full lifecycle of an AD engagement:

Command Overview

R4t is organized into top-level commands. Each command groups related operations:

Global Flags

All commands inherit these persistent flags from the root command:

Authentication

Connection

Database


Key Concepts

  • Targets — Hosts you are operating against. R4t stores them in a database and lets you set a default.
  • Credentials — Authentication material (passwords, hashes, certificates, ccache files). Stored securely and selected by ID or set as default.
  • Settings — Persistent configuration like domain, nameserver, proxy, and output options.
  • Database — A dual-store system (Badger KV + SQLite) that persists all findings, scan results, and configuration.
  • Payload Factory — A deterministic, recipe-based build system that generates execution artifacts (EXE, DLL, shellcode, PIC, BOF, scripts) on demand with capability-based resolution.

Further Reading