CyberDefenders / ARTICLE

Spotlight Lab

Lab solution ahead. This writeup contains answers and investigation steps for a CyberDefenders training challenge.
بسم الله والصلاة والسلام على رسول الله
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا وقنا عذاب النار

Lab Link :

https://cyberdefenders.org/blueteam-ctf-challenges/spotlight/



Scenario 
Spotlight is a MAC OS image forensics challenge where you can evaluate your DFIR skills against
 an OS you usually encounter in today's case investigations as a security blue team member.

This article is really excellent; it provides a cheat sheet for all macOS artifacts along with their paths.

https://davidkoepi.wordpress.com/category/mac-forensics/


Q1- What version of macOS is running on this image?

using sheet cheat

way 1

way 2

ans ⇒ 10.15


Q2- What "competitive advantage" did Hansel lie about in the file AnotherExample.jpg? (two words)

ans ⇒ flip phone


Q3- How many bookmarks are registered in safari?

Download pslist file and open it in this site :

https://plist-viewer.com/index.html

ans ⇒ 13


Q3- What's the content of the note titled "Passwords"?

I searched for the path of the Notes on macOS and managed to find it.\
After that, I came across this article explaining how to work with NoteStore.sqlite, open it, and extract the data inside it.

https://apple.stackexchange.com/questions/401675/how-to-open-notestore-sqlite

extract it , and open it on DB Browser for Sqlite\
but we see the password field is empty

follow the article steps

after unzipping

ans ⇒ password


Q5- Provide the MAC address of the ethernet adapter for this machine.

using above sheet cheat

ans ⇒ 00:0c:29:c4:65:77


Q6- Name the data URL of the quarantined item.

or using mac_apt tool

  • use this plugin

output :

open the DB

ans ⇒ https://futureboy.us/stegano/encode.p


Q7- What app did the user "sneaky" try to install via a .dmg file? (one word)

A .dmg file is an Apple Disk Image, a file format used primarily by macOS for distributing software and backing up data. It acts like a virtual mountable disk, similar to an ISO file in Windows, which displays the contents and allows for application installatio

ans -> silenteye


Q8- What was the file 'Examplesteg.jpg' renamed to?

extract this folder

Way 1 : using mac_apt ( artifact parsing tool )

https://github.com/ydkhatri/mac_apt

# download the tool 
git clone https://github.com/ydkhatri/mac_apt.git

# install virtual environment
python3 -m venv venv
source venv/bin/activate

# install the requirements
pip install -r requirements.txt

## analyzing fseventsd
python mac_apt_artifact_only.py -i /home/kali/Desktop/fseventsd/ -o /home/kali/Desktop/oo/ fsevents

output :

open the db in a DB browser

filter by file_id to find all the associations

Done !

Way 2 : using FSEParser

this article from crowdstrike ⇒ Using OS X FSEvents to Discover Deleted Malicious Artifacts

https://www.crowdstrike.com/en-us/blog/using-os-x-fsevents-discover-deleted-malicious-artifact/

tool link :

https://github.com/dlcowen/FSEventsParser

after downloading the python script :

output

same path

ans ⇒ goodexample.jpg


Q9- How much time was spent on mail.zoho.com on 4/20/2020?

How to get Screen Time data on macOS?

https://stackoverflow.com/questions/66935741/how-to-get-screen-time-data-on-macos

extract it , Download the entire store folder, because it will cause issues if you download the database file alone without the other related files.

  • using this plugin of mac_apt

ans ⇒ 20:58


Q10- What's hansel.apricot's password hint? (two words)

open this file in online plist file viewer


Q11- The main file that stores Hansel's iMessages had a few permissions changes. How many times
 did the permissions change?

https://discussions.apple.com/thread/253205387?sortBy=rank

You will find the permission changes in the fseventsd logs.\
We will search for the database name chat.db and check how many times the permissions were changed.

filter by file id

ans ⇒ 7


Q12- What's the UID of the user who is responsible for connecting mobile devices?

Connecting mobile devices : So now we will try to obtain the UID of a user who attempted to connect a device via USB or something similar.

ans ⇒ 213


Q13- Find the flag in the GoodExample.jpg image. It's hidden with better tools.

ans ⇒ helicopter


Q14- What was exactly typed in the Spotlight search bar on 4/20/2020 02:09:48

Spotlight on Mac is a powerful, system-wide desktop search engine in macOS that instantly locates files, documents, apps, emails, and contacts.

\~/Library/Application Support/com.apple.spotlight/


Q15- What is hansel.apricot's Open Directory user UUID?

ans ⇒ 5BB00259-4F58-4FDE-BC67-C2659BA0A5A4

سبحانك اللهم وبحمدك, أشهد أن لا إله إلا أنت, نستغفرك ونتوب إليك
← All journal articles
Scroll to Top
Home