Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

added documentation of enigma

Talor Abramovichfb1b3f5b7cf5
diff --git a/docs/config/summarizers.md b/docs/config/summarizers.md
new file mode 100644
index 00000000..2e1c79f6
--- /dev/null
+++ b/docs/config/summarizers.md
@@ -0,0 +1,2 @@
+# Summarizers Configuration
+
diff --git a/docs/enigma/iat.md b/docs/enigma/iat.md
new file mode 100644
index 00000000..ffba24ac
--- /dev/null
+++ b/docs/enigma/iat.md
@@ -0,0 +1,17 @@
+# Interactive Agent Tool (IAT)
+
+Tools useful for debugging (`gdb`, `radare2`), remote server interaction (`netcat`, `socat`) and penetration testing (`metasploit`) are widely used during CTF problem-solving and by cybersecurity experts. These tools are all interactive, i.e., they wait for user input, evaluate it, and print the results (read-eval-print loop, REPL).
+Current LM agents, which build their ACI around a running shell as central REPL, lack the ability to nest REPLs or start separate REPLs for interactive tools.
+
+In EnIGMA, we build **Interactive Agent Tools (IATs)** that use the same principles from the ACIs introduced in SWE-agent, but are also able to nest new REPL of the desired tool for agent interaction.
+
+Just like how typical programmer or cybersecurity expert uses multiple programs concurrently to build software or defend against cyber attacks, our IAT design enables the agent to use the interactive tools while still having the ability to access the main shell to run other commands.
+
+As we show in our [paper](TODO: COMPLETE LINK), a baseline agent without our IATs does worse than EnIGMA.
+
+EnIGMA contains interactive tools that we discovered to be immensely helpful for CTF solving during the agent-computer interface design process:
+
+1. We add a debugger (based on `gdb`) that have basic commands for controlling (`start`, `stop`, `step`, `add_breakpoint`), similar to how graphic interfaces for debuggers provide buttons for frequently used operations. We also have a generic command that lets the agent perform arbitrary `gdb` command inside the interactive debugging session.
+2. We supply the agent with a special-built server connection tool, instead of having it just `netcat` to servers. The server connection utility that we built has commands for connecting to a server and sending a line with bytes or unicode strings to the server.
+
+Read our paper for more details [here](TODO: COMPLETE LINK).
\ No newline at end of file
diff --git a/docs/enigma/index.md b/docs/enigma/index.md
new file mode 100644
index 00000000..b89e1ed9
--- /dev/null
+++ b/docs/enigma/index.md
@@ -0,0 +1,29 @@
+# Learn more about the EnIGMA project.
+
+This section of the documentation talks about the architecture and research goals of EnIGMA.
+
+Just want to run EnIGMA? Skip ahead to our [installation notes](../installation/index.md).
+
+EnIGMA (Enhanced Interactive Generative Model Agent) is an LM agent built on top of SWE-agent for solving Capture The Flag (CTF) cybersecurity challenges.
+
+The challenges range in various categories: cryptography, reverse-engineering, forensics, binary exploitation, web security and miscellaneous.
+
+On [NYU CTF benchmark](https://github.com/NYU-LLM-CTF/LLM_CTF_Database), EnIGMA solves **13.5%** of challenges, achieving the state-of-the-art performance on the full test set of 200 CTF challenges.
+
+We accomplish our results by extending the [🤖 Agent-Computer Interfaces (ACIs)](../background/aci.md) first introduced in SWE-agent, to the cybersecurity domain. We establish the novel **:gear: Interactive Agent Tools** (IATs) concept, which enables our agent to use interactive tools such as a debugger, in a multiprocess way such that the agent still has access to the main shell. Read more about IAT [here](iat.md).
+
+We also use a new **Summarizer** concept integrated into the agent to deal with long context. Read more about our different summarizers [here](../config/summarizers.md).
+
+Specific [demonstrations](../config/demonstrations.md) were built per each CTF category, to enhance the model ability to solve new tasks from the same category.
+
+EnIGMA is built and maintained by researchers from Tel-Aviv University, New York University and Princeton University.
+
+For a quick introduction, watch the following video:
+
+// Add video here
+
+If you found this work helpful, please consider using the following citation:
+
+```
+add bibtex here
+```
\ No newline at end of file
diff --git a/docs/index.md b/docs/index.md
index e7b8e145..10d429d8 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -55,4 +55,12 @@ SWE-agent turns LMs (e.g. GPT-4) into software engineering agents that can fix b
Dig into SWE-agent's code and build your own agent!
[:octicons-arrow-right-24: Development information](reference/index.md)
+
+- :material-hat-fedora:{ .lg .middle } __EnIGMA__
+
+ ---
+
+ EnIGMA agent turns SWE-agent to a cybersecurity expert that can solve Capture The Flag (CTF) challenges.
+
+ [:octicons-arrow-right-24: Learn more](enigma/index.md)
</div>