PowerPoint: Block PowerPoint 97-2003 Binary Files (.ppt)

πŸ’Ό Management Samenvatting

Block PowerPoint 97-2003 binary files (.ppt) - legacy format (20+ years old) met known vulnerabilities + decreasing business use.

Aanbeveling
IMPLEMENT
Risico zonder
Medium
Risk Score
5/10
Implementatie
15u (tech: 5u)
Van toepassing op:
βœ“ Microsoft PowerPoint

PowerPoint 97-2003 (.ppt) = legacy risk: Format age: 1997-2003 (20-28 years old), Vulnerabilities: Buffer overflows, ActiveX exploits (unpatched in old parsers), Modern: .pptx (2007+) = safer (XML-based, no ActiveX), Business use: Declining (most converted to .pptx), Attack: Malicious .ppt file β†’ exploits legacy parser β†’ code execution. Recommendation: Block .ppt, force .pptx (modern format).

PowerShell Modules Vereist
Primary API: Intune / GPO
Connection: Registry-based
Required Modules:

Implementatie

Block .ppt binary: File types: .ppt (PowerPoint 97-2003 presentations), .pot (PowerPoint 97-2003 templates), Action: Block open + save (cannot open/save these formats), User message: 'File format blocked - convert to .pptx', Migration: Convert legacy .ppt β†’ .pptx (PowerPoint can batch convert).

Vereisten

  1. PowerPoint 2016+
  2. Legacy .ppt files: Convert to .pptx (migration project)
  3. Intune of GPO

Implementatie

Intune Settings Catalog: PowerPoint\Security\Trust Center\File Block Settings β†’ PowerPoint 97-2003 presentations, shows, templates: Block (Open + Save). Migration: Batch convert .ppt β†’ .pptx.

Compliance

DISA STIG Office, BIO 12.02, CIS Office Benchmark.

Monitoring

Gebruik PowerShell-script powerpoint97-2003-blocked.ps1 (functie Invoke-Monitoring) – Controleren.

Remediatie

Gebruik PowerShell-script powerpoint97-2003-blocked.ps1 (functie Invoke-Remediation) – Herstellen.

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 Blokkeert PowerPoint 97-2003 bestanden in PowerPoint .DESCRIPTION Dit script implementeert CIS control O365-PT-000003 voor het blokkeren van PowerPoint 97-2003 presentaties, shows, templates en add-in bestanden in Microsoft PowerPoint. Deze legacy bestandsformaten kunnen beveiligingsrisico's vormen en moeten worden geblokkeerd. .REQUIREMENTS - PowerShell 5.1 of hoger - Lokale administrator rechten voor registry wijzigingen - Microsoft PowerPoint geΓ―nstalleerd .PARAMETER Monitoring Controleert de huidige compliance status .PARAMETER Remediation Past de aanbevolen configuratie toe .PARAMETER Revert Herstelt de originele configuratie .PARAMETER WhatIf Toont wat er zou gebeuren zonder wijzigingen door te voeren .EXAMPLE .\powerpoint97-2003-blocked.ps1 -Monitoring Controleert of PowerPoint 97-2003 bestanden zijn geblokkeerd .EXAMPLE .\powerpoint97-2003-blocked.ps1 -Remediation Blokkeert PowerPoint 97-2003 bestanden .NOTES Registry pad: HKCU:\Software\Policies\Microsoft\Office\16.0\PowerPoint\Security\FileBlock\PowerPointFiles Waarde: PowerPoint97PresentationFiles = 1 CIS Control: O365-PT-000003 DISA STIG: Microsoft Office 365 ProPlus v3r3 #> #Requires -Version 5.1 param( [switch]$Monitoring, [switch]$Remediation, [switch]$Revert, [switch]$WhatIf ) # Globale variabelen $RegistryPath = "HKCU:\Software\Policies\Microsoft\Office\16.0\PowerPoint\Security\FileBlock\PowerPointFiles" $ValueName = "PowerPoint97PresentationFiles" $ExpectedValue = 1 $ControlID = "O365-PT-000003" function Test-Compliance { try { if (-not (Test-Path $RegistryPath)) { return $false } $currentValue = Get-ItemProperty -Path $RegistryPath -Name $ValueName -ErrorAction SilentlyContinue return ($currentValue -and $currentValue.$ValueName -eq $ExpectedValue) } catch { return $false } } function Invoke-Monitoring { Write-Host "Monitoring ${ControlID}: PowerPoint 97-2003 bestanden blokkeren" -ForegroundColor Green try { if (-not (Test-Path $RegistryPath)) { Write-Host "βœ— Registry pad bestaat niet: $RegistryPath" -ForegroundColor Red return $false } $currentValue = Get-ItemProperty -Path $RegistryPath -Name $ValueName -ErrorAction SilentlyContinue if ($currentValue -and $currentValue.$ValueName -eq $ExpectedValue) { Write-Host "βœ“ Control compliant: ${ValueName} = $ExpectedValue (PowerPoint 97-2003 bestanden geblokkeerd)" -ForegroundColor Green return $true } else { $actualValue = if ($currentValue) { $currentValue.$ValueName } else { "Not Set" } Write-Host "βœ— Control non-compliant: ${ValueName} = $actualValue (Expected: $ExpectedValue)" -ForegroundColor Red return $false } } catch { Write-Host "βœ— Fout bij controleren registry instelling: $($_.Exception.Message)" -ForegroundColor Red return $false } } function Invoke-Remediation { Write-Host "Remediating ${ControlID}: PowerPoint 97-2003 bestanden blokkeren" -ForegroundColor Yellow try { if ($WhatIf) { Write-Host "WhatIf: Zou registry waarde instellen: ${ValueName} = $ExpectedValue" -ForegroundColor Cyan return $true } if (-not (Test-Path $RegistryPath)) { Write-Host "Registry pad aanmaken: $RegistryPath" -ForegroundColor Yellow New-Item -Path $RegistryPath -Force | Out-Null } Set-ItemProperty -Path $RegistryPath -Name $ValueName -Value $ExpectedValue -Type DWord -Force Write-Host "βœ“ Registry waarde succesvol ingesteld: ${ValueName} = $ExpectedValue" -ForegroundColor Green Start-Sleep -Seconds 1 return Invoke-Monitoring } catch { Write-Host "βœ— Fout bij configureren registry instelling: $($_.Exception.Message)" -ForegroundColor Red return $false } } function Invoke-Revert { Write-Host "Reverting ${ControlID}: PowerPoint 97-2003 blokkering herstellen" -ForegroundColor Yellow try { if ($WhatIf) { Write-Host "WhatIf: Zou registry waarde verwijderen: ${ValueName}" -ForegroundColor Cyan return $true } if (Test-Path $RegistryPath) { Remove-ItemProperty -Path $RegistryPath -Name $ValueName -ErrorAction SilentlyContinue Write-Host "βœ“ Registry waarde verwijderd: ${ValueName}" -ForegroundColor Green } return $true } catch { Write-Host "βœ— Fout bij herstellen registry instelling: $($_.Exception.Message)" -ForegroundColor Red return $false } } # Hoofd uitvoering try { if ($Monitoring) { $result = Invoke-Monitoring exit $(if ($result) { 0 } else { 1 }) } elseif ($Remediation) { $result = Invoke-Remediation exit $(if ($result) { 0 } else { 1 }) } elseif ($Revert) { $result = Invoke-Revert exit $(if ($result) { 0 } else { 1 }) } else { Write-Host "Gebruik: .\run-programs-disabled.ps1 [-Monitoring] [-Remediation] [-Revert] [-WhatIf]" -ForegroundColor Yellow Write-Host " -Monitoring: Controleer huidige compliance status" -ForegroundColor White Write-Host " -Remediation: Pas aanbevolen configuratie toe" -ForegroundColor White Write-Host " -Revert: Herstel originele configuratie" -ForegroundColor White Write-Host " -WhatIf: Toon wat er zou gebeuren" -ForegroundColor White Write-Host "" Write-Host "Handmatige configuratie:" -ForegroundColor Cyan Write-Host "Group Policy: User Configuration > Administrative Templates > Microsoft PowerPoint 2016" -ForegroundColor White Write-Host "> PowerPoint Options > Security > Trust Center > File Block Settings" -ForegroundColor White Write-Host "> PowerPoint 97-2003 presentations, shows, templates and add-in files: Enabled: Open/Save blocked, use open policy" -ForegroundColor White } } catch { Write-Host "βœ— Onverwachte fout: $($_.Exception.Message)" -ForegroundColor Red exit 1 }

Risico zonder implementatie

Risico zonder implementatie
Medium: Medium: .ppt files = legacy vulnerabilities (20+ year old format).

Management Samenvatting

Block PowerPoint 97-2003 (.ppt) binary files. Force .pptx. Convert legacy files. Implementatie: 5-15 uur (includes migration).