Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

101 lines
3.6 KiB
ReStructuredText

:tocdepth: 3
base/protocols/ntlm/main.zeek
=============================
.. zeek:namespace:: NTLM
:Namespace: NTLM
:Imports: :doc:`base/protocols/conn/removal-hooks.zeek </scripts/base/protocols/conn/removal-hooks.zeek>`
Summary
~~~~~~~
Types
#####
============================================ =
:zeek:type:`NTLM::Info`: :zeek:type:`record`
============================================ =
Redefinitions
#############
======================================================================= ======================================================
:zeek:id:`DPD::ignore_violations`: :zeek:type:`set` :zeek:attr:`&redef`
:zeek:type:`Log::ID`: :zeek:type:`enum`
* :zeek:enum:`NTLM::LOG`
:zeek:type:`connection`: :zeek:type:`record`
:New Fields: :zeek:type:`connection`
ntlm: :zeek:type:`NTLM::Info` :zeek:attr:`&optional`
======================================================================= ======================================================
Hooks
#####
============================================================== =======================
:zeek:id:`NTLM::finalize_ntlm`: :zeek:type:`Conn::RemovalHook` NTLM finalization hook.
:zeek:id:`NTLM::log_policy`: :zeek:type:`Log::PolicyHook`
============================================================== =======================
Detailed Interface
~~~~~~~~~~~~~~~~~~
Types
#####
.. zeek:type:: NTLM::Info
:source-code: base/protocols/ntlm/main.zeek 10 38
:Type: :zeek:type:`record`
ts: :zeek:type:`time` :zeek:attr:`&log`
Timestamp for when the event happened.
uid: :zeek:type:`string` :zeek:attr:`&log`
Unique ID for the connection.
id: :zeek:type:`conn_id` :zeek:attr:`&log`
The connection's 4-tuple of endpoint addresses/ports.
username: :zeek:type:`string` :zeek:attr:`&log` :zeek:attr:`&optional`
Username given by the client.
hostname: :zeek:type:`string` :zeek:attr:`&log` :zeek:attr:`&optional`
Hostname given by the client.
domainname: :zeek:type:`string` :zeek:attr:`&log` :zeek:attr:`&optional`
Domainname given by the client.
server_nb_computer_name: :zeek:type:`string` :zeek:attr:`&log` :zeek:attr:`&optional`
NetBIOS name given by the server in a CHALLENGE.
server_dns_computer_name: :zeek:type:`string` :zeek:attr:`&log` :zeek:attr:`&optional`
DNS name given by the server in a CHALLENGE.
server_tree_name: :zeek:type:`string` :zeek:attr:`&log` :zeek:attr:`&optional`
Tree name given by the server in a CHALLENGE.
success: :zeek:type:`bool` :zeek:attr:`&log` :zeek:attr:`&optional`
Indicate whether or not the authentication was successful.
done: :zeek:type:`bool` :zeek:attr:`&default` = ``F`` :zeek:attr:`&optional`
Internally used field to indicate if the login attempt
has already been logged.
Hooks
#####
.. zeek:id:: NTLM::finalize_ntlm
:source-code: base/protocols/ntlm/main.zeek 117 123
:Type: :zeek:type:`Conn::RemovalHook`
NTLM finalization hook. Remaining NTLM info may get logged when it's called.
.. zeek:id:: NTLM::log_policy
:source-code: base/protocols/ntlm/main.zeek 8 8
:Type: :zeek:type:`Log::PolicyHook`