GO KALI FREE

Empire

Post Exploitation

Advancedhigh risk

Empire is an open-source post-exploitation and command-and-control (C2) framework originally created by @harmj0y and now maintained by BC-Security. It uses PowerShell and Python-based agents to model adversarial persistent access behaviors for authorized security testing, red team engagements, and defensive detection engineering. Empire provides encrypted communications, modular capabilities, and a flexible agent system for extended operations against Windows and Linux environments.

Installation

sudo apt install powershell-empire

Basic Syntax

powershell-empire

Quick Facts

Full Name
PowerShell Empire
License
BSD 3-Clause
Language
Python / PowerShell
Interface
CLI (client/server)
Category
C2 Framework
Architecture
Client-Server
First Release
2015
Maintainer
BC-Security
Agent Types
PowerShell (Windows), Python (Linux)
Encryption
AES-256

Tool Overview

Empire is a free, open-source post-exploitation and command-and-control (C2) framework originally created by @harmj0y (Will Schroeder) in 2015 and now actively maintained by BC-Security. It provides red teams and security researchers with a robust platform for simulating advanced persistent threat (APT) behaviors during authorized engagements.

The framework uses a client-server architecture where the server manages listeners, agents, and modules, while the client provides the interactive console. Empire's agents use PowerShell (for Windows) and Python (for Linux) to maintain encrypted C2 channels back to the server, enabling remote command execution, credential harvesting, lateral movement, and persistence.

With hundreds of built-in modules covering reconnaissance, privilege escalation, credential extraction (including Mimikatz integration), lateral movement, and exfiltration, Empire enables comprehensive post-exploitation assessment. Blue teams and SOC analysts also study Empire's techniques to build detection rules and improve defensive capabilities.

Empire is intended exclusively for authorized security testing, educational purposes, and defensive research. Always obtain proper written authorization before using this tool in any engagement.

Common Commands

powershell-empire serverStart the Empire team server (RESTful API backend) that agents connect back to
powershell-empire clientLaunch the Empire client console that connects to the server
powershell-empire server --config config.yamlStart the server with a custom configuration file
listenersList active listeners in the client console
uselistener httpSelect the HTTP listener module to configure
set Port 8080Set an option (here the listen port) on the selected listener
set Host http://10.10.10.10:8080Set the callback host/URL the agent will use
executeStart the currently configured listener
usestager multi/launcherSelect a stager to generate agent-delivery code
set Listener httpBind the selected stager to a named listener
generateGenerate the stager output (e.g. a PowerShell launcher one-liner)
agentsList all agents that have called back to the server
interact <NAME>Enter an interactive session with a specific agent
usemodule powershell/collection/keyloggerSelect a post-exploitation module to run on the active agent
shell whoamiRun a shell command on the interacted agent
sysinfoRetrieve system information from the active agent
download C:\Users\Public\file.txtDownload a file from the agent to the Empire server
upload /path/to/fileUpload a local file to the compromised host via the agent
credentialsDisplay credentials harvested and stored by Empire
kill <NAME>Terminate a specific agent
rename <NAME> newnameRename an agent for easier tracking
usestager windows/dllSelect the Windows DLL stager for injection-based delivery
pluginsList loaded server plugins available in the client
infoShow the current module/listener options and their values
backLeave the current menu and return to the previous one

Step-by-Step Guide

  1. 1Install Empire using your package manager or from the official GitHub repository
  2. 2Start the Empire server backend with sudo powershell-empire server
  3. 3Launch the client console with sudo powershell-empire client to connect to the server
  4. 4Configure a listener (such as HTTP) to establish a C2 ingress point for agent connections
  5. 5Generate a stager payload appropriate for your target environment
  6. 6Deploy the stager on the authorized target system within your lab or engagement scope
  7. 7Monitor for incoming agent connections using the agents command
  8. 8Task agents with modules for post-exploitation activities within your authorized scope

Warnings

Use Cases

C2 Infrastructure

Establish encrypted command and control channels for authorized post-exploitation operations.

Agent Management

Deploy and manage lightweight agents on Windows and Linux targets within authorized scope.

Module Execution

Execute hundreds of post-exploitation modules for reconnaissance, credential harvesting, and persistence.

Lateral Movement

Simulate adversary lateral movement across network segments during authorized engagements.

Credential Harvesting

Extract credentials using built-in Mimikatz integration and custom credential modules.

Detection Validation

Test an organization's ability to detect C2 communications and PowerShell-based attacks.

Key Features

Best Practices

Common Errors

Server fails to start with Python import errors
Install Python 3.6+: sudo apt install python3 python3-pip. Run the Empire setup script: cd Empire && sudo python3 setup/install.sh
No listeners available or listener creation fails
Ensure the server is running (sudo powershell-empire server). Check database configuration in the Empire config file.
Agent not checking in after stager execution
Verify listener is running with listeners command. Test connectivity from the target network. Check firewall rules for the listener port.
Module failed to execute on agent
Check agent OS and version with agents command. Verify module requirements. Use privesc modules before running privileged modules.
Database locked error when starting server
Kill any existing Empire processes: pkill -f empire. Remove the database lock file if necessary: rm ~/.empire/database.lock
ImportError: No module named 'empire'
Reinstall Empire from the official repository. Run: pip3 install -r requirements.txt from the Empire directory.
Connection refused on listener port
Check for port conflicts: sudo netstat -tlnp | grep <port>. Use a different port or stop conflicting services.
Stager generation fails with invalid options
Set all required parameters before generating. Use info command to view required options for the stager.

People Also Ask

What is the difference between Empire and Cobalt Strike?

Empire is a free, open-source C2 framework maintained by BC-Security, while Cobalt Strike is a commercial adversary simulation platform costing $3500+ per year. Empire uses PowerShell/Python agents with a CLI, while Cobalt Strike offers a full GUI with malleable C2 profiles and team collaboration features.

How do I set up an Empire HTTP listener?

In the Empire client console, run uselistener http, then set Host http://10.10.10.10:8080 and set Port 8080. Finally, execute the listener with the execute command. The listener starts waiting for agent connections on the configured address and port.

Can Empire execute PowerShell scripts on target systems?

Yes, Empire's PowerShell agents can execute arbitrary PowerShell commands and scripts on Windows targets. Use the shell command in an agent session to run PowerShell cmdlets, or load modules that execute specific PowerShell-based post-exploitation tasks.

How does Empire handle credential harvesting?

Empire includes built-in Mimikatz integration through post-exploitation modules. Use usemodule credentials/mimikatz/logonpasswords to extract plaintext passwords, NTLM hashes, and Kerberos tickets from compromised Windows systems. Harvested credentials are stored in the Empire database for lateral movement. These are post-exploitation modules intended only for authorized engagements on systems you have explicit written permission to test.

Is Empire still maintained in 2027?

Yes, Empire is actively maintained by BC-Security (bc-security.org). The project receives regular updates including new modules, stager types, and compatibility fixes. The GitHub repository at github.com/BC-SECURITY/Empire has over 10,000 stars and active community contributions.

What are the best Empire modules for privilege escalation?

Key privilege escalation modules include powershell/privesc/powerup/allchecks for comprehensive misconfiguration scanning, powershell/privesc/bypassuac_eventvwr for UAC bypass, and powershell/privesc/getsystem for SYSTEM-level access. Run these through active agent sessions after initial compromise during an authorized penetration test.

Learning Path

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Related Tools

Impacket

Post Exploitation

Impacket is a versatile collection of Python classes for working with network protocols. It features low-level programmatic access to packets alongside specific full-featured scripts for interacting with Windows domains.

CrackMapExec

Post Exploitation

CrackMapExec (CME) is a post-exploitation tool for pentesting Windows and Active Directory networks. It can enumerate users, spray passwords, execute commands, and move laterally.

BloodHound

Post Exploitation

BloodHound uses graph theory to reveal the hidden and often unintended relationships within an Active Directory or Azure environment, allowing attackers or defenders to identify complex attack paths.

Mimikatz

Post Exploitation

Mimikatz is a powerful post-exploitation tool that exposes vulnerabilities in Windows authentication protection mechanisms, capable of extracting plaintexts passwords, hashes, PINs, and kerberos tickets from memory.

Cobalt Strike

Exploitation

Cobalt Strike is a commercial penetration testing platform designed for adversary simulation and red team operations. It features a post-exploitation agent called Beacon and supports covert communication channels to model advanced persistent threats.

Metasploit Framework

Exploitation

Learn how to use Metasploit Framework: install it on Kali Linux, launch msfconsole, search for exploit modules, set RHOSTS and LHOST, and run your first authorized lab exploit. This beginner tutorial covers msfconsole commands, Meterpreter sessions, msfvenom payloads, and post-exploitation — with practical examples for authorized penetration testing.

Related Cybersecurity Guides

Active Directory · Advanced

Active Directory Fundamentals: Windows Network Domains

A comprehensive introduction to Microsoft Active Directory covering domain services, LDAP, Group Policy, authentication protocols, and security fundamentals for Windows enterprise environments.

Security Operations · Advanced

Detection Engineering: Creating Security Alerts and Rules

Learn detection engineering principles including rule development, Sigma rules, testing methodologies, false positive management, and building a detection program for security operations.

Security Operations · Advanced

Incident Response: Structured Approach to Security Breaches

Learn the incident response lifecycle including preparation, detection, containment, eradication, recovery, and lessons learned with practical frameworks and real-world scenarios.

Ethical Hacking · Beginner

Ethical Hacking Fundamentals: Principles, Methodology, and Best Practices

Learn the core principles of ethical hacking, the five-phase penetration testing methodology, types of security testing, and how to build your own hacking lab.

Frequently Asked Questions

What is Empire?

Empire is an open-source post-exploitation and command-and-control (C2) framework that uses PowerShell and Python-based agents to establish encrypted communication channels with target systems. Originally created in 2015, it is now maintained by BC-Security and provides modular capabilities for reconnaissance, privilege escalation, lateral movement, and persistence during authorized security assessments.

Is Empire free?

Yes, Empire is completely free and open source under the BSD 3-Clause license. You can download it from the official GitHub repository at github.com/BC-SECURITY/Empire without any cost. The full framework including all modules, listeners, and stagers is freely available for educational and authorized testing purposes.

Who developed Empire?

Empire was originally developed by @harmj0y (Will Schroeder) and the Empire Project team in 2015. Since 2019, it has been actively maintained by BC-Security (bc-security.org), who continue to add new features, modules, and maintain compatibility with modern Windows environments.

Is Empire open source?

Yes, Empire is fully open source under the BSD 3-Clause license. The complete source code is available on GitHub, allowing security professionals to review, modify, and extend the framework. The open-source nature enables transparency and community-driven development.

Can beginners learn Empire?

Empire is classified as an advanced tool due to its C2 architecture, PowerShell knowledge requirements, and infrastructure setup. However, beginners can start by understanding the conceptual architecture — listeners, agents, modules, and stagers — before hands-on practice in isolated lab environments like HackTheBox or TryHackMe.

Empire vs Metasploit?

Empire focuses exclusively on post-exploitation and C2 operations with PowerShell/Python agents, while Metasploit covers the full exploitation lifecycle from initial access to post-exploitation. Empire excels at long-term C2 operations with lightweight agents; Metasploit is better for initial exploitation and payload delivery. Many red teams use both together.

Empire vs Covenant?

Both are open-source C2 frameworks. Empire uses PowerShell/Python agents with a CLI interface and extensive module library. Covenant uses .NET-based launchers with a web-based GUI. Empire has a larger community and more modules; Covenant offers easier management through its web interface. Empire is better for PowerShell-focused environments; Covenant provides more flexibility in launcher types.

Empire vs Sliver?

Empire uses PowerShell/Python agents for Windows/Linux post-exploitation. Sliver is a Go-based C2 framework with cross-platform implant support. Sliver offers better native evasion capabilities and supports more platforms natively. Empire has a larger module library and longer community history. Choose Empire for PowerShell-focused operations; Sliver for cross-platform stealth operations.

What is an Empire listener?

An Empire listener is a server-side component that waits for incoming connections from agents. Listeners define the communication protocol (HTTP, HTTPS, etc.), host address, port, and URI. When a stager executes on a target, it connects back to the listener to establish a C2 channel. Common listener types include HTTP, HTTPS, Meterpreter, and TCP.

What is an Empire agent?

An Empire agent is a lightweight process running on a compromised target that maintains an encrypted connection back to the Empire server. Agents execute modules, run shell commands, and perform post-exploitation tasks. Each agent has a unique ID, tracks the target hostname, username, and OS, and periodically checks in with the server for new tasks.

What are Empire modules?

Empire modules are pre-built scripts that execute specific post-exploitation tasks through active agents. Modules cover reconnaissance, credential harvesting, privilege escalation, lateral movement, persistence, and exfiltration. Common categories include situational_awareness, privesc, credentials, and persistence. Modules are loaded with usemodule and executed through agent sessions.

How does Empire communicate?

Empire uses encrypted HTTP/HTTPS communications between agents and the server. Agents periodically check in with the server (default 60-second interval) to receive tasks and upload results. The communication is encrypted using AES-256, and traffic can be configured to blend with legitimate web traffic using customizable HTTP profiles and URI paths.

Is Empire detected by antivirus?

Yes, Empire's default payloads and agents are heavily signatured by modern AV/EDR solutions. However, Empire supports payload obfuscation, custom stagers, and in-memory execution techniques to reduce detection. Security professionals use Empire in authorized engagements to test detection capabilities and validate security controls.

What operating systems does Empire support?

Empire supports PowerShell-based agents for Windows systems (Windows 7 and later) and Python-based agents for Linux systems. The Empire server itself runs on Linux (typically Kali Linux or Ubuntu). This cross-platform support allows testing against diverse environments during authorized engagements.

What is Empire used for in cybersecurity?

Empire is used in cybersecurity for authorized red team engagements, adversarial simulation exercises, and defensive detection engineering. Security professionals use it to test an organization's ability to detect C2 communications, PowerShell-based attacks, and post-exploitation activities. Blue teams study Empire's techniques to build detection rules and improve incident response capabilities.

How do I install Empire?

On Kali Linux, install Empire using: sudo apt install powershell-empire. For other Linux distributions, clone from GitHub: git clone https://github.com/BC-SECURITY/Empire.git, then run the setup script. Empire requires Python 3.6+ and several dependencies. After installation, start the server and client separately.

Does Empire support encrypted communications?

Yes, Empire uses AES-256 encryption for all agent-server communications. The encryption keys are negotiated during the initial staging process. HTTPS listeners add transport-layer encryption on top of the application-layer encryption, providing double protection for C2 traffic.

Can Empire perform lateral movement?

Yes, Empire includes modules for lateral movement techniques including PSRemoting, WMI execution, and SMB-based pivoting. These modules allow agents to move across network segments and compromise additional systems during authorized engagements, simulating real-world adversary behavior.

What is the Empire module library?

The Empire module library contains hundreds of post-exploitation modules organized by category: situational_awareness (reconnaissance), privesc (privilege escalation), credentials (credential harvesting), persistence (maintaining access), and exfiltration (data extraction). Modules are community-contributed and regularly updated by BC-Security.

Tags

#post-exploitation#c2-framework#powershell#agents#command-and-control#red-team#detection-engineering

Output Explanation

Empire's console displays a command prompt with the current context (listeners, agents, or modules). Listener output shows the host, port, and URI. Agent output displays agent ID, hostname, username, and last check-in time. Module output shows task results including credential dumps, system information, and execution status. The console uses color-coded indicators: green for active agents, yellow for delayed check-ins, and red for failed connections.

Ethical Usage Notice

This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.