Project

General

Profile

Actions

Bug #8183

open
CC OD

filestore stores non-matching files in multi-file HTTP transactions

Bug #8183: filestore stores non-matching files in multi-file HTTP transactions

Added by chen chen 8 months ago. Updated 16 days ago.

Status:
Triaged
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

I'm trying to store only files with a .pdf extension using a Suricata rule. However, I've noticed that when a single HTTP transaction contains multiple files (e.g., both .pdf and other types like .txt or .jpg), all files are stored—even those that don’t have a .pdf extension.

Here’s the rule I’m using:
alert http any any -> any any (content:"POST"; http_method; flow:to_server; fileext:"pdf"; filestore; sid:111; rev:1; classtype:file_store; flowbits:noalert;)

A pcap file is attached. Is this expected in my Suricata version, or could it be a bug? I’m using Suricata v6.0.6.


Files

http_post_pdf_and_txt_files.pcap (20.8 KB) http_post_pdf_and_txt_files.pcap chen chen, 12/29/2025 02:36 AM

PA Updated by Philippe Antoine 16 days ago Actions #1

  • Status changed from New to Triaged
  • Assignee set to OISF Dev
  • Target version changed from TBD to 9.0.0-beta1

Reproducing with current main ( 8455efd9ac9be052f5f5424805559611e8531b16 )

Actions

Also available in: PDF Atom