@@ -561,7 +561,7 @@ name = "sequenceOneManyMany-Runs"
561
561
query = '''
562
562
sequence
563
563
[process where serial_event_id == 1]
564
- [process where true] [ runs=2]
564
+ [process where true] with runs=2
565
565
'''
566
566
expected_event_ids = [1 , 2 , 3 ]
567
567
@@ -582,7 +582,7 @@ name = "sequenceConditionManyMany-Runs"
582
582
query = '''
583
583
sequence
584
584
[process where serial_event_id <= 3]
585
- [process where true] [ runs=2]
585
+ [process where true] with runs=2
586
586
'''
587
587
expected_event_ids = [1 , 2 , 3 ,
588
588
2 , 3 , 4 ,
@@ -613,7 +613,7 @@ expected_event_ids = [1, 2, 3]
613
613
name = " sequenceManyManyCondition-Runs"
614
614
query = '''
615
615
sequence
616
- [process where true] [ runs=2]
616
+ [process where true] with runs=2
617
617
[process where serial_event_id <= 3]
618
618
'''
619
619
expected_event_ids = [1 , 2 , 3 ]
@@ -637,7 +637,7 @@ name = "sequenceThreeManyCondition1-Runs"
637
637
query = '''
638
638
sequence
639
639
[process where serial_event_id <= 4]
640
- [process where true] [ runs=3]
640
+ [process where true] with runs=3
641
641
'''
642
642
expected_event_ids = [1 , 2 , 3 , 4 ,
643
643
2 , 3 , 4 , 5 ,
@@ -663,7 +663,7 @@ query = '''
663
663
sequence
664
664
[process where true]
665
665
[process where serial_event_id <= 4]
666
- [process where true] [ runs=2]
666
+ [process where true] with runs=2
667
667
'''
668
668
expected_event_ids = [1 , 2 , 3 , 4 ,
669
669
2 , 3 , 4 , 5 ,
@@ -685,7 +685,7 @@ expected_event_ids = [1, 2, 3, 4,
685
685
name = " sequenceThreeManyCondition3-Runs"
686
686
query = '''
687
687
sequence
688
- [process where true] [ runs=2]
688
+ [process where true] with runs=2
689
689
[process where serial_event_id <= 4]
690
690
[process where true]
691
691
'''
@@ -707,7 +707,7 @@ expected_event_ids = [1, 2, 3, 4]
707
707
name = " sequenceThreeManyCondition4-Runs"
708
708
query = '''
709
709
sequence
710
- [process where true] [ runs=3]
710
+ [process where true] with runs=3
711
711
[process where serial_event_id <= 4]
712
712
'''
713
713
expected_event_ids = [1 , 2 , 3 , 4 ]
@@ -754,7 +754,7 @@ name = "fourSequencesByPidWithUntil1-Runs"
754
754
query = '''
755
755
sequence
756
756
[process where opcode == 1] by unique_pid
757
- [file where opcode == 0] by unique_pid [ runs=3]
757
+ [file where opcode == 0] by unique_pid with runs=3
758
758
until
759
759
[file where opcode == 2] by unique_pid
760
760
'''
@@ -779,7 +779,7 @@ name = "fourSequencesByPidWithUntil2-Runs"
779
779
query = '''
780
780
sequence
781
781
[process where opcode == 1] by unique_pid
782
- [file where opcode == 0] by unique_pid [ runs=3]
782
+ [file where opcode == 0] by unique_pid with runs=3
783
783
until
784
784
[file where opcode == 200] by unique_pid
785
785
'''
@@ -813,7 +813,7 @@ name = "fourSequencesByPid-Runs"
813
813
query = '''
814
814
sequence
815
815
[process where opcode == 1] by unique_pid
816
- [file where opcode == 0] by unique_pid [ runs=3]
816
+ [file where opcode == 0] by unique_pid with runs=3
817
817
'''
818
818
expected_event_ids = [54 , 55 , 61 , 67 ]
819
819
@@ -834,7 +834,7 @@ name = "fourSequencesByPidAndProcessPath1-Runs"
834
834
query = '''
835
835
sequence
836
836
[process where opcode == 1] by unique_pid, process_path
837
- [file where opcode == 0] by unique_pid, process_path [ runs=3]
837
+ [file where opcode == 0] by unique_pid, process_path with runs=3
838
838
'''
839
839
expected_event_ids = [54 , 55 , 61 , 67 ]
840
840
@@ -856,7 +856,7 @@ name = "fourSequencesByPidAndProcessPathWithUntil-Runs"
856
856
query = '''
857
857
sequence
858
858
[process where opcode == 1] by unique_pid, process_path
859
- [file where opcode == 0] by unique_pid, process_path [ runs=3]
859
+ [file where opcode == 0] by unique_pid, process_path with runs=3
860
860
until
861
861
[file where opcode == 200] by unique_pid, process_path
862
862
'''
@@ -867,8 +867,8 @@ name = "fourSequencesByPidAndProcessPathWithUntil-RunsExtra"
867
867
query = '''
868
868
sequence
869
869
[process where opcode == 1] by unique_pid, process_path
870
- [file where opcode == 0] by unique_pid, process_path [ runs=2]
871
- [file where opcode == 0] by unique_pid, process_path [ runs=1]
870
+ [file where opcode == 0] by unique_pid, process_path with runs=2
871
+ [file where opcode == 0] by unique_pid, process_path with runs=1
872
872
until
873
873
[file where opcode == 200] by unique_pid, process_path
874
874
'''
@@ -1026,7 +1026,7 @@ expected_event_ids = [1, 2,
1026
1026
name = " doubleSameSequence-Runs"
1027
1027
query = '''
1028
1028
sequence
1029
- [process where serial_event_id < 5] [ runs=2]
1029
+ [process where serial_event_id < 5] with runs=2
1030
1030
'''
1031
1031
expected_event_ids = [1 , 2 ,
1032
1032
2 , 3 ,
@@ -1056,7 +1056,7 @@ expected_event_ids = [55, 61]
1056
1056
name = " doubleSameSequenceWithBy-Runs"
1057
1057
query = '''
1058
1058
sequence
1059
- [file where opcode==0] by unique_pid [ runs=2]
1059
+ [file where opcode==0] by unique_pid with runs=2
1060
1060
| head 1
1061
1061
'''
1062
1062
expected_event_ids = [55 , 61 ]
@@ -1087,7 +1087,7 @@ expected_event_ids = [55, 61]
1087
1087
name = " doubleSameSequenceWithByUntilAndHead1-Runs"
1088
1088
query = '''
1089
1089
sequence
1090
- [file where opcode==0 and file_name:"*.exe"] by unique_pid [ runs=2]
1090
+ [file where opcode==0 and file_name:"*.exe"] by unique_pid with runs=2
1091
1091
until [process where opcode==5000] by unique_ppid
1092
1092
| head 1
1093
1093
'''
@@ -1108,7 +1108,7 @@ expected_event_ids = []
1108
1108
name = " doubleSameSequenceWithByUntilAndHead2-Runs"
1109
1109
query = '''
1110
1110
sequence
1111
- [file where opcode==0 and file_name:"*.exe"] by unique_pid [ runs=2]
1111
+ [file where opcode==0 and file_name:"*.exe"] by unique_pid with runs=2
1112
1112
until [process where opcode==1] by unique_ppid
1113
1113
| head 1
1114
1114
'''
0 commit comments