Skip to content

Commit 81186b6

Browse files
committed
Add YAML linting configuration and update Sigma rule validation paths for Mimikatz detection
1 parent d62954e commit 81186b6

10 files changed

Lines changed: 26 additions & 9 deletions

.github/.yamllint

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# https://yamllint.readthedocs.io/en/latest/configuration.html
2+
extends: default
3+
4+
ignore:
5+
- .github/
6+
7+
rules:
8+
comments:
9+
require-starting-space: true
10+
min-spaces-from-content: 1
11+
comments-indentation: disable
12+
document-start: {present: false}
13+
empty-lines: {max: 2, max-start: 2, max-end: 2}
14+
indentation: {spaces: 4, indent-sequences: whatever}
15+
line-length: disable
16+
new-line-at-end-of-file: enable
17+
trailing-spaces: {}

.github/workflows/sigma-tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- name: yaml-lint
2121
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3
2222
with:
23+
config_file: .github/.yamllint
2324
strict: true # fail on warnings as well
2425

2526
test-sigma-logsource:

.github/workflows/sigma-validation.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ jobs:
1919
- name: Validate Sigma rules
2020
uses: SigmaHQ/sigma-rules-validator@66a5abe3fb6d13ac203ded42045580845c9c5534 # v1
2121
with:
22-
paths: |-
23-
**/sigma-rules/*.yaml
22+
paths: ./mimikatz-tool/sigma-rules
2423
schemaURL: https://raw.githubusercontent.com/SigmaHQ/sigma-specification/refs/tags/${{ env.SIGMA_RULE_SCHEMA_VERSION }}/json-schema/sigma-detection-rule-schema.json

mimikatz-tool/sigma-rules/lsa_authentication_package_change.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ detection:
2828
condition: selection_value
2929
falsepositives:
3030
- Approved authentication products, smart-card middleware, password filters, security software, or operating-system servicing
31-
level: high
31+
level: high

mimikatz-tool/sigma-rules/lsa_protection_registry_change.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ detection:
2525
condition: selection_value
2626
falsepositives:
2727
- Authorized security policy deployment, operating-system servicing, troubleshooting, or compatibility testing
28-
level: medium
28+
level: medium

mimikatz-tool/sigma-rules/mimikatz_names_or_commands.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ detection:
3333
falsepositives:
3434
- Authorized security testing, malware analysis, or training activity
3535
- Detection engineering that executes representative command lines in an isolated lab
36-
level: high
36+
level: high

mimikatz-tool/sigma-rules/mimikatz_powershell_content.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ detection:
2929
falsepositives:
3030
- Authorized security testing, malware analysis, or training activity
3131
- Documentation or detection content processed as PowerShell script text
32-
level: high
32+
level: high

mimikatz-tool/sigma-rules/script_host_access_to_lsass.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ detection:
3333
falsepositives:
3434
- Authorized security testing or administrative frameworks that intentionally inspect LSASS
3535
- Endpoint security or diagnostic tooling hosted by a listed script interpreter
36-
level: high
36+
level: high

mimikatz-tool/sigma-rules/sensitive_registry_hive_export.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ detection:
3333
condition: selection_image and selection_action and selection_hive
3434
falsepositives:
3535
- Authorized backup, recovery, migration, forensic, or endpoint-management activity
36-
level: high
36+
level: high

mimikatz-tool/sigma-rules/user_writable_dll_loaded_by_lsass.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ detection:
3131
falsepositives:
3232
- Approved authentication, identity, or endpoint-security software installed from a listed path
3333
- Authorized security testing or support activity
34-
level: high
34+
level: high

0 commit comments

Comments
 (0)