Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security and Compliance PowerShell RPS Migration #59

Closed
silverhack opened this issue Jul 26, 2023 · 5 comments
Closed

Security and Compliance PowerShell RPS Migration #59

silverhack opened this issue Jul 26, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@silverhack
Copy link
Owner

Is your feature request related to a problem? Please describe.
Remote PowerShell (RPS) protocol is deprecated and will be decommissioned in the near future (October 2023). Monkey365 is still connecting to Security and Compliance through Remote PowerShell (RPS) and therefore should be migrated to REST API.

Describe the solution you'd like
Migrate all Security and Compliance related plugins and update Monkey365 codebase to use the new REST endpoints

Additional context
Deprecation of Remote PowerShell (RPS) Protocol in Security and Compliance PowerShell

@silverhack silverhack added the enhancement New feature or request label Jul 26, 2023
@silverhack
Copy link
Owner Author

It's now migrated on dev branch. It will be merged to main branch asap

@silverhack
Copy link
Owner Author

silverhack commented Sep 25, 2023

This enhacement was reopened.

As far as I can see the rest of the CmdLets that requiring an active PowerShell PSSession were migrated to a REST-based commands. Monkey365 should migrate those CmdLets and to route commands to REST.

@silverhack silverhack self-assigned this Sep 29, 2023
@master-qwerty
Copy link

master-qwerty commented Dec 6, 2023

Hi,

I am unsure if this is related to this, but I can see below the warning and not results for Security and Compliance.
Or do I have to change some parameters?

Warning

WARNING: Your connection has been redirected to the following URI: "https://eur06b.ps.compliance.protection.outlook.com/Powershell-LiveId?BasicAuthToOAuthConversion=true;PSVersion=5.1.22621.2506"
WARNING: Unable to connect to Exchange Compliance Center

Parameters:

$param = @{
    Instance       = 'Microsoft365';
    Analysis       = @("Microsoft365", "ExchangeOnline", "MicrosoftTeams", "PurView");;
    DeviceCode     = $true;
    IncludeAzureAD = $true;
    ExportTo       = @("CSV", "JSON", "HTML");
}

Tested with this release:

[Monkey365 v0.91.1-beta](https://github.com/silverhack/monkey365/releases/tag/v0.91.1-beta)

OS: Windows11 - Windows365/CloudPC
$PsVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.22621.2506
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.2506
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

thanks in advance,

@silverhack
Copy link
Owner Author

Hi @master-qwerty I believe is related to this issue and should be fixed in the next version.I'll leave this opened to better track it.

Thanks

@silverhack
Copy link
Owner Author

Migration is now completed and RPS was migrated to REST based queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants