PoshC2
PoshC2 is a proxy-aware command and control framework written primarily in Python 3, with PowerShell, C#, and Python implants. It is open source under the BSD-3-Clause license. It runs on Linux, macOS, and Windows.
Updated
- Pricing
- Open Source
- License
- BSD-3-Clause
- Platforms
- Linux, macOS, Windows
- Category
- Red Teaming Tools
What Is PoshC2?
PoshC2 is a proxy-aware command and control framework written primarily in Python 3, with PowerShell, C#, and Python implants. It supports HTTP(S) and SMB named-pipe communication, lateral movement helpers, payload generation, and a client/server model for multiple operators. Nettitude, acquired by LRQA in 2018, maintains the project and publishes a companion PoshC2_IOCs repository for defenders.
Use Cases
Authorized engagements where PowerShell-based tradecraft and proxy awareness matter.
Strengths and Limitations
Strengths
- +PowerShell ecosystem integration.
- +Maintained by a commercial research team with detection publications.
- +Published IOC repository supports defender validation.
Limitations
- -Published IOCs can be circumvented by reconfiguring or altering PoshC2.
- -PowerShell script block logging, when enabled, records the scriptblocks that PowerShell implants run.
Defensive Use
Emulating PowerShell-based adversary behavior to validate logging controls such as script block logging.
PoshC2 Alternatives
3 tools| Tool | License | Platforms | Pricing |
|---|---|---|---|
| Merlin Cross-platform post-exploitation C2 written in Go, communicating over HTTP/1.1, HTTP/2, and HTTP/3. | GPL-3.0-or-later | Linux, macOS, Windows | Open Source |
| Mythic Open-source modular command-and-control framework with Docker-based server, cross-platform agents, and a browser interface for red team operations. | BSD-3-Clause | Linux, macOS | Open Source |
| Sliver Cross-platform adversary emulation and command-and-control framework built for authorized red team operations and testing. | GPL-3.0-or-later | Linux, macOS, Windows | Open Source |
Frequently Asked Questions
What is PoshC2?→
PoshC2 is a proxy-aware command and control framework written primarily in Python 3, with PowerShell, C#, and Python implants. It supports HTTP(S) and SMB named-pipe communication, lateral movement helpers, payload generation, and a client/server model for multiple operators. Nettitude, acquired by LRQA in 2018, maintains the project and publishes a companion PoshC2_IOCs repository for defenders.
What is PoshC2 used for?→
Authorized engagements where PowerShell-based tradecraft and proxy awareness matter.
What are the strengths of PoshC2?→
- +PowerShell ecosystem integration.
- +Maintained by a commercial research team with detection publications.
- +Published IOC repository supports defender validation.
What are the limitations of PoshC2?→
- +Published IOCs can be circumvented by reconfiguring or altering PoshC2.
- +PowerShell script block logging, when enabled, records the scriptblocks that PowerShell implants run.
How is PoshC2 used defensively?→
Emulating PowerShell-based adversary behavior to validate logging controls such as script block logging.