セキュリティ アナリストが企業でのマルウェア インシデントを調査しています。マルウェアはコマンド アンド コントロール Web サイト (www.comptia.com) にアクセスしています。すべての送信インターネット トラフィックは syslog サーバーに記録され、/logfiles/messages に保存されます。 アナリストがコマンド アンド コントロール Web サイトへの最近のトラフィックを検索するために syslog サーバーで使用するのに最適なコマンドは次のうちどれですか?
正解:C
Explanation tail is a Linux command that can be used to display the last part of a file. grep is a Linux command that can be used to search for a pattern in a file or input. The pipe symbol (|) is used to connect two commands and pass the output of one command as the input of another command. The best command for the analyst to use on the syslog server to search for recent traffic to the command-and-control website is tail -500 /logfiles/messages | grep www.comptia.com. This command would display the last 500 lines of the /logfiles/messages file and filter them by the pattern www.comptia.com, which is the domain name of the command-and-control website. This way, the analyst can see any syslog messages that contain the domain name of the malicious website and investigate them further. 2122 [23] References: CompTIA Security+ SY0-601 Certification Study Guide, Chapter 11: Explaining Digital Forensics Concepts, page 498; tail (Unix) - Wikipedia; grep - Wikipedia; [How To Use grep Command In Linux / UNIX - nixCraft]