Project

General

Profile

Actions

Feature #8408

open
VJ OD

Task #8388: firewall: support protocol hooks for all app-layer protocols

firewall: support FTP-data hook states for firewall rule evaluation

Feature #8408: firewall: support FTP-data hook states for firewall rule evaluation

Added by Victor Julien 13 days ago.

Status:
New
Priority:
High
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

FTP is a critical protocol for network firewall deployments. In Suricata 8.0.4, FTP app-layer hook states are not registered for firewall mode. Attempting to use any ftp:* hook in a firewall rule (e.g., accept:hook ftp:request_command ) fails with the error: protocol ftp does not support hook.

This means FTP traffic cannot be inspected or controlled at the application layer in firewall mode. Even when packet-layer rules accept the TCP handshake on port 21, the FTP control channel is dropped by default_app_policy as soon as the app-layer parser engages, because no FTP hooks exist for the firewall engine to evaluate.

FTP-DATA has its own lifecycle:
  • Connection requested
  • Connection established
  • Transfer initiated
  • Data transfer in progress
  • Transfer complete
  • Transfer aborted
  • Connection closed

These states should be mapped to firewall hook points that allow rules to make accept/drop decisions at meaningful protocol transitions — for example, during data transfer, etc.

The expectation engine should also be integrated with firewall mode so that PASV/PORT-negotiated data channel ports are automatically allowed when the control channel is accepted. (Optional)


Related issues 1 (1 open0 closed)

Copied from Suricata - Feature #8392: firewall: support FTP hook states for firewall rule evaluationNewOISF DevActions

VJ Updated by Victor Julien 13 days ago Actions #1

  • Copied from Feature #8392: firewall: support FTP hook states for firewall rule evaluation added
Actions

Also available in: PDF Atom