Skip to content

Loldrivers extension #193

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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/
Loading