Exploit database

GH-3e4cf1ab935ddae16acad30f26f35cb7

jockerjml/cve-2026-44963-veeam-checker

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-44963

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files2

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

remediation/hardening.ps1

PowerShell · 6,459 bytes
# CVE-2026-44963 — Veeam Backup Server Hardening Script
# SentinelX Security Research | github.com/SentinelXofficial
#
# Jalankan SETELAH patch diterapkan ke versi 12.3.2.4854
# Harus dijalankan sebagai Administrator di Veeam Server
#
# Usage:
# .\hardening.ps1
# .\hardening.ps1 -DryRun # Preview changes tanpa apply
# .\hardening.ps1 -Verbose

param(
 [switch]$DryRun,
 [switch]$Verbose
)

#
$Banner = @"
==========================================================
 CVE-2026-44963 - Veeam Backup Server Hardening Script
 SentinelX | github.com/SentinelXofficial
==========================================================
"@

Write-Host $Banner -ForegroundColor Cyan

if ($DryRun) {
 Write-Host "[DRY RUN] No changes will be applied.`n" -ForegroundColor Yellow
}

$Results = @()
$ErrorCount = 0
$SuccessCount = 0

function Log-Step {
 param($Message, $Status, $Detail = "")
 $color = switch ($Status) {
 "OK" { "Green" }
 "WARN" { "Yellow" }
 "FAIL" { "Red" }
 "INFO" { "Cyan" }
 }
 Write-Host " [$Status] $Message" -ForegroundColor $color
 if ($Detail -and $Verbose) {
 Write-Host " $Detail" -ForegroundColor Gray
 }
 $script:Results += [PSCustomObject]@{
 Step = $Message
 Status = $Status
 Detail = $Detail
 }
}

#
# 1. Verify patch is applied before hardening
#
Write-Host "`n[1] Verifying patch status..." -ForegroundColor White

try {
 $veeamKey = "HKLM:\SOFTWARE\Veeam\Veeam Backup and Replication"
 $version = (Get-ItemProperty -Path $veeamKey -Name "ProductVersion" -ErrorAction Stop).ProductVersion
 $build = [int]($version -split '\.')[-1]

 if ($build -ge 4854) {
 Log-Step "Veeam version $version — Patch verified" "OK"
 } else {
 Log-Step "Veeam version $version — PATCH NOT APPLIED (build $build < 4854)" "FAIL" `
 "Apply patch from https://www.veeam.com/kb4696 before running hardening"
 Write-Host "`n[!] Hardening aborted — apply patch first." -ForegroundColor Red
 exit 1
 }
} catch {
 Log-Step "Could not read Veeam registry key — verify install path" "WARN" $_
}

#
# 2. Windows Firewall — restrict Veeam ports
#
Write-Host "`n[2] Configuring Windows Firewall rules..." -ForegroundColor White

# Veeam ports that should only be accessible from specific management IPs
$VeeamPorts = @(9392, 9393, 9394, 9395, 9396, 9397, 9398, 9401, 9419)

# Customize: Set to your management/admin subnet
$AllowedSubnet = "10.0.0.0/8"

foreach ($port in $VeeamPorts) {
 $ruleName = "CVE-2026-44963-Restrict-Port-$port"

 # Remove existing rule if any
 $existing = Get-NetFirewallRule -DisplayName $ruleName -ErrorAction SilentlyContinue
 if ($existing) {
 if (-not $DryRun) {
 Remove-NetFirewallRule -DisplayName $ruleName -ErrorAction SilentlyContinue
 }
 }

 if (-not $DryRun) {
 try {
 New-NetFirewallRule -DisplayName $ruleName `
 -Direction Inbound `
 -Protocol TCP `
 -LocalPort $port `
 -RemoteAddress $AllowedSubnet `
 -Action Allow `
 -Profile Any `
 -Enabled True `
 -ErrorAction Stop | Out-Null
 Log-Step "Restricted port $port to $AllowedSubnet" "OK"
 $SuccessCount++
 } catch {
 Log-Step "Failed to set firewall rule for port $port" "FAIL" $_
 $ErrorCount++
 }
 } else {
 Log-Step "[DRY RUN] Would restrict port $port to $AllowedSubnet" "INFO"
 }
}

#
# 3. Disable unnecessary Veeam services
#
Write-Host "`n[3] Reviewing Veeam services..." -ForegroundColor White

$VeeamServices = Get-Service -Name "Veeam*" -ErrorAction SilentlyContinue

foreach ($svc in $VeeamServices) {
 Log-Step "Service: $($svc.Name) — Status: $($svc.Status)" "INFO"
}

# Ensure critical services are running
$RequiredServices = @("VeeamBackupSvc", "VeeamBrokerSvc", "VeeamCatalogSvc")
foreach ($svcName in $RequiredServices) {
 $svc = Get-Service -Name $svcName -ErrorAction SilentlyContinue
 if ($svc -and $svc.Status -ne "Running") {
 if (-not $DryRun) {
 Start-Service -Name $svcName -ErrorAction SilentlyContinue
 }
 Log-Step "Started service: $svcName" "OK"
 }
}

#
# 4. Enable Veeam enhanced logging
#
Write-Host "`n[4] Enabling enhanced audit logging..." -ForegroundColor White

$LogRegPath = "HKLM:\SOFTWARE\Veeam\Veeam Backup and Replication"

$LogSettings = @{
 "LogLevel" = 4 # Maximum verbosity
 "EnableAuditLogging" = 1
}

foreach ($key in $LogSettings.Keys) {
 if (-not $DryRun) {
 try {
 Set-ItemProperty -Path $LogRegPath -Name $key -Value $LogSettings[$key] -ErrorAction Stop
 Log-Step "Set $key = $($LogSettings[$key])" "OK"
 $SuccessCount++
 } catch {
 Log-Step "Could not set $key" "WARN" $_
 }
 } else {
 Log-Step "[DRY RUN] Would set $key = $($LogSettings[$key])" "INFO"
 }
}

#
# 5. Windows Audit Policy — track auth & process creation
#
Write-Host "`n[5] Configuring audit policies..." -ForegroundColor White

$AuditPolicies = @(
 "Logon/Logoff,Logon,Success,Failure",
 "Account Logon,Credential Validation,Success,Failure",
 "Detailed Tracking,Process Creation,Success",
 "Object Access,File System,Success,Failure"
)

foreach ($policy in $AuditPolicies) {
 $parts = $policy -split ','
 if (-not $DryRun) {
 try {
 & auditpol /set /subcategory:"$($parts[1].Trim())" `
 /success:$($parts[2].Trim()) /failure:$($parts[3].Trim()) | Out-Null
 Log-Step "Audit: $($parts[1].Trim())" "OK"
 $SuccessCount++
 } catch {
 Log-Step "Failed to set audit policy: $($parts[1].Trim())" "WARN"
 }
 } else {
 Log-Step "[DRY RUN] Would enable audit: $($parts[1].Trim())" "INFO"
 }
}

#
# 6. Check domain join status (vuln only affects domain-joined)
#
Write-Host "`n[6] Checking domain join status..." -ForegroundColor White

$csInfo = Get-WmiObject Win32_ComputerSystem
if ($csInfo.PartOfDomain) {
 Log-Step "Server is domain-joined (Domain: $($csInfo.Domain))" "WARN" `
 "CVE-2026-44963 only affects domain-joined servers. Ensure patch is applied."
} else {
 Log-Step "Server is NOT domain-joined — reduced exposure" "OK"
}

#
# Summary
#
Write-Host "`n`n=========================================="
Write-Host " HARDENING SUMMARY" -ForegroundColor Cyan
Write-Host "=========================================="
Write-Host " Completed : $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')"
Write-Host " Success : $SuccessCount steps" -ForegroundColor Green
Write-Host " Errors : $ErrorCount steps" -ForegroundColor $(if ($ErrorCount -gt 0) { "Red" } else { "Green" })
Write-Host " Advisory : https://www.veeam.com/kb4869"
Write-Host "=========================================="

if (-not $DryRun) {
 Write-Host "`n[!] Recommended: Restart Veeam services to apply log settings" -ForegroundColor Yellow
 Write-Host " Restart-Service -Name Veeam* -Force"
}