Skip to content

Commit

Permalink
Validate hash values
Browse files Browse the repository at this point in the history
  • Loading branch information
kchoudhury-scwx committed Nov 8, 2023
1 parent d764b05 commit 53a577c
Showing 1 changed file with 2 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

0 comments on commit 53a577c

Please sign in to comment.