Closed YamatoSecurity closed 1 year ago
これはsubcommandを実装してほしいという形に見えます。 各機能で追加で引数を追加するようにしてほしいというように見えますので時間がかかります。
clapのcommandとsubcommandの違いがよく分かっていませんが、多分subcommandのことです。 見た目の問題なので、もっと優先度の高いJSON出力等の後で時間がある時で大丈夫だと思います。
担当者再調整予定
担当者再調整中の為 @YamatoSecurity に担当者を一旦割り振ります。 調整が済んだら別途アサインの変更をお願いいたします
メニューを整理したら、分かったのですが、ACTIONによって使えるオプションが変わってくるので、全部同じヘルプメニューにするのは初めて使う人には分かりにくいと思います。(オプションとアクションを混ぜているのも分かりにくいです) cargoのコマンドのようにコマンドごとのヘルプメニューを用意した方が理想ですが、修正が大変であれば、次のMajor Release (1.6)で良いと思います。
取り敢えず、コマンド(ACTION)のオプションをリストアップします。
csv-timeline, c
(今のデフォルトのタイムライン作成)hayabusa help csv-timeline
の例:OUTPUT: -o, --output Save the timeline in CSV format (ex: results.csv)
-P, --profile Specify output profile
FILTERING: -D, --deep-scan Disable event ID filter to scan all events --enable-deprecated-rules Enable rules marked as deprecated --exclude-status... Ignore rules according to status (ex: experimental) (ex: stable test)
-m, --min-level Minimum level for rules (default: informational)
-n, --enable-noisy-rules Enable rules marked as noisy
--timeline-end End time of the event logs to load (ex: "2022-02-22 23:59:59 +09:00")
--timeline-start Start time of the event logs to load (ex: "2020-02-22 00:00:00 +09:00")
TIME-FORMAT: --European-time Output timestamp in European time format (ex: 22-02-2022 22:00:00.123 +02:00) --RFC-2822 Output timestamp in RFC 2822 format (ex: Fri, 22 Feb 2022 22:00:00 -0600) --RFC-3339 Output timestamp in RFC 3339 format (ex: 2022-02-22 22:00:00.123456-06:00) --US-military-time Output timestamp in US military time format (ex: 02-22-2022 22:00:00.123 -06:00) --US-time Output timestamp in US time format (ex: 02-22-2022 10:00:00.123 PM -06:00) -U, --UTC Output time in UTC format (default: local time)
DISPLAY-SETTINGS: -v, --verbose Output verbose information -V, --visualize-timeline Output event frequency timeline
ADVANCED: -c, --rules-config Specify custom rule config directory (default: ./rules/config)
-Q, --quiet-errors Quiet errors mode: do not save error logs
-r, --rules <DIRECTORY/FILE> Specify a custom rule directory or file (default: ./rules)
INPUT: -d, --directory Directory of multiple .evtx files
-f, --filepath File path to one .evtx file
-l, --live-analysis Analyze the local C:\Windows\System32\winevt\Logs folder
INPUT: -d, --directory Directory of multiple .evtx files
-f, --filepath File path to one .evtx file
-l, --live-analysis Analyze the local C:\Windows\System32\winevt\Logs folder
INPUT: -d, --directory Directory of multiple .evtx files
-f, --filepath File path to one .evtx file
-l, --live-analysis Analyze the local C:\Windows\System32\winevt\Logs folder
OUTPUT: -o, --output Save pivot words to seperate files (ex: pivot-keywords)
FILTERING: -D, --deep-scan Disable event ID filter to scan all events --enable-deprecated-rules Enable rules marked as deprecated --exclude-status... Ignore rules according to status (ex: experimental) (ex: stable test)
-m, --min-level Minimum level for rules (default: informational)
-n, --enable-noisy-rules Enable rules marked as noisy
--timeline-end End time of the event logs to load (ex: "2022-02-22 23:59:59 +09:00")
--timeline-start Start time of the event logs to load (ex: "2020-02-22 00:00:00 +09:00")
DISPLAY-SETTINGS: -v, --verbose Output verbose information
ADVANCED: -c, --rules-config Specify custom rule config directory (default: ./rules/config)
-Q, --quiet-errors Quiet errors mode: do not save error logs
-r, --rules <DIRECTORY/FILE> Specify a custom rule directory or file (default: ./rules)
ADVANCED: -r, --rules <DIRECTORY/FILE> Specify a custom rule directory or file (default: ./rules)