Skip to content

Commit

Permalink
Added a blog post describing Sigma in Velociraptor (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
scudette authored Nov 5, 2023
1 parent 3adda7c commit 77927d1
Show file tree
Hide file tree
Showing 22 changed files with 627 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- name: Prepare
run: |
make linux
cd hayabusa/ && ../velosigmac compile --config ../config/windows_hayabusa_rules.yaml --output ../output/Velociraptor-Hayabusa-Rules.zip ; cd -
cd hayabusa/ && ../velosigmac compile --config ../config/windows_hayabusa_event_monitoring.yaml --output ../output/Velociraptor-Hayabusa-Monitoring.zip ; cd -
./velosigmac compile --config ./config/windows_hayabusa_rules.yaml --output ./output/Velociraptor-Hayabusa-Rules.zip ; cd .
./velosigmac compile --config ./config/windows_hayabusa_event_monitoring.yaml --output ./output/Velociraptor-Hayabusa-Monitoring.zip ; cd .
cp output/*.zip docs/static/
- name: Build
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/spellchecker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Spellcheck Action
on:
push:
branches:
- master
pull_request:

jobs:
build:
name: Spellcheck
runs-on: ubuntu-latest
steps:
# The checkout step
- uses: actions/checkout@master
- uses: rojopolis/spellcheck-github-actions@0.27.0
name: Spellcheck
with:
config_path: .pyspelling.yml
41 changes: 41 additions & 0 deletions .pyspelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
matrix:
- name: Markdown
aspell:
lang: en
d: en_US
dictionary:
wordlists:
- .wordlist.txt
output: .wordlist.dict
sources:
- 'docs/content/**/*.md'
pipeline:
- pyspelling.filters.context:
context_visible_first: true
escapes: '\\[\\`]'
delimiters:
# Ignore multiline content between fences (fences can have 3 or more back ticks)
# ```
# content
# ```
- open: '(?s)^(?P<open> *`{3,})'
close: '^(?P=open)$'
# Insides of URL links
- open: '\]\('
close: '\)'
# Bolded words are usually terms
- open: '[*]+'
close: '[*]+'
# Inside HTML tags
- open: '(?s)(?P<open>[<])'
close: '[>]'
# Ignore text between inline back ticks
- open: '(?P<open>`+)'
close: '(?P=open)'

# Inside yaml headers
- open: '(?s)^(?P<open>---)$'
close: '^(?P=open)$'

- pyspelling.filters.markdown:
- pyspelling.filters.url:
Binary file added .wordlist.dict
Binary file not shown.
39 changes: 39 additions & 0 deletions .wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<url-free> docs/content/_index.md
--------------------------------------------------------------------------------
Velociraptor
--------------------------------------------------------------------------------

Misspelled words:
<url-free> docs/content/docs/sigma_in_velociraptor/_index.md
--------------------------------------------------------------------------------
Capuano
ECS
ETW
EVTX
Gb
Hayabusa
MSDN
SIEM
SIEMs
Splunk
Sysmon
VQL
Velociraptor
Velociraptor's
backend
backend's
backends
br
config
detections
executables
li
mb
ol
responders
ruleset
scalable
schemas
taskscheduler
ul
natively
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ windows:
GOOS=windows GOARCH=amd64 go build -o velosigmac.exe ./src/*.go

compile:
cd hayabusa/ && go run ../src/ compile --config ../config/windows_hayabusa_rules.yaml --output ../output/Velociraptor-Hayabusa-Rules.zip
./velosigmac compile --config ./config/windows_hayabusa_rules.yaml --output ./output/Velociraptor-Hayabusa-Rules.zip
./velosigmac compile --config ./config/windows_hayabusa_event_monitoring.yaml --output ./output/Velociraptor-Hayabusa-Monitoring.zip
8 changes: 4 additions & 4 deletions config/windows_hayabusa_event_monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ BaseReferenceURL:
https://github.com/Yamato-Security/hayabusa-rules/tree/main/

RuleDirectories:
- hayabusa/builtin/
- hayabusa/sysmon/
- sigma/builtin/
- sigma/builtin/sysmon
- hayabusa/hayabusa/builtin/
- hayabusa/hayabusa/sysmon/
- hayabusa/sigma/builtin/
- hayabusa/sigma/builtin/sysmon
9 changes: 5 additions & 4 deletions config/windows_hayabusa_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ FieldMappings:
TaskDate: "x=>x.EventData.TaskContent"
TaskName: "x=>x.EventData.TaskName"
TemplateContent: "x=>x.EventData.TemplateContent"
Timestamp: "x=>x.System.TimeCreated.SystemTime"
ThreatName: "x=>x.EventData.`Threat Name`"
TicketEncryptionType: "x=>x.EventData.TicketEncryptionType"
TicketOptions: "x=>x.EventData.TicketOptions"
Expand Down Expand Up @@ -701,7 +702,7 @@ BaseReferenceURL:
https://github.com/Yamato-Security/hayabusa-rules/tree/main/

RuleDirectories:
- hayabusa/builtin/
- hayabusa/sysmon/
- sigma/builtin/
- sigma/builtin/sysmon
- hayabusa/hayabusa/builtin/
- hayabusa/hayabusa/sysmon/
- hayabusa/sigma/builtin/
- hayabusa/sigma/builtin/sysmon
2 changes: 2 additions & 0 deletions docs/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ date: 2023-10-15T00:14:44+10:00
---

# The Velociraptor Sigma Rules Repository

This repository contains curated Sigma Rules to be used by the [Velociraptor Endpoint visibility tool](https://docs.velociraptor.app).
Loading

0 comments on commit 77927d1

Please sign in to comment.