红蓝攻防
点击放大

![Contributions Welcome]()
![HitCount]()
![PyPI download month]()
![PyPI license]()
![GitHub stars]()
![made-with-python]()
!Logo
PyExfil was born as a PoC and kind of a playground and grew to be something a bit more. In my eyes it's still a messy PoC that needs a lot more work and testing to become stable. The purpose of PyExfil is to set as many exfiltration, and now also communication, techniques that CAN be used by threat actors/malware around to bypass detection and mitigation tools and techniques. You can track changes at the official GitHub page.
Putting it simply, it's meant to be used as a testing tool rather than an actual Red Teaming tool. Although most techniques and methods should be easily ported and compiled to operating systems, some stable some experimental, the transmission mechanism should be stable on all techniques. Clone it, deploy on a node in your organization and see which systems can catch which techniques.
pip (not necessarily the most updated):
We recommend installing py2exe as well so that you may cross compile modules to a binary for easier transportation. You can do that with:
Go to the same folder where PyExfil was cloned to and:
* Network
* DNS query
* HTTP Cookie
* ICMP (8)
* NTP Body
* BGP Open
* HTTPS Replace Certificate
* QUIC - No Certificate
* Slack Exfiltration
* POP3 Authentication (as password) - Idea thanks to Itzik Kotler
* FTP MKDIR - Idea thanks to Itzik Kotler
* Source IP-based Exfiltration
* HTTP Response
* IMAP_Draft
* Communication
* NTP Request
* DropBox LSP (Broadcast or Unicast)
* DNS over TLS
* ARP Broadcast
* JetDirect
* GQUIC - Google Quick UDP Internet Connections (Client Hello)
* MDNS Query - *Can be used as broadcast.*
* AllJoyn. Name Service Protocol (IoT discovery) 0 ISAT.
* PacketSize. Using size of packet rather than actual data.
* UDP-Source-Port Using the source port in UDP as a transmission medium.
* CertExchange Le certificate exchange function for short bursts of communication.
* DNSQ Le DNS Queries for communication.
* ICMP_TTL Le the TTL byte for communication. Very short but also stealthy.
* Physical
* Audio - *No listener*.
* QR Codes
* WiFi - On Payload
* 3.5mm Jack
* UltraSonic
* Steganography
* Binary Offset
* Video Transcript to Dictionary
* Braille Text Document
* PNG Transparency
* ZIPCeption
* DataMatrix over LSB
For usage per modules have a look at the USAGE file.
PyExfil is to test DLP (Data Leakage Protection) systems as well as detection of intrusion. To make the latter mission simpler we ha a little module to generate fake data with a structure that matches both PII and PCI data sets. These are intended to trigger alerts while being broadcate outside of the network.
Here is how to use it:
After this you can use which ever PyExfil module you would like to try and exfiltrate the data set created. This way you can test your detection without risking exfiltrating data.
We welcome contributions — from testing and bug fixes to entirely new covert channels.
NetworkModule, CommModule, PhysicalModule, StegaModule) with API details and examples.
If you want to help, start with CALL_TO_ACTION.md — every item there has a file path and clear instructions.
DOCUMENTATION.md and README.md to two different files.
CALL_TO_ACTION.md for community assistance.
tests for some basic smoketests. Will add more module oriented tests later on.
names.
braille exfiltration package.
开发语言:Python
Star 数:812
该项目属于红蓝攻防方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕PyExfil — Python 3 toolkit for researching and stress-testing data exfiltration techniques across network, physical, and steganographic channels. For red team simulation and DLP detection testing.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | PyExfil - PyExfil — Python 3 toolkit for researching and str |
| 所属分类 | 红蓝攻防 |
| 发布作者 | admin |
| 发布时间 | 2026-10-06 00:37:30 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 261 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |