Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify NTLM event fields to capture failed NTLM attemp #90

Merged
merged 3 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and
this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- Modified event structure to store NTLM error information.

## [0.15.2] - 2023-11-16

### Added
Expand Down
10 changes: 3 additions & 7 deletions src/ingest/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,32 +377,28 @@ pub struct Ntlm {
pub resp_port: u16,
pub proto: u8,
pub last_time: i64,
pub protocol: String,
pub username: String,
pub hostname: String,
pub domainname: String,
pub server_nb_computer_name: String,
pub server_dns_computer_name: String,
pub server_tree_name: String,
pub success: String,
}

impl Display for Ntlm {
fn fmt(&self, f: &mut Formatter) -> std::fmt::Result {
write!(
f,
"{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}",
"{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}",
self.orig_addr,
self.orig_port,
self.resp_addr,
self.resp_port,
self.proto,
convert_time_format(self.last_time),
as_str_or_default(&self.protocol),
as_str_or_default(&self.username),
as_str_or_default(&self.hostname),
as_str_or_default(&self.domainname),
as_str_or_default(&self.server_nb_computer_name),
as_str_or_default(&self.server_dns_computer_name),
as_str_or_default(&self.server_tree_name),
as_str_or_default(&self.success),
)
}
Expand Down