|
| 1 | +description: Summarize Networking Actions from JSON |
| 2 | + |
| 3 | +providers: |
| 4 | + - id: ollama:smollm2:1.7b |
| 5 | + config: |
| 6 | + num_predict: 2048 |
| 7 | + - id: ollama:gemma3:1b |
| 8 | + config: |
| 9 | + num_predict: 2048 |
| 10 | + - id: ollama:llama3.2:1b |
| 11 | + config: |
| 12 | + num_predict: 2048 |
| 13 | + - id: ollama:llama3.2:3b |
| 14 | + config: |
| 15 | + num_predict: 2048 |
| 16 | + - id: ollama:phi4-mini:latest |
| 17 | + config: |
| 18 | + num_predict: 2048 |
| 19 | + - id: ollama:qwen2.5:1.5b |
| 20 | + config: |
| 21 | + num_predict: 2048 |
| 22 | + - id: ollama:qwen2.5:3b |
| 23 | + config: |
| 24 | + num_predict: 2048 |
| 25 | + - id: ollama:granite3.1-dense:2b |
| 26 | + config: |
| 27 | + num_predict: 2048 |
| 28 | + |
| 29 | +prompts: |
| 30 | + - | |
| 31 | + Given the following JSON, describe the networking action in simple English: |
| 32 | + {{json}} |
| 33 | +
|
| 34 | + example |
| 35 | + JSON action {"action":"ScanNetwork", "parameters": {"target_network":"1.1.1.0/24", "source_host": "2.2.2.2"}} |
| 36 | + Answer "Scan a Network targeting 1.1.1.0/24 from 2.2.2.2" |
| 37 | +tests: |
| 38 | + - vars: |
| 39 | + json: '{"action":"ScanNetwork", "parameters": {"target_network":"1.1.1.0/24", "source_host": "2.2.2.2"}}' |
| 40 | + assert: |
| 41 | + - type: llm-rubric |
| 42 | + value: "Does the explanation describe a ScanNetwork action targeting the network 1.1.1.0/24, initiated from host 2.2.2.2?" |
| 43 | + |
| 44 | + - vars: |
| 45 | + json: '{"action":"ScanServices", "parameters": {"target_host":"2.2.2.3", "source_host": "2.2.2.2"}}' |
| 46 | + assert: |
| 47 | + - type: llm-rubric |
| 48 | + value: "Does the explanation describe a Find Services action performed on host 2.2.2.3, initiated from 2.2.2.2?" |
| 49 | + |
| 50 | + - vars: |
| 51 | + json: '{"action":"ExploitService", "parameters":{"target_host":"1.1.1.1", "target_service":"openssh", "source_host": "1.1.1.2"}}' |
| 52 | + assert: |
| 53 | + - type: llm-rubric |
| 54 | + value: "Does the explanation describe an ExploitService action targeting the 'openssh' service on host 1.1.1.1, initiated from 1.1.1.2?" |
| 55 | + |
| 56 | + - vars: |
| 57 | + json: '{"action":"FindData", "parameters":{"target_host":"1.1.1.1", "source_host": "1.1.1.2"}}' |
| 58 | + assert: |
| 59 | + - type: llm-rubric |
| 60 | + value: "Does the explanation describe a FindData action performed on host 1.1.1.1 from source host 1.1.1.2?" |
| 61 | + |
| 62 | + - vars: |
| 63 | + json: '{"action":"ExfiltrateData", "parameters": {"target_host": "2.2.2.2", "data": {"owner":"User1", "id":"WebData"}, "source_host": "1.1.1.2"}}' |
| 64 | + assert: |
| 65 | + - type: llm-rubric |
| 66 | + value: "Does the answer correctly explain that the action is to exfiltrate data from source host 1.1.1.2 to target host 2.2.2.2, involving data owned by User1 with ID 'WebData'?" |
| 67 | + |
| 68 | +defaultTest: |
| 69 | + options: |
| 70 | + provider: ollama:qwen2.5-coder:latest |
| 71 | + |
0 commit comments