Post

Sigma

Sigma

Example Rule

Below is an example Sigma rule to detect file or folder permission changes:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
title: File or Folder Permissions Change
id: 74c01ace-0152-4094-8ae2-6fd776dd43e5
status: test
description: Detects file and folder permission changes.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1222.002/T1222.002.md
author: Jakob Weinzettl, oscd.community
date: 2019/09/23
modified: 2021/11/27
tags:
    - attack.defense_evasion
    - attack.t1222.002
logsource:
    product: linux
    service: auditd
detection:
    selection:
        type: 'EXECVE'
        a0|contains:
            - 'chmod'
            - 'chown'
    condition: selection
falsepositives:
    - User interacting with files permissions (normal/daily behaviour).
level: low

Convert Sigma Rules to Splunk

Follow these steps to convert Sigma rules for use in Splunk:

1
2
3
4
5
# install the Sigma tools
pip3 install sigmatools

# convert a Sigma rule to Splunk format
sigmac -t splunk -c splunk-windows rules/windows/sysmon/sysmon_susp_image_load.yml

Custom Field Mapping

Define custom field mappings to adapt Sigma rules to your environment:

1
2
3
# example field mapping
fieldmappings:
  EventID: EventCode

Sources

This post is licensed under CC BY 4.0 by the author.