Detect VPN and Remote Access Credential Stuffing / Brute Force in Google Chronicle
Credential stuffing and brute force against VPN and remote access gateways is a persistent initial access vector for ransomware operators and nation-state actors. NCSC and CISA have repeatedly warned about Fortinet, Cisco ASA/FTD, Ivanti Connect Secure, Palo Alto GlobalProtect, and SonicWall VPN gateways being targeted. Attackers use credential databases from prior breaches and automated tools to test credentials at scale against VPN login portals. Unlike password spraying against M365, VPN credential stuffing often targets a single account at high frequency (bypassing account lockout through IP rotation) or uses a large pool of breached credential pairs. Volt Typhoon (China-nexus) specifically targets small business routers and VPN gateways for SOHO Living-off-the-Land access. Compromised VPN access gives attackers direct network access, bypassing perimeter defences entirely.
MITRE ATT&CK
- Tactic
- Credential Access Initial Access
YARA-L Detection Query
rule vpn_credential_stuffing {
meta:
author = "df00tech"
description = "Detects credential stuffing and brute force against VPN and remote access gateways"
severity = "HIGH"
priority = "HIGH"
reference = "NCSC Advisory AA24-060A, CISA Advisory AA23-347A"
threat_actors = "Volt Typhoon, LockBit affiliates"
mitre_attack_tactic = "Initial Access"
mitre_attack_technique = "T1110.004"
version = "1.0"
events:
$auth.metadata.event_type = "USER_LOGIN"
$auth.metadata.vendor_name = /(?i)(fortinet|cisco|palo alto|sonicwall|pulse secure|ivanti|juniper)/
(
$auth.security_result.action = "BLOCK"
OR $auth.security_result.action_details = /(?i)(fail|failure|invalid|reject|denied|bad.password)/
)
(
$auth.target.application = /(?i)(vpn|ssl.vpn|ipsec|remote.access)/
OR $auth.network.application_protocol = /(?i)(ipsec|ssl)/
)
$auth.principal.ip = $src_ip
$auth.target.ip = $dest_ip
match:
$src_ip, $dest_ip over 15m
outcome:
$failure_count = count_distinct($auth.metadata.id)
$unique_users = count_distinct($auth.target.user.userid)
$targeted_users = array_distinct($auth.target.user.userid)
$vendor = array_distinct($auth.metadata.vendor_name)
$severity_label = if($failure_count >= 100, "CRITICAL",
if($failure_count >= 50, "HIGH", "MEDIUM"))
condition:
#auth >= 20 or $unique_users >= 5
} YARA-L 2.0 rule for Google Chronicle SIEM that detects VPN credential stuffing by aggregating blocked or failed login events from VPN/remote access vendors over 15-minute windows. Triggers when 20+ failures originate from the same source IP targeting the same VPN gateway, or when 5+ unique user accounts are targeted.
Data Sources
Required Tables
False Positives & Tuning
- Scheduled network monitoring or SIEM health-check tools generating repeated authentication attempts
- VPN clients with cached stale credentials retrying automatically after password changes
- Corporate proxy or NAT devices making all remote workers appear as a single source IP, inflating per-IP failure counts
- Red team or penetration testing engagements against VPN infrastructure
- ISP CGNAT causing unrelated users to share an IP that collectively exceeds thresholds
Other platforms for THREAT-VPN-CredentialStuffing
Testing Methodology
Validate this detection against 1 adversary technique from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1VPN Credential Stuffing Simulation via Python Requests
Expected signal: VPN authentication logs record multiple failures (error: invalid credentials) for multiple usernames from the test IP within the 15-minute window.
Response Playbook
Triage
- Identify the source IP(s) of the credential stuffing. Check AbuseIPDB, Shodan, and VirusTotal for IP reputation. Stuffing typically originates from VPS hosts, botnets, or residential proxies.
- For successful VPN authentications following stuffing: immediately identify the account and their last legitimate authentication. When did they last successfully VPN in? From where? Has their device changed?
- Verify with the user: contact them via phone or secondary communication channel to confirm whether they initiated the VPN session.
- If VPN access is confirmed as unauthorised: immediately terminate the VPN session, disable the account, and assess what the attacker accessed during the session.
- Review VPN session logs for the compromised account: which resources did they access? Did they attempt lateral movement? Did they download or access sensitive files?
Containment
- Block the stuffing source IP(s) at the perimeter firewall and in the VPN gateway IP blacklist.
- For accounts with successful authentication from stuffing IP: terminate active sessions, disable account, reset password, require MFA re-enrollment.
- Implement VPN geo-blocking if your workforce is geographically concentrated — block VPN connections from countries where you have no employees.
- Deploy multi-factor authentication on the VPN if not already implemented — credential stuffing is ineffective against VPN MFA.
- Consider implementing client certificate authentication for VPN as an additional factor — certificates cannot be stuffed.
- Apply temporary IP rate limiting on the VPN login endpoint to slow credential stuffing operations.
Evidence Collection
- VPN authentication logs: all failure/success events for the incident window, including usernames and source IPs
- VPN session logs: resource access, traffic volume, duration for successful sessions from stuffing IPs
- Network flow logs from authenticated VPN session: lateral movement attempts, scanning activity
- Threat intelligence lookups for source IPs
Escalation Criteria
- !Successful VPN authentication from a credential-stuffed IP — immediate incident declaration
- !Post-VPN-access lateral movement indicators (net use, SMB connections to file servers, RDP to internal hosts)
- !VPN access to domain controllers or sensitive server segments
- !Data transfer volume significantly above baseline during the suspicious VPN session
Investigation Guide
Related Techniques
Forensic Artifacts
- >
VPN authentication logs with timestamps, usernames, source IPs, and success/failure - >
VPN session records: connected IP, session duration, traffic volume - >
RADIUS/LDAP authentication logs if VPN authentication is federated - >
Network flow logs from VPN-to-internal-network segment during suspicious session
Tuning Guidance
VPN credential stuffing thresholds depend heavily on your environment. For small organisations with few remote users, even 5 failures from a single source in 15 minutes may be anomalous. For large organisations with many remote workers, failure rates may be higher due to legitimate connection issues. The most actionable signal is the success-after-failure detection — tune the failure prerequisite threshold down for high-security environments (as low as 5 failures) since a successful authentication following any unusual failure pattern warrants investigation. Also consider alerting on VPN logins outside business hours for accounts that have never historically accessed VPN at those times.
Hunting Queries
Hunt for IPs with both high failure rates and at least one success against VPN authentication — the credential stuffing to compromise pattern across any time window.
CommonSecurityLog
| where TimeGenerated > ago(7d)
| where DeviceVendor has_any ("Fortinet", "Cisco", "Palo Alto", "SonicWall", "Ivanti")
| where Activity has_any ("vpn", "ssl-vpn", "remote-access")
| summarize
TotalAttempts=count(),
Failures=countif(Message has_any ("fail", "invalid", "reject")),
Successes=countif(Message has_any ("success", "connected", "established"))
by SourceIP, bin(TimeGenerated, 1d)
| where Failures >= 10 and Successes >= 1
| extend SuccessAfterFailure = (Successes >= 1 and Failures >= 10)
| sort by Failures desc index=network sourcetype IN ("fortigate:vpn","cisco:asa","panos:traffic")
(action="failure" OR action="success") type="vpn"
| eval result=if(action="success", "success", "failure")
| bin _time span=1d
| stats sum(eval(if(result="failure",1,0))) AS Failures,
sum(eval(if(result="success",1,0))) AS Successes
BY src_ip, _time
| where Failures >= 10 AND Successes >= 1
| sort - Failures Atomic Red Team Tests
Simulates a credential stuffing attack against a VPN web portal by iterating through a list of username/password pairs. This tests detection of high-volume authentication failures from a single source.
Command
python3 -c "
import requests, time
creds = [('[email protected]','password123'),('[email protected]','Spring2025!'),
('[email protected]','Admin123!'),('[email protected]','Welcome1!')]
for user, pwd in creds * 5:
r = requests.post('https://<VPN_PORTAL>/login', data={'username':user,'password':pwd}, verify=False)
print(f'{user}: {r.status_code}')
time.sleep(1)
" Expected Telemetry
VPN authentication logs record multiple failures (error: invalid credentials) for multiple usernames from the test IP within the 15-minute window.
Expected Detection
Alert fires when FailureCount >= 20 or UniqueUsers >= 5 within the 15-minute aggregation window.