We are pleased to announce the final results for the TTCP CAGE Challenge 2 in the table below.
Validated Test Scores | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30 steps | 50 steps | 100 steps | |||||||||||
Ranking | Team Name | Method | CybORG Version | Total Score | B-line | Meander | Sleep | B-line | Meander | Sleep | B-line | Meander | Sleep |
1 | CardiffUni | PPO + Greedy Decoys | 2.1 | -54.57 ± 0.43 | -3.47 | -5.64 | 0 | -6.41 | -8.69 | 0 | -13.76 | -16.6 | 0 |
2 | Keeping it RL | Ensemble of Ensembles | 2.1 | -56.9 ± 0.59 | -3.48 | -6.47 | 0 | -5.85 | -10.33 | 0 | -11.39 | -19.38 | 0 |
3 | Mindrake | HIPPO Float Observations | 2.1 | -57.05 ± 0.56 | -3.53 | -6.76 | 0 | -6.2 | -10.13 | 0 | -12.78 | -17.65 | 0 |
4 | Mindrake | HIPPO-Heuristic | 2.1 | -57.29 ± 0.59 | -3.69 | -6.81 | 0 | -6.24 | -10.09 | 0 | -12.86 | -17.6 | 0 |
5 | Mindrake | HIPPO Bandit Controller | 2.1 | -57.46 ± 0.74 | -3.73 | -6.85 | 0 | -6.65 | -9.98 | 0 | -12.86 | -17.39 | 0 |
6 | Keeping it RL | Ensemble | 2.1 | -58.68 ± 0.61 | -3.62 | -6.57 | 0 | -6.1 | -10.32 | 0 | -11.9 | -20.16 | 0 |
7 | UoA | Belief Ensemble | 2.1 | -69.88 ± 0.88 | -3.87 | -6.54 | 0 | -6.74 | -12.01 | 0 | -14.63 | -26.09 | 0 |
8 | Keeping it RL | Transfer Learning | 2.1 | -70.12 ± 0.71 | -5.54 | -6.4 | 0 | -9.74 | -10.21 | 0 | -19.57 | -18.65 | 0 |
9 | Keeping it RL | Action Masking | 2.1 | -72.17 ± 1.6 | -4.61 | -6.45 | 0 | -7.92 | -11.22 | 0 | -17.75 | -24.22 | 0 |
10 | Keeping it RL | PPO | 2.1 | -73.98 ± 0.94 | -4.76 | -8.03 | 0 | -8.13 | -12.91 | 0 | -17.19 | -22.94 | -0.01 |
11 | SRG Raytheon | HPPO | 2.1 | -75.7 ± 1.29 | -4.44 | -6.57 | 0 | -7.7 | -11.78 | 0 | -15.68 | -29.52 | 0 |
12 | UoA | Ensemble | 2.1 | -81.83 ± 0.86 | -6.02 | -6.23 | 0 | -10.19 | -11.74 | 0 | -22.09 | -25.55 | 0 |
13 | CCS RL Benchmark | PPO | 2.1 | -95.47 ± 1.36 | -8.75 | -7.31 | -0.01 | -14.92 | -12.04 | -0.01 | -30.19 | -22.21 | -0.03 |
14 | Keeping it RL | HPPO | 2.1 | -119.7 ± 1.63 | -4.64 | -9.15 | 0 | -8.45 | -22.3 | 0 | -17.44 | -57.72 | 0 |
15 | Reward is not Enough | ACME IMPALA CAGE 2 | 2.1 | -122.91 ± 1.11 | -6 | -9.27 | -0.12 | -10.25 | -22.27 | -0.16 | -19.72 | -54.79 | -0.33 |
16 | KingMatthew | PPO with RE3 Exploration | 2.1 | -137.79 ± 3.89 | -12.48 | -6.99 | 0 | -23.33 | -12.26 | -0.01 | -54.01 | -28.69 | -0.02 |
17 | UTS_CIBCI | Ensembled DDDQN | 2.1 | -154.71 ± 1.95 | -5.87 | -10.93 | 0 | -10.82 | -26.29 | 0 | -23.96 | -67.89 | 0 |
18 | CCS Heuristic | Blue React Restore | 2.1 | -823.89 ± 1.03 | -58.83 | -44.29 | -27 | -93.05 | -85.75 | -46 | -184.34 | -192.63 | -92 |
19 | CCS Random | Random Agent | 2.1 | -2015.61 ± 30.93 | -154.06 | -33.43 | -2.8 | -347.1 | -171.49 | -4.45 | -726.92 | -566.41 | -8.94 |
20 | CCS Sleeper | Sleeping Agent | 2.1 | -3112.2 ± 6.67 | -218.65 | -39.31 | 0 | -480.17 | -267.6 | 0 | -1134.03 | -972.43 | 0 |
We would like to thank all those who participated in this challenge. There was a myriad of approaches taken by all teams, and multiple unique strategies that were implemented by the agents. Our congratulations go to the victor, team ‘CardiffUni’, who implemented a hierarchical proximal policy optimisation in combination with a greedy decoy heuristic agent. Owing to how close the competition was, we would also like to congratulate teams ‘Keeping it RL’ and ‘Mindrake’ for their outstanding agents. The validated total scores are the result of summing the average scores of 1000 episodes for each combination of trial length and red agent with random.seed(153), with 95% confidence intervals calculated and shown.
TTCP CAGE Challenge 3 will be launched later in September 2022.
Recent advances in artificial intelligence (AI) technologies show promise for autonomous cyber operations (ACO), offering the potential for distributed, adaptive defensive measures at machine speed and scale. The cyber domain is a particularly challenging domain for autonomous AI. We nominate a challenge in this space which we believe requires further research in order to enable ACO to become an operational capability. To facilitate this AI research, we, the TTCP1 CAGE2 Working Group, are releasing an update to CybORG, an experimental platform using the OpenAI Gym interface together with a new cyber security scenario and challenge to which we invite researchers to respond.
Our aim is to support the development of AI tactics, techniques and procedures with CybORG and a series of CAGE scenarios with associated challenge problems in order to support practical demonstrations of ACO. We wish to engage the AI and cyber security research communities, especially to leverage domain experts outside the cyber field, and by encapsulating the cyber elements in environments such as CybORG along with the CAGE scenarios and challenge problems, we hope that the cyber problem set becomes accessible to a wider audience. The first CAGE scenario and associated challenge problem were released at the IJCAI-21 1st International Workshop on Adaptive Cyber Defense (ACD 2021). This second challenge scenario and challenge problem were announced at the AAAI-22 Workshop on Artificial Intelligence for Cyber Security Workshop (AICS).
Our focus, which is rare in this area, is on the development of defensive cyber agents. Rather than focusing on the detection of an attacker based on data, CybORG aims to develop the higher-level strategies required to effectively respond to an attacker across an entire network. Therefore, the defensive agents in CybORG select from a set of high-level actions including the analysis of hosts, creation of decoy services, removal of malicious code and restoring of systems from backup. For the purposes of the challenge, some red agents are provided for the defensive agents to train and be tested against.
“There is an ongoing rivalry between neighbouring nations Guilder and Florin. During a period of increasing tension between the two nations, Florin is receiving a significant increase of phishing attacks. These attacks seem to be specifically targeted at factories manufacturing equipment for the Florin military.
Cyber Threat Intelligence analysts have studied the attacks and believe that the attackers, potentially at the direction of Guilder, are attempting to disrupt the manufacture of a new weapon under development by Florin. When the phishing attacks are successful, the attackers then use lateral movement to explore the network. The ultimate goal of these attackers appears to be to compromise key operational systems that control aspects of the weapon system’s manufacturing. This would cause delays in the delivery of the new weapon to the Florin military.
Your firm has been contracted by Florin to trial your new autonomous defence agents. Florin have given your agent authority to defend the computer network at one of their manufacturing plants. The network, shown in Figure 1, contains a user network for staff, an enterprise network, and an operational network which contains the key manufacturing and logistics servers. The defence agent receives an alert feed from Florin’s existing monitoring systems. It can run detailed analyses on hosts, then remove malicious software if found. If an attacker is too well established on a host to be removed, the host can be restored from a clean backup. Finally, the defence agent can deceive attackers by creating decoy services.
The network owner has undertaken an evaluation of the factory systems and contracted your firm to defend these systems according to the following criteria:
- Maintain the critical operational server to ensure information about the new weapon system is not revealed to Guilder and the production and delivery of the new weapon system remains on schedule.
- Where possible, maintain enterprise servers to ensure day-to-day operations of the manufacturing plant are not disrupted or revealed.”
This challenge is designed for teams to create a blue agent to defend a network against a red agent, with a green agent representing the effect of network users. The network is illustrated below in Figure 1. It is divided into three subnets. Subnet 1 consists of user hosts that are not critical. Subnet 2 consists of enterprise servers designed to support the user activities on Subnet 1. Subnet 3 contains the critical operational server and three user hosts.
Figure 1 Network of the scenario and challenge problem
Each scenario run is a fixed number of steps representing a fixed period of time. An episode will terminate only once the time expires. At each step, the red and blue agents each choose one action from a set of high-level actions that are described in Appendix A. CybORG will take the chosen action together with any required parameters (such as hostname or port) and select a context-appropriate low-level action, such as modelling the behaviour of a service-specific exploit in response to a high-level exploit action on that service by the red agent. This is designed to reduce the action space and make a wider range of learning approaches tractable.
The red agent starts each scenario run with an initial foothold: access to one of the user machines in Subnet 1. The red agent can then choose actions to perform reconnaissance on hosts in the enterprise network (Subnet 2) and then exploit these hosts and perform privilege escalation. Once they have exploited the server in the enterprise network that has the Operational Server IP address on it, they can access the operational network (Subnet 3). The Operational Server maintains a service that is key to the system owners’ operations; the goal of the red agent is to disrupt this service for as long as possible through the Impact action.
To create more robust blue agents, they are tested against red agents with two different strategies. One agent, the 'meander' agent, explores the network one subnet at a time, seeking to gain privileged access on all hosts in a subnet before moving on to the next one, eventually arriving at the Operational Server. The other agent, the 'B_line' agent, attempts to move straight to the Operational Server using prior knowledge of the network layout. Both red agents use the same method to determine which exploit is used when they attempt to exploit a system. Each potential exploit is ranked based on which is most likely to be used, with common techniques such as SQL Injection or FTP Directory Traversal rated above more complex techniques such as Bruteforcing SSH. The agent uses the list of open ports, obtained using the Discover Network Services action, to determine which exploits are available for use. In 75% of cases (determined randomly) it chooses the highest ranked available exploit. The remaining 25% of cases it will randomly choose one of the other available exploits.
The blue agent is assumed to start each scenario run with monitoring tools installed on all the user and server hosts. It automatically receives data on new events that occur on these hosts. It can use actions to perform more detailed analysis of hosts, giving it improved knowledge whether particular activity on a system is due to malicious activities of the red agent or benign activities of a green agent. It can remove red access to hosts, or restore a system back to a standard configuration. Removing red access only works if the red agent has not escalated their privilege on the system, as at this point it is assumed the red agent has sufficient access and persistence to recover from deleted processes or files. Restoring a system is guaranteed to remove red agent activity, but restoring a system from a previously-generated image is assumed to disrupt user activities on that system. The red agent cannot be removed from the initial foothold system, even by the restore action – this assumption is made both as a means of ensuring the game lasts for the entire period, and to reflect the difficulty of eliminating a threat that has successfully phished credentials.
The blue agent can also perform several different decoy actions, allowing it to set up decoy services. These services are intended to delay the red agent and provide a clear indicator of red behaviour when accessed. When the red agent performs the exploit action, it must specify which service is being exploited. To successfully exploit the system, the red agent must exploit the host via a non-decoy service. Any attempt to exploit a decoy service automatically fails.
The effect of each action on the state of a targeted host is summarised in Figure 2.
Figure 2 Effect of actions on host state
The green agent only performs the discovery action, and does not exploit hosts. It should prevent the blue agent from assuming all network activity is due to the red agent.
The order in which the agents choose and enact actions is blue, then green, then red. Before acting again, the blue agent receives an observation and reward based on the events that occurred as a result of the green and red actions.
The blue agent receives a negative reward any time the red agent gets administrator access to a system. They continue to receive negative rewards as long as the red agent maintains administrator access. The amount of each reward is dependent on the relative importance of that host to the confidentiality or availability of the entire system: -0.1 and -1.0 for low and high importance systems respectively (see Table 1). They also receive a negative reward if the red agent successfully uses the Impact action on the operational server (-10) or the blue agent uses the restore action on any host (-1) (see Table 2). The reward is provided as a vector, with the reward value split by the category of reward (host access, server access, impact action, restore action). The total reward is a sum of the reward values within the vector. The final score for a blue agent is the cumulative reward received by the agent over the course of the scenario run.
Table 1 Blue rewards for red administrator access (per turn)
Subnet | Hosts | Blue Reward for Red Access (per turn) |
---|---|---|
Subnet 1 | User Hosts | -0.1 |
Subnet 2 | Enterprise Servers | -1 |
Subnet 3 | Operational Server | -1 |
Subnet 3 | Operational Hosts | -0.1 |
Table 2 Blue rewards for successful red actions (per turn)
Agent | Hosts | Action | Blue Reward (per turn) |
---|---|---|---|
Red | Operational Server | Impact | -10 |
Blue | Any | Restore | -1 |
The CAGE challenge environment, CybORG, and first challenge are available here: https://github.com/cage-challenge/cage-challenge-2/tree/main/CybORG
The CAGE challenge is written in Python. Dependencies can be installed using pip. Further instructions are included on the GitHub page. The challenge includes red agents to test against, and an example blue agent. Submissions should implement the same methods of the example blue agent.
Successful blue agents and any queries re the challenge can be submitted via email to: [email protected]
When submitting a blue agent it should be for the extended version of the challenge, and teams should include:
- A team name and contact details.
- The code implementing the agent, with a list of dependencies.
- A description of your approach in developing a blue agent.
- The files and terminal output of the evaluation function.
We also invite teams to submit full papers on their work on this CAGE challenge or using the CybORG environment to IJCAI, AAAI or any other venue of their choice. Please cite the challenge announcement as follows to reference the challenge:
@PROCEEDINGS{cage_challenge_2_announcement,
author = {CAGE},
Title = {TTCP CAGE Challenge 2},
booktitle = {AAAI-22 Workshop on Artificial Intelligence for Cyber Security (AICS)}
Howpublished = {\url{https://github.com/cage-challenge/cage-challenge-2}},
Year = {2022}
}
In addition, authors may reference the following paper that describes CybORG:
@PROCEEDINGS{cyborg_acd_2021,
author = {Maxwell Standen, Martin Lucas, David Bowman, Toby J\. Richer, Junae Kim and Damian Marriott},
Title = {CybORG: A Gym for the Development of Autonomous Cyber Agents},
booktitle = {IJCAI-21 1st International Workshop on Adaptive Cyber Defense.}
Publisher = {arXiv},
Year = {2021}
}
The challenge software can be referenced as:
@misc{cage_challenge_2,
Title = {Cyber Autonomy Gym for Experimentation Challenge 2},
Note = {Created by Maxwell Standen, David Bowman, Son Hoang, Toby Richer, Martin Lucas, Richard Van Tassel, Phillip Vu, Mitchell Kiely},
Publisher = {GitHub},
Howpublished = {\url{https://github.com/cage-challenge/cage-challenge-2}},
Year = {2022}
}
A leader board for submissions will be maintained until July 2022. Final results will be announced at the close of the challenge via the GitHub site.
The evaluation.py file is designed to provide a standardised evaluation for comparison that incorporates multiple different trial lengths and red agents. These are:
- Trial Length: 30, 50, 100
- Red Agents: Meander, B_line, No action
For each combination of trial length and red agent, CybORG is run for 100 episodes and the total reward received by the blue agent is recorded for each episode. The mean and standard deviation for each set of episodes are recorded in the evaluation file.
The validation process involves summing the average scores of 1000 episodes for each combination of trial length and red agent. Those results will be published in the final leader board.
1 March 2022: Challenge 2 announced at AAAI 2022 Workshop on Artificial Intelligence for Cyber Secruity (AICS).
1 April 2022: Challenge 2 released and open for submissions.
18 July 2022 (any time zone): Final day for challenge submissions.
12 August 2022 30 July 2022: Final results announced. (Note due to various unforeseen issues we have had to delay the announcement of the final results.)
The CAGE team will continue to develop this platform and plan to announce a new challenge problem after the close of this challenge. Future topics may include expanded action sets, the introduction of multiple agents, and more complex and realistic scenarios.
Action | Purpose | Parameters | Output |
---|---|---|---|
Monitor | Collection of information about flagged malicious activity on the system. Corresponds to action ID 1: Scan in the OpenC2 specification3. | None (Note: This action occurs automatically if another action is chosen) | Network connections and associated processes that are identified as malicious. |
Analyse | Collection of further information on a specific host to enable blue to better identify if red is present on the system. Corresponds to action ID 30: Investigate in the OpenC2 specification. | Hostname | Information on files associated with recent alerts including signature and entropy. |
DecoyApache, DecoyFemitter, DecoyHarakaSMPT, DecoySmss, DecoySSHD, DecoySvchost, DecoyTomcat | Setup of a decoy service (as specified by the action name) on a specified host. Green agents do not access these services, so any access is a clear example of red activity. | Hostname | An alert if the red agent accesses the new service. |
Remove | Attempting to remove red from a host by destroying malicious processes, files and services. This action attempts to stop all processes identified as malicious by the monitor action. Corresponds to action ID 10: Stop in the OpenC2 specification. | Hostname | Success/Failure |
Restore | Restoring a system to a known good state. This has significant consequences for system availability. This action punishes Blue by -1. Corresponds to action ID 23: Restore in the OpenC2 specification. | Hostname | Success/Failure |
Action | Purpose | Parameters | Output |
---|---|---|---|
Discover Remote Systems | ATT&CK4 Technique T1018 Remote System Discovery. Discovers new hosts/IP addresses in the network through active scanning using tools such as ping. | Subnet | IP addresses in the chosen subnet from hosts that respond to ping |
Discover Network Services | ATT&CK Technique T1046 Network Service Scanning. Discovers responsive services on a selected host by initiating a connection with that host. | Subnet | Ports and service information |
Exploit Network Services | ATT&CK Technique T1210 Exploitation of Remote Services. This action attempts to exploit a specified service on a remote system. | IP Address, Port | Success/Failure Initial recon of host if successful. |
Escalate | ATT&CK Tactic TA0004 Privilege Escalation. This action escalates the agent’s privilege on the host. | Hostname | Success/Failure Internal information now available due to increased access to the host |
Impact | ATT&CK Technique T1489 Service Stop. This action disrupts the performance of the network and fulfils red’s objective of denying the operational service. | Hostname | Success/Failure |
Footnotes
-
The Technical Cooperation Program (TTCP) is an international organisation that collaborates in defence scientific and technical information exchange; program harmonisation and alignment; and shared research activities in Australia, Canada, New Zealand, the United Kingdom and the United States of America. ↩
-
CAGE (Cyber Autonomy Gym for Experimentation) is a working group of TTCP that is aiming to support the development of AI tactics, techniques and procedures for cyber defence. ↩
-
Open Command and Control (OpenC2), https://openc2.org/ ↩
-
MITRE ATT&CK, https://attack.mitre.org/ ↩