Skip to content

Commit fddcbc7

Browse files
Merge pull request #350 from Yamato-Security/feature/fix_for_releasev1.0
Feature/fix for releasev1.0
2 parents 474ed51 + edd3703 commit fddcbc7

File tree

3 files changed

+38
-46
lines changed

3 files changed

+38
-46
lines changed

README-English.md

+18-23
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,16 @@ You can check out sample CSV and manually edited XLSX timeline results [here](ht
7272
* JSON support for sending alerts to Elastic Stack/Splunk, etc...
7373

7474
# Downloads
75-
You can `git clone` the repository with the following command:
75+
You can download the latest Hayabusa version from the [Releases](https://github.com/Yamato-Security/hayabusa/releases) page.
76+
77+
You can also `git clone` the repository with the following command and compile binary from source code.:
7678

7779
```bash
7880
git clone https://github.com/Yamato-Security/hayabusa.git
7981
```
8082

81-
You can also manually download and extract Hayabusa from [https://github.com/Yamato-Security/hayabusa](https://github.com/Yamato-Security/hayabusa).
82-
83-
After that, you need to download a pre-compiled binary for the Windows, Linux or macOS at the [Releases](https://github.com/Yamato-Security/hayabusa/releases) page and save it to the `hayabusa` root folder.
83+
There are two different versions of the evtx library being used when compiled: `0.6.7` and `0.7.2`.
84+
The `0.7.2` version should work but we have only tested it with `0.6.7` so please use that version if you experience any problems with `0.7.2`.
8485

8586
# Compiling from source (Optional)
8687
If you have rust installed, you can compile from source with the following command:
@@ -110,13 +111,7 @@ git clone https://github.com/Yamato-Security/hayabusa-sample-evtx.git
110111
> Note: You need to run the binary from the Hayabusa root directory.
111112
112113
# Usage
113-
You need to run the binary from the Hayabusa root directory.
114-
There are different binary versions in `.\bin` compiled for different operating systems and architectures.
115-
Also, there are two different versions of the evtx library being used when compiled: `0.6.7` and `0.7.2`.
116-
The `0.7.2` version should work but we have only tested it with `0.6.7` so please use that if you experience any problems with `0.7.2`.
117-
Please replace `hayabusa.exe` in the examples below with the appropriate Hayabusa binary filename.
118-
119-
> Note: You need to run the Hayabusa binary from the Hayabusa root directory.
114+
> Note: You need to run the Hayabusa binary from the Hayabusa root directory. Example: `.\hayabusa.exe`
120115
121116
## Command line options
122117
```bash
@@ -144,62 +139,62 @@ USAGE:
144139
## Usage examples
145140
* Run hayabusa against one Windows event log file:
146141
```bash
147-
.\bin\hayabusa.exe -f eventlog.evtx
142+
.\hayabusa.exe -f eventlog.evtx
148143
```
149144

150145
* Run hayabusa against the sample-evtx directory with multiple Windows event log files:
151146
```bash
152-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx
147+
.\hayabusa.exe -d .\hayabusa-sample-evtx
153148
```
154149

155150
* Export to a single CSV file for further analysis with excel or timeline explorer:
156151
```bash
157-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -o results.csv
152+
.\hayabusa.exe -d .\hayabusa-sample-evtx -o results.csv
158153
```
159154

160155
* Only run hayabusa rules (the default is to run all the rules in `-r .\rules`):
161156
```bash
162-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa -o results.csv
157+
.\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa -o results.csv
163158
```
164159

165160
* Only run hayabusa rules for logs that are enabled by default on Windows:
166161
```bash
167-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa\default -o results.csv
162+
.\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa\default -o results.csv
168163
```
169164

170165
* Only run hayabusa rules for sysmon logs:
171166
```bash
172-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa\sysmon -o results.csv
167+
.\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa\sysmon -o results.csv
173168
```
174169

175170
* Only run sigma rules:
176171
```bash
177-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\sigma -o results.csv
172+
.\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\sigma -o results.csv
178173
```
179174

180175
* Enable deprecated rules (those with `status` marked as `deprecated`) and noisy rules (those whose rule ID is listed in `.\config\noisy-rules.txt`):
181176
```bash
182-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx --enable-noisy-rules --enable-deprecated-rules -o results.csv
177+
.\hayabusa.exe -d .\hayabusa-sample-evtx --enable-noisy-rules --enable-deprecated-rules -o results.csv
183178
```
184179

185180
* Only run rules to analyze logons and output in the UTC timezone:
186181
```bash
187-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa\default\events\Security\Logons -u -o results.csv
182+
.\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa\default\events\Security\Logons -u -o results.csv
188183
```
189184

190185
* Run on a live Windows machine (requires Administrator privileges) and only detect alerts (potentially malicious behavior):
191186
```bash
192-
.\bin\hayabusa.exe -d C:\Windows\System32\winevt\Logs -m low
187+
.\hayabusa.exe -d C:\Windows\System32\winevt\Logs -m low
193188
```
194189

195190
* Get event ID statistics:
196191
```bash
197-
.\bin\hayabusa.exe -f Security.evtx -s
192+
.\hayabusa.exe -f Security.evtx -s
198193
```
199194

200195
* Print verbose information (useful for determining which files take long to process, parsing errors, etc...):
201196
```bash
202-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -v
197+
.\hayabusa.exe -d .\hayabusa-sample-evtx -v
203198
```
204199

205200
* Verbose output example:

README-Japanese.md

+18-23
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,16 @@ CSVと手動で編集したXLSXのタイムライン結果のサンプルは[こ
7373
* JSONへの出力→Elastic Stack/Splunkへのインポート
7474

7575
# ダウンロード
76-
以下の`git clone`コマンドでレポジトリをダウンロードできます:
76+
Hayabusaの[Releases](https://github.com/Yamato-Security/hayabusa/releases)から最新版をダウンロードできます。
77+
78+
または、以下の`git clone`コマンドでレポジトリをダウンロードし、ソースコードからコンパイルして使用することも可能です。
7779

7880
```bash
7981
git clone https://github.com/Yamato-Security/hayabusa.git
8082
```
8183

82-
または、手動で[https://github.com/Yamato-Security/hayabusa](https://github.com/Yamato-Security/hayabusa)からHayabusaをダウンロードすることもできます。
83-
84-
その後、Windows、Linux、macOS用のコンパイル済みバイナリを[Releases](https://github.com/Yamato-Security/Hayabusa/releases)からダウンロードして、`hayabusa`のディレクトリに置く必要があります。
84+
evtxライブラリのバージョン(`0.6.7``0.7.2`)毎に、コンパイルされたバイナリが用意されています。
85+
`0.7.2`バージョンでも動作するはずですが、`0.6.7`でしかテストしていませんので、`0.7.2`で問題が発生した場合はそちらをご利用ください。
8586

8687
# ソースコードからのコンパイル(任意)
8788
rustがインストールされている場合、以下のコマンドでソースコードからコンパイルすることができます:
@@ -111,13 +112,7 @@ git clone https://github.com/Yamato-Security/hayabusa-sample-evtx.git
111112
> ※ 以下の例でHayabusaを試したい方は、上記コマンドをhayabusaのルートフォルダから実行してください。
112113
113114
# 使用方法
114-
Hayabusaはルートディレクトリでバイナリを実行する必要があります。
115-
.\bin` には、OSやアーキテクチャごとにコンパイルされたバイナリが用意されています。
116-
また、evtxライブラリのバージョン(`0.6.7``0.7.2`)毎に、コンパイルされたバイナリが用意されています。
117-
`0.7.2`バージョンでも動作するはずですが、`0.6.7`でしかテストしていませんので、`0.7.2`で問題が発生した場合はそちらをご利用ください。
118-
以下の例の `hayabusa.exe` は、適切なHayabusaのバイナリファイル名に置き換えてください。
119-
120-
> 注意: Hayabusaのルートディレクトリから、バイナリを実行する必要があります。
115+
> 注意: Hayabusaのルートディレクトリから、バイナリを実行する必要があります。例:`.\hayabusa.exe`
121116
122117
## コマンドラインオプション
123118
```bash
@@ -145,62 +140,62 @@ USAGE:
145140
## 使用例
146141
* 1 つのWindowsイベントログファイルに対してHayabusaを実行します:
147142
```bash
148-
.\bin\hayabusa.exe -f eventlog.evtx
143+
.\hayabusa.exe -f eventlog.evtx
149144
```
150145

151146
* 複数のWindowsイベントログファイルのあるsample-evtxディレクトリに対して、Hayabusaを実行します:
152147
```bash
153-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx
148+
.\hayabusa.exe -d .\hayabusa-sample-evtx
154149
```
155150

156151
* 1 つのCSVファイルにエクスポートして、EXCELやTimeline Explorerでさらに分析することができます:
157152
```bash
158-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -o results.csv
153+
.\hayabusa.exe -d .\hayabusa-sample-evtx -o results.csv
159154
```
160155

161156
* Hayabusaルールのみを実行します(デフォルトでは `-r .\rules` にあるすべてのルールが利用されます):
162157
```bash
163-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa -o results.csv
158+
.\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa -o results.csv
164159
```
165160

166161
* Windowsでデフォルトで有効になっているログに対してのみ、Hayabusaルールを実行します:
167162
```bash
168-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa\default -o results.csv
163+
.\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa\default -o results.csv
169164
```
170165

171166
* Sysmonログに対してのみHayabusaルールを実行します:
172167
```bash
173-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa\sysmon -o results.csv
168+
.\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\hayabusa\sysmon -o results.csv
174169
```
175170

176171
* Sigmaルールのみを実行します:
177172
```bash
178-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\sigma -o results.csv
173+
.\hayabusa.exe -d .\hayabusa-sample-evtx -r .\rules\sigma -o results.csv
179174
```
180175

181176
* 廃棄(deprecated)されたルール(`status``deprecated`になっているルール)とノイジールール(`.\config\noisy-rules.txt`にルールIDが書かれているルール)を有効にします:
182177
```bash
183-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx --enable-deprecated-rules --enable-noisy-rules -o results.csv
178+
.\hayabusa.exe -d .\hayabusa-sample-evtx --enable-deprecated-rules --enable-noisy-rules -o results.csv
184179
```
185180

186181
* ログオン情報を分析するルールのみを実行し、UTCタイムゾーンで出力します:
187182
```bash
188-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -r ./rules/Hayabusa/default/events/Security/Logons -u -o results.csv
183+
.\hayabusa.exe -d .\hayabusa-sample-evtx -r ./rules/Hayabusa/default/events/Security/Logons -u -o results.csv
189184
```
190185

191186
* 起動中のWindows端末上で実行し(Administrator権限が必要)、アラート(悪意のある可能性のある動作)のみを検知します:
192187
```bash
193-
.\bin\hayabusa.exe -d C:\Windows\System32\winevt\Logs -m low
188+
.\hayabusa.exe -d C:\Windows\System32\winevt\Logs -m low
194189
```
195190

196191
* イベントIDの統計情報を取得します:
197192
```bash
198-
.\bin\hayabusa.exe -f Security.evtx -s
193+
.\hayabusa.exe -f Security.evtx -s
199194
```
200195

201196
* 詳細なメッセージを出力します(処理に時間がかかるファイル、パースエラー等を特定するのに便利):
202197
```bash
203-
.\bin\hayabusa.exe -d .\hayabusa-sample-evtx -v
198+
.\hayabusa.exe -d .\hayabusa-sample-evtx -v
204199
```
205200

206201
* Verbose出力の例:

logs/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

0 commit comments

Comments
 (0)