You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/rust
Jason Ish 4a655053e8 mdns: add mdns parser, logger and detection
The mDNS support is based heavily on the DNS support, reusing the
existing DNS parser where possible. This meant adding variations on
DNS, as mDNS is a little different. Mainly being that *all* mDNS
traffic is to_server, yet there is still the concept of request and
responses.

Keywords added are:
- mdns.queries.rrname
- mdns.answers.rrname
- mdns.additionals.rrname
- mdns.authorities.rrname
- mdns.response.rrname

They are mostly in-line with the DNS keywords, except
mdns.answers.rdata which is a better than that mdns.response.rrname,
as its actually looking at the rdata, and not rrnames.

mDNS has its own logger that differs from the DNS logger:

- No grouped logging

- In answers/additionals/authorities, the rdata is logged in a field
  that is named after the rdata type. For example, "txt" data is no
  longer logged in the "rdata" field, but instead a "txt" field. We
  currently already did this in DNS for fields that were not a single
  buffer, like SOA, SRV, etc. So this makes things more consistent. And
  gives query like semantics that the "grouped" object was trying to
  provide.

- Types are logged in lower case ("txt" instead of "TXT")

- Flags are logged as an array: "flags": ["aa", "z"]

Ticket: #3952
1 year ago
..
.cargo rust: rename .cargo/config to .cargo/config.toml 2 years ago
derive rust/derive: fix clippy collapsible_match warning 1 year ago
htp rust/htp: suppress io_other_error lint 1 year ago
src mdns: add mdns parser, logger and detection 1 year ago
suricatactl suricatactl: add description to Cargo.toml 2 years ago
suricatasc rust: pin once_cell to work with Rust 1.67.1 2 years ago
sys mdns: add mdns parser, logger and detection 1 year ago
.gitignore rust: rename .cargo/config to .cargo/config.toml 2 years ago
Cargo.lock.in lua: update to suricata-lua-sys 0.1.0-alpha.9 1 year ago
Cargo.toml.in lua: update to suricata-lua-sys 0.1.0-alpha.9 1 year ago
Makefile.am github-ci: enable asan for suricata-lua-sys in fuzz build 1 year ago
cbindgen.toml rust: bindgen detect-engine-helper.h 1 year ago
rustfmt.toml rustfmt: replace deprecated fn_args_layout with fn_params_layout 3 years ago