Project

General

Profile

Actions

Feature #4321

open

Task #4380: tracking: improvements to bits, ints, vars

http2: Support link between packets in the same stream

Added by Jungho Yoon almost 4 years ago. Updated 6 months ago.

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

Description

There are multiple streams in http2. Since existing flowbits are based on the same flow, it is difficult to detect precisely in http2, which operates in a stream unit. For example, it is necessary to process only in the same stream2, but flowbits also handles the connection of stream1 and stream2 It's possible.

Existing flowbits may be improved, or similar options that can be processed on a per-stream basis are needed.

flowbits improvement or Examples:

streambits: set, name
streambits: isset, name
streambits: toggle, name
streambits: unset, name
streambits: isnotset, name
streambits: noalert

alert http2 any any -> any any (msg:"foo - PNG set"; flow:established,to_server; http2.header; content:"path /foo.html"; streambits:set,foo_png; )
alert http2 any any -> any any (msg:"foo - PNG isset"; flow:established,to_client; streambits:isset,foo_png; http2.frametype; content:"DATA"; pkt_data; content:"PNG"; )


Files

http2_streambtis.PNG (16.1 KB) http2_streambtis.PNG Jungho Yoon, 02/09/2021 08:06 AM
http.pcapng (11.7 KB) http.pcapng Jungho Yoon, 12/22/2021 06:16 AM
http2_multiplexing_1.pcapng (13.1 KB) http2_multiplexing_1.pcapng Jungho Yoon, 12/22/2021 06:16 AM
http2_multiplexing_2.pcapng (12.6 KB) http2_multiplexing_2.pcapng Jungho Yoon, 12/22/2021 06:16 AM

Related issues 2 (2 open0 closed)

Related to Suricata - Task #5488: Suricon 2022 brainstormAssignedVictor JulienActions
Related to Suricata - Feature #5665: rules: bidirectional transaction matchingIn ReviewPhilippe AntoineActions
Actions

Also available in: Atom PDF