🍯 Honeypot (Trap)
The CyProLib Honeypot allows you to set up a fake service (SSH, HTTP) to trap attackers.
CLI Usage
To start a fake SSH server on port 2222:
cypro trap --port 2222 --type ssh
python Usage
from cyprolib.ids.honeypot import Honeypot
trap = Honeypot(port=2222, service_type="ssh")
trap.start()
How it works
-
Listens: Waits for a connection on the specified port.
-
Logs: Records the attacker's IP and payload.
-
Alerts: Sends a notification to Discord/Email.
-
Blocks: (Optional) Active Defense blocks the IP .