=================================
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.
- Install zkg manager
$ pip3 install zkg
- (Recommended: latest version)
$ pip3 install git+git://github.com/zeek/package-manager@master
- 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)
- 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 )
$ 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
- Testing script produces an error. It attempts to access a non-existent file.