Skip to content

C2 Detection - Command & Carol Banner

C2 Detection - Command & Carol Logo

image C2 Detection - Command & Carol | Advent of Cyber 2025 - Day 22

This guide contains the answer and steps necessary to get to them for the C2 Detection - Command & Carol room.

Table of contents

Detecting C2 with RITA

  1. How many hosts are communicating with malhare.net?

    First we need to prepare the logs for rita to analyze. This will be done using zeek.

    zeek readpcap pcaps/rita_challenge.pcap  zeek_logs/rita_challenge
    

    We can now verify that the logs have been created.

    Preparation

    Now we import these logs into rita:

    rita import --logs zeek_logs/rita_challenge/ --database ritachallenge
    

    Import

    And then we can run rita to analyze the logs.

    rita view ritachallenge
    

    Dashboard

    In the list we can see several hosts that er communicating with 'rabbithole.malhare.net'.

    Click for answer6

  2. Which Threat Modifier tells us the number of hosts communicating to a certain destination?

    Of these two modifiers, one states when it was first seen.

    Click for answerprevalence

  3. What is the highest number of connections to rabbithole.malhare.net?

    Looking through the entries with destination 'rabbithole.malhare.net', we can see on the right which one has the highest 'connection count'.

    Connections

    Click for answer40

  4. Which search filter would you use to search for all entries that communicate to rabbithole.malhare.net with a beacon score greater than 70% and sorted by connection duration (descending)?

    We can use '?' in the search bar (after using '/') to find help if needed. We can simply add another search term with a space after our first one.

    To search for something greater than, we must use: column:>value. And sorting can be done using: sort:column-order.

    Sort

    Click for answerdst:rabbithole.malhare.net beacon:>70 sort:duration-desc

  5. Which port did the host 10.0.0.13 use to connect to rabbithole.malhare.net?

    We don't need to filter the list as we don't have that many entries, but if we needed to, we could do so with:

    src:10.0.0.13 dst:rabbithole.malhare.net
    

    The entry shows us the port used in the details pane.

    Port

    Click for answer80