Skip to content

Commit

Permalink
fix: Added hex conversion processing for -F, --no-field-data-mapping …
Browse files Browse the repository at this point in the history
…JSONL
  • Loading branch information
fukusuket committed Oct 7, 2023
1 parent 23280ae commit d960bec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/takajopkg/timelineSuspiciousProcesses.nim
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ proc timelineSuspiciousProcesses(level: string = "high", output: string = "", qu
pidStr = $jsonLine["Details"]["PID"].getInt()
user = jsonLine["Details"]["User"].getStr()
lid = jsonLine["Details"]["LID"].getStr()
try:
if pidStr == "0":
# -F, --no-field-data-mapping JSONL requires hex conversion
pidStr = intToStr(fromHex[int](jsonLine["Details"]["PID"].getStr()))
except ValueError:
discard
try:
ruleAuthor = jsonLine["RuleAuthor"].getStr()
except KeyError:
Expand Down

0 comments on commit d960bec

Please sign in to comment.