Ci config checker #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check VQL in config | |
on: [pull_request] | |
jobs: | |
build: | |
name: Windows Rules Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '^1.20' | |
id: go | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Build Rules | |
run: | | |
make linux | |
./velosigmac compile --config ./config/velociraptor_windows_rules.yaml --output ./output/rules.zip --yaml ./output/artifact.yaml | |
- name: Download Velociraptor | |
uses: robinraju/release-downloader@v1.8 | |
id: velociraptor | |
with: | |
repository: velocidex/velociraptor | |
latest: true | |
fileName: "*-linux-amd64" | |
- name: Download evtx samples | |
uses: actions/checkout@v2 | |
with: | |
repository: sbousseaden/EVTX-ATTACK-SAMPLES | |
path: ./samples/ | |
- name: Run Velociraptor | |
run: | | |
mv ./samples/Execution/Exec_sysmon_meterpreter_reversetcp_msipackage.evtx "Microsoft-Windows-Sysmon%4Operational.evtx" | |
chmod +x ${{ fromJson(steps.velociraptor.outputs.downloaded_files)[0]}} | |
${{ fromJson(steps.velociraptor.outputs.downloaded_files)[0]}} -v --definitions ./output/ query "SELECT * FROM Artifact.Windows.Sigma.Curated(Debug=true, ROOT='.')" |