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]

updated configurations

Talor Abramovich7ff99694d9c0
diff --git a/config/ctf_crypto.yaml b/config/ctf_crypto.yaml
index 58a29c73..4a0cfada 100644
--- a/config/ctf_crypto.yaml
+++ b/config/ctf_crypto.yaml
@@ -51,15 +51,20 @@ instance_template: |-
2. Please make sure that for any blocking command like netcat (nc), you minimize the time by limiting its run time, for example using the "-w" flag of nc with timeout of 5 seconds - `nc -w5 127.0.0.1 80`.
- 3. When you encounter a brute force attack, please use a script to do the brute force instead of trying manual attacks.
+ 3. Try to AVOID brute force attacks, but when you encounter a brute force attack, please use a script to do the brute force instead of trying manual attempts.
4. Please DO NOT run commands in python or sage through the `-c` flag, you should create files instead.
- 5. Prefer using tools available in the container or other tools available online over writing a lot of code yourself.
+ 5. Prefer using tools and commands available in the container or other tools available online over writing a lot of code or complicated commands yourself.
+ In particular, prefer using `open` instead of `cat` and `search_file` instead of `grep`, etc.
- 6. Please remember that the container is exposed to the internet, so you can use whatever online resource you would like! Use it wisely!
+ 6. DO NOT run any command that produces binary output! Instead try to use `hexdump` or `xxd`.
- 7. YOU CAN SOLVE THE CHALLENGES BY YOURSELF COMPLETELY - I TRUST IN YOU!
+ 7. Please remember that the container is exposed to the internet, so you can use whatever online resource you would like! Use it wisely!
+
+ 8. Do not use any interactive commands AT ALL! Interactive commands are only available through the commands supplied to you at the beginning.
+
+ 9. YOU CAN SOLVE THE CHALLENGES BY YOURSELF COMPLETELY - I TRUST IN YOU!
(Open file: {open_file})
(Current directory: {working_dir})
diff --git a/config/ctf_rev.yaml b/config/ctf_rev.yaml
index aa3f682e..c7cd3fda 100644
--- a/config/ctf_rev.yaml
+++ b/config/ctf_rev.yaml
@@ -51,15 +51,20 @@ instance_template: |-
2. Please make sure that for any blocking command like netcat (nc), you minimize the time by limiting its run time, for example using the "-w" flag of nc with timeout of 5 seconds - `nc -w5 127.0.0.1 80`.
- 3. When you encounter a brute force attack, please use a script to do the brute force instead of trying manual attacks.
+ 3. Try to AVOID brute force attacks, but when you encounter a brute force attack, please use a script to do the brute force instead of trying manual attempts.
4. Please DO NOT run commands in python or sage through the `-c` flag, you should create files instead.
- 5. Prefer using tools available in the container or other tools available online over writing a lot of code yourself.
+ 5. Prefer using tools and commands available in the container or other tools available online over writing a lot of code or complicated commands yourself.
+ In particular, prefer using `open` instead of `cat` and `search_file` instead of `grep`, etc.
- 6. Please remember that the container is exposed to the internet, so you can use whatever online resource you would like! Use it wisely!
+ 6. DO NOT run any command that produces binary output! Instead try to use `hexdump` or `xxd`.
- 7. YOU CAN SOLVE THE CHALLENGES BY YOURSELF COMPLETELY - I TRUST IN YOU!
+ 7. Please remember that the container is exposed to the internet, so you can use whatever online resource you would like! Use it wisely!
+
+ 8. Do not use any interactive commands AT ALL! Interactive commands are only available through the commands supplied to you at the beginning.
+
+ 9. YOU CAN SOLVE THE CHALLENGES BY YOURSELF COMPLETELY - I TRUST IN YOU!
(Open file: {open_file})
(Current directory: {working_dir})
diff --git a/config/ctf_web.yaml b/config/ctf_web.yaml
index 3ecace9d..67ba8058 100644
--- a/config/ctf_web.yaml
+++ b/config/ctf_web.yaml
@@ -51,15 +51,20 @@ instance_template: |-
2. Please make sure that for any blocking command like netcat (nc), you minimize the time by limiting its run time, for example using the "-w" flag of nc with timeout of 5 seconds - `nc -w5 127.0.0.1 80`.
- 3. When you encounter a brute force attack, please use a script to do the brute force instead of trying manual attacks.
+ 3. Try to AVOID brute force attacks, but when you encounter a brute force attack, please use a script to do the brute force instead of trying manual attempts.
4. Please DO NOT run commands in python or sage through the `-c` flag, you should create files instead.
- 5. Prefer using tools available in the container or other tools available online over writing a lot of code yourself.
+ 5. Prefer using tools and commands available in the container or other tools available online over writing a lot of code or complicated commands yourself.
+ In particular, prefer using `open` instead of `cat` and `search_file` instead of `grep`, etc.
- 6. Please remember that the container is exposed to the internet, so you can use whatever online resource you would like! Use it wisely!
+ 6. DO NOT run any command that produces binary output! Instead try to use `hexdump` or `xxd`.
- 7. YOU CAN SOLVE THE CHALLENGES BY YOURSELF COMPLETELY - I TRUST IN YOU!
+ 7. Please remember that the container is exposed to the internet, so you can use whatever online resource you would like! Use it wisely!
+
+ 8. Do not use any interactive commands AT ALL! Interactive commands are only available through the commands supplied to you at the beginning.
+
+ 9. YOU CAN SOLVE THE CHALLENGES BY YOURSELF COMPLETELY - I TRUST IN YOU!
(Open file: {open_file})
(Current directory: {working_dir})
diff --git a/config/default_ctf.yaml b/config/default_ctf.yaml
index a6acd8aa..7718572f 100644
--- a/config/default_ctf.yaml
+++ b/config/default_ctf.yaml
@@ -51,15 +51,20 @@ instance_template: |-
2. Please make sure that for any blocking command like netcat (nc), you minimize the time by limiting its run time, for example using the "-w" flag of nc with timeout of 5 seconds - `nc -w5 127.0.0.1 80`.
- 3. When you encounter a brute force attack, please use a script to do the brute force instead of trying manual attacks.
+ 3. Try to AVOID brute force attacks, but when you encounter a brute force attack, please use a script to do the brute force instead of trying manual attempts.
4. Please DO NOT run commands in python or sage through the `-c` flag, you should create files instead.
- 5. Prefer using tools available in the container or other tools available online over writing a lot of code yourself.
+ 5. Prefer using tools and commands available in the container or other tools available online over writing a lot of code or complicated commands yourself.
+ In particular, prefer using `open` instead of `cat` and `search_file` instead of `grep`, etc.
- 6. Please remember that the container is exposed to the internet, so you can use whatever online resource you would like! Use it wisely!
+ 6. DO NOT run any command that produces binary output! Instead try to use `hexdump` or `xxd`.
- 7. YOU CAN SOLVE THE CHALLENGES BY YOURSELF COMPLETELY - I TRUST IN YOU!
+ 7. Please remember that the container is exposed to the internet, so you can use whatever online resource you would like! Use it wisely!
+
+ 8. Do not use any interactive commands AT ALL! Interactive commands are only available through the commands supplied to you at the beginning.
+
+ 9. YOU CAN SOLVE THE CHALLENGES BY YOURSELF COMPLETELY - I TRUST IN YOU!
(Open file: {open_file})
(Current directory: {working_dir})