Skip to content

Commit

Permalink
Merge pull request #35 from kchoudhury-scwx/kc-hashes
Browse files Browse the repository at this point in the history
Inclusion of hashes field for process events
  • Loading branch information
amalone-scwx authored Nov 8, 2023
2 parents 6772733 + 53a577c commit c25ad5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/harness/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ func CheckProcessEvent(testRun *SingleTestRun, evt *types.SimpleEvent, nativeJso
isMatch = CheckMatch(evt.ProcessFields.Env, fc.Op, fc.Value)
case "is_elevated":
isMatch = CheckMatch(BoolAsString(evt.ProcessFields.IsElevated), fc.Op, fc.Value)
case "hashes":
isMatch = CheckMatch(evt.ProcessFields.Hashes, fc.Op, fc.Value)
default:
fmt.Println("ERROR: unknown FieldName", fc)
}
Expand Down
1 change: 1 addition & 0 deletions pkg/types/harness_simple_telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type SimpleProcessFields struct {
ExePath string `json:"exe_path,omitempty"`
Env string `json:"env,omitempty"`
IsElevated bool `json:"is_elevated,omitempty"`
Hashes string `json:"hashes,omitempty"`

UniquePid string `json:"unique_pid",omitempty`
ParentUniquePid string `json:"parent_unique_pid,omitempty"`
Expand Down

0 comments on commit c25ad5a

Please sign in to comment.