Scapyfy Project¶
Scapyfy is an AI-powered network security toolkit that combines LLM intelligence with powerful packet crafting capabilities. It provides both an LLM agent for automated network analysis and direct tool access for manual operations. The platform supports multiple LLM providers (OpenAI, Google Gemini, Anthropic Claude, Ollama), features a modern web interface, and exposes a REST API secured with JWT authentication and TLS support.
| main.py | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 | |
đ§ââī¸ Scapyfy 3.0.0¶

Scapyfy is an AI-powered network security toolkit that combines LLM intelligence with powerful packet crafting capabilities. It provides both an LLM agent for automated network analysis and direct tool access for manual operations. The platform supports multiple LLM providers (OpenAI, Google Gemini, Anthropic Claude, Ollama), features a modern web interface, and exposes a REST API secured with JWT authentication and TLS support.
Features¶
AI-Powered Network Tools¶
- Dual Chat Modes:
- Agent Mode: Autonomous LLM agent capable of chaining tools, executing deep network scans, and summarizing findings.
- Ask Mode: Direct QA interaction with the LLM without triggering automated tool execution.
- AI-assistant - Interactive chat interface featuring intelligent context persistence and beautiful Markdown rendering.
Advanced Automation & Orchestration¶
- Tasks & Scheduling - Chain LLM prompts and tools into automated workflows (Run Once, Interval, Cron).
- External Connections - Seamlessly export task outputs to MongoDB, Elasticsearch, or messaging platforms.
- Bot Integrations - Remote command-and-control access via Telegram and Discord bots.
Security & User Management¶
- Role-Based Access Control - Distinct privileges for root admins and standard users.
- Root Protection - Hardened security preventing unauthorized modification of the root account.
- Custom Avatars - Personalized user profiles with base64-encoded custom avatars.
Multi-LLM Support¶
- OpenAI (GPT-3.5, GPT-4)
- Google Gemini (Gemini 1.5 Flash/Pro)
- Anthropic Claude (Claude 3.5 Sonnet)
- Ollama
Network Tools¶
- Packet Crafting (Scapy) - Custom TCP/IP/UDP/ICMP packets
- Nmap Scanner - Port scanning, service detection, OS fingerprinting
- Traceroute - Network path discovery
- Ping - Host reachability testing
- Hping3 - Advanced packet probing
- Port Scanner - Fast Scapy-based scanning
- ARP Scanner - Local network discovery
- DNS Lookup - Comprehensive DNS queries (A, MX, TXT, etc.)
- HTTP Request - Send custom HTTP/HTTPS requests
Requirements¶
To run Scapyfy, you will need the following:
- A Linux machine (desktop, server, etc.)
- Superuser privileges (
sudo) for packet crafting - Python 3.10+
- At least one LLM API Key (OpenAI, Google, or Anthropic) OR a running Ollama instance
System Dependencies¶
# For Nmap scanning
sudo apt install nmap
# For Hping3
sudo apt install hping3
# For traceroute
sudo apt install traceroute
Installation¶
Follow these steps to get Scapyfy set up:
-
Clone the repository:
git clone https://github.com/MustafaAbdulazizHamza/Scapyfy.git cd Scapyfy -
Create and activate virtual environment:
python3 -m venv env source env/bin/activate -
Install dependencies:
pip install -r requirements.txt -
Configure environment variables: Create a
.envfile based on the configuration specified inenv.examplefile.
Execution¶
Since packet crafting requires low-level access, run with superuser privileges:
Without TLS¶
sudo bash execute.sh
With TLS¶
# Using your own certificates
sudo bash execute.sh --ssl-cert /path/to/server.crt --ssl-key /path/to/server.key
Notes¶
- API Documentation: Available at
/docs(Swagger UI) and/redoc(ReDoc) after starting the server - Logs: Execution logs are stored in
./logs/scapyfy_executions.log - Security: Always change the generated root password, set a strong
SECRET_KEY, and run the server on a dedicated virtual machine in production.
Disclaimer¶
-
This project is designed for educational purposes and authorized security testing only.
-
Always ensure you have proper authorization before performing network scans or packet injection.