diff --git a/CHANGELOG-Japanese.md b/CHANGELOG-Japanese.md index 59570a48..87180caa 100644 --- a/CHANGELOG-Japanese.md +++ b/CHANGELOG-Japanese.md @@ -16,6 +16,7 @@ - ログオン情報の要約オプションを追加した場合に、Hayabusaがクラッシュしていたのを修正した。 (#674) (@hitenkoku) - configオプションで指定したルールコンフィグの読み込みができていない問題を修正した。 (#681) (@hitenkoku) +- 結果概要のtotal eventsで読み込んだレコード数が出力されていたのを、検査対象にしているevtxファイルの実際のレコード数に修正した。 (#683) (@hitenkoku) ## v1.5.1 [2022/08/20] diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c47ae7a..4b02f742 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - Hayabusa would crash with `-L` option (logon summary option). (#674) (@hitenkoku) - Hayabusa would continue to scan without the correct config files but now will print and error and gracefully terminate. (#681) (@hitenkoku) +- Fixed total events from the number of scanned events to actual events in evtx. (#683) (@hitenkoku) ## v1.5.1 [2022/08/20] diff --git a/src/main.rs b/src/main.rs index b72c12bd..5da1b162 100644 --- a/src/main.rs +++ b/src/main.rs @@ -587,6 +587,7 @@ impl App { let mut tl = Timeline::new(); let mut parser = parser.unwrap(); let mut records = parser.records_json_value(); + loop { let mut records_per_detect = vec![]; while records_per_detect.len() < MAX_DETECT_RECORDS { @@ -595,6 +596,7 @@ impl App { if next_rec.is_none() { break; } + record_cnt += 1; let record_result = next_rec.unwrap(); if record_result.is_err() { @@ -636,8 +638,6 @@ impl App { break; } - record_cnt += records_per_detect.len(); - let records_per_detect = self.rt.block_on(App::create_rec_infos( records_per_detect, &path,