Project

General

Profile

Actions

Feature #1199

closed
PM GL

protocol: LDAP support

Feature #1199: protocol: LDAP support

Added by Peter Manev almost 12 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
Effort:
medium
Difficulty:
medium
Label:
Protocol

Description

Support for LDAP.
LDAP is widely used and present in many networks.

example -

ldap://host:port/DN?attributes?scope?filter?extensions

As defined in - http://tools.ietf.org/html/rfc4516


Related issues 9 (7 open2 closed)

Related to Suricata - Task #4097: Suricon 2020 brainstormAssignedVictor JulienActions
Related to Suricata - Task #4151: Research: New protocol supportNewCommunity TicketActions
Related to Suricata - Task #5488: Suricon 2022 brainstormAssignedVictor JulienActions
Related to Suricata - Task #5685: tracking: active directory protocols supportAssignedVictor JulienActions
Related to Suricata - Task #6443: Suricon 2023 brainstormAssignedVictor JulienActions
Related to Suricata - Task #7452: ldap: add keywords to match outputIn ProgressOISF DevActions
Related to Suricata - Feature #7477: ldap: add support for AbandonRequestClosedAlice da Silva AkakiActions
Blocks Suricata - Task #7118: tracking: add support for new protocolsAssignedVictor JulienActions
Blocks Suricata - Story #7119: protocols: protocol additionsClosedVictor JulienActions

VJ Updated by Victor Julien almost 12 years ago Actions #1

  • Assignee set to Anonymous
  • Target version set to TBD

I think this would be a great feature for members of the community to either develop or fund.

JI Updated by Jason Ish almost 8 years ago Actions #2

  • Effort set to medium
  • Difficulty set to medium

AH Updated by Andreas Herz about 7 years ago Actions #3

  • Assignee set to Community Ticket

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

Implementation should be in Rust.

VJ Updated by Victor Julien about 6 years ago Actions #5

  • Label Protocol added

JI Updated by Jason Ish over 5 years ago Actions #6

  • Related to Task #4097: Suricon 2020 brainstorm added

JI Updated by Jason Ish over 5 years ago Actions #7

Lots of interest at the 2020 Brainstorm.

PC Updated by Pierre Chifflier over 5 years ago Actions #8

Bringing back this 6-years ticket!

update:

I have a test implementation (currently standalone parser, not a suricata applayer) for LDAP version 3, that more or less works (I still need to work on reliability / testing every possible corner case). LDAP being based on BER, it is based on the same BER/DER decoder than kerberos and x509 parsers embedded in suricata. It currently uses nom 6 and recent versions of everything, so I would primarily target suricata 7.0 (unless there is a great interest for 6.x).

One difficulty though is that to be fully interesting, more protocols have to be decoded: LDAP can use SASL, and can embed GSS-API and/or GSS-SPNEGO layers (this is a common case for Windows networks, where you often encounter integrity-only transport of data).

Call for help: there are many variants of implementations, and I can't have them all here. If you have pcaps to share (especially of LDAP in Active Directory environments), please tell me!

VJ Updated by Victor Julien over 5 years ago Actions #9

  • Related to Task #4151: Research: New protocol support added

VJ Updated by Victor Julien over 5 years ago Actions #10

  • Status changed from New to In Progress
  • Assignee changed from Community Ticket to Pierre Chifflier
  • Target version changed from TBD to 7.0.0-beta1

Hi Pierre, did I understand correctly that you've made further progress on this?

PC Updated by Pierre Chifflier over 5 years ago Actions #11

Hi Victor,
Yes, I have a working LDAP parser for suricata, based on the ldap-parser crate I published to crates.io.
It supports LDAPv3 protocol, as well as the cleartext variants of SASL and GSSAPI (for ex. integrity-only encapsulation).

Before submitting the PR, the code still needs some polishing. It currently parse the protocol and log metadata (LDAP operation, bind DN, password if cleartext, etc.), but do not have detect keywords (TBD).

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

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

PA Updated by Philippe Antoine over 3 years ago Actions #13

  • Related to Task #5488: Suricon 2022 brainstorm added

PA Updated by Philippe Antoine over 3 years ago Actions #14

And Active Directory support ?..

PA Updated by Philippe Antoine over 3 years ago Actions #15

  • Priority changed from Normal to High

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

  • Subject changed from LDAP support to protocol: LDAP

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

  • Subject changed from protocol: LDAP to protocol: LDAP support

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

  • Related to Task #5685: tracking: active directory protocols support added

PM Updated by Peter Manev over 3 years ago Actions #19

Among other good reasons to have it - here is also a point for detection
https://thedfirreport.com/2023/01/23/sharefinder-how-threat-actors-discover-file-shares/
(LDAP Host Discovery)

PA Updated by Philippe Antoine over 2 years ago Actions #20

  • Related to Task #6443: Suricon 2023 brainstorm added

GL Updated by Giuseppe Longo over 2 years ago Actions #21

I'd like to pick it up if nobody is currently working on it.

VJ Updated by Victor Julien over 2 years ago Actions #22

  • Assignee changed from Pierre Chifflier to Giuseppe Longo

VJ Updated by Victor Julien about 2 years ago Actions #23

  • Status changed from In Progress to In Review

VJ Updated by Victor Julien almost 2 years ago Actions #24

  • Blocks Task #7118: tracking: add support for new protocols added

VJ Updated by Victor Julien almost 2 years ago Actions #25

  • Blocks Story #7119: protocols: protocol additions added

JF Updated by Juliana Fajardini Reichow almost 2 years ago Actions #26

  • Status changed from In Review to Closed

JF Updated by Juliana Fajardini Reichow over 1 year ago Actions #28

  • Related to Task #7452: ldap: add keywords to match output added

AD Updated by Alice da Silva Akaki over 1 year ago Actions #29

  • Related to Feature #7477: ldap: add support for AbandonRequest added

VJ Updated by Victor Julien about 1 year ago Actions #30

  • Priority changed from High to Normal
Actions

Also available in: PDF Atom