Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line 239 registry formatting #179

Open
wants to merge 210 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
88e3a0b
squashed pull requests from original repo
Neo23x0 Jul 24, 2021
bdc3fd2
HiveNightmare detection
Neo23x0 Jul 24, 2021
ca2ccea
docs: give credits to the contributors of the squashed pull requests
Neo23x0 Jul 24, 2021
fe70b87
docs: better line breaks in credits
Neo23x0 Jul 24, 2021
23af2b4
PrinterNightmare coverage
Neo23x0 Jul 24, 2021
f893c68
feat: more PrinterNightmare coverage
Neo23x0 Jul 24, 2021
510e4ed
docs: info on extended coverage
Neo23x0 Jul 24, 2021
ca54b56
fix: accidental removal of section
Neo23x0 Jul 24, 2021
876166b
filter: OneDrive
Neo23x0 Jul 24, 2021
4aa2ad4
SeriousSAM CS Pattern
Neo23x0 Jul 24, 2021
fd602c9
First CI workflow draft
humpalum Jul 26, 2021
7b98675
fix: renamed main to master
humpalum Jul 26, 2021
fdb5396
chore: Added Eventcount Check Job
humpalum Jul 26, 2021
97b006c
chore: Added a simulated busy system
humpalum Jul 26, 2021
3530138
chore: Fixed Branchnames
humpalum Jul 26, 2021
df4e131
chore: Limiting Eventcount to Sysmon Events
humpalum Jul 27, 2021
94d37c3
docs: add maintainers
Neo23x0 Jul 27, 2021
17836fd
Merge branch 'master' of https://github.com/Neo23x0/sysmon-config
Neo23x0 Jul 27, 2021
77d3adb
ProcessAccess using CobaltStrike BOF NtOpenProcess
phantinuss Jul 28, 2021
0c24d1d
lsass process access with relevant access rights
phantinuss Jul 28, 2021
def0883
fix: use tab instead of space characters for indentation
phantinuss Jul 28, 2021
cd90b87
Merge pull request #2 from phantinuss/master
phantinuss Jul 28, 2021
a253184
docs: update README
Neo23x0 Jul 29, 2021
5370dcf
chore: full fledged sysmon config
Neo23x0 Jul 29, 2021
337be95
Merge branch 'master' of https://github.com/Neo23x0/sysmon-config
Neo23x0 Jul 29, 2021
df67cdc
chore: ignore .vscode
Neo23x0 Jul 30, 2021
2618b37
new CobaltStrike NamedPipe patterns
Neo23x0 Jul 30, 2021
454b72e
Merge pull request #3 from Neo23x0/config-devel
Neo23x0 Jul 30, 2021
743a054
Add Splunk exclusions per sysmon-modular
DustyMMiller Jul 30, 2021
9dcf3b2
Merge remote-tracking branch 'DustyMMiller/master' into SwiftOnSecuri…
Jul 30, 2021
e77d1e0
fix: Added Section comment line
humpalum Jul 30, 2021
c56d1ab
refactor: simplified expressions
Neo23x0 Jul 30, 2021
58d6cc5
Merge pull request #4 from Neo23x0/SwiftOnSecurity-PRs
humpalum Jul 30, 2021
cb81745
introduce new conditions to config and make use of 'not begin with' i…
phantinuss Aug 3, 2021
b8a1a30
Merge pull request #5 from phantinuss/master
phantinuss Aug 3, 2021
5e9e9d3
chore: User simulation in workflow
humpalum Aug 4, 2021
9af65f5
Merge pull request #6 from Neo23x0/humpalum-patch-1-1
humpalum Aug 4, 2021
40bdcfc
Add Rule for CobaltStrike BOF Injected AMSI Bypass
phantinuss Aug 4, 2021
e5f3ed3
replace spaces with tabs or duplicate spaces where needed
phantinuss Aug 4, 2021
20025a0
switch from spaces to tabs for the whole file
phantinuss Aug 4, 2021
72f2256
Merge pull request #7 from phantinuss/master
phantinuss Aug 4, 2021
035297a
chore: Removed Push Trigger from master
humpalum Aug 4, 2021
7c71dc5
Merge remote-tracking branch 'f-bader/patch-1' into SwiftOnSecurity-PRs
Aug 5, 2021
53c85f7
Merge pull request #8 from Neo23x0/humpalum-patch-2
humpalum Aug 5, 2021
efb7784
Merge pull request #9 from Neo23x0/SwiftOnSecurity-PRs
humpalum Aug 6, 2021
166d4e1
Collect LittleCorporal ProcessAccess events
phantinuss Aug 6, 2021
ce3e7bf
Merge pull request #10 from phantinuss/master
Neo23x0 Aug 6, 2021
a75e733
chore: Changed UserSim Download Path
humpalum Aug 12, 2021
edc0509
chore: Fix User-Sim execute
humpalum Aug 12, 2021
b818d1f
Merge pull request #11 from Neo23x0/humpalum-patch-2
phantinuss Aug 12, 2021
fadf537
fix: revert to schema version 4.50. Newer schema versions are put on …
phantinuss Aug 12, 2021
be79a15
fix: use correct list separator ;
phantinuss Aug 13, 2021
86397d2
generalise CobaltStrike BOF ProcessAccess Pattern
phantinuss Aug 13, 2021
289d5e9
Merge pull request #12 from phantinuss/master
phantinuss Aug 19, 2021
254932d
feat: efspotato named pipe
Neo23x0 Aug 23, 2021
ea785bc
Merge pull request #13 from Neo23x0/config-devel
Neo23x0 Aug 23, 2021
8f35001
fix: limit too low
Neo23x0 Aug 23, 2021
569e839
feat: more CobaltStrike malleable C2 profiles
phantinuss Aug 26, 2021
8335168
Merge pull request #14 from phantinuss/master
phantinuss Aug 26, 2021
ac2cc48
Liquid Snake Named Pipe
Neo23x0 Sep 1, 2021
5c2fdc2
Merge branch 'master' into config-devel
Neo23x0 Sep 1, 2021
d3dbadd
suspicious WMI Event Consumer creates named pipe
Neo23x0 Sep 1, 2021
169d300
docs: rule development note - sysmon config for lab
Neo23x0 Sep 1, 2021
ed59813
Merge pull request #15 from Neo23x0/config-devel
Neo23x0 Sep 1, 2021
a05925b
CVE-2021-40444 traces in registry
Neo23x0 Sep 10, 2021
a1e9a8f
Merge branch 'master' into config-devel
Neo23x0 Sep 10, 2021
06181b2
Merge pull request #16 from Neo23x0/config-devel
Neo23x0 Sep 10, 2021
d852990
Winword writes .cab / .inf files : CVE-2021-40444 detection
Neo23x0 Sep 10, 2021
0676604
Merge pull request #17 from Neo23x0/config-devel
Neo23x0 Sep 10, 2021
29c61dc
new ADS stream creation expressions
Neo23x0 Oct 4, 2021
0ea30fe
Merge branch 'master' into config-devel
Neo23x0 Oct 4, 2021
c327298
Merge pull request #18 from Neo23x0/config-devel
Neo23x0 Oct 4, 2021
a23727f
ConnectPipe for \MICROSOFT##WID\tsql\query
Neo23x0 Oct 11, 2021
3c249b9
refactor: moved section to bigger "include" block
Neo23x0 Oct 12, 2021
3b1f323
fix: position of PipeEvent
Neo23x0 Oct 12, 2021
0681c23
Update sysmonconfig-export.xml
phantinuss Oct 12, 2021
ae35ee4
Merge pull request #19 from Neo23x0/config-devel
phantinuss Oct 12, 2021
7166218
Update the Antivirus Tampering configuration, using broader condition
hieutt35 Oct 18, 2021
9f2e182
fix: typo
phantinuss Aug 30, 2021
7c0dc56
feat: mstsc connection history registry
phantinuss Oct 19, 2021
5674c3e
Merge pull request #20 from phantinuss/master
humpalum Oct 20, 2021
bac20c7
Merge github.com:SwiftOnSecurity/sysmon-config into SwiftOnSecurity-PRs
Oct 20, 2021
2fc084e
Merge https://github.com/hieuttmmo/sysmon-config into SwiftOnSecurity…
Oct 20, 2021
df8a9dc
Add T1003 file creation when using Mimikatz SSP
mdecrevoisier Oct 20, 2021
09044be
Fixed indentation
humpalum Oct 22, 2021
bb95139
Merge pull request #22 from mdecrevoisier/patch-1
humpalum Oct 22, 2021
0052847
Merge pull request #21 from Neo23x0/SwiftOnSecurity-PRs
phantinuss Oct 26, 2021
423ddf1
more malicious named pipe names
Neo23x0 Oct 29, 2021
656c64a
Merge pull request #23 from Neo23x0/config-devel
Neo23x0 Oct 29, 2021
13cabb9
Kirbi file creation
Neo23x0 Nov 8, 2021
4cd88a0
Merge pull request #24 from Neo23x0/config-devel
Neo23x0 Nov 9, 2021
b7f0605
fix command line
conitrade-as Apr 7, 2022
fadf11d
update Azure OMS/MMA Agent exclusions
conitrade-as Apr 7, 2022
439ff66
add PRTG exclusions
conitrade-as Apr 7, 2022
dbe450d
Merge pull request #25 from conitrade/hotfix/monitoring-agents
Neo23x0 Jul 7, 2022
04bf25b
Update README.md
Neo23x0 Aug 17, 2022
23d19f0
feat: new sysmon configs - trace, block
Neo23x0 Aug 17, 2022
c134c2b
docs: configs
Neo23x0 Aug 17, 2022
3b4e2f5
fix: updated placeholders
Neo23x0 Aug 17, 2022
d746b57
new block rules
Neo23x0 Aug 17, 2022
cc1683c
Last change
Neo23x0 Aug 17, 2022
5e79e00
more office apps and file extensions
phantinuss Aug 17, 2022
9ae9498
new hacktool imphashes
Neo23x0 Aug 17, 2022
fd25520
Merge pull request #26 from phantinuss/master
phantinuss Aug 17, 2022
16edc45
fix: .NET imphash
Neo23x0 Aug 17, 2022
9993f89
Merge branch 'master' of https://github.com/Neo23x0/sysmon-config
Neo23x0 Aug 17, 2022
b709916
end with extensions
Neo23x0 Aug 17, 2022
36e2821
Update sysmonconfig-trace.xml
nasbench Aug 17, 2022
79c75dc
docs: readme
Neo23x0 Aug 17, 2022
aaeae94
Update sysmonconfig-export.xml
nasbench Aug 17, 2022
3e13b8b
Update sysmonconfig-export-block.xml
nasbench Aug 17, 2022
6f49ce0
updates on block list
Neo23x0 Aug 17, 2022
f9aa1ab
chore: add tests for trace and block config
phantinuss Aug 17, 2022
051230b
chore: increase event count for trace logs
phantinuss Aug 17, 2022
ccb7fc1
chore: spacing
phantinuss Aug 18, 2022
4a8d689
chore: rename msbuild-default back to msbuild
phantinuss Aug 18, 2022
2595f79
Merge pull request #29 from phantinuss/master
phantinuss Aug 18, 2022
50e6b0c
Merge pull request #28 from nasbench/master
phantinuss Aug 18, 2022
01d2ab3
feat: adding certutil.exe to the blocklist
Neo23x0 Aug 18, 2022
ab94a0b
more LOLBINS
Neo23x0 Aug 18, 2022
5792811
Merge branch 'master' of https://github.com/Neo23x0/sysmon-config
Neo23x0 Aug 18, 2022
63782a9
Update sysmonconfig-export-block.xml
nasbench Aug 18, 2022
7684a0a
Merge branch 'Neo23x0:master' into master
nasbench Aug 18, 2022
eadb378
Update sysmonconfig-trace.xml
nasbench Aug 18, 2022
8ce36b4
Update sysmonconfig-export-block.xml
nasbench Aug 18, 2022
45b2323
Update sysmonconfig-export-block.xml
nasbench Aug 18, 2022
3fb8937
Merge pull request #30 from nasbench/master
Neo23x0 Aug 18, 2022
665de6f
feat: progs that should never drop exes
Neo23x0 Aug 18, 2022
d25bce4
Merge branch 'master' of https://github.com/Neo23x0/sysmon-config
Neo23x0 Aug 18, 2022
73ca900
Sliver stagers
Neo23x0 Aug 19, 2022
8b5e899
Update sysmonconfig-export-block.xml
nasbench Aug 19, 2022
3ae0fce
Dumpert Imphashes
Neo23x0 Aug 21, 2022
3f808d9
docs: README updates
Neo23x0 Aug 21, 2022
48b06e9
Merge pull request #32 from nasbench/master
Neo23x0 Aug 22, 2022
63c1b1b
fix: remove duplicate
phantinuss Aug 22, 2022
aebac3e
Merge pull request #33 from phantinuss/master
phantinuss Aug 22, 2022
9350818
refactor: disable expand.exe block
Neo23x0 Aug 22, 2022
ffd14ac
Merge branch 'master' of https://github.com/Neo23x0/sysmon-config
Neo23x0 Aug 22, 2022
71b62ae
block: SysmonEnte downloads
Neo23x0 Sep 7, 2022
bb1b414
SysmonQuiet coverage
Neo23x0 Sep 7, 2022
e274ab6
SharpEvtMute Hook and Filename IOCs
Neo23x0 Sep 7, 2022
af1f439
SharpEvtMute
Neo23x0 Sep 15, 2022
6262d68
feat: more Cobalt Strike named pipe patterns
Neo23x0 Sep 29, 2022
d2e5c3d
refactor: reworked file write section
Neo23x0 Oct 4, 2022
6a904c1
fix: many events with standard pipe
Neo23x0 Oct 4, 2022
f6e9b8f
feat: block JuicyPotatoNG downloads
Neo23x0 Oct 6, 2022
abd7e1f
Update sysmonconfig-export-block.xml
stevenhardey Oct 8, 2022
71f8acd
Merge pull request #35 from stevenhardey/stevenhardey-patch-1
phantinuss Oct 10, 2022
452d448
chore: mirror changes from PR #35
phantinuss Oct 10, 2022
e600a79
Merge pull request #36 from phantinuss/master
phantinuss Oct 10, 2022
2af5f4e
fix: remove unnecessary exclude block for FileDelete
phantinuss Oct 21, 2022
647ac14
Merge pull request #37 from phantinuss/master
phantinuss Oct 21, 2022
c90917b
Revert "fix: many events with standard pipe"
phantinuss Oct 21, 2022
062473c
Merge pull request #38 from phantinuss/master
phantinuss Oct 21, 2022
13588c0
fix: fixed pipename beginswith clauses
pH-T Oct 21, 2022
fd6830b
feat: new havoc c2 pipenames
pH-T Oct 21, 2022
7b41eb3
Apply suggestions from code review
pH-T Oct 24, 2022
937ac18
Merge pull request #39 from pH-T/master
phantinuss Oct 24, 2022
2c6ce88
Update Config
nasbench Oct 26, 2022
f67d8d3
Add missing backslashes in "end with"
nasbench Oct 26, 2022
a7e2293
Merge pull request #40 from nasbench/master
phantinuss Oct 27, 2022
834388e
feat: include SysmonEOP.exe blocks
Neo23x0 Dec 4, 2022
a10e454
Merge branch 'master' of https://github.com/Neo23x0/sysmon-config
Neo23x0 Dec 4, 2022
47aed63
Exclude aurora agent
frack113 Jan 13, 2023
f78b00c
Exclude aurora agent x86
frack113 Jan 13, 2023
c2e2f13
Exclude aurora agent path
frack113 Jan 13, 2023
2dff95f
chore: remove boilerplate text (1)
phantinuss Jan 13, 2023
5e7c317
chore: remove boilerplate text (2)
phantinuss Jan 13, 2023
ee64e18
Apply suggestions from code review
frack113 Jan 13, 2023
4348699
chore: workflow: switch python3 with nodejs installer as test data
phantinuss Jan 13, 2023
a3014ed
chore: workflow: update to node16
phantinuss Jan 13, 2023
e5c291e
Merge pull request #42 from phantinuss/master
phantinuss Jan 13, 2023
ddc07ee
Exclude aurora agent
frack113 Jan 13, 2023
120c110
Exclude aurora agent x86
frack113 Jan 13, 2023
b427c6c
Exclude aurora agent path
frack113 Jan 13, 2023
353f141
chore: remove boilerplate text (1)
phantinuss Jan 13, 2023
ccd5e5a
chore: remove boilerplate text (2)
phantinuss Jan 13, 2023
935685e
Apply suggestions from code review
frack113 Jan 13, 2023
e66beb4
Merge branch 'exclude_aurora' of github.com:frack113/sysmon-config in…
frack113 Jan 13, 2023
7f75f64
Merge pull request #41 from frack113/exclude_aurora
phantinuss Jan 13, 2023
9e25076
feat: add onenote app to blocklist
nasbench Feb 9, 2023
86eb8c9
Merge pull request #44 from nasbench/add-onenote-blocklist
phantinuss Feb 10, 2023
ae41115
Fixes #48
nasbench Apr 12, 2023
1276443
Fixes #49
nasbench Apr 12, 2023
0dc42ba
Fixes #43
nasbench Apr 12, 2023
9718f92
Fixes #50
nasbench Apr 12, 2023
d6c7c57
feat: update sysmon config
nasbench Apr 19, 2023
b766604
feat: remove driver filters
nasbench Apr 21, 2023
94a324a
fix: apply suggestions from code review
nasbench Apr 27, 2023
0ee029a
new hacktool blocks
Neo23x0 May 5, 2023
bb5c8a6
Merge pull request #51 from nasbench/resolve-issues
Neo23x0 May 5, 2023
65e6fff
Update sysmonconfig-export-block.xml
Neo23x0 May 5, 2023
6e36404
Merge branch 'master' of https://github.com/Neo23x0/sysmon-config
Neo23x0 May 5, 2023
46fd40f
Remove duplicates sysmonconfig-export
cospirho May 15, 2023
cea856d
Remove duplicates sysmonconfig-export-block
cospirho May 15, 2023
766b2a7
Merge pull request #53 from cospirho/master
nasbench May 18, 2023
43f8ebf
new FileExecutableDetected Block
Neo23x0 Jun 28, 2023
8569801
Merge branch 'master' of https://github.com/Neo23x0/sysmon-config
Neo23x0 Jun 28, 2023
87be34c
loldrivers rules
Neo23x0 Jun 28, 2023
f10d77f
Update sysmonconfig-export.xml
Neo23x0 Jun 28, 2023
bc734a5
fix: increase allowance for trace runs
Neo23x0 Jun 28, 2023
21205e9
feat: blocked config
Neo23x0 Jun 28, 2023
65bc443
fix: schema version
Neo23x0 Jun 28, 2023
277c594
Merge pull request #56 from Neo23x0/loldrivers-extension
Neo23x0 Jun 28, 2023
b2b5554
Update sysmonconfig-export.xml
nasbench Jul 27, 2023
8b8c419
Update sysmonconfig-export-block.xml
nasbench Jul 27, 2023
fa614fd
Merge pull request #57 from nasbench/master
nasbench Oct 17, 2023
65c78ba
add: EDRSandblast
Neo23x0 Dec 14, 2023
2dc8575
EDRSilencer hashes
Neo23x0 Dec 29, 2023
f944c05
add: EventLogCrasher
Neo23x0 Feb 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: CI

on:
# Trigger the workflow on push or pull requests, but only for the
# main branch
#push:
# branches:
# - master
pull_request:
branches:
- master
workflow_dispatch:
jobs:

msbuild:
runs-on: 'windows-latest'
steps:
- name: Checkout sysmon-config
uses: actions/checkout@v3

- name: Download Sysmon
run: Invoke-WebRequest http://live.sysinternals.com/tools/sysmon.exe -OutFile .\sysmon.exe
shell: powershell

- name: Run Sysmon
run: .\sysmon.exe -accepteula -i sysmonconfig-export.xml
shell: powershell

- name: Check Eventcount
run: '$EventCount = 0 ;Get-WinEvent -ListLog Microsoft-Windows-Sysmon* | where {$_.RecordCount -gt 0} | foreach{$_;$EventCount = $EventCount + $_.RecordCount}|Out-Null;"Eventcount: "+$EventCount; if ($EventCount -gt 100){ Write-Output "Too many events"; $host.SetShouldExit(1)}'
shell: powershell

msbuild-trace:
runs-on: 'windows-latest'
steps:
- name: Checkout sysmon-config
uses: actions/checkout@v3

- name: Download Sysmon
run: Invoke-WebRequest http://live.sysinternals.com/tools/sysmon.exe -OutFile .\sysmon.exe
shell: powershell

- name: Run Sysmon
run: .\sysmon.exe -accepteula -i sysmonconfig-trace.xml
shell: powershell

- name: Check Eventcount
run: '$EventCount = 0 ;Get-WinEvent -ListLog Microsoft-Windows-Sysmon* | where {$_.RecordCount -gt 0} | foreach{$_;$EventCount = $EventCount + $_.RecordCount}|Out-Null;"Eventcount: "+$EventCount; if ($EventCount -gt 15000){ Write-Output "Too many events"; $host.SetShouldExit(1)}'
shell: powershell

msbuild-block:
runs-on: 'windows-latest'
steps:
- name: Checkout sysmon-config
uses: actions/checkout@v3

- name: Download Sysmon
run: Invoke-WebRequest http://live.sysinternals.com/tools/sysmon.exe -OutFile .\sysmon.exe
shell: powershell

- name: Run Sysmon
run: .\sysmon.exe -accepteula -i sysmonconfig-export-block.xml
shell: powershell

- name: Check Eventcount
run: '$EventCount = 0 ;Get-WinEvent -ListLog Microsoft-Windows-Sysmon* | where {$_.RecordCount -gt 0} | foreach{$_;$EventCount = $EventCount + $_.RecordCount}|Out-Null;"Eventcount: "+$EventCount; if ($EventCount -gt 100){ Write-Output "Too many events"; $host.SetShouldExit(1)}'
shell: powershell

busySystem:
runs-on: 'windows-latest'
steps:
- name: Checkout sysmon-config
uses: actions/checkout@v3

- name: Download Sysmon
run: Invoke-WebRequest http://live.sysinternals.com/tools/sysmon.exe -OutFile .\sysmon.exe
shell: powershell

- name: Run Sysmon
run: .\sysmon.exe -accepteula -i sysmonconfig-export.xml
shell: powershell

- name: Print Eventcount
run: Get-WinEvent -ListLog Microsoft-Windows-Sysmon*

- name: Install some Choco Packages
run: choco install ninja adobereader googlechrome firefox nodejs

- name: Download User Sim
run: Invoke-WebRequest https://github.com/humpalum/sim-user/releases/download/latest/5minuser.exe -OutFile .\5minuser.exe

- name: Run User Sim
run: .\5minuser.exe

- name: Check Eventcount
run: '$EventCount = 0 ;Get-WinEvent -ListLog Microsoft-Windows-Sysmon* | where {$_.RecordCount -gt 0} | foreach{$_;$EventCount = $EventCount + $_.RecordCount}|Out-Null;"Eventcount: "+$EventCount; if ($EventCount -gt 10000){ Write-Output "Too many events"; $host.SetShouldExit(1)}'
shell: powershell
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ sysmon.exe
*.exe
*.cfg
*.zip
.vscode/
173 changes: 146 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,168 @@
# sysmon-config | A Sysmon configuration file for everybody to fork #
# sysmon-config | A Sysmon configuration file

This is a Microsoft Sysinternals Sysmon configuration file template with default high-quality event tracing.
This is a forked and modified version of @SwiftOnSecurity's [sysmon config](https://github.com/SwiftOnSecurity/sysmon-config).

The file should function as a great starting point for system change monitoring in a self-contained and accessible package. This configuration and results should give you a good idea of what's possible for Sysmon. Note that this does not track things like authentication and other Windows events that are also vital for incident investigation.
It started as a is simply copy of the original repository. We merged most of the 30+ open pull requests. Thus we have fixed many of the issues that are still present in the original version and extended the coverage with important new extensions.

      **[sysmonconfig-export.xml](https://github.com/SwiftOnSecurity/sysmon-config/blob/master/sysmonconfig-export.xml)**
## Maintainers of this Fork

Because virtually every line is commented and sections are marked with explanations, it should also function as a tutorial for Sysmon and a guide to critical monitoring areas in Windows systems.
- Florian Roth @Neo23x0
- Tobias Michalski @humpalum
- Christian Burkard @phantinuss
- Nasreddine Bencherchali @nas_bench

- For a far more exhaustive and detailed approach to Sysmon configuration from a different approach, see also **[sysmon-modular](https://github.com/olafhartong/sysmon-modular)** by [@olafhartong](https://twitter.com/olafhartong), which can act as a superset of sysmon-config.
## Additional coverage includes

- Sysmon is a compliment to native Windows logging abilities, not a replacement for it. For valuable advice on these configurations, see **[MalwareArchaeology Logging Cheat Sheets](https://www.malwarearchaeology.com/cheat-sheets)** by [@HackerHurricane](https://twitter.com/hackerhurricane).
- Cobalt Strike named pipes
- PrinterNightmare
- HiveNightmare

Note: Exact syntax and filtering choices in the configuration are highly deliberate in what they target, and to have as little performance impact as possible. Sysmon's filtering abilities are different than the built-in Windows auditing features, so often a different approach is taken than the normal static listing of paths.
## Configs in this Repository

      **[See other forks of this configuration](https://github.com/SwiftOnSecurity/sysmon-config/network)**
This repo includes the original and two additional configurations

- `sysmonconfig-export.xml` the original config provided by @SwiftOnSecurity
- `sysmonconfig-export-block.xml` the original config provided by @SwiftOnSecurity with some basic blocking rules usable since Sysmon v14 (WARNING: use it with care!)
- `sysmonconfig-trace.xml` a config by @Cyb3rWard0g that logs just everything with a few examples for debugging or threat research purposes

## Other Sysmon Configs

- Olaf Hartong's [Sysmon Modular](https://github.com/olafhartong/sysmon-modular) - modular Sysmon config for easier maintenance and generation of specific configs

## Testing

This configuration is focused on detection coverage. We have only one rather small testing environment to avoid problematic expressions that trigger too often. It is recommended to test the downloaded configuration on a small set of systems in your environment in any case.

## Feedback

Since we don't have more than one environment to test the config ourselves, we rely on feedback from the community.

Please report:

1. Expressions that cause a high volume of events
2. Broken configuration elements (typos, wrong conditions)
3. Missing coverage (preferrably as a pull request)

## Usage

### Install

## Use ##
### Install ###
Run with administrator rights
~~~~

```batch
sysmon.exe -accepteula -i sysmonconfig-export.xml
~~~~
```

### Update existing configuration

### Update existing configuration ###
Run with administrator rights
~~~~

```batch
sysmon.exe -c sysmonconfig-export.xml
~~~~
```

### Uninstall

### Uninstall ###
Run with administrator rights
~~~~

```batch
sysmon.exe -u
~~~~
```

## Credits

Since we wanted to be able to receive new pull requests this repository, we had to squash all open(!) pull requests of the original reposiory into a single commit on this one.

We've pull the following requests:

Registry key to detect definitions of Windows Defender Exclusions\
155 opened 12 days ago by @phantinuss

Outlook Webview URL changes\
154 opened on 14 Jun by @humpalum

Event id 26\
153 opened on 14 Jun by @Richman711

Important and relevant NamedPipe names\
151 opened on 27 May by @Neo23x0

Added named pipe used by @Cobalt Strike\
150 opened on 26 May by @WojciechLesicki

Fix FileDelete example.\
149 opened on 26 May by @sigalpes

Add exclusion for WUDFHost.exe to Event 11\
148 opened on 19 Apr by @lord-garmadon

Corrected event name for Event ID 23\
147 opened on 16 Apr by @lord-garmadon

Monitor for .js files for Microsoft JScript\
146 opened on 7 Apr by @KevinDeNotariis

Added WinRM ports and Service names\
145 opened on 16 Mar by @tobor88

Add ASP files for webshells\
144 opened on 8 Mar by @GossiTheDog

Update NetworkConnect rule to fix Metasploit default port\
143 opened on 6 Mar by @brokenvhs

Ransomware artifacts added to File Creation config\
140 opened on 18 Feb by @sduff

MiniNT registry key check\
130 opened on 9 Sep 2020 by @ThisIsNotTheUserYouAreLookingFor

Added detection for CVE-2017-0199 and CVE-2017-8759.\
118 opened on 21 May 2020 by @d4rk-d4nph3

Printer port changes as used in CVE-2020-1048\
115 opened on 15 May 2020 by @Neo23x0

Update sysmonconfig-export.xml\
108 opened on 1 Mar 2020 by @harmonkc

Changed the bypassable DNS hostname checks\
107 opened on 5 Feb 2020 by @MaxNad

Added most of the missing LOLBAS for downloading executables\
106 opened on 5 Feb 2020 by @MaxNad

Change Metasploit Alert port from 444 to 4444\
105 opened on 5 Feb 2020 by @ION28

Add exclusion for Azure MMA agent | Add exclusion for IPAM GP PS script | Add exclusion for MonitorKnowledgeDiscovery\
104 opened on 29 Jan 2020 by @adrwh

Fixed wdigest registry path\
102 opened on 13 Dec 2019 by @qz8xTD

unnecessary shout out to Alpha version for DNS logging\
100 opened on 10 Dec 2019 by @itpropaul

Add scripting filename targets\
98 opened on 14 Nov 2019 by @bartblaze

Included some of the entries from PR to sysmonconfig-export.xml\
97 opened on 6 Nov 2019 by @cudeso

## Required actions ##
Keyboard Layout Load\
92 opened on 13 Oct 2019 by @Neo23x0

### Prerequisites ###
Highly recommend using [Notepad++](https://notepad-plus-plus.org/) to edit this configuration. It understands UNIX newline format and does XML syntax highlighting, which makes this very understandable. I do not recommend using the built-in Notepad.exe.
Fixed IMAP port\
71 opened on 12 Jan 2019 by @esecrpm
66 opened on 21 Aug 2018 by @martboo
59 opened on 25 May 2018 by @paalbra

### Customization ###
You will need to install and observe the results of the configuration in your own environment before deploying it widely. For example, you will need to exclude actions of your antivirus, which will otherwise likely fill up your logs with useless information.
Micro-improvements to monitored scenarios\
53 opened on 6 Mar 2018 by @threathunting

The configuration is highly commented and designed to be self-explanatory to assist you in this customization to your environment.
Corrected typo for RTF extension\
50 opened on 24 Jan 2018 by @kronflux

### Design notes ###
This configuration expects software to be installed system-wide and NOT in the C:\Users folder. Various pieces of software install themselves in User directories, which are subject to extra monitoring. Where possible, you should install the system-wide version of these pieces of software, like Chrome. See the configuration file for more instructions.
Add Windows Trust registry keys to log\
40 opened on 4 Oct 2017 by @mdunten
Loading