> For the complete documentation index, see [llms.txt](https://kunalwalavalkar.gitbook.io/write-ups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kunalwalavalkar.gitbook.io/write-ups/cyberdefenders/insider.md).

# Insider

{% hint style="warning" %}
Always open malware in a secure environment like a VM.
{% endhint %}

{% hint style="info" %}
We will be using the [REMnux](https://remnux.org/) distribution which is specifically made for reverse engineering.
{% endhint %}

##

* Before we begin, we need to add the evidence item to [FTK Imager](https://www.exterro.com/ftk-imager) as an image.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2FHDPPDef7qvtwFWRCidZZ%2Finsider1.png?alt=media&amp;token=b579195c-a4f7-43f6-a6bf-6eb530445aba" alt=""><figcaption></figcaption></figure>

##

> Q1. What distribution of Linux is being used on this machine?

* We can find distribution in the `boot` directory.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2FhdY7PgMfUrJNxRNhmuke%2Finsider%201.png?alt=media&amp;token=f5258862-959c-460a-aedf-3745f385bb4b" alt=""><figcaption></figcaption></figure>

##

> Q2. What is the MD5 hash of the apache access.log?

* The `access.log` for the apache is located in the `var/log/` directory.
* In the bottom left corner, the MD5 hash can be seen.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2F9hAoH0W1U1B4euP7Sso3%2Finsider%202.png?alt=media&amp;token=7b35ea48-7fea-4af6-ac52-343289be423c" alt=""><figcaption></figcaption></figure>

##

> Q3. It is believed that a credential dumping tool was downloaded? What is the file name of the download?

* We can go to the `Downloads` folder in order to check what file has been downloaded.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2FCa38dGnlHBiZALQyuHY4%2Finsider%203.png?alt=media&amp;token=86e6ad04-b9dc-4105-81be-4fa94cf7e67b" alt=""><figcaption></figcaption></figure>

##

> Q4. There was a super-secret file created. What is the absolute path?

* There is a `bash_history` file in the `root` directory. It has all the commands that have been entered.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2F7Uf4GgF6pYAZgxUqy8KK%2Finsider%204.png?alt=media&amp;token=93b69998-406b-4e89-8df2-cb66928edfeb" alt=""><figcaption></figcaption></figure>

##

> Q5. What program used didyouthinkwedmakeiteasy.jpg during execution?

* This is also included in the `bash_history` file.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2F24kWEfVbzHXtaZmQYKYv%2Finsider%205.png?alt=media&amp;token=e3e82f79-25fd-452d-a357-c6ef7ecf790b" alt=""><figcaption></figcaption></figure>

##

> Q6. What is the third goal from the checklist Karen created?

* In the Desktop there is a `Checklist` file which has the answer we want.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2FWmPfgXkPXHYIE00CHKdE%2Finsider%206.png?alt=media&amp;token=75225e35-09ad-49f1-a3bc-9037fe7c321a" alt=""><figcaption></figcaption></figure>

##

> Q7. How many times was apache run?

* Let's look back at the `access.log` file for apache.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2FciShxv7niCEz95EN505d%2Finsider%207.png?alt=media&amp;token=53d8c7ba-a2e3-4e39-8e4e-364bc10ea927" alt=""><figcaption></figcaption></figure>

* We can see that the file is empty, which means that apache wasn't run at all.

##

> Q8. It is believed this machine was used to attack another. What file proves this?

* In the `root` directory there is a screenshot named `irZLAohL.jpeg` that shows the user running `aylmao.exe`. This executable generates malicious network traffic.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2F3wLcRqLAKPezWmQBA9Ni%2Finsider%208.png?alt=media&amp;token=08894e67-325d-418f-a88f-e2dec006330f" alt=""><figcaption></figcaption></figure>

##

> Q9. Within the Documents file path, it is believed that Karen was taunting a fellow computer expert through a bash script. Who was Karen taunting?

* Fortunately Karen has documented her attack in the `myfirsthack` folder. Inside the `firstscript_fixed` file, we can see who she was taunting.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2Fieg69TNOdBHddp9xZXSx%2Finsider%209.png?alt=media&amp;token=6348c846-5177-4d6f-b734-7a0bb40af6e2" alt=""><figcaption></figcaption></figure>

##

> Q10. A user su'd to root at 11:26 multiple times. Who was it?

* We can go through the `auth.log` file in order to find the user.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2FSTBeL2lljSGlYg5wZFwk%2Finsider%2010.png?alt=media&amp;token=3df7d6de-efcc-4448-b2e9-a951b2fd49d3" alt=""><figcaption></figcaption></figure>

##

> Q11. Based on the bash history, what is the current working directory?

* If we go through the `bash_history` in a down-up manner, we can see the current working directory.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2FJg55lYRhcqjJU9GdAIGG%2Finsider%2011.png?alt=media&amp;token=ebb66acf-1e66-4f97-9ae8-5cc372bad124" alt=""><figcaption></figcaption></figure>
