Skip to content

ZikyHD/ldap-analyzer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zeek::LDAP

=================================

Compatibility: Zeek 2.6-237+

This package provides an analyzer for Lightweight Directory Access Protocol write operations. The following operations will be written to ldap.log after running the analyzer:

  • modifyRequest and modifyResponse
  • modifyDNRequest and modifyDNResponse
  • addRequest and addResponse
  • deleteRequest and deleteResponse
  • bindRequest and bindResponse

Additionally, the analyzer will deliver GSSAPI GSS-SPNEGO authentication data in LDAP bindRequests to the gssapi analyzer to be written to the Kerberos or NTLM logs.

Environment Configuration

If using the analyzer as a plugin from the repo:

  1. Install zkg manager
  • $ pip3 install zkg
  • (Recommended: latest version) $ pip3 install git+git://github.com/zeek/package-manager@master
  1. Configure zpkg & environment
  • zkg needs PATH to zeek-config: $ export PATH=$PATH:/path_to/zeek/build (modify /path/to)
  • Run the autoconfiguration: $ zpkg autoconfig
  • Setup Zeek's environment to match zkg $ eval $(zkg env)
  1. Run the plugin straight from git:
  • $ zkg install ldap-analyzer
  • Test to make sure the plugin is loaded $ bro -N | grep LDAP (you should see the plugin loaded)
  • $ zeek -C -r your_ldap.pcap ( -C is optional and used if the pcap contains checksums. This must come before the -r )

If using the analyzer as a local plugin:

  • $ git clone https://github.com/ZikyHD/ldap-analyzer.git
  • $ cd ldap-analyzer
  • $ ./configure --bro-dist=/path/to/bro && make
  • $ export BRO_PLUGIN_PATH=$BRO_PLUGIN_PATH/path/to/ldap-analyzer
  • Check if plugin got loaded $ zeek -N | grep LDAP
  • Run it : $ zeek -r your_ldap.pcap

TO DO:

  • Testing script produces an error. It attempts to access a non-existent file.

About

Bro analyzer for LDAP write operations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 53.8%
  • C++ 19.1%
  • Zeek 19.1%
  • Shell 3.1%
  • Makefile 2.2%
  • CMake 1.4%
  • Standard ML 1.3%