Archer Bowen
e5be392ea8
#2689 Updated documentation and docustrings following PR comments.
2024-08-15 17:47:33 +01:00
Archer Bowen
7d086ec35e
#2689 Implemented pydantic model validation on C2 Server setup method + updated E2E notebook with data exfiltration.
2024-08-15 17:08:10 +01:00
Archer Bowen
f32b3a931f
#2689 Addressed failing tests + updated c2_suite.rst to include the Data exfil command.
2024-08-15 14:41:35 +01:00
Archer Bowen
c50b005c37
#2689 Improved terminal session handling.
2024-08-15 13:10:47 +01:00
Archer Bowen
e53ac84666
#2689 Fixed small bugs, added pydantic class validation and divided the data_Exfil command on c2 beacon into two separate methods.
2024-08-15 11:36:55 +01:00
Archer Bowen
6a28f17f1b
#2689 Initial draft of File exfiltration.
2024-08-14 19:49:58 +01:00
Archer Bowen
559f480062
#2689 Fixed .rst formatting issues and removed unnecessary comments.
2024-08-13 16:47:40 +01:00
Archer Bowen
d6e2994d6b
Apply suggestions from code review
2024-08-13 15:43:21 +00:00
Archer Bowen
845a4c6bd6
#2689 Final docustring updates before PR.
2024-08-13 10:18:56 +01:00
Archer Bowen
6c7376ab4b
#2681 Updated to include yaml file tests + include listening on multiports.
2024-08-13 09:37:11 +01:00
Archer Bowen
27ec06658f
#2689 Majorly updated the command and control notebook to demonstrate more configuration options and more text to explain the code cells.
2024-08-12 19:25:30 +01:00
Archer Bowen
cbf02ebf32
#2689 Updated documentation and moved _craft_packet into abstract C2
2024-08-12 14:16:21 +01:00
Archer Bowen
ce3805cd15
#2689 Updated c2 tests significantly and improved quality of debug logging.
2024-08-12 10:47:56 +01:00
Archer Bowen
53433ce7b6
#2689 General improvements.
...
1. Abstract TAP now handles .apply_timestep
2. Expanded tests
3. Added pydantic model for c2 configuration.
2024-08-09 17:53:47 +01:00
Archer Bowen
ab91f993a5
#2689 Initial Implementation of multi-port listeners.
2024-08-09 12:45:15 +01:00
Archer Bowen
0e8e8c5681
Merge remote-tracking branch 'origin/dev' into feature/2689-command-and-control
2024-08-09 12:15:43 +01:00
Archer Bowen
4241118d26
#2689 Adding slight changes to c2_Beacon & terminal that appeared when merging from dev.
2024-08-09 12:14:57 +01:00
Christopher McCarthy
ca2aef7343
Merged PR 503: Enable Multi-Port Listening for Services and Applications
...
## Summary
- Added a `listen_on_ports` set in the `IOSoftware` class to enable software listening on ports in addition to the main port they're assigned.
- Also added something I missed in the `CHANGELOG.md` from user login ticket 🙃
## Test process
- Tested listening on ports with a dummy listener software class and counted frames snooped on.
- Also tested that the actual software that the posts being snooped in on still works as expected.
## 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
- [X] updated the **documentation** if this PR changes or adds functionality
- [X] written/updated **design docs** if this PR implements new functionality
- [X] updated the **change log**
- [X] ran **pre-commit** checks for code style
- [ ] attended to any **TO-DOs** left in the code
Related work items: #2768
2024-08-09 10:25:33 +00:00
Archer Bowen
507abe46c2
Merge remote-tracking branch 'origin/dev' into feature/2689-command-and-control
2024-08-09 11:12:09 +01:00
Archer Bowen
ddc9acd03a
#2689 Fix notebook blue agent actions not functioning correctly.
2024-08-09 11:04:12 +01:00
Archer Bowen
6ec575d18e
#2689 Updated actions E2E notebook and other additions
2024-08-09 09:58:44 +01:00
Chris McCarthy
72e6e78ed7
#2768 - Removed debugging print statement
2024-08-09 09:32:13 +01:00
Chris McCarthy
a3a9ca9963
#2768 - Fixed issue causing main port to not be included in list of open ports. documented the configuration of listen_on_ports. added test that tests listen_on_ports configuration from yaml.
2024-08-08 21:20:20 +01:00
Charlie Crane
665c53d880
#2781 - Actioning review comments
2024-08-08 15:48:44 +01:00
Chris McCarthy
a5652ae4b2
Merge branch 'refs/heads/dev' into feature/2768_enable-multi-port-listening-for-services-and-applications
2024-08-08 14:26:35 +01:00
Charlie Crane
116ac725b0
#2718 - making terminal rm _login() and _remote_login() consistent in their RequestResponse
2024-08-08 14:23:10 +01:00
Charlie Crane
5f5ea5e524
#2718 - Updates to Terminal following discussion about implementation with actions.
2024-08-08 14:20:23 +01:00
Charlie Crane
ff054830bc
#2781 - Correcting some typos in Terminal notebook and elaborating the data in _remote_login request
2024-08-08 11:57:30 +01:00
Charlie Crane
93ef3076f5
#2781 - user_session_manager._timeout_session() now sends a user_timeout command when closing remote sessions. Corrected source_ip in Terminal.receive()
2024-08-08 11:33:42 +01:00
Archer Bowen
9249447ea6
Merge branch 'dev' into feature/2689-command-and-control
2024-08-07 14:18:40 +01:00
Archer Bowen
b1baf023d6
#2689 Fixed up Pytests and confirmed functionality before merging from dev.
2024-08-07 14:16:50 +01:00
Charlie Crane
9fea34bb43
#2781 - Correcting terminal tests and fixing a typo in base.py
2024-08-07 11:58:17 +01:00
Charlie Crane
1802648436
#2781 - Initial commit with changes to Terminal to integrate with user_session_manager. Login and logout are now talking to the monitored user session
2024-08-07 11:31:51 +01:00
Archer.Bowen
afa4d2b946
#2689 Address a couple of TODOs and other misc changes.
2024-08-07 10:34:30 +01:00
Charlie Crane
bd91b4be1d
#2706 - Merge branch 'dev' into feature/2706-Terminal_Sim_Component
2024-08-07 09:08:43 +01:00
Nick Todd
61fa109ecc
Merged PR 498: RNG seed setting.
...
## Summary
Add support for setting random number seed in config file.
## Test process
Tested on all notebooks in PrimAITE Internal except Training-an-Ray-RLLIB-MARL-System.
Added specific test for seed setting.
## 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
- [X] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [X] updated the **change log**
- [X] ran **pre-commit** checks for code style
- [X] attended to any **TO-DOs** left in the code
Related work items: #2777
2024-08-07 08:04:49 +00:00
Charlie Crane
6d6f21a20a
#2706 - Additional assert on new test and a guard clause on LocalTerminalConnection.execute() to check that the Terminal service is running before sending a command
2024-08-06 19:14:53 +01:00
Charlie Crane
d05fd00594
#2706 - Resolving an issue that saw disconnected terminal connections still able to send execute commands that were also then processed by the target node. Created a new class: LocalterminalConnection, for local connection objects to terminal. Calling terminal.show() when there is a local connection will have 'Local Connection' as the IP address. Receive and execute will check that the provided connection uuid is valid before actioning any commands. TerminalClientConnection objects now have an is_active flag similar to DatabaseClientConnection. Added a new test to check that terminals will reject commands from disconnected clientconnection objects.
2024-08-06 19:09:23 +01:00
Archer.Bowen
9c68cd4bd0
#2689 Agent Actions Implemented, E2E Demo notebook started and a couple of general fixes and improvements.
2024-08-06 17:05:00 +01:00
Charlie Crane
df49b3b5bb
#2706 - Actioning Review Comments
2024-08-06 14:10:10 +01:00
Charlie Crane
89107f2c4b
#2706 - Type-hint changes following review
2024-08-06 10:37:11 +01:00
Charlie Crane
1e64e87798
#2706 - Actioning Review comments
2024-08-06 09:30:27 +01:00
Chris McCarthy
d2011ff327
#2811 - Updated syslog messaging around DatabaseClient and DatabaseService connection request and password authentication
2024-08-05 22:23:54 +01:00
Nick Todd
3441dd2509
#2777 : Code review changes.
2024-08-05 17:45:01 +01:00
Archer.Bowen
4ae0275dc9
#2689 Implemented initial agent actions and started on documentations. A few TODO's left to do such as validation and expanding unit tests.
2024-08-05 16:53:48 +01:00
Charlie Crane
63a689d94a
#2706 - correcting test failures
2024-08-05 16:25:35 +01:00
Charlie Crane
4fe9753fcf
#2706 - Updated terminal.receive() to work with SSHPacket class, fixed some tests and updated RemoteTerminalConnection to hold Source_IP for easier reading
2024-08-05 15:44:52 +01:00
Nick Todd
d059ddceab
#2777 : Remove debug print statement
2024-08-05 15:11:57 +01:00
Nick Todd
966542c2ca
#2777 : Add determinism to torch backends when seed set.
2024-08-05 15:08:31 +01:00
Nick Todd
0e21137874
Merge branch 'dev' into feature/2777_set_RNG_seed
2024-08-05 11:12:30 +01:00