Latest alertCVE-2018-11776 in Apache Struts Confirmed Exploited in the WildRead
Search all news in the platform

Detection rule

Suspicious Kerberos Ticket Request via PowerShell Script - ScriptBlock

HighTest-data validatedSigmaHQ (community)T1558.003

Overview

Detects PowerShell scripts that utilize native PowerShell Identity modules to request Kerberos tickets. This behavior is typically seen during a Kerberoasting or silver ticket attack. A TGS request is issued by the KerberosRequestorSecurityToken constructor, resulting tickets are cached in LSA and become extractable by other tools later on.

Rule id
a861d835-af37-4930-bcd6-5b178bfb54df
ATT&CK techniques
T1558.003 Steal or Forge Kerberos Tickets: Kerberoasting
Severity
High
Confidence
Low
Origin
SigmaHQ (community)
SigmaHQ status
test
Used in defense packs
Akira

Validation

  1. ExperimentalSyntax checked only. Not yet tested on events.
  2. Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
  3. SIEM-validatedRun in a real SIEM, with a recorded result.

1 of 1 positive test events matched; 1 of 1 near-miss events were correctly ignored. Community rule reused unmodified from SigmaHQ. OffSet7 converted it and tested it on synthetic events.

Detection logic and queries

Queries are shown exactly as generated. Test them in your environment before you deploy them.

Sigma

Sigma (YAML) · a861d835-af37-4930-bcd6-5b178bfb54df

Download
title: Suspicious Kerberos Ticket Request via PowerShell Script - ScriptBlock
id: a861d835-af37-4930-bcd6-5b178bfb54df
related:
    - id: caa9a802-8bd8-4b9e-a5cd-4d6221670219
      type: similar
status: test
description: |
    Detects PowerShell scripts that utilize native PowerShell Identity modules to request Kerberos tickets.
    This behavior is typically seen during a Kerberoasting or silver ticket attack. A TGS request is issued by
    the KerberosRequestorSecurityToken constructor, resulting tickets are cached in LSA and become
    extractable by other tools later on.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1558.003/T1558.003.md#atomic-test-4---request-a-single-ticket-via-powershell
    - https://learn.microsoft.com/en-us/dotnet/api/system.identitymodel.tokens.kerberosrequestorsecuritytoken?view=netframework-4.8.1
author: frack113
date: 2021-12-28
modified: 2026-09-14
tags:
    - attack.credential-access
    - attack.t1558.003
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains: 'System.IdentityModel.Tokens.KerberosRequestorSecurityToken'
    condition: selection
falsepositives:
    - Legitimate Kerberos authentication development and troubleshooting scripts
level: high
regression_tests_path: regression_data/rules/windows/powershell/powershell_script/posh_ps_request_kerberos_ticket/info.yml

QRadar AQL

IBM QRadar AQL (hunting query)Hunting query

Hunting search for the Log Activity tab or the API. It is not a QRadar rule.

AQL search for the Log Activity tab or the API. It is NOT a deployable QRadar rule: real-time detection in QRadar is a CRE (Custom Rule Engine) rule, for which this build only writes a design specification (qradar_cre).

SELECT * FROM events WHERE devicetype=12 AND LOWER(Message) LIKE '%system.identitymodel.tokens.kerberosrequestorsecuritytoken%'

QRadar CRE

Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.

Rule name
OffSet7: Suspicious Kerberos Ticket Request via PowerShell Script - ScriptBlock
Rule type
Event rule (Local)
Log source types
Microsoft Windows Security Event Log DSM collecting Microsoft-Windows-PowerShell/Operational 4104 (Script Block Logging)

Building blocks

  • BB:OffSet7:Suspicious Kerberos Ticket Request via PowerShel:selection (match)
    All test lines must match (AND).
    • Message contains: System.IdentityModel.Tokens.KerberosRequestorSecurityToken

Main rule, option A (building blocks)

  1. when the event(s) were detected by one or more of these log source types: Microsoft Windows Security Event Log DSM collecting Microsoft-Windows-PowerShell/Operational 4104 (Script Block Logging)
  2. when an event matches the condition built from these building blocks: BB:OffSet7:Suspicious Kerberos Ticket Request via PowerShel:selection

Main rule, option B (AQL filter test)

  1. when the event matches this AQL filter query: devicetype=12 AND LOWER(Message) LIKE '%system.identitymodel.tokens.kerberosrequestorsecuritytoken%'

Rule response

  • Severity 7, credibility 6, relevance 7
  • Ensure the detected event is part of an offense; index offense on Log Source (host) and annotate with the rule title and OffSet7 rule id
  • Respond no more than once per 30 minutes per Log Source (tune per environment)

Limitations

  • QRadar AQL LIKE / CRE string tests are case-sensitive unless the property is lower-cased; the AQL option uses LOWER() where the backend applied it.

Splunk

Splunk SPLSearch

Search for Splunk with Windows/Sysmon field names. A scheduled search or ES correlation search also needs a schedule, time range, throttling and an adaptive response, set in your environment.

ScriptBlockText="*System.IdentityModel.Tokens.KerberosRequestorSecurityToken*"

Splunk savedsearches.conf stanzaScheduled search template

Template stanza. Review schedule, alert actions and index/sourcetype for your environment before enabling.

[default]
dispatch.earliest_time = -30d
dispatch.latest_time = now

[Suspicious Kerberos Ticket Request via PowerShell Script - ScriptBlock]
description = Detects PowerShell scripts that utilize native PowerShell Identity modules to request Kerberos tickets.This behavior is typically seen during a Kerberoasting or silver ticket attack. A TGS request is issued bythe KerberosRequestorSecurityToken constructor, resulting tickets are cached in LSA and becomeextractable by other tools later on.
search = ScriptBlockText="*System.IdentityModel.Tokens.KerberosRequestorSecurityToken*"

Elastic

Elastic Lucene (ECS)Hunting query

Lucene query over ECS fields (Winlogbeat/Elastic Agent Windows mappings). A detection rule also needs an index pattern, schedule and actions.

powershell.file.script_block_text:*System.IdentityModel.Tokens.KerberosRequestorSecurityToken*

Elastic EQL (ECS)Hunting query

EQL query over ECS fields. Usable in an Elastic Security EQL rule after review; index pattern and schedule are set per environment.

any where powershell.file.script_block_text:"*System.IdentityModel.Tokens.KerberosRequestorSecurityToken*"

Elastic ES|QL (ECS)Hunting query

ES|QL query over ECS fields; the FROM clause uses * and must be narrowed to your indices.

from * metadata _id, _index, _version | where powershell.file.script_block_text like "*System.IdentityModel.Tokens.KerberosRequestorSecurityToken*"

No working conversion: Microsoft Sentinel KQL (ASIM) (No ASIM parser/table for this log source in the stock pipeline (see native draft on the Event table where one exists).); Microsoft Defender XDR KQL (Defender XDR advanced hunting has no PowerShell script-block/module text.)

Required telemetry

Log source
product: windows · category: ps_script · definition: Requirements: Script Block Logging must be enabled
Fields used
ScriptBlockText

False positives

  • Legitimate Kerberos authentication development and troubleshooting scripts

Investigation and response

No OffSet7 investigation guidance has been written for this rule yet. Start from the false positives above and the ATT&CK technique pages.

References

Author and attribution

Author
frack113
Source
SigmaHQ · rules/windows/powershell/powershell_script/posh_ps_request_kerberos_ticket.yml
Upstream commit
9688134317a2
Licence
Detection Rule License (DRL) 1.1

Version history

  1. Version 1Imported from SigmaHQ
  2. OffSet7 build · SigmaHQ 9688134317a2