Showing posts with label MISP. Show all posts
Showing posts with label MISP. Show all posts

Tuesday, August 2, 2022

TryHackMe Write-up | MISP Task 5  Scenario Event

CIRCL (Computer Incident Respons Center Luxembourg) published an event associated with PupyRAT infection. Your organisation is on alert for remote access trojans and malware in the wild, and you have been tasked to investigate this event and correlate the details with your SIEM. Use what you have learned from the room to identify the event and complete this task.

Answer the questions below

What event ID has been assigned to the PupyRAT event?

How to: Start at the home page of MISP, on the right side of the screen is a filter box, type into the filter box PupyRAT. Click the Filter button and give it a moment, the page for PupyRAT should load up and the Event ID will be the first entry you see. Copy and past it over in the answer box on THM. 

Answer: 1146

The event is associated with the adversary gaining ______ into organisations.

How to: Look at the tags for this event, the answer can be found in the purple tag labeled ms-caro-malware:malware-type. 

Answer: Remote Access 

Hint: What does RAT stand for?

What IP address has been mapped as the PupyRAT C2 Server

How to: Use ctrl + f, to bring up the find feature. Type into the find bar command this will bring you to the only time it is mentioned on the page. The IP address to the left of this find is the IP address of the C2 server. 

Answer: 89.107.62.39

From the Intrusion Set Galaxy, what attack group is known to use this form of attack?

How to: Scroll back up towards the top, till you see the galaxy tab (the text is blue in this area). Then look for the Intrusion Set label. The one entry under this is the answer to this question. 

Answer: Magic Hound

There is a taxonomy tag set with a Certainty level of 50. Which one is it?

How to: Go back up to the tags section, look for a liter blue background with white text and the number 50. The first part of this is the answer to this question. 

Answer: OSINT 

Hint: Check Tags

TryHackMe Write-Up | MISP Task 3  Using the System

 

For you to understand how MISP works and follow along in the task, launch the attached machine and use the credentials provided to log in to the Analyst Account on https://LAB_WEB_URL.p.thmlabs.com/. Wait 1 minute for the URL and lab to start up.

Username: Analyst@THM.thm  Password: Analyst1234&


Dashboard

The analyst's view of MISP provides you with the functionalities to track, share and correlate events and IOCs identified during your investigation. The dashboard's menu contains the following options, and we shall look into them further:

  • Home button: Returns you to the application's start screen, the event index page or the page set as a custom home page using the star in the top bar.
  • Event Actions: All the malware data entered into MISP comprises an event object described by its connected attributes. The Event actions menu gives access to all the functionality related to the creation, modification, deletion, publishing, searching and listing of events and attributes.
  • Dashboard: This allows you to create a custom dashboard using widgets.
  • Galaxies: Shortcut to the list of MISP Galaxies on the MISP instance. More on these on the Feeds & Taxonomies Task.
  • Input Filters: Input filters alter how users enter data into this instance. Apart from the basic validation of attribute entry by type, the site administrators can define regular expression replacements and blocklists for specific values and block certain values from being exportable. Users can view these replacement and blocklist rules here, while an administrator can alter them.
  • Global Actions: Access to information about MISP and this instance. You can view and edit your profile, view the manual, read the news or the terms of use again, see a list of the active organisations on this instance and a histogram of their contributions by an attribute type.
  • MISP: Simple link to your baseurl.
  • Name: Name (Auto-generated from Mail address) of currently logged in user.
  • Envelope: Link to User Dashboard to consult some of your notifications and changes since the last visit. Like some of the proposals received for your organisation.
  • Log out: The Log out button to end your session immediately.

https://tryhackme-images.s3.amazonaws.com/user-uploads/5fc2847e1bbebc03aa89fbf2/room-content/b4d6aae4ec0523a305b0280d4558f533.png

Home Dashboard showing available events

Event Management

The Event Actions tab is where you, as an analyst, will create all malware investigation correlations by providing descriptions and attributes associated with the investigation. Splitting the process into three significant phases, we have:

  • Event Creation.
  • Populating events with attributes and attachments.
  • Publishing.

We shall follow this process to create an event based on an investigation of Emotet Epoch 4 infection with Cobalt Strike and Spambot from malware-traffic-analysis.net. Follow along with the examples provided below.

Event Creation

In the beginning, events are a storage of general information about an incident or investigation. We add the description, time, and risk level deemed appropriate for the incident by clicking the Add Event button. Additionally, we specify the distribution level we would like our event to have on the MISP network and community. According to MISP, the following distribution options are available:

  • Your organisation only: This only allows members of your organisation to see the event.
  • This Community-only: Users that are part of your MISP community will be able to see the event. This includes your organisation, organisations on this MISP server and organisations running MISP servers that synchronise with this server.
  • Connected communities: Users who are part of your MISP community will see the event, including all organisations on this MISP server, all organisations on MISP servers synchronising with this server, and the hosting organisations of servers that are two hops away from this one.
  • All communities: This will share the event with all MISP communities, allowing the event to be freely propagated from one server to the next.

Additionally, MISP provides a means to add a sharing group, where an analyst can define a predefined list of organisations to share events.

https://tryhackme-images.s3.amazonaws.com/user-uploads/5fc2847e1bbebc03aa89fbf2/room-content/b08778016cc041ada7067c4a52376ed4.gif

Event details can also be populated by filling out predefined fields on a defined template, including adding attributes to the event. We can use the email details of the CobaltStrike investigation to populate details of our event. We will be using the Phishing E-mail category from the templates.

https://tryhackme-images.s3.amazonaws.com/user-uploads/5fc2847e1bbebc03aa89fbf2/room-content/b0fe2b5aa3cb6556b53551e1846a9ca8.gif

Attributes & Attachments

Attributes can be added manually or imported through other formats such as OpenIOC and ThreatConnect. To add them manually, click the Add Attribute and populate the form fields.

Some essential options to note are:

  • For Intrusion Detection System: This allows the attribute to be used as an IDS signature when exporting the NIDS data unless it overrides the permitted list. If not set, the attribute is considered contextual information and not used for automatic detection.
  • Batch import: If there are several attributes of the same type to enter (such as a list of IP addresses, it is possible to join them all into the same value field, separated by a line break between each line. This will allow the system to create separate lines for each attribute.

In our example below, we add an Emotet Epoch 4 C2 IP address associated with the infection as our attributes, obtained from the IOC text file.

https://tryhackme-images.s3.amazonaws.com/user-uploads/5fc2847e1bbebc03aa89fbf2/room-content/7ba507e671b184bb567708993fbe136d.gif

The analyst can also add file attachments to the event. These may include malware, report files from external analysis or simply artefacts dropped by the malware. We have added the Cobalt Strike EXE binary file to our event in our example. You also have to check the Malware checkbox to mark the file as malware. This will ensure that it is zipped and passworded to protect users from accidentally downloading and executing the file.

https://tryhackme-images.s3.amazonaws.com/user-uploads/5fc2847e1bbebc03aa89fbf2/room-content/c13e7206797bdd3e726d9bf74c831fc3.gif

Publish Event

Once the analysts have created events, the organisation admin will review and publish those events to add them to the pool of events. This will also share the events to the distribution channels set during the creation of the events.

https://tryhackme-images.s3.amazonaws.com/user-uploads/5fc2847e1bbebc03aa89fbf2/room-content/4caf7734a850d778397cb5c86f3ae237.gif

Answer the questions below

How many distribution options does MISP provide to share threat information?

How to: The answer can be found in the Event Creation section above or if you have already created the event in the MISP, choose to edit event then go over to Distribution , click on it and count the number of chooses. This is your answer. 

Answer: 4

Which user has the role to publish events?

How to: The answer can be found in the Publish section above, and if you are typing it into the answer box and getting wrong you have to use the british spelling for the first word. 

Answer: organisation admin

TryHackMe Write-Up | Sysinternals Task 9  Miscellaneous

BgInfo "It automatically displays relevant information about a Windows computer on the desktop's background, such as the computer ...