Project

General

Profile

Actions

Bug #4529

closed
EP EP

Not keyword matches in Kerberos requests

Bug #4529: Not keyword matches in Kerberos requests

Added by Eloy Pérez almost 5 years ago. Updated almost 3 years ago.

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

Description

I was doing some tests with the following rule:

alert krb5 any any -> any any (msg:"Kerberos 5"; krb5_msg_type:10;)

But I was unable to make it work against the pcap I sent you, which is only a Kerberos request (AS-REQ) and response (AS-REP).

After digging for a while in the code there was discovered that this may happen cause in the https://github.com/OISF/suricata/blob/master/rust/src/krb/krb5.rs#L123 file no transaction is created by Kerberos requests, so they are ignored by any Kerberos keyword (I've also tested with the krb5_sname).

alert krb5 any any -> any any (msg:"Kerberos 5"; krb5_sname; content:"krbtgt"; sid:5; rev:1;)

Thanks for this great software


Files

as-rep-as-req.pcapng (2.64 KB) as-rep-as-req.pcapng Eloy Pérez, 06/15/2021 02:45 PM
krb5-msg-type-test.pcapng (16 KB) krb5-msg-type-test.pcapng Eloy Pérez, 10/21/2021 10:20 AM

Related issues 2 (0 open2 closed)

Copied to Suricata - Bug #5062: Not keyword matches in Kerberos requestsClosedShivani BhardwajActions
Copied to Suricata - Bug #5063: Not keyword matches in Kerberos requestsClosedJeff LucovskyActions

EP Updated by Eloy Pérez over 4 years ago Actions #1

Update: it also happens with TGS-REQ and KRB-ERROR messages.

PA Updated by Philippe Antoine about 4 years ago Actions #2

  • Status changed from New to In Review

PA Updated by Philippe Antoine about 4 years ago Actions #3

  • Label Needs backport, Needs backport to 5.0, Needs backport to 6.0 added

JL Updated by Jeff Lucovsky about 4 years ago Actions #4

  • Copied to Bug #5062: Not keyword matches in Kerberos requests added

JL Updated by Jeff Lucovsky about 4 years ago Actions #5

  • Copied to Bug #5063: Not keyword matches in Kerberos requests added

VJ Updated by Victor Julien over 3 years ago Actions #6

  • Label deleted (Needs backport, Needs backport to 5.0, Needs backport to 6.0)

VJ Updated by Victor Julien over 3 years ago Actions #7

  • Target version changed from 7.0.0-beta1 to 7.0.0-rc1

VJ Updated by Victor Julien about 3 years ago Actions #8

  • Target version changed from 7.0.0-rc1 to 8.0.0-beta1

PA Updated by Philippe Antoine almost 3 years ago Actions #9

  • Status changed from In Review to Closed
  • Target version changed from 8.0.0-beta1 to 7.0.0-rc2
Actions

Also available in: PDF Atom