mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-03 01:03:34 +08:00
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
id: windows-system-restore-not-configured
|
|
|
|
info:
|
|
name: System Restore Not Configured
|
|
author: princechaddha
|
|
severity: medium
|
|
description: Checks if System Restore is not configured, which can prevent recovery from system issues.
|
|
impact: |
|
|
Without System Restore, recovering from system failures may require more drastic measures like reinstallation.
|
|
remediation: |
|
|
Configure System Restore to ensure you can roll back changes if needed.
|
|
tags: windows,code,windows-audit
|
|
|
|
self-contained: true
|
|
|
|
code:
|
|
- pre-condition: |
|
|
IsWindows();
|
|
engine:
|
|
- powershell
|
|
- powershell.exe
|
|
args:
|
|
- -ExecutionPolicy
|
|
- Bypass
|
|
pattern: "*.ps1"
|
|
source: |
|
|
$restorePoints = Get-ComputerRestorePoint -ErrorAction SilentlyContinue; if ($null -eq $restorePoints) { Write-Output "SystemRestoreUnavailable" }
|
|
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "SystemRestoreUnavailable"
|
|
# digest: 4b0a00483046022100ef9267888a39da21a4243bc8972c11ab0e4d927192fa0f1a159275a3da6654ae02210092a82b1be5204f7115b00cbfcd0db78a3e3d20b21dfe4484d22a90bb40f61e8d:922c64590222798bb761d5b6d8e72950 |