Skip to content

Commit 8286cc2

Browse files
committed
Python: update diff-informed expected files
This commit adds expected files for diff-informed testing. These expected files describe how diff-informed queries produce alerts that are not completely in accordance with the given diff ranges.
1 parent 21170a1 commit 8286cc2

29 files changed

Lines changed: 124 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Filtering alerts to these ranges:
2+
UnsafeUnpack.py:1-104
3+
UnsafeUnpack.py:106-201
4+
Wrongly included: | UnsafeUnpack.py:105:35:105:42 | ControlFlowNode for savepath | Unsafe extraction from a malicious tarball retrieved from a remote location. |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Filtering alerts to these ranges:
2+
UnsafeUnpack.py:1-111
3+
UnsafeUnpack.py:113-201
4+
Wrongly included: | UnsafeUnpack.py:112:35:112:43 | ControlFlowNode for file_path | Unsafe extraction from a malicious tarball retrieved from a remote location. |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Filtering alerts to these ranges:
2+
UnsafeUnpack.py:1-119
3+
UnsafeUnpack.py:121-201
4+
Wrongly included: | UnsafeUnpack.py:120:41:120:58 | ControlFlowNode for uploaded_file_path | Unsafe extraction from a malicious tarball retrieved from a remote location. |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Filtering alerts to these ranges:
2+
UnsafeUnpack.py:1-141
3+
UnsafeUnpack.py:143-201
4+
Wrongly included: | UnsafeUnpack.py:142:49:142:51 | ControlFlowNode for tar | Unsafe extraction from a malicious tarball retrieved from a remote location. |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Filtering alerts to these ranges:
2+
UnsafeUnpack.py:1-166
3+
UnsafeUnpack.py:168-201
4+
Wrongly included: | UnsafeUnpack.py:167:67:167:72 | ControlFlowNode for result | Unsafe extraction from a malicious tarball retrieved from a remote location. |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Filtering alerts to these ranges:
2+
UnsafeUnpack.py:1-175
3+
UnsafeUnpack.py:177-201
4+
Wrongly included: | UnsafeUnpack.py:176:1:176:34 | ControlFlowNode for Attribute() | Unsafe extraction from a malicious tarball retrieved from a remote location. |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Filtering alerts to these ranges:
2+
UnsafeUnpack.py:1-18
3+
UnsafeUnpack.py:20-201
4+
Wrongly included: | UnsafeUnpack.py:19:35:19:41 | ControlFlowNode for tarpath | Unsafe extraction from a malicious tarball retrieved from a remote location. |
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Filtering alerts to these ranges:
2+
UnsafeUnpack.py:1-200
3+
Wrongly included: | UnsafeUnpack.py:201:29:201:36 | ControlFlowNode for Attribute | Unsafe extraction from a malicious tarball retrieved from a remote location. |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Filtering alerts to these ranges:
2+
UnsafeUnpack.py:1-33
3+
UnsafeUnpack.py:35-201
4+
Wrongly included: | UnsafeUnpack.py:34:23:34:38 | ControlFlowNode for local_ziped_path | Unsafe extraction from a malicious tarball retrieved from a remote location. |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Filtering alerts to these ranges:
2+
UnsafeUnpack.py:1-47
3+
UnsafeUnpack.py:49-201
4+
Wrongly included: | UnsafeUnpack.py:48:23:48:37 | ControlFlowNode for compressed_file | Unsafe extraction from a malicious tarball retrieved from a remote location. |

0 commit comments

Comments
 (0)