Project

General

Profile

Actions

Feature #8392

open
YD OD

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

firewall: support FTP hook states for firewall rule evaluation

Feature #8392: firewall: support FTP hook states for firewall rule evaluation

Added by Yash Datre 26 days ago. Updated 19 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.

Potential FTP states:

  • Connected
  • USER command sent
  • PASS command sent
  • Authenticated
  • Command mode
  • PORT/PASV sent
  • Data connection requested
  • Data connection established
  • Transfer in progress
  • Transfer complete
  • Logged out
  • Connection closed

Additionally, FTP-DATA has its own lifecycle, tracked in #8408.

These states should be mapped to firewall hook points that allow rules to make accept/drop decisions at meaningful protocol transitions — for example, after authentication, after PASV negotiation, 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 to Suricata - Feature #8408: firewall: support FTP-data hook states for firewall rule evaluationNewOISF DevActions

VJ Updated by Victor Julien 25 days ago Actions #1

  • Subject changed from Firewall mode: Register FTP hook states for firewall rule evaluation to firewall: support FTP hook states for firewall rule evaluation
  • Assignee set to OISF Dev
  • Priority changed from Normal to High
  • Target version changed from TBD to 9.0.0-beta1

VJ Updated by Victor Julien 25 days ago Actions #2

  • Tracker changed from Bug to Feature
  • Affected Versions deleted (8.0.4)

VJ Updated by Victor Julien 25 days ago Actions #3

  • Parent task set to #8388

VJ Updated by Victor Julien 19 days ago Actions #4

  • Copied to Feature #8408: firewall: support FTP-data hook states for firewall rule evaluation added

VJ Updated by Victor Julien 19 days ago Actions #5

  • Description updated (diff)
Actions

Also available in: PDF Atom