Skip to content

Commit 7afe5bf

Browse files
Merge branch 'master' into smb_winserver_remoteaddress_
2 parents 7fe16f5 + de97c83 commit 7afe5bf

41 files changed

Lines changed: 857 additions & 542 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/latest_archiver_output.md

Lines changed: 436 additions & 437 deletions
Large diffs are not rendered by default.

.github/workflows/sigma-test.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
- uses: actions/checkout@v4
4848
- name: yaml-lint
4949
uses: ibiqlik/action-yamllint@v3
50+
with:
51+
strict: true # fail on warnings as well
5052

5153
test-sigma-logsource:
5254
runs-on: ubuntu-latest
@@ -64,9 +66,28 @@ jobs:
6466
pip install PyYAML colorama
6567
python tests/test_logsource.py
6668
67-
test-sigma:
69+
test-sigma-legacy:
70+
runs-on: ubuntu-latest
71+
needs: yamllint
72+
steps:
73+
- uses: actions/checkout@v4
74+
with:
75+
submodules: true
76+
- name: Set up Python 3.11
77+
uses: actions/setup-python@v5
78+
with:
79+
python-version: 3.11
80+
- name: Install dependencies
81+
run: |
82+
pip install PyYAML colorama
83+
- name: Test Sigma Rules
84+
run: |
85+
pip install PyYAML colorama
86+
python tests/test_rules.py
87+
88+
sigma-check:
6889
runs-on: ubuntu-latest
69-
needs: test-sigma-logsource
90+
needs: yamllint
7091
steps:
7192
- uses: actions/checkout@v4
7293
with:
@@ -83,7 +104,3 @@ jobs:
83104
- name: Test Sigma Rule Syntax
84105
run: |
85106
sigma check --fail-on-error --fail-on-issues --validation-config tests/sigma_cli_conf.yml rules*
86-
- name: Test Sigma Rules
87-
run: |
88-
pip install PyYAML colorama
89-
python tests/test_rules.py

rules/cloud/azure/activity_logs/azure_app_credential_modification.yml renamed to deprecated/cloud/azure_app_credential_modification.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
title: Azure Application Credential Modified
22
id: cdeef967-f9a1-4375-90ee-6978c5f23974
3-
status: test
3+
status: deprecated
44
description: Identifies when a application credential is modified.
55
references:
66
- https://www.cloud-architekt.net/auditing-of-msi-and-service-principals/
77
author: Austin Songer @austinsonger
88
date: 2021-09-02
9-
modified: 2022-10-09
9+
modified: 2025-10-17
1010
tags:
1111
- attack.impact
1212
logsource:
1313
product: azure
1414
service: activitylogs
1515
detection:
1616
selection:
17-
properties.message: 'Update application - Certificates and secrets management'
17+
properties.message: 'Update application Certificates and secrets management'
1818
condition: selection
1919
falsepositives:
2020
- Application credential added may be performed by a system administrator.

rules/windows/image_load/image_load_office_dsparse_dll_load.yml renamed to deprecated/windows/image_load_office_dsparse_dll_load.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
title: Active Directory Parsing DLL Loaded Via Office Application
22
id: a2a3b925-7bb0-433b-b508-db9003263cc4
3-
status: test
3+
status: deprecated # In the AD Environment, dsparse.dll is loaded everytime an Office application is launched, so this rule is not useful.
44
description: Detects DSParse DLL being loaded by an Office Product
55
references:
66
- https://medium.com/threatpunter/detecting-adversary-tradecraft-with-image-load-event-logging-and-eql-8de93338c16
77
author: Antonlovesdnb
88
date: 2020-02-19
9-
modified: 2023-03-28
9+
modified: 2025-10-17
1010
tags:
1111
- attack.execution
1212
- attack.t1204.002

rules-emerging-threats/2017/Malware/WannaCry/proc_creation_win_malware_wannacry.yml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ status: test
44
description: Detects WannaCry ransomware activity
55
references:
66
- https://www.hybrid-analysis.com/sample/ed01ebfbc9eb5bbea545af4d01bf5f1071661840480439c6e5babe8e080e41aa?environmentId=100
7+
- https://x.com/nas_bench/status/1868639048484425963
78
author: Florian Roth (Nextron Systems), Tom U. @c_APT_ure (collection), oscd.community, Jonhnathan Ribeiro
89
date: 2019-01-16
9-
modified: 2023-02-03
10+
modified: 2025-10-18
1011
tags:
1112
- attack.lateral-movement
1213
- attack.t1210
@@ -22,7 +23,7 @@ logsource:
2223
category: process_creation
2324
product: windows
2425
detection:
25-
selection1:
26+
selection_img:
2627
- Image|endswith:
2728
- '\tasksche.exe'
2829
- '\mssecsvc.exe'
@@ -35,27 +36,9 @@ detection:
3536
- '\linuxnew.exe'
3637
- '\wannacry.exe'
3738
- Image|contains: 'WanaDecryptor'
38-
selection2:
39-
- CommandLine|contains|all:
40-
- 'icacls'
41-
- '/grant'
42-
- 'Everyone:F'
43-
- '/T'
44-
- '/C'
45-
- '/Q'
46-
- CommandLine|contains|all:
47-
- 'bcdedit'
48-
- '/set'
49-
- '{default}'
50-
- 'recoveryenabled'
51-
- 'no'
52-
- CommandLine|contains|all:
53-
- 'wbadmin'
54-
- 'delete'
55-
- 'catalog'
56-
- '-quiet'
57-
- CommandLine|contains: '@Please_Read_Me@.txt'
58-
condition: 1 of selection*
39+
selection_cmd:
40+
CommandLine|contains: '@Please_Read_Me@.txt'
41+
condition: 1 of selection_*
5942
fields:
6043
- CommandLine
6144
- ParentCommandLine
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
title: AWS IAM User with Console Access Login Without MFA
2+
id: 77caf516-34e5-4df9-b4db-20744fea0a60
3+
status: experimental
4+
description: |
5+
Identifies AWS IAM user authentication to the AWS Management Console without Multi-Factor Authentication (MFA).
6+
IAM users who can access the Console but haven't enabled MFA pose a security risk. These accounts could be compromised through credential stuffing, brute force attacks, or social engineering techniques.
7+
references:
8+
- https://securitylabs.datadoghq.com/cloud-security-atlas/vulnerabilities/iam-user-without-mfa/
9+
- https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-aws-console-sign-in-events.html
10+
author: Thuya@Hacktilizer
11+
date: 2025-10-18
12+
tags:
13+
- attack.initial-access
14+
- attack.t1078.004
15+
logsource:
16+
product: aws
17+
service: cloudtrail
18+
detection:
19+
selection:
20+
eventName: 'ConsoleLogin'
21+
additionalEventData.MFAUsed: 'NO'
22+
condition: selection
23+
falsepositives:
24+
- Unlikely
25+
level: medium

rules/linux/auditd/lnx_auditd_modify_system_firewall.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ description: |
1010
references:
1111
- https://www.trendmicro.com/en_us/research/22/c/cyclops-blink-sets-sights-on-asus-routers--.html
1212
- https://blog.aquasec.com/container-security-tnt-container-attack
13+
- https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/getting-started-with-nftables_configuring-and-managing-networking
1314
author: IAI
1415
date: 2023-03-06
16+
modified: 2025-10-12
1517
tags:
1618
- attack.t1562.004
1719
- attack.defense-evasion
@@ -31,6 +33,12 @@ detection:
3133
type: 'EXECVE'
3234
a0: 'ufw'
3335
a1|contains: 'delete'
36+
selection4:
37+
type: 'EXECVE'
38+
a0: 'nft'
39+
a1|contains:
40+
- 'delete'
41+
- 'flush'
3442
condition: 1 of selection*
3543
falsepositives:
3644
- Legitimate admin activity

rules/linux/auditd/lnx_auditd_susp_c2_commands.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,31 @@ tags:
1515
logsource:
1616
product: linux
1717
service: auditd
18+
definition: |
19+
Required auditd configuration:
20+
-w /usr/bin/wget -p x -k susp_activity
21+
-w /usr/bin/curl -p x -k susp_activity
22+
-w /usr/bin/base64 -p x -k susp_activity
23+
-w /bin/nc -p x -k susp_activity
24+
-w /bin/netcat -p x -k susp_activity
25+
-w /usr/bin/ncat -p x -k susp_activity
26+
-w /usr/bin/ss -p x -k susp_activity
27+
-w /usr/bin/netstat -p x -k susp_activity
28+
-w /usr/bin/ssh -p x -k susp_activity
29+
-w /usr/bin/scp -p x -k susp_activity
30+
-w /usr/bin/sftp -p x -k susp_activity
31+
-w /usr/bin/ftp -p x -k susp_activity
32+
-w /usr/bin/socat -p x -k susp_activity
33+
-w /usr/bin/wireshark -p x -k susp_activity
34+
-w /usr/bin/tshark -p x -k susp_activity
35+
-w /usr/bin/rawshark -p x -k susp_activity
36+
-w /usr/bin/rdesktop -p x -k susp_activity
37+
-w /usr/local/bin/rdesktop -p x -k susp_activity
38+
-w /usr/bin/wlfreerdp -p x -k susp_activity
39+
-w /usr/bin/xfreerdp -p x -k susp_activity
40+
-w /usr/local/bin/xfreerdp -p x -k susp_activity
41+
-w /usr/bin/nmap -p x -k susp_activity
42+
(via https://github.com/Neo23x0/auditd/blob/ddf2603dbc985f97538d102f13b4e4446b402bae/audit.rules#L336)
1843
detection:
1944
selection:
2045
key: 'susp_activity'

rules/network/zeek/zeek_smb_converted_win_susp_raccess_sensitive_fext.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ references:
99
- Internal Research
1010
author: Samir Bousseaden, @neu5ron
1111
date: 2020-04-02
12-
modified: 2021-11-27
12+
modified: 2025-10-17
1313
tags:
1414
- attack.collection
1515
logsource:
@@ -28,7 +28,7 @@ detection:
2828
- '.bak'
2929
- '.dmp'
3030
- '.kirbi'
31-
- '\groups.xml'
31+
# - '\groups.xml' # Commented out: groups.xml is accessed legitimately by Group Policy processing; high FP rate in enterprise environments
3232
- '.rdp'
3333
condition: selection
3434
falsepositives:

rules/windows/builtin/appxdeployment_server/win_appxdeployment_server_uncommon_package_locations.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ references:
99
- https://news.sophos.com/en-us/2021/11/11/bazarloader-call-me-back-attack-abuses-windows-10-apps-mechanism/
1010
author: Nasreddine Bencherchali (Nextron Systems)
1111
date: 2023-01-11
12-
modified: 2025-10-07
12+
modified: 2025-10-17
1313
tags:
1414
- attack.defense-evasion
1515
logsource:
@@ -35,6 +35,7 @@ detection:
3535
- 'https://statics.teams.cdn.office.net/'
3636
- 'microsoft.com' # Example: https://go.microsoft.com/fwlink/?linkid=2160968
3737
- 'https://installer.teams.static.microsoft/'
38+
- 'https://res.cdn.office.net' # Example https://res.cdn.office.net/nativehost/5mttl/installer/v2/1.2025.617.100/Microsoft.OutlookForWindows_x64.msix
3839
filter_optional_onedrive:
3940
Path|contains: 'AppData\Local\Microsoft\OneDrive\'
4041
condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*

0 commit comments

Comments
 (0)