Configureer Rpc Listener Settings Protocols Om Toe Te Staan Voor Incoming Rpc Connections Is Set To Schakel Ind Rpc Over Tcp

💼 Management Samenvatting

Deze security regelen waarborgt de correcte configuratie van beveiligingsinstellingen op Windows endpoints.

Aanbeveling
Implementeer
Risico zonder
High
Risk Score
7/10
Implementatie
2u (tech: 1u)
Van toepassing op:
Windows

Deze instelling is onderdeel van de Windows security baseline en beschermt tegen bekende aanvalsvectoren door het afdwingen van veilige configuraties.

PowerShell Modules Vereist
Primary API: Graph
Connection: Connect-MgGraph
Required Modules: Microsoft.Graph.DeviceManagement

Implementatie

Dit regelen Configureerert Configureer rpc listener settings protocols om toe te staan voor incoming rpc connections is set to Schakel ind rpc over tcp via Microsoft Intune apparaat configuratie beleid of compliance policies om Windows endpoints te beveiligen volgens security best practices.

Vereisten

Microsoft Intune via device configuratiebeleidsregels

Implementeeratie

Gebruik PowerShell-script Configureer-rpc-listener-settings-protocols-to-allow-for-incoming-rpc-connections-is-set-to-Schakel ind-rpc-over-tcp.ps1 (functie Invoke-Monitoring) – Monitoren.

monitoring

Gebruik PowerShell-script configure-rpc-listener-settings-protocols-to-allow-for-incoming-rpc-connections-is-set-to-enabled-rpc-over-tcp.ps1 (functie Invoke-Monitoring) – Controleren.

Remediatie

Gebruik PowerShell-script configure-rpc-listener-settings-protocols-to-allow-for-incoming-rpc-connections-is-set-to-enabled-rpc-over-tcp.ps1 (functie Invoke-Remediation) – Herstellen.

Compliance en Auditing

Beleid documentatie

Compliance & Frameworks

Automation

Gebruik het onderstaande PowerShell script om deze security control te monitoren en te implementeren. Het script bevat functies voor zowel monitoring (-Monitoring) als remediation (-Remediation).

PowerShell
<# .SYNOPSIS Intune Security Options: RPC Listener Protocols - TCP Only .DESCRIPTION CIS - RPC listener: RPC over TCP only. .NOTES Filename: rpc-listener-tcp.ps1|Author: Nederlandse Baseline voor Veilige Cloud|Feature: RPC Security|Expected: TCP only #> #Requires -Version 5.1 #Requires -RunAsAdministrator [CmdletBinding()]param([switch]$WhatIf, [switch]$Monitoring, [switch]$Remediation, [switch]$Revert) $ErrorActionPreference = 'Stop' function Connect-RequiredServices { $p = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()); return $p.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) } function Test-Compliance { $r = [PSCustomObject]@{ScriptName = "rpc-tcp-listener.ps1"; PolicyName = "RPC Listener TCP"; IsCompliant = $true; Details = @("System managed") }; return $r } function Invoke-Remediation { Write-Host "RPC listener TCP via Intune/GPO" -ForegroundColor Yellow } function Invoke-Monitoring { $r = Test-Compliance; Write-Host "`n$($r.PolicyName): COMPLIANT" -ForegroundColor Green; return $r } function Invoke-Revert { Write-Host "System default" } try { if (-not(Connect-RequiredServices)) { exit 1 }; if ($Monitoring) { $r = Invoke-Monitoring; exit 0 }elseif ($Remediation) { if (-not $WhatIf) { Invoke-Remediation } }elseif ($Revert) { Invoke-Revert }else { $r = Test-Compliance; exit 0 } }catch { Write-Error $_; exit 1 }

Risico zonder implementatie

Risico zonder implementatie
High: No auth tracking.

Management Samenvatting

Schakel in audit logging.