Marek Wolan
611b34e29f
remove outdated comment
2024-10-09 14:16:23 +01:00
Marek Wolan
a42398ac09
Fix typos and improve validation
2024-10-09 14:15:53 +01:00
Marek Wolan
b4cc1b4379
Add tests for office lan creation
2024-10-04 11:07:49 +01:00
Marek Wolan
b5b7fc6a8d
Give node types their own identifiers and make the network show method use them
2024-10-04 09:20:07 +01:00
Marek Wolan
5fde945fac
rename identifier back to type
2024-10-02 14:24:59 +01:00
Marek Wolan
a838cc6ce1
Convert office lan adder to a class and make it extendable
2024-10-02 13:56:39 +01:00
Marek Wolan
221e09ba51
Turn AirSpaceFrequency to a schema instead of a dict for validation
2024-09-27 15:06:19 +01:00
Marek Wolan
c74d5ac227
Fix changelog typo and remove repitition in ACL show method
2024-09-27 09:28:26 +01:00
Marek Wolan
203ec5ec85
Add tests for port and protocol validation and update changelog
2024-09-26 16:00:59 +01:00
Marek Wolan
f1b911bc65
Change port and protocol to annotated validators
2024-09-25 16:28:22 +01:00
Marek Wolan
695891f55c
Add port and protocol custom validators
2024-09-20 11:21:28 +01:00
Marek Wolan
08f1cf1fbd
Fix airspace and remaining port problems from refactor
2024-09-19 15:06:29 +01:00
Marek Wolan
dd931d900b
port refactor - eod commit, airspace still broken
2024-09-18 16:02:25 +01:00
=
310876cd3b
2755 Add ability to extend HostNode, NetworkNode, Service and Application outside PrimAITE.
2024-09-04 15:49:37 +01:00
Marek Wolan
a1553fb1b4
Backport core changes from internal
2024-08-28 10:20:32 +01:00
Archer Bowen
5bba4ed20e
Merge remote-tracking branch 'origin/dev' into feature/2689-command-and-control
2024-08-20 09:30:43 +01:00
Marek Wolan
1d2705eb1b
#2769 - Add user login observations
2024-08-15 20:16:11 +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
Marek Wolan
929bd46d6d
#2769 - Make changing password disconnect remote sessions
2024-08-12 14:16:04 +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
507abe46c2
Merge remote-tracking branch 'origin/dev' into feature/2689-command-and-control
2024-08-09 11:12:09 +01:00
Charlie Crane
665c53d880
#2781 - Actioning review comments
2024-08-08 15:48:44 +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
Charlie Crane
9fea34bb43
#2781 - Correcting terminal tests and fixing a typo in base.py
2024-08-07 11:58:17 +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
Charlie Crane
1e64e87798
#2706 - Actioning Review comments
2024-08-06 09:30:27 +01:00
Charlie Crane
814663cf2c
#2706 - Terminal now installs on a Router
2024-08-05 10:04:23 +01:00
Charlie Crane
22c84d35d7
Merge branch 'dev' into feature/2706-Terminal_Sim_Component
2024-08-05 09:52:53 +01:00
Charlie Crane
4bddf72cd3
#2706 - Initial refactor of Terminal Class following review discussion on Friday. Terminal will now return a TerminalConnection/RemoteTerminalConnection object on login.
...
The new connection object can then be used to pass commands to the target node, without needing to form a full payload item.
2024-08-05 09:29:17 +01:00
Christopher McCarthy
e275a9376b
Merged PR 496: Implement User, UserManager, and UserSessionManager
...
## Summary
*Replace this text with an explanation of what the changes are and how you implemented them. Can this impact any other parts of the codebase that we should keep in mind?*
## Test process
*How have you tested this (if applicable)?*
## 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: #2735 , #2778
2024-08-02 14:45:10 +00:00
Marek Wolan
aab47289ac
Merged PR 493: Update dev with all 3.2 updates
...
Related work items: #2625
2024-08-02 12:46:12 +00:00
Charlie Crane
d9faa1a5da
Merge branch 'dev' into feature/2706-Terminal_Sim_Component
2024-08-02 13:34:00 +01:00
Archer.Bowen
2339dabac1
#2689 Overhauled .receive method. Keep Alive and initial implementation of commands working. (also Updated docustrings + pre-commit)
2024-08-02 13:25:08 +01:00
Chris McCarthy
71d8c6ea63
#2735 - synced with dev and resolved merge conflicts
2024-08-02 12:55:09 +01:00
Chris McCarthy
696236aa61
#2735 - make the disabled/enabled admins/non-admins dynamic properties for simplicity. Added num_of_logins to User. Added additional test for counting user logins. Added all users to the UserManager describe_state function. Refactored model fields with empty dict as default value to have direct instantiation instead of using Field(default_factory=dict) or Field(default_factory=: lambda: {}).
2024-08-02 12:47:02 +01:00
Christopher McCarthy
61c7cc2da3
Apply suggestions from code review
2024-08-02 10:57:51 +00:00
Nick Todd
3ebad7d7e9
Merged PR 448: Global NMNE variables are incorrectly accessed
...
## Summary
*Replace this text with an explanation of what the changes are and how you implemented them. Can this impact any other parts of the codebase that we should keep in mind?*
## Test process
*How have you tested this (if applicable)?*
## 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
- [X] attended to any **TO-DOs** left in the code
Related work items: #2676
2024-08-02 08:28:08 +00:00
Charlie Crane
0fe61576c7
#2706 - Removed source and target ip_address attributes from the SSHPacket Class. Terminal now uses session_id to send login outcome. No more network_interface[1].ip_address.
2024-08-02 09:13:31 +01:00
Marek Wolan
78ad95fcef
#2735 - fix up node request manager and system software
2024-08-01 13:58:35 +01:00
Marek Wolan
a719b24cfc
Merge branch 'dev' into feature/2735-usermanager-fixes
2024-08-01 13:23:03 +01:00
Marek Wolan
ddbbcf66e8
Merge remote-tracking branch 'origin/dev' into backport-3.2 [skip ci]
2024-08-01 13:03:52 +01:00
Charlie Crane
19d7774440
#2706 - Changed how Terminal Class handles its connections. Terminal now has a list of TerminalClientConnection objects that holds all active connections. Corrected a typo in ssh.py
2024-08-01 12:34:21 +01:00
Marek Wolan
2a715d8d0a
backport 3.2 changes to core
2024-08-01 11:08:41 +01:00
Marek Wolan
b599257433
#2676 - update configs to use new nmne schema; fix test and warnings
2024-08-01 09:06:35 +01:00
Marek Wolan
2abd1969fe
#2800 - Consolidate software install and uninstall to a single method
2024-07-31 16:41:59 +01:00
Marek Wolan
bd1e23db7d
2676 - make ntwk intf use default nmne config
2024-07-31 15:25:02 +01:00
Marek Wolan
9bf8d0f8cb
#2676 Put NMNE back into network module
2024-07-31 13:20:15 +01:00
Czar Echavez
5e3a169999
#2735 : add usermanager and usersessionmanager into describe_state
2024-07-30 12:48:11 +01:00
Archer.Bowen
556239a535
#2689 Initial base class implementation
2024-07-30 11:17:10 +01:00