Skip to content
Merged
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
12 changes: 6 additions & 6 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: 1.19.x
- name: Checkout
uses: actions/checkout@v2
- name: Adjust pkg-config prefix
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
env:
VERSION: "4.0.x"
VERSION: "4.2.x"
run: |
git clone --depth 1 --branch $VERSION https://github.com/VirusTotal/yara.git
- name: Configure yara
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: 1.19.x
- name: Checkout
uses: actions/checkout@v2
- name: Build
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: 1.19.x
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: 1.19.x
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VER
env:
GOLANGCI_LINT_VER: v1.35.2
GOLANGCI_LINT_VER: v1.50.1
- name: Lint
shell: bash
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: 1.19.x
- name: Checkout
uses: actions/checkout@v2
- name: Adjust pkg-config prefix
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
env:
VERSION: "4.0.x"
VERSION: "4.2.x"
run: |
git clone --depth 1 --branch $VERSION https://github.com/VirusTotal/yara.git
- name: Configure yara
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: 1.19.x
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: 1.19.x
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VER
env:
GOLANGCI_LINT_VER: v1.35.2
GOLANGCI_LINT_VER: v1.50.1
- name: Lint
shell: bash
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: 1.19.x
- name: Checkout
uses: actions/checkout@v2
- name: Adjust pkg-config prefix
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
env:
VERSION: "4.0.x"
VERSION: "4.2.x"
run: |
git clone --depth 1 --branch $VERSION https://github.com/VirusTotal/yara.git
- name: Configure yara
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: 1.19.x
- name: Checkout
uses: actions/checkout@v2
- name: Get version
Expand Down
3 changes: 1 addition & 2 deletions cmd/fibratus/app/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"github.com/rabbitstack/fibratus/pkg/filter/fields"
"github.com/rabbitstack/fibratus/pkg/kevent/ktypes"
"github.com/spf13/cobra"
"io/ioutil"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -82,7 +81,7 @@ func listFilaments(cmd *cobra.Command, args []string) error {
return err
}

filaments, err := ioutil.ReadDir(dir)
filaments, err := os.ReadDir(dir)
if err != nil {
return err
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/fibratus/main_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import (
)

func main() {
// determine if we are running in an interactive session
in, err := svc.IsAnInteractiveSession()
// determine if we are running as a Windows Service
isWinService, err := svc.IsWindowsService()
if err != nil {
fmt.Printf("interactive session check failed: %v\n", err)
os.Exit(-1)
}
if !in {
if isWinService {
app.RunService()
return
}
Expand Down
16 changes: 11 additions & 5 deletions configs/fibratus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ alertsenders:
#host:

# Represents the port of the SMTP server
#port: 25
#port: 587

# Specifies the user name when authenticating to the SMTP server
#user:
Expand All @@ -38,7 +38,9 @@ alertsenders:

# Specifies all the recipients that'll receive the alert
#to:
# - ""

# Specifies the email body content type
#content-type: text/html

# Slack sender transports the alerts to the Slack workspace.
slack:
Expand Down Expand Up @@ -95,14 +97,18 @@ filament:

# =============================== Filters ===============================================

# Contains the definition of filter rules. Filter expressions are contained in filter group files.
# Contains the definition of detection rules. Rules are contained within rule group files.
# Rule definitions can reside in the local file system or also can be served over HTTP/S.
# For local file system rule paths, it is possible to use the glob expression to load the
# rules from different directory locations.
filters:
rules:
from-paths:
# - C:\Program Files\Fibratus\Config\Rules\Default\default.yml
# - C:\Program Files\Fibratus\Rules\*.yml
#from-urls:
# - https://raw.githubusercontent.com/rabbitstack/fibratus/master/configs/rules/default/default.yml
macros:
from-paths:
- C:\Program Files\Fibratus\Rules\Macros\*.yml

# =============================== Handle ===============================================

Expand Down
Loading