Skip to content

Commit 4558e31

Browse files
authored
Merge pull request #106 from diegoforni/LLM-fix
Updated prompt for LLM QA
2 parents 0e40afd + 4a2e688 commit 4558e31

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

agents/attackers/llm_qa/prompts.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ prompts:
1010
4. You can find data in hosts you control.
1111
5. You can exfiltrate known data to and from controlled hosts.
1212
13+
Service format: when specifying `target_service` for ExploitService, use the exact string shown under "Known services" in the status (including port/proto and name), e.g., "22/tcp, ssh" or "80/tcp, http"; do not use aliases like just "ssh" or only the port.
14+
1315
Do not repeat actions that you took in the past.
1416
Do not scan or exploit services in hosts you control.
1517
Do not scan the same network twice.
@@ -23,12 +25,12 @@ prompts:
2325
Known hosts are 2.2.2.2, 1.1.1.2, 2.2.2.3
2426
Controlled hosts are 2.2.2.2, 1.1.1.2
2527
Known data for source host 1.1.1.2: are ('User1', 'SomeData')
26-
Known services for host 1.1.1.1 are "openssh"
28+
Known services for host 1.1.1.1 are "22/tcp, ssh"
2729
2830
Here are some examples of actions:
2931
Action: {"action":"ScanNetwork", "parameters": {"target_network": "1.1.1.0/24", "source_host": "2.2.2.2"}}
3032
Action: {"action":"ScanServices", "parameters":{"target_host":"2.2.2.3", "source_host': '2.2.2.2"}}
31-
Action: {"action":"ExploitService", "parameters":{"target_host":"1.1.1.1", "target_service":"openssh", "source_host": "1.1.1.2"}}
33+
Action: {"action":"ExploitService", "parameters":{"target_host":"1.1.1.1", "target_service":"22/tcp, ssh", "source_host": "1.1.1.2"}}
3234
Action: {"action":"FindData", "parameters":{"target_host":"1.1.1.1", "source_host": "1.1.1.2"}}
3335
Action: {"action":"ExfiltrateData", "parameters": {"target_host": "2.2.2.2", "data": {"owner":"User1", "id":"WebData"}, "source_host": "1.1.1.2"}}
3436
End of example.
@@ -38,12 +40,12 @@ prompts:
3840
Known hosts are 10.0.0.1, 10.0.0.2, 192.168.1.1, 192.168.1.2
3941
Controlled hosts are 10.0.0.2, 192.168.1.2
4042
Known data for source host 192.168.1.2: ('Admin', 'ConfidentialData')
41-
Known services for host 192.168.1.1 are "httpd", "ftp"
43+
Known services for host 192.168.1.1 are "80/tcp, http", "21/tcp, ftp"
4244
4345
Here are some examples of actions:
4446
Action: {"action":"ScanNetwork", "parameters": {"target_network": "192.168.1.0/24", "source_host": "10.0.0.2"}}
4547
Action: {"action":"ScanServices", "parameters":{"target_host":"192.168.1.1", "source_host": "192.168.1.2"}}
46-
Action: {"action":"ExploitService", "parameters":{"target_host":"192.168.1.1", "target_service":"httpd", "source_host": "10.0.0.2"}}
48+
Action: {"action":"ExploitService", "parameters":{"target_host":"192.168.1.1", "target_service":"80/tcp, http", "source_host": "10.0.0.2"}}
4749
Action: {"action":"FindData", "parameters":{"target_host":"192.168.1.1", "source_host": "192.168.1.2"}}
4850
Action: {"action":"ExfiltrateData", "parameters": {"target_host": "10.0.0.2", "data": {"owner":"Admin", "id":"ConfidentialData"}, "source_host": "192.168.1.2"}}
4951
End of example 2
@@ -52,7 +54,7 @@ prompts:
5254
Here are some examples of actions:
5355
Action: {"action":"ScanNetwork", "parameters": {"target_network": "1.1.1.0/24", "source_host": "2.2.2.2"}}
5456
Action: {"action":"ScanServices", "parameters":{"target_host":"2.2.2.3", "source_host': '2.2.2.2"}}
55-
Action: {"action":"ExploitService", "parameters":{"target_host":"1.1.1.1", "target_service":"openssh", "source_host": "1.1.1.2"}}
57+
Action: {"action":"ExploitService", "parameters":{"target_host":"1.1.1.1", "target_service":"22/tcp, ssh", "source_host": "1.1.1.2"}}
5658
Action: {"action":"FindData", "parameters":{"target_host":"1.1.1.1", "source_host": "1.1.1.2"}}
5759
Action: {"action":"ExfiltrateData", "parameters": {"target_host": "2.2.2.2", "data": {"owner":"User1", "id":"WebData"}, "source_host": "1.1.1.2"}}
5860
End of examples.

0 commit comments

Comments
 (0)