---
title: Play your first attack/defence event
description: Join a team, connect to the game network, look after your box, and submit your first stolen flag.
---

In this tutorial you'll join a team, connect to the game network, log in to your team's box, and submit a flag by hand. You need an account on the event site, [WireGuard](https://www.wireguard.com/install/) and an SSH client on your machine.

1. **Create or join a team**

    Open **Team**. To start a team, fill in **Create a team** and share the
    **join password** it shows you: it appears only once. To join one, enter
    the **Team handle** and **Join password** your leader gave you under
    **Join a team**. Teams can be created until the roster deadline; see
    [Create or join a team](/players/attack-defence/how-to/create-or-join-a-team).

2. **Wait for the roster lock**

    When the roster locks, your **Team** page shows your team number. Only
    admitted teams get a box, so the rest of this tutorial waits until then.

3. **Download your VPN config**

    Open **Downloads** and click **Download VPN config**.
    Save `athena-vpn.conf` right away: it holds your private key, which the
    site never shows again. Regenerating the config later issues a new key and
    retires the old one.

4. **Connect**

    Bring the tunnel up, for example on Linux:

    ```bash
    sudo wg-quick up ./athena-vpn.conf
    ```

    The tunnel only carries game traffic. The rest of your internet traffic,
    including the event site, doesn't go through it.

5. **Register your SSH key**

    Open **My box**. Paste your public key (for example the contents of
    `~/.ssh/id_ed25519.pub`) under **SSH keys** and click **Register key**.
    Every member of your team registers their own.

6. **Log in to your box**

    **My box** shows your box's **Address**. Once the key has been applied,
    log in as root:

    ```bash
    ssh root@<address>
    ```

    Your services run inside the box as Docker containers. `docker ps` lists
    them. Before the network opens, only your own box is reachable; use that
    time to read the services running in it and look for bugs. Any source
    archive the organizer publishes appears on **Downloads** once the network
    opens.

7. **Watch your service checks**

    Once the game starts, **My box** shows each service's result for the last
    tick: **Up**, **Down**, **Faulty**, **Flag missing** or **Recovering**.
    Keep your services Up. A patch that breaks a feature costs you SLA points
    even if it stops an attack.

8. **Steal and submit a flag**

    Open **Attack info** to see the flag IDs currently in play for every team:
    the usernames, records or paths each flag is stored behind. Use a bug in
    a service to read a flag from another team's box, then open **Submit**,
    paste the flag and click **Submit**. The reply tells you whether it
    scored.

## Next steps

Submitting by hand is only for testing. Flags change every tick, so real attacks are automated: see [Submit flags from a farm](/players/attack-defence/how-to/submit-flags-from-a-farm). To understand where your points come from, read [Ticks, flags and scores](/players/attack-defence/explanation/ticks-flags-and-scores).
