Remote Desktop moet altijd om wachtwoord vragen bij verbinding maken om te voorkomen dat credentials opgeslagen worden in RDP client configuraties, wat Diefstal van inloggegevens risico's vermindert.
Aanbeveling
IMPLEMENT
Risico zonder
Medium
Risk Score
5/10
Implementatie
2u (tech: 1u)
Van toepassing op:
β Windows server β RDP servers
RDP credential opslag RISICO: RDP clients kunnen credentials opslaan in .rdp configuratie bestanden voor convenience ("Remember my credentials"). SECURITY RISKS: credentials opgeslagen in .rdp files (weak versleuteling), Disk forensics kunnen credentials recoveren, Malware kan saved RDP credentials stelen, Shared .rdp files is credential leakage. fPromptForPassword is 1 FORCEERT: Altijd password prompt bij RDP verbinding, Voorkomt credential opslag in client, User moet elke keer authenticeren (tedious maar secure). BALANCE: Users willen convenience (save credentials), Security vereist fresh authentication, Modern alternative: gebruiken Azure Bastion (no RDP credentials needed), Windows Admin Center (web-based).
PowerShell Modules Vereist
Primary API: Intune / groep beleid Connection:Registry Required Modules:
Implementatie
Schakel in password prompt: HKLM:\SOFTWARE\beleidsregels\Microsoft\Windows NT\Terminal Services\fPromptForPassword is 1. EFFECT: RDP server altijd vraagt om password (client kan niet gebruiken saved credentials), past toe to alle RDP connections to Deze server.
Vereisten
Windows server (RDP target machines)
Note: Dit is server-SIDE beleid (not client)
User communication: kan niet save RDP passwords
Implementatie
Gebruik PowerShell-script always-prompt-for-password-upon-connection-is-set-to-enabled.ps1 (functie Invoke-Remediation) β Schakel in RDP password prompt.
GPO: Computer Configuration β Administrative Templates β Windows Components β Remote Desktop Services β Remote Desktop sessie Host β Security β 'Always prompt voor password upon connection' is ingeschakeld
monitoring
Gebruik PowerShell-script always-prompt-for-password-upon-connection-is-set-to-enabled.ps1 (functie Invoke-Monitoring) β Verifieer fPromptForPassword is 1.
Compliance en Auditing
CIS Windows server Benchmark
BIO 09.04 - Authentication
ISO 27001 A.9.4.2
Remediatie
Gebruik PowerShell-script always-prompt-for-password-upon-connection-is-set-to-enabled.ps1 (functie Invoke-Remediation) β Herstellen.
Compliance & Frameworks
CIS M365: Control RDP Security (L1) - Always prompt voor password
BIO: 09.04.02 - veilige authentication
ISO 27001:2022: A.9.4.2 - veilige log-on procedures
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).