Skip to content

Commit

Permalink
Update imports to osodevops
Browse files Browse the repository at this point in the history
  • Loading branch information
StackAppsFinland committed Nov 24, 2023
1 parent fb26ef3 commit 42c1fc0
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"gopkg.in/yaml.v3"

"github.com/bradleyjkemp/sigma-go/internal/grammar"
"github.com/osodevops/sigma-go/internal/grammar"
)

type Condition struct {
Expand Down
2 changes: 1 addition & 1 deletion condition_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sigma
import (
"github.com/alecthomas/participle"
"github.com/alecthomas/participle/lexer"
"github.com/bradleyjkemp/sigma-go/internal/grammar"
"github.com/osodevops/sigma-go/internal/grammar"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions evaluator/aggregators/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"sync"
"time"

"github.com/bradleyjkemp/sigma-go/evaluator"
"github.com/bradleyjkemp/sigma-go/internal/slidingstatistics"
"github.com/osodevops/sigma-go/evaluator"
"github.com/osodevops/sigma-go/internal/slidingstatistics"
)

type inMemory struct {
Expand Down
4 changes: 2 additions & 2 deletions evaluator/benchmarks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/json"
"testing"

"github.com/bradleyjkemp/sigma-go"
"github.com/bradleyjkemp/sigma-go/evaluator"
"github.com/osodevops/sigma-go"
"github.com/osodevops/sigma-go/evaluator"
)

const testRule = `
Expand Down
4 changes: 3 additions & 1 deletion evaluator/evaluate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"fmt"

"github.com/bradleyjkemp/sigma-go"
"github.com/osodevops/sigma-go"
)

type RuleEvaluator struct {
Expand All @@ -30,6 +30,7 @@ type RuleEvaluator struct {
// For example, if a Sigma rule has a condition like this (attempting to detect login brute forcing)
//
// detection:
//
// login_attempt:
// # something here
// condition:
Expand All @@ -40,6 +41,7 @@ type RuleEvaluator struct {
// Each different GroupedByValues points to a different box.
//
// GroupedByValues
//
// ||
// ___↓↓___ ________
// | User A | | User B |
Expand Down
2 changes: 1 addition & 1 deletion evaluator/evaluate_aggregation.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strconv"

"github.com/bradleyjkemp/sigma-go"
"github.com/osodevops/sigma-go"
)

func (rule RuleEvaluator) evaluateAggregationExpression(ctx context.Context, conditionIndex int, aggregation sigma.AggregationExpr, event Event) (bool, error) {
Expand Down
4 changes: 2 additions & 2 deletions evaluator/evaluate_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/bradleyjkemp/sigma-go/evaluator/modifiers"
"github.com/osodevops/sigma-go/evaluator/modifiers"
"path"
"reflect"
"regexp"
"strings"

"github.com/PaesslerAG/jsonpath"
"github.com/bradleyjkemp/sigma-go"
"github.com/osodevops/sigma-go"
)

func (rule RuleEvaluator) evaluateSearchExpression(search sigma.SearchExpr, searchResults map[string]bool) bool {
Expand Down
2 changes: 1 addition & 1 deletion evaluator/evaluate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/bradleyjkemp/sigma-go"
"github.com/osodevops/sigma-go"
)

func TestRuleEvaluator_Matches(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion evaluator/fieldmappings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/bradleyjkemp/sigma-go"
"github.com/osodevops/sigma-go"
)

func TestRuleEvaluator_HandlesBasicFieldMappings(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion evaluator/fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"

"github.com/bradleyjkemp/sigma-go"
"github.com/osodevops/sigma-go"
)

const testRule = `
Expand Down
2 changes: 1 addition & 1 deletion evaluator/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/bradleyjkemp/sigma-go"
"github.com/osodevops/sigma-go"
)

func TestRuleEvaluator_RelevantToEvent_LogsourceRewriting(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion evaluator/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package evaluator
import (
"context"

"github.com/bradleyjkemp/sigma-go"
"github.com/osodevops/sigma-go"
)

type Option func(*RuleEvaluator)
Expand Down

0 comments on commit 42c1fc0

Please sign in to comment.