Check for Misconfigured Telnet Service
ID: telnet-service-misconfiguration
Severity: high
Author: princechaddha
Tags: windows,telnet,service,misconfigured,code,windows-audit
Description
Section titled “Description”Checks if the Telnet service is misconfigured.
YAML Source
Section titled “YAML Source”id: telnet-service-misconfiguration
info: name: Check for Misconfigured Telnet Service author: princechaddha severity: high description: Checks if the Telnet service is misconfigured. impact: | Misconfigured Telnet service can lead to security vulnerabilities. remediation: | Ensure Telnet service is either properly configured or disabled. tags: windows,telnet,service,misconfigured,code,windows-audit
self-contained: true
code: - pre-condition: | IsWindows(); engine: - powershell.exe args: - -ExecutionPolicy - Bypass pattern: "*.ps1" source: | $service = Get-Service Telnet -ErrorAction SilentlyContinue; if ($service -and $service.Status -ne 'Running') { Write-Output 'Misconfigured' }
matchers: - type: word words: - "Misconfigured"# digest: 4b0a00483046022100ec5aa98b6d57d71190c8553d25c522a6710021a83381b77fbd757416346e77c0022100acb2bb7ff1e41904d838c0f985309e81af6e1831f2b22cc24364bcd75d6eec11: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/telnet-service-running.yaml"