Czar Echavez
989e7481f3
#2437 : fix the visible health status not being carried on after restoring backup file
2024-04-02 15:10:48 +01:00
Marek Wolan
e3d3a94da2
Merged PR 321: CAOS 0.8 observations
...
## Summary
* Remove the usecase-specific and agent-specific observation classes, replacing with a more flexible system
* Add configuration schemas to every observation class
* Add router, firewall, port, and application observation
* Re-shape the dict structure of observations to make it adhere to CAOS 0.8
* Change existing configs to use the new structure
* make host observation separate
## Test process
existing and new unit tests as well as ad hoc notebooks
## Checklist
- [ ] PR is linked to a **work item**
- [ ] **acceptance criteria** of linked ticket are met
- [ ] performed **self-review** of the code
- [ ] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [ ] updated the **change log**
- [ ] ran **pre-commit** checks for code style
- [ ] attended to any **TO-DOs** left in the code
Related work items: #2417
2024-04-02 14:00:27 +00:00
Christopher McCarthy
742f1be81b
Merged PR 320: #2419- Created a Router-specific version of SessionManager
...
## Summary
Created a Router-specific version of `SessionManager` that looks at route table rather than default gateway when dst ip address isn't for a locally attached network. Carried these changes through to arp. Added test for this. Made some minor improvements to show functions in container and node that assist debugging.
## Test process
TDD approach: wrote the test, ran it and watched it fail. The implemented the fix and re-ran the test; it passes.
**Before fix:**

**After fix:**

## Checklist
- [ ] PR is linked to a **work item**
- [ ] **acceptance criteria** of linked ticket are met
- [ ] performed **self-review** of the code
- [ ] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [ ] updated the **change log**
- [ ] ran **pre-commit** checks for code style
- [ ] attended to any **TO-DOs** left in the code
#2419
Related work items: #2419
2024-04-02 12:58:21 +00:00
Marek Wolan
d2c7ae481c
#2417 Add categorisation and updated new configs from merge
2024-04-01 22:03:28 +01:00
Marek Wolan
e4300faa1c
Merge remote-tracking branch 'origin/dev' into feature/2417-observation-refactor
2024-04-01 19:21:40 +01:00
Marek Wolan
2513646205
#2417 fix last observation tests
2024-04-01 16:50:59 +01:00
Marek Wolan
709486d739
#2417 test firewall and router obs
2024-04-01 16:06:12 +01:00
Marek Wolan
0ba767d2a0
#2417 update observation tests and make old tests pass
2024-04-01 00:54:55 +01:00
Marek Wolan
62ebca8c08
#2417 Remove references to old obs names and add link obs
2024-03-31 21:39:24 +01:00
Cristian-VM2
2546f268eb
#2402 refactor port actions to take same input params (hostname) as new acl actions for routers and firewalls
2024-03-31 11:59:31 +00:00
Cristian-VM2
8763a27cca
Merge remote-tracking branch 'origin/dev' into feature/2402-add-acl-actions-for-routers-and-firewalls
2024-03-29 16:37:37 +00:00
Cristian-VM2
7299a12c64
#2402 add firewall acl actions
2024-03-29 16:30:39 +00:00
Cristian-VM2
2eb900746b
#2402 rename network_acl actions to router_acl and refactor how router_name is given
2024-03-29 11:34:43 +00:00
Chris McCarthy
1ac3e1c6b4
#2149 - Created a Router-specific version of SessionManager that looks at route table rather than default gateway when dst ip address isn't for a locally attached network. Carried these changes through to arp. Added test for this. Made some minor improvements to show functions in container and node that assist debugging.
2024-03-28 15:52:08 +00:00
Cristian-VM2
1e1eea47f1
#2405 add e2e test for application install and uninstall, refactor input params
2024-03-28 14:08:08 +00:00
Marek Wolan
0d0b5bc7d9
fix previous commit
2024-03-27 22:11:37 +00:00
Marek Wolan
cae9f64b93
New observations
2024-03-27 22:11:02 +00:00
Cristian-VM2
8bb7f8a177
#2405 add application install and remove actions
2024-03-27 17:07:12 +00:00
Cristian-VM2
5860c74ef9
#2404 change software state from patching to fixing to align with CAOS v0.8
2024-03-26 16:41:11 +00:00
Cristian-VM2
944b248300
#2404 rename software patch to fix
2024-03-26 10:51:33 +00:00
Cristian-VM2
600dc3f016
#2404 add application scan, close, and fix actions, fix and enable service scan test
2024-03-25 16:58:27 +00:00
Cristian-VM2
bef2bd8084
add actions to enable/disable ports in routers/firewalls, improve notebook for training PPO agents
2024-03-22 16:35:53 +00:00
Marek Wolan
d33c80d0d6
Minor fixes
2024-03-14 14:33:04 +00:00
Marek Wolan
f438acf745
Add shared reward test
2024-03-13 14:01:17 +00:00
Czar Echavez
f2c6f10c21
#2350 : apply PR suggestions
2024-03-12 12:20:02 +00:00
Czar Echavez
ec4818e4d3
Merge remote-tracking branch 'origin/dev' into feature/2350-confirm-action-observation-space-conforms-to-CAOS-0.7
2024-03-12 09:11:30 +00:00
Czar Echavez
cd6d6325db
#2350 : add tests to check spaces + acl obs test + nmne space changes
2024-03-11 17:47:33 +00:00
Marek Wolan
66ab5ec980
Fix last tests
2024-03-11 09:18:31 +00:00
Marek Wolan
359777f4f8
Add tests for request success/fail
2024-03-09 23:06:53 +00:00
Marek Wolan
31ae4672ac
Make nodes only accept requests when they're on
2024-03-09 20:47:57 +00:00
Czar Echavez
cc721056d8
#2350 : configurable NMNE category thresholds
2024-03-08 19:32:07 +00:00
Czar Echavez
61aa242128
#2350 : tests + application
2024-03-08 14:48:31 +00:00
Czar Echavez
ba58204542
#2350 : split observations into smaller files
2024-03-08 14:08:35 +00:00
Czar Echavez
b13725721d
#2350 : splitting observations into separate files
2024-03-08 13:49:00 +00:00
Marek Wolan
76752fd9af
Change the nmne clear to happen at apply_timestep instead of within describe_state
2024-03-07 14:44:44 +00:00
Marek Wolan
a900d59f7b
Update NMNE to only count MNEs in the last step.
2024-03-07 12:15:30 +00:00
Marek Wolan
a222a8c58f
Give the UC2 config load function a meaningful name
2024-03-04 19:43:51 +00:00
Marek Wolan
d1480e4477
Apply suggestions from PR review.
2024-03-04 09:58:57 +00:00
Marek Wolan
afa775baff
Add test for new reward
2024-03-03 15:52:34 +00:00
Christopher McCarthy
e8b1177c18
Merged PR 291: #2357 - Allow empty nodes, links, and agents arrays in config file
...
## Summary
Allowed the config to not have nodes, links and agents and still be parsed
## Test process
Tested with config file that doesn't have any simulation key/value pair
## Checklist
- [X] PR is linked to a **work item**
- [X] **acceptance criteria** of linked ticket are met
- [X] performed **self-review** of the code
- [X] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [ ] updated the **change log**
- [X] ran **pre-commit** checks for code style
- [ ] attended to any **TO-DOs** left in the code
#2357 - Allowed the config to not have nodes, links and agents and still be parsed
Related work items: #2357
2024-03-02 19:30:22 +00:00
Chris McCarthy
81fd43035d
#2358 - the node-specific properties in Network class now simply use node.__class__.__name__ to check their type for filtering by type. Tests updated to use the new property function names
2024-03-01 22:51:01 +00:00
Chris McCarthy
af036f63f1
#2357 - Allowed the config to not have nodes, links and agents and still be parsed
2024-03-01 22:37:51 +00:00
Czar Echavez
78ff658e30
#2356 : optional dmz port + optional external acl rules
2024-03-01 16:48:05 +00:00
Czar Echavez
49a4e1fb56
#2257 : added common node attributes page + ability to set node operating state via config + tests
2024-02-29 15:20:54 +00:00
Czar Echavez
eefc2739c8
Merge remote-tracking branch 'origin/dev' into feature/2257-router-routes-cannot-be-represented-in-config-file
2024-02-29 11:34:56 +00:00
Marek Wolan
ce39387f92
Merge 'origin/dev' into feature/2317-refactor-reset
2024-02-29 10:16:42 +00:00
Czar Echavez
13db07dc11
Merge remote-tracking branch 'origin/dev' into feature/2257-router-routes-cannot-be-represented-in-config-file
2024-02-28 15:09:23 +00:00
Czar Echavez
f2d7a2fc16
#2257 : added way to ensure nodes are on at start + more test to make sure nodes are on when added via config
2024-02-26 14:34:34 +00:00
Marek Wolan
e5982c4599
Change agents list in game object to dictionary
2024-02-26 10:26:28 +00:00
Chris McCarthy
771a68dccb
#2238 - Implement NMNE detection and logging in NetworkInterface.
...
- Enhance NicObservation for detailed NMNE event monitoring.
- Add nmne_config options to simulation settings for customizable NMNE capturing.
- Update documentation and tests for new NMNE features and simulation config.
2024-02-22 22:43:14 +00:00