Commit Graph

6676 Commits

Author SHA1 Message Date
Mike Salvatore bb806522a1 Island: Rename get_users() -> get_user()
This function only ever returns one user. The plural name "get_users()"
is misleading. Returning a list is also misleading.
2021-10-28 09:28:02 -04:00
Mike Salvatore a5d3c218b4 Island: Move registration logic into AuthenticationService
Resoures should be kept relatively thin and serve as the layer between
the API and the backend.
2021-10-28 09:28:02 -04:00
VakarisZ 063286e899 UI: fix long telemetry log loading bug 2021-10-28 16:22:24 +03:00
VakarisZ 97327f08a2 UI: add loading icon to TelemetryLog.tsx 2021-10-28 16:21:26 +03:00
VakarisZ 7425bf1bbd UI: refactor TelemetryLog component out of MapPage and migrate it to hook with typescript 2021-10-28 14:39:30 +03:00
VakarisZ 7f903efb07 Project: open correct web address when starting UI in development mode (npm start)
When UI is started in development mode, browser window is opened to 0.0.0.0:8000, instead it should be local-ip:8000. This commit fixes this problem
2021-10-28 11:36:37 +03:00
Mike Salvatore 953816b536 Docs: Add v1.12.0 checksums 2021-10-27 10:21:53 -04:00
Mike Salvatore 8554ab6fd5 Merge branch 'release/1.12.0' into develop 2021-10-27 10:15:02 -04:00
Mike Salvatore d5e12725a9 Changelog: Release v1.12.0 2021-10-27 10:14:36 -04:00
Mike Salvatore bc5ca5b613 Docs: Add --tty and --interactive to docker commands
These options allow the monkey-island docker container to be killed with
<CTRL-C>
2021-10-27 07:58:39 -04:00
Shreya Malviya a55f86ceea Docs: Update Zerologon documentation to mention that brute force exploiters use its stolen creds 2021-10-26 19:58:11 +05:30
Shreya Malviya ea31d27bf1 Island: Update Zerologon's description in the configuration 2021-10-26 19:58:11 +05:30
VakarisZ 1ad74a4bff BB: fix zerologon test to check propagation via SMB as well
ZeroLogon doesn't propagate to the machine it only steals the credentials. It's best to make sure that propagation is also possible by running SMB exploiter
2021-10-26 10:21:36 -04:00
Shreya Malviya 820d47c9cc Agent: Change logic for generating random password 2021-10-26 19:39:34 +05:30
Mike Salvatore b8ed464909
Merge pull request #1550 from guardicore/config_import_fix
Config import fix
2021-10-26 09:57:48 -04:00
VakarisZ aa6f202a8f Island: change the log message level of wrong password in password_based_bytes_encryptor.py to debug
Wrong password is in some cases expected behavior, not an error of an application
2021-10-26 15:47:33 +03:00
VakarisZ 8e6a2d8e7d UI: bugfix the need to double click on the import when importing an encrypted configuration
When back-end sends the schema for ui to validate that no unsafe options are selected, UI didn't automatically send a response back in case there were no unsafe options selected
2021-10-26 15:23:07 +03:00
Mike Salvatore 2df588ca59 Changelog: Add missing period 2021-10-25 14:56:29 -04:00
Mike Salvatore bc3b1b274f Changelog: Formatting changes and other small fixes 2021-10-25 14:40:28 -04:00
Mike Salvatore 1b74119812
Merge pull request #1548 from guardicore/update-docker-docs
Docs: Update docker Upgrading section
2021-10-25 13:03:08 -04:00
Mike Salvatore c91d922277 Docs: Clarify "upgrade proceedure" for docker 2021-10-25 12:58:30 -04:00
Ilija Lazoroski d14e4dee31 Docs: Reword Docker upgrading section 2021-10-25 18:54:28 +02:00
Mike Salvatore b91120a677
Merge pull request #1549 from guardicore/docker_data_dir_fix
Docker data dir fix
2021-10-25 12:26:14 -04:00
VakarisZ 01f8488b07 UT's: assert correct behavior on docker if empty data directory is present and if no version file, but other files are present in the data directory 2021-10-25 18:30:53 +03:00
VakarisZ 9ef9ba0024 Island: improve and fix data directory exception handling/logging 2021-10-25 18:29:44 +03:00
VakarisZ a399e8a0ea Docs: reverted the numbering to use 1. instead of manual numeration in docker.md 2021-10-25 17:30:25 +03:00
VakarisZ cebd41b264 Build: change docker container to set MONKEY_DOCKER_CONTAINER env var. This variable is needed because we can't prompt for data dir removal on docker like we do on other deployments
Due to the fact that docker is not running interactively and user might be running on an old data dir if he uses volumes, we need special case for docker
2021-10-25 17:11:31 +03:00
Ilija Lazoroski 9f9744a77f Docs: Update docker Upgrading section 2021-10-25 15:21:04 +02:00
VakarisZ 97642f45dc Island: if the data directory is empty no need to consider backing it up 2021-10-25 11:13:06 +03:00
VakarisZ f6e02e2a6a Project: bump version numbers from 1.11.0 to 1.12.0 for release 2021-10-22 13:52:11 +03:00
VakarisZ c8b1694d27 Island: add an exit import statement because when MSI is built exit method is not found 2021-10-22 13:13:14 +03:00
ilija-lazoroski 3b9eaf34c0
Merge pull request #1544 from guardicore/1524-broken-updates
AppImage and Docker deployment renaming
2021-10-22 09:19:41 +02:00
VakarisZ 82cffc4748 Docs: add a note about possibility to run AppImage from WSL 2021-10-22 10:03:58 +03:00
VakarisZ fcc444b098 Docs: change installer filenames in docker and appImage setup docs 2021-10-22 10:03:18 +03:00
Mike Salvatore c3f5812906 Build: Refactor agent versioning 2021-10-21 12:19:08 -04:00
Ilija Lazoroski d55cbcfbd3 Build: Fix move package to dist dir on appimage 2021-10-21 17:25:00 +02:00
Ilija Lazoroski 6d827ad1af Build: Refactor commit id 2021-10-21 17:12:01 +02:00
Ilija Lazoroski e406294b28 Changelog: Log for broken updates issue 2021-10-21 16:53:35 +02:00
Ilija Lazoroski 530ba633d2 Build: Add build commit to appimage build name 2021-10-21 16:52:13 +02:00
Mike Salvatore 6b0a689adb Docker: Fix `git rev-parse` command
Add -C to git command in order
to execute rev-parse outside the repo.
2021-10-21 16:52:13 +02:00
VakarisZ eedf4484bc Deployments: fix the extraction of commit number in docker.sh 2021-10-21 16:52:13 +02:00
VakarisZ 46ef9df1d2 Deployments: change the default monkey_version to ""
If the version is none (default) the commit number will be used which is preferred in dev environment
2021-10-21 16:52:13 +02:00
VakarisZ 25df96da63 Deployments: Rename docker deployment only if a version is not specified
With this change, Jenkins will output docker packages in the following naming conventions:

Develop: InfectionMonkey-docker-$commit_number.tgz

Release: InfectionMonkey-docker-v$version.tgz
2021-10-21 16:52:13 +02:00
VakarisZ 226c72df5f Deployments: Rename appImage deployment only if a specific version is not specified
With this change, Jenkins will output packages in the following naming conventions:

Develop: InfectionMonkey-$commit_number_x86_64.AppImage

Release: InfectionMonkey-v$version.AppImage
2021-10-21 16:52:13 +02:00
VakarisZ 65f7fd0131 Deployments: change the outputs of appimage build and docker build to conform to the naming convention of InfectionMonkey-v*.*
AppImages are built into InfectionMonkey-v1.11.0.AppImage

Docker is build into InfectionMonkey-docker-v1.11.0.tgz
2021-10-21 16:52:13 +02:00
Mike Salvatore 3a907c3cae Build: Link to setup instructions from Docker README.md 2021-10-21 09:22:57 -04:00
Mike Salvatore e5b130296e
Merge pull request #1541 from guardicore/1530-docs-use-backup-data-dir
Documentation updates for data directory deletion/backup on installing a new version
2021-10-21 08:54:51 -04:00
Mike Salvatore a43c1b0a18 Docs: Add delete data directory tip to Linux and Windows setup 2021-10-21 08:53:46 -04:00
Mike Salvatore be04384efe Docs: Add instructions to configure data_dir on Linux 2021-10-21 08:53:46 -04:00
Shreya Malviya 8b93b45545 Docs: Add FAQ for data dir deletion and backup on installing new version 2021-10-21 08:53:44 -04:00