Retour aux notes

Note technique

Investigation forensique Windows — CorporateSecrets

Investigation d'une image disque Windows (défi CyberDefenders) : montage en lecture seule, analyse des artefacts résiduels et réponse aux questions de l'enquête.

  • DomaineForensic

Scenario :#

text
A Windows forensics challenge prepared by Champlain College Digital Forensics Association for their yearly CTF.

Windows Image Forensics Case created by AccessData® FTK® Imager 4.2.1.4 

Acquired using: ADI4.2.1.4  

--------------------------------------------------------------

Information for F:\DFA_Windows\DFA_SP2020_Windows:

Setup#

Tools#

Linux : AD1-tools https://github.com/al3ks1s/AD1-tools Windows : TKimager https://www.exterro.com/digital-forensics-software/ftk-imager

Je suis sous linux :

bash
dpkg --install ad1tools_1.0.0-1_amd64.deb
Monter l'image#

Créer le dossier de travail

bash
mkdir /tmp/Forensic

Monter l'image .ad1 avec ad1mount (ReadOnly)

text
ad1mount -i ~/Downloads/Forensics/CorprateSec.ad1 -m /tmp/Forensic

Extraire l'image pour pouvoir intéragir avec

bash
sudo mkdir /tmp/AD1_extracted
sudo ad1extract -i ~/Downloads/Forensics/CorprateSec.ad1 -d /tmp/AD1_extracted -m

Différence entre ad1mount & ad1extract

ad1mountad1extract
Ce que ça faitCrée une vue virtuelle via FUSECopie physiquement les fichiers sur le disque
Les fichiers existent vraiment sur le disque ?❌ Non, tout reste dans l'image AD1✅ Oui, copies réelles créées
Read-only ?✅ Oui, forcément❌ Non, les fichiers extraits sont modifiables
Consomme de l'espace disque ?❌ Non✅ Oui (taille équivalente à l'image)
Accessible par Docker / autres outils ?❌ Problématique (FUSE)✅ Sans restrictions
S'équiper pour trouver le flag (Kali linux Docker)#
bash
mkdir -p /tmp/Forensic

# 1. Monte l'image en FUSE (lecture seule)
ad1mount -i ~/Downloads/Forensics/CorprateSec.ad1 -m /tmp/Forensic

# 2. Copie vers un répertoire Docker-accessible
mkdir -p /tmp/AD1_extracted
cp -r /tmp/Forensic/* /tmp/AD1_extracted/

# 4. Lance Exegol sur le répertoire copié
exegol start forensic -V /tmp/AD1_extracted:/mnt/forensic

Lancer un container Kali avec les fichiers montés

bash
sudo docker run -it -v /tmp/AD1_extracted:/mnt/forensic kalilinux/kali-rolling bash

Ou en utilisant Exegol

bash
exegol start forensic full -V /tmp/AD1_extracted:/mnt/forensic
text
cd /mnt/forensic
bash
apt update && apt install regripper -y

Questions#

Q1#

Après avoir réalisé le setup, extraire le build number

bash
cd "/mnt/forensic/DFA_SP2020_Windows.E01:Partition 2 [50649MB]:NONAME [NTFS]/[root]"
bash
regripper -r "Windows/System32/config/SOFTWARE" -p winver
Capture d'écran

Le build number et le flag est 16299

Q2#

bash
cd "/mnt/forensic/DFA_SP2020_Windows.E01:Partition 2 [50649MB]:NONAME [NTFS]/[root]"
bash
cd Users
Capture d'écran

Q3#

What is the CRC64 hash of the file "fruit_apricot.jpg"?

text
find /mnt/forensic -type f -iname "*fruit_apricot*" 2>/dev/null
text
find . -name "fruit_apricot.jpg" -exec 7z h -scrcCRC64 {} \;
Capture d'écran

The flag is : ED865AA6DFD756BF


Q4#

What is the logical size of the file "strawberry.jpg" in bytes?

bash
find /mnt/forensic -type f -iname "strawberry.jpg" 2>/dev/null
bash
cd "/mnt/forensic/DFA_SP2020_Windows.E01:Partition 2 [50649MB]:NONAME [NTFS]/[root]/Users/suzy.strawberry/Pictures/"
bash
ls -la

The flag is : 72448


Q5#

What is the processor architecture of the system? (one word)

text
regripper -r Windows/System32/config/SYSTEM -p processor_architecture
Capture d'écran

The flag is AMD64


Q6#

Which user has a photo of a dog in their recycling bin?

bash
ls -R \$Recycle.Bin/
Capture d'écran

Find the SID of the users

bash
regripper -r "/mnt/forensic/DFA_SP2020_Windows.E01:Partition 2 [50649MB]:NONAME [NTFS]/[root]/Windows/System32/config/SOFTWARE" -p profilelist
Capture d'écran

Q7#

What type of file is "vegetable"? Provide the extension without a dot.

bash
find /mnt/forensic -type f -name "*vegetable*" 2>/dev/null
bash
file vegetable

Q8#

What type of girls does Miriam Grapes design phones for (Target audience)?


Techniques utilisees#

  • Windows Forensics (FTK Imager)
  • Disk Image Analysis

Retour aux notes