Detection rules › Sigma

ADCS Certificate Template Configuration Vulnerability

Status
test
Severity
low
Log source
product windows, service security
Author
Orlinum , BlueDefenZer
Source
github.com/SigmaHQ/sigma

Detects certificate creation with template allowing risk permission subject

Known false positives

  • Administrator activity
  • Proxy SSL certificate with subject modification
  • Smart card enrollement

MITRE ATT&CK coverage

TacticTechniques
Privilege EscalationNo specific technique
Credential AccessNo specific technique

Telemetry coverage

Rule body

title: ADCS Certificate Template Configuration Vulnerability
id: 5ee3a654-372f-11ec-8d3d-0242ac130003
status: test
description: Detects certificate creation with template allowing risk permission subject
references:
    - https://www.specterops.io/assets/resources/Certified_Pre-Owned.pdf
author: Orlinum , BlueDefenZer
date: 2021-11-17
modified: 2022-12-25
tags:
    - attack.privilege-escalation
    - attack.credential-access
logsource:
    product: windows
    service: security
    definition: Certificate services loaded a template would trigger event ID 4898 and certificate Services template was updated would trigger event ID 4899. A risk permission seems to be coming if template contain specific flag.
detection:
    selection1:
        EventID: 4898
        TemplateContent|contains: 'CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT'
    selection2:
        EventID: 4899
        NewTemplateContent|contains: 'CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT'
    condition: selection1 or selection2
falsepositives:
    - Administrator activity
    - Proxy SSL certificate with subject modification
    - Smart card enrollement
level: low

Stages and Predicates

Stage 0: condition

selection1 or selection2

Stage 1: selection1

selection1:
    EventID: 4898
    TemplateContent|contains: 'CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT'

Stage 2: selection2

selection2:
    EventID: 4899
    NewTemplateContent|contains: 'CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
NewTemplateContentmatch
  • CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT corpus 2 (sigma 2)
field:"NewTemplateContent" kind:match value:"CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT"
TemplateContentmatch
  • CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT corpus 2 (sigma 2)
field:"TemplateContent" kind:match value:"CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT"