← Back to SOC feed Coverage →

Failed Logon From Public IP

sigma MEDIUM SigmaHQ
T1078T1190T1133
imAuthentication
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at SigmaHQ →
Retrieved: 2026-03-25T02:50:08Z · Confidence: medium

Hunt Hypothesis

Adversaries may attempt to brute-force access to systems using public IP addresses to bypass network segmentation or misconfigured security controls. SOC teams should proactively hunt for this behavior to identify potential credential stuffing or reconnaissance efforts targeting Azure environments.

Detection Rule

Sigma (Original)

title: Failed Logon From Public IP
id: f88e112a-21aa-44bd-9b01-6ee2a2bbbed1
status: test
description: Detects a failed logon attempt from a public IP. A login from a public IP can indicate a misconfigured firewall or network boundary.
references:
    - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4625
author: NVISO
date: 2020-05-06
modified: 2024-03-11
tags:
    - attack.privilege-escalation
    - attack.defense-evasion
    - attack.initial-access
    - attack.persistence
    - attack.t1078
    - attack.t1190
    - attack.t1133
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 4625
    filter_main_ip_unknown:
        IpAddress|contains: '-'
    filter_main_local_ranges:
        IpAddress|cidr:
            - '::1/128'  # IPv6 loopback
            - '10.0.0.0/8'
            - '127.0.0.0/8'
            - '172.16.0.0/12'
            - '192.168.0.0/16'
            - '169.254.0.0/16'
            - 'fc00::/7'  # IPv6 private addresses
            - 'fe80::/10'  # IPv6 link-local addresses
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Legitimate logon attempts over the internet
    - IPv4-to-IPv6 mapped IPs
level: medium

KQL (Azure Sentinel)

imAuthentication
| where (not(((SrcIpAddr contains "-" or TargetIpAddr contains "-") or ((ipv4_is_in_range(SrcIpAddr, "::1/128") or ipv4_is_in_range(SrcIpAddr, "10.0.0.0/8") or ipv4_is_in_range(SrcIpAddr, "127.0.0.0/8") or ipv4_is_in_range(SrcIpAddr, "172.16.0.0/12") or ipv4_is_in_range(SrcIpAddr, "192.168.0.0/16") or ipv4_is_in_range(SrcIpAddr, "169.254.0.0/16") or ipv4_is_in_range(SrcIpAddr, "fc00::/7") or ipv4_is_in_range(SrcIpAddr, "fe80::/10")) or (ipv4_is_in_range(TargetIpAddr, "::1/128") or ipv4_is_in_range(TargetIpAddr, "10.0.0.0/8") or ipv4_is_in_range(TargetIpAddr, "127.0.0.0/8") or ipv4_is_in_range(TargetIpAddr, "172.16.0.0/12") or ipv4_is_in_range(TargetIpAddr, "192.168.0.0/16") or ipv4_is_in_range(TargetIpAddr, "169.254.0.0/16") or ipv4_is_in_range(TargetIpAddr, "fc00::/7") or ipv4_is_in_range(TargetIpAddr, "fe80::/10"))))))

False Positive Guidance

MITRE ATT&CK Context

Original source: https://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/security/account_management/win_security_susp_failed_logon_source.yml