Snort / Suricata en pfSense
- System > Package Manager: instalar Snort (o Suricata).
- Services > Snort > Global Settings: activar reglas Snort Community / ET Open (y Oinkcode si hay cuenta) y la actualización automática.
- Snort Interfaces > Add: interfaz WAN (y/o LAN), categorías de reglas (scan, malware, exploit…).
- Empezar en modo detección (IDS); cuando no haya falsos positivos, activar Block offenders (IPS).
- Probar con un
nmap -sSdesde fuera y revisar Alerts.
ClamAV en Linux
sudo apt install clamav clamav-daemon clamtk # clamtk = interfaz gráfica
sudo systemctl stop clamav-freshclam && sudo freshclam && sudo systemctl start clamav-freshclam
clamscan -r -i /home # escanear y mostrar solo infectados
clamscan -r --move=/cuarentena /srv
Prueba segura: el fichero EICAR debe detectarse como Eicar-Test-Signature.
Windows
Microsoft Defender (activado por defecto; en Server se instala como característica). Comprobar con Get-MpComputerStatus y escanear con Start-MpScan -ScanType QuickScan.
Otras herramientas de protección
- Linux: UFW, ClamAV, rkhunter/chkrootkit (rootkits), fail2ban (bloquea IPs tras intentos fallidos de SSH).
- Windows: Defender, Malwarebytes (análisis puntual), actualizaciones al día.
- Teoría: un troyano se presenta como software legítimo para abrir una puerta trasera; prevención = descargar de fuentes oficiales, mínimo privilegio, antivirus y formación del usuario.