Skip to content

Commit 2aebdb2

Browse files
authored
Added a searchable rules index for the site (Velocidex#11)
1 parent b6c8335 commit 2aebdb2

36 files changed

Lines changed: 72348 additions & 477 deletions

.github/workflows/gh-pages.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ on:
88

99
jobs:
1010
deploy:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1414
with:
1515
submodules: true # Fetch Hugo themes (true OR recursive)
1616
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
1717

18-
- uses: actions/setup-go@v3
18+
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
1919
with:
20-
go-version: '^1.20'
20+
go-version: '^1.23'
2121

2222
- run: go version
2323

@@ -41,3 +41,4 @@ jobs:
4141
with:
4242
github_token: ${{ secrets.GITHUB_TOKEN }}
4343
publish_dir: ./docs/public
44+
force_orphan: true

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
steps:
1010

1111
- name: Set up Go
12-
uses: actions/setup-go@v3
12+
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
1313
with:
1414
go-version: '^1.20'
1515
id: go
1616

1717
- name: Check out code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1919
with:
2020
submodules: recursive
2121

@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
make test
2929
30-
- uses: actions/upload-artifact@v3
30+
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1
3131
if: always()
3232
with:
3333
name: output

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ artifact:
1313

1414
# Build the ZIP file for importing
1515
artifact_zip:
16-
./reghunter compile --make_zip --output output/Windows.Registry.Hunter.zip Rules/*.yaml
16+
./reghunter compile --make_zip --output output/Windows.Registry.Hunter.zip --index docs/content/docs/rules/index.json Rules/*.yaml
1717

1818
test:
1919
cd tests && make test

RECmd_Batch/RegistryASEPs.reb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Description: Registry ASEPs
2-
Disabled: true
2+
Disabled: false
33
Author: Troy Larson
44
Version: 1.0
55
Id: d6b50e3a-291c-4d8a-afbc-4dd05d252742

Rules/Detections.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,17 @@ Rules:
1616
FROM glob(accessor="registry",
1717
globs="HKEY_USERS\\*\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Compatibility Assistant\\Store\\*rclone*")
1818
})
19+
20+
- Description: DotNetStartupHooks
21+
Category: Threat Hunting
22+
Author: Chris Jones - CPIRT | FabFaeb | Antonio Blescia (TheThMando) | bmcder02
23+
Comment: |
24+
The .NET DLLs listed in the DOTNET_STARTUP_HOOKS environment
25+
variable are loaded into .NET processes at runtime.
26+
27+
Query: |
28+
SELECT OSPath, Data.value AS Value
29+
FROM glob(globs=[
30+
'''HKEY_LOCAL_MACHINE\System\ControlSet*\Control\Session Manager\Environment\DOTNET_STARTUP_HOOKS''',
31+
'''HKEY_USERS\*\Environment\DOTNET_STARTUP_HOOKS'''], accessor="registry")
32+
WHERE Value

0 commit comments

Comments
 (0)