AutoPlay Enabled for Removable Media
ID: autoplay-removable-media-enabled
Severity: medium
Author: princechaddha
Tags: windows,autoplay,removable-media,code,windows-audit
Description
Section titled “Description”Checks if AutoPlay is enabled for removable media, which can automatically execute malicious software.
YAML Source
Section titled “YAML Source”id: autoplay-removable-media-enabled
info: name: AutoPlay Enabled for Removable Media author: princechaddha severity: medium description: Checks if AutoPlay is enabled for removable media, which can automatically execute malicious software. impact: | Enabling AutoPlay may allow the automatic execution of malware from external devices, increasing the attack surface. remediation: | Disable AutoPlay for all removable media to mitigate potential security threats. tags: windows,autoplay,removable-media,code,windows-audit
self-contained: true
code: - pre-condition: | IsWindows(); engine: - powershell - powershell.exe args: - -ExecutionPolicy - Bypass pattern: "*.ps1" source: | Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers' -Name 'DisableAutoplay'
matchers: - type: word words: - "DisableAutoplay : 0"# digest: 4a0a00473045022100947f6dea98ccb89cabb2f070d43377c6b37010ff0d726546ed164bb2f38b5cea022025d13b95c10e846ef4c0d02ca47d01d48d6fac5cb7beb41e6d46e33111e4c411:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "code/windows/audit/autoplay-removable-media-enabled.yaml"