Skip to content

Commit 9652af8

Browse files
authored
fix(signatures): use data action instead of command_execution (#299)
Signed-off-by: Antoine MAZEAS <antoine.mazeas@filigran.io>
1 parent 3a5e9a3 commit 9652af8

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎pyoaev/signatures/models.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def post_execution_update(self, tool_output: ToolOutput, now: datetime) -> None:
208208
else:
209209
self.execution_status = ExecutionStatus.EXECUTED
210210

211-
self.execution_action = InjectExecutionActions("command_execution")
211+
self.execution_action = InjectExecutionActions("data")
212212

213213

214214
class SignatureCallbackPayload(BaseModel):

‎pyoaev/signatures/types.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class InjectExecutionActions(str, Enum):
3636
DNS_RESOLUTION = "dns_resolution"
3737
FILE_EXECUTION = "file_execution"
3838
FILE_DROP = "file_drop"
39+
DATA = "data"
3940
COMPLETE = "complete"
4041

4142

‎test/signatures/features/signature_manager_post_execution.feature‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ Feature: SignatureManager post-execution execution elements update
2525
And the end_time parameter in the execution details model is a datetime object
2626
And this end_time is chronologically greater than or equal to start_time "2024-06-26T06:00:00Z"
2727
And the execution_status parameter in the execution details model is equal to "EXECUTED"
28-
And the execution_action parameter in the execution details model is equal to "command_execution"
28+
And the execution_action parameter in the execution details model is equal to "data"

0 commit comments

Comments
 (0)