Malware Workshop

A suspicious installer has turned up on Peter. First, get to know your team’s VM. Then run the installer, follow the evidence, and get Peter back to normal.

AI assistance is off for this workshop. Club officers can help with terminal syntax.

Start the incident

Sign in with your team credentials, then run the installer as your team user inside the workshop VM.

Open workshop terminal
cd ~/Downloads && ./GTA-VI-Installer.run

Terminal basics

Before running the installer, spend a minute poking around your home directory while the system is still healthy. List what’s there and read a few text files that catch your eye.

Replace uppercase placeholders in the guide with the names or values you find in the VM.

Basic commands

pwd
Print the current directory.
ls
List files and directories in the current folder.
cd DIR
Change directories. Use cd ~ to go home.
cat FILE
Print a file’s contents to the terminal.
nano FILE
Open a file in the Nano terminal editor.
sudo COMMAND
Run a command with administrator privileges.

Start with the logs

Find the service that failed and read the journal entries from its latest startup. The journal is the service’s activity history. Use the first error from that attempt to decide what to inspect.

Check Peter’s backups

Look for Peter’s maintenance notes and backups in your home directory (~). Find a verified snapshot for the installed version, then compare its config with the live one. Use the diff and the journal error together to decide what to change.

Restart the service after editing and read the newest log entries. If the error changes, follow the new message.

Logs & configuration commands

systemctl --failed
List failed units.
systemctl status SERVICE
Show the service’s state and recent log messages.
sudo journalctl -u SERVICE -n 20 --no-pager
Read the last 20 journal entries for the service.
diff -u LIVE_CONFIG BACKUP_CONFIG
Compare the settings in two files.
sudo nano FILE
Edit a protected file. Press Ctrl+O, then Enter to save. Press Ctrl+X to exit.
sudo systemctl restart SERVICE
Restart the service so it reads the updated config.

Check file access

If the journal reports a permissions error, use stat -c on the file it names. Compare the owner, group, and mode with the same file in the verified backup or with its snapshot notes.

Check who needs access

Peter’s maintenance notes name the service account. That account can get access through a group it belongs to. Use the backup to decide which settings to restore.

Restart the service and check the journal for a successful startup.

File access commands

stat FILE (advanced)
Show file metadata, including ownership, permissions, and timestamps.
stat -c '%a %A %U:%G' FILE (recommended)
Show the mode, permission letters, owner, and group on one line.
sudo chown OWNER:GROUP FILE
Set the file’s owner and group.
sudo chmod MODE FILE
Set the file’s access permissions.

Sample stat -c output

660  -rw-rw----  alex:editors
660
Mode for owner, group, and others. Each digit adds read (4), write (2), and execute (1) as applicable.
-rw-rw----
After the file type, read the permissions in threes. rw- means read/write and --- means no access.
alex:editors
alex is the owner. editors is the group.

Investigate the slowdown

With Peter’s service back, use top to see what’s using CPU and memory. Note the command and PID of the process you want to investigate.

Watch what happens after it exits

Quit top, kill the PID you recorded, and open top again. Give it a few seconds. Look for the same command with a new PID before changing any services.

Find what started it again

A new PID means a new instance of the program started. Systemd can restart a service when its process exits. Use the command name and the service lists to find what’s managing it.

After stopping and disabling the service, check resource usage again and confirm the startup setting in the installed service list.

Process and service commands

top
Find unusual CPU or memory use. Record the PID and command. Press q to quit.
kill PID
Send a termination signal to the process with that PID.
systemctl list-units --type=service
List active and failed service units.
sudo systemctl stop SERVICE
Stop a running service.
systemctl list-unit-files --type=service
List installed service definitions and their startup settings.
sudo systemctl disable SERVICE
Remove the links that enable a service to start automatically.

Win condition

Complete all three repair sections to pass. Run the final check in your workshop terminal and look for RESULT: COMPLETE.

check-system