Sitemap
Genshi

Genshi

Reaper

5 min readAug 18, 2024

--

Sherlock HackTheBox

Press enter or click to view image in full size

Sherlock Scenario

Our SIEM alerted us to a suspicious logon event which needs to be looked at immediately . The alert details were that the IP Address and the Source Workstation name were a mismatch .You are provided a network capture and event logs from the surrounding time around the incident timeframe. Corelate the given evidence and report back to your SOC Manager.

Tools:

The challenges requires a zip file to be downloaded, after extracting the content i found two files ‘.pcap’ and ‘.evtx’. We can use wireshark to view the packet captured to investigate it. evtx on the other hand is a windows event log file that's being used by windows OS to store system, security and application event logs.

I will be using my kali machine to analyze the pcap while windows machine event viewer to analyze the event log If you know a better way please email me or comment I'm here to learn.

About 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.

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

About NTLM Attacks

Its a type of man in the middle attack that targets the NTLM authentication protocol used in windows environment. We are expecting to see a relay from the attacker of a NTLM authentication message to the server to gain unauthorized access to network.

Task 1: What is the IP Address for Forela-Wkstn001?

When opening wireshark, the first packet shows that there was a DHCP request from Forela-Wkstn001. The source of the packet is the IP address of the Forela-Wkstn00.

Press enter or click to view image in full size

Task 2: What is the IP Address for Forela-Wkstn002?

We can find the IP address of the Forela-Wkstn002 by simply using he ‘find next packet’ under edit and changing the case sensitivity to String. You can copy ‘Forela-Wkstn002’ to the search field and press enter. The source packet is the IP address of the Forela-Wkstn002

Press enter or click to view image in full size

Task 3: Which user account’s hash was stolen by attacker?

For this we know that Forela-Wkstn001 and Forela-Wkstn002 are computer names not User account named. If the attacker stole the user’s hash then they must have used it to log into the system and the secruity log in Security.evtx would capture it!

Get Genshi’s stories in your inbox

Join Medium for free to get updates from this writer.

In the Security Logs, there was an event categorized as file share. Subject username is Arthur Kyle using he computer Forela-Wkstn001 however the IP address is different than the IP address we found in Task 1

Press enter or click to view image in full size

Task 4: What is the IP Address of Unknown Device used by the attacker to intercept credentials?

During the previous step, we found the IP address of Arthur Kyle that we tagged as suspicious.

Task 5: What was the fileshare navigated by the victim user account?

The question is asking to identify specific network file share or shared folder that the victim user accessed or interacted with. I came across a file called \\DC01\Trip when checking wireshark.

it seems that the Forela-Wkstn002 tried to connect to it but it resulted in an error.

Press enter or click to view image in full size

Task 6: What is the source port used to logon to target workstation using the compromised account?

The answer can be found in task 3 when we found the stolen hash.

Press enter or click to view image in full size

Task 7: What is the Logon ID for the malicious session?

The answer can be found in task 3 when we found the stolen hash.

Press enter or click to view image in full size

Task 8: The detection was based on the mismatch of hostname and the assigned IP Address. What is the workstation name and the source IP Address from which the malicious logon occur?

we already know the source IP address that was used to login by arthur Kyle which is 172.17.79.135 however comparing it with the wireshark logs we notice that

The mismatching is happening due to the NTLM relay attack

Press enter or click to view image in full size

Task 9: When did the malicious logon happened. Please make sure the timestamp is in UTC?

The answer can be found in task 3 when we found the stolen hash.

2024–07–31 04:55:16

Press enter or click to view image in full size

Task 10: What is the share Name accessed as part of the authentication process by the malicious tool used by the attacker?

The answer can be found in task 3 when we found the stolen hash.
\\*\IPC$

Press enter or click to view image in full size

This was fun.. until next time.

--

--