Benign
Investigate host-centric logs on a compromised host to find suspicious process execution.
Introduction
One of the client’s IDS indicated a potentially suspicious process execution indicating one of the hosts from the HR department was compromised. Some tools related to network information gathering / scheduled tasks were executed which confirmed the suspicion. Due to limited resources, only the process execution logs with Event ID: 4688 could be pulled and ingested into Splunk with the index win_eventlogs for further investigation.
About the Network Information
IT department | HR department | Marketing department |
---|---|---|
James | Haroon | Bell |
Moin | Chris | Amelia |
Katrina | Diana | Deepak |
Identify and Investigate an Infected Host
How many logs are ingested from the month of March, 2022?
![](https://jacob-taylor.gitbook.io/~gitbook/image?url=https%3A%2F%2F309112325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FdUCUPJ7E8b7n8AB8j3ms%252Fuploads%252FRfPjvu3jeibmKgnWfnr7%252Fimage.png%3Falt%3Dmedia%26token%3D5e6b2df3-1b41-455b-a357-9d23dcbceb8a&width=768&dpr=4&quality=100&sign=bfc95728&sv=1)
Imposter Alert: There seems to be an imposter account observed in the logs, what is the name of that user?
Using the "rare" SPL command to target the usernames, there is one obvious unwanted user:
![](https://jacob-taylor.gitbook.io/~gitbook/image?url=https%3A%2F%2F309112325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FdUCUPJ7E8b7n8AB8j3ms%252Fuploads%252FUu7FfW6uI03GRDXbC453%252Fimage.png%3Falt%3Dmedia%26token%3D07082cb3-e496-4c62-84ff-9283ff13ca93&width=768&dpr=4&quality=100&sign=d6398f2f&sv=1)
Which user from the HR department was observed to be running scheduled tasks?
Searching for "schtasks" will index 87 events:
![](https://jacob-taylor.gitbook.io/~gitbook/image?url=https%3A%2F%2F309112325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FdUCUPJ7E8b7n8AB8j3ms%252Fuploads%252Fh3E62nldkQUQU2gTJD8T%252Fimage.png%3Falt%3Dmedia%26token%3D0fb6cfa1-b0eb-451e-ba58-f8d9244eab34&width=768&dpr=4&quality=100&sign=3d961eb9&sv=1)
From here, querying the usernames involved in these tasks should narrow down the search to the user from the HR department.
![](https://jacob-taylor.gitbook.io/~gitbook/image?url=https%3A%2F%2F309112325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FdUCUPJ7E8b7n8AB8j3ms%252Fuploads%252FIXbqUA1tLDw4ajvRxApG%252Fimage.png%3Falt%3Dmedia%26token%3D81651749-8a57-4c05-9804-75d801794f1c&width=768&dpr=4&quality=100&sign=92e1b27f&sv=1)
![](https://jacob-taylor.gitbook.io/~gitbook/image?url=https%3A%2F%2F309112325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FdUCUPJ7E8b7n8AB8j3ms%252Fuploads%252FX15GsiS7YNe6OGIKNt4t%252Fimage.png%3Falt%3Dmedia%26token%3D1801f363-12f2-4f5e-8aaf-7ea8bed1864c&width=768&dpr=4&quality=100&sign=77415026&sv=1)
Which user from the HR department executed a system process (LOLBIN) to download a payload from a file-sharing host.
![](https://jacob-taylor.gitbook.io/~gitbook/image?url=https%3A%2F%2F309112325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FdUCUPJ7E8b7n8AB8j3ms%252Fuploads%252FhjGebyp35PtCpHD0eL2Q%252Fimage.png%3Falt%3Dmedia%26token%3D8fc54d1b-82da-4822-9564-cb2ec21a245c&width=768&dpr=4&quality=100&sign=fa4ba1c5&sv=1)
![](https://jacob-taylor.gitbook.io/~gitbook/image?url=https%3A%2F%2F309112325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FdUCUPJ7E8b7n8AB8j3ms%252Fuploads%252FbSpI35KbqimQ0EfpqRMy%252Fimage.png%3Falt%3Dmedia%26token%3Dca83827f-76e5-44ba-883e-6fbe110aedac&width=768&dpr=4&quality=100&sign=92aa232a&sv=1)
![](https://jacob-taylor.gitbook.io/~gitbook/image?url=https%3A%2F%2F309112325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FdUCUPJ7E8b7n8AB8j3ms%252Fuploads%252F4BwKUSeyWP2ZaJySBk3F%252Fimage.png%3Falt%3Dmedia%26token%3D5bd80a05-5310-4618-ba45-9ad2ea9d9ef2&width=768&dpr=4&quality=100&sign=509830de&sv=1)
To bypass the security controls, which system process (lolbin) was used to download a payload from the internet?
certutil.exe
What was the date that this binary was executed by the infected host? format (YYYY-MM-DD)
2022-03-04
Which third-party site was accessed to download the malicious payload?
controlc.com
What is the name of the file that was saved on the host machine from the C2 server during the post-exploitation phase?
benign.exe
The suspicious file downloaded from the C2 server contained malicious content with the pattern THM{..........}; what is that pattern?
Inside the Splunk history, the following qery could be found:
![](https://jacob-taylor.gitbook.io/~gitbook/image?url=https%3A%2F%2F309112325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FdUCUPJ7E8b7n8AB8j3ms%252Fuploads%252FOSAMe48ysn9ByVNKMk5T%252Fimage.png%3Falt%3Dmedia%26token%3Dc4f5b959-4f8a-4931-b410-4eb9adf6da2d&width=768&dpr=4&quality=100&sign=7b3b40ad&sv=1)
What is the URL that the infected host connected to?
https://controlc.com/548ab556
Last updated