Sitemap
Genshi

Genshi

LogJammer

Sherlock HackTheBox

4 min readJan 13, 2024

--

Scenario

You have been presented the opportunity to work as a junior DFIR consultant for a big consultancy, however they have provided a technical assessment for you to complete. The consultancy Forela-Security would like to gauge your knowledge on Windows Event Log Analysis. Please analyse and report back on the questions they have asked.

Tools : event viewer on windows 10

EVTX File extensions

We have extracted the files and they call are ‘evtx’ extensions.

These files are log files created by Windows 7 event viewer that contains list of events.

Get Genshi’s stories in your inbox

Join Medium for free to get updates from this writer.

Things to keep in mind regarding the files downloaded:

  • System — Logs created by the operating system
  • Security — Logs related to logins, privileges, and other similar events
  • Windows Defender-Operational — antivirus related event
  • Windows Firewall-Firewall — Firewalls related rules event
  • Powershell-Operational — Powershell event executation

Task 1:

When did user cyberjunkie successfully log into his computer? (UTC)

We can check the security event viewer to find the log in attemp. We found the exact date but we need to change it to convert it to UTC 24 hours and reformat it before submitting

Press enter or click to view image in full size

Task 2:

The user tampered with firewall settings on the system. Analyze the firewall event logs to find out the Name of the firewall rule added?

For this we can open the firewall file and check from the most recent one. We can find that the last change was adding adding the metasploit C2 Bypass

Press enter or click to view image in full size

Task 3:

Whats the direction of the firewall rule?

We can see from the event of the most recent added rule tht the firection is outbound

Press enter or click to view image in full size

Task 4:

The user changed audit policy of the computer. Whats the Subcategory of this changed policy?

By filter the task category in the security event we can find the system audit policy was changed and the subcategory is displayed there

Press enter or click to view image in full size

Task 5:

The user “cyberjunkie” created a scheduled task. Whats the name of this task?

We can check the events in security for scheduled tasks making sure that the account name is ‘CyberJunkie’. With this we were able to find the tasks name of the scheduled tasks

Press enter or click to view image in full size

Task 6:

Whats the full path of the file which was scheduled for the task?

We can find the file path when scrolling down for more information.

Press enter or click to view image in full size

Task 7:

What are the arguments of the command?

We can find the aruhument from the previous step under the command “file path”

Task 8:

The antivirus running on the system identified a threat and performed actions on it. Which tool was identified as malware by antivirus?

In the windows defender event viewer file we can find a warning that the sharphound file was detected as malicous by the antivirus

Press enter or click to view image in full size

Task 9:

Whats the full path of the malware which raised the alert?

The details of the warning from the previous file shows the file path that was can use as the answer for this task

Task 10:

What action was taken by the antivirus?

We can find the action taken by checking the events after the warning. The antivirus seems to Quarantine the malware.

Press enter or click to view image in full size

Task 11:

The user used Powershell to execute commands. What command was executed by the user?

in the Powershell-Operational event viewer file, we can find the command that the user executed.

Press enter or click to view image in full size

Task 12:

We suspect the user deleted some event logs. Which Event log file was cleared?

Within the system event viewer, we can find that the The Microsoft-Windows-Windows Firewall With Advanced Security/Firewall log file was cleared.

Press enter or click to view image in full size

Pwned

This was fun.. until next time.

--

--