File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ def check_suspicious_yara_rules(strelka_data: dict) -> str:
167167
168168def check_pe_file_signing (strelka_data : dict ) -> str :
169169 """
170- Checks if the PE file is digitally signed.
170+ Checks if the PE file is digitally signed by looking for the 'security' field .
171171
172172 Parameters:
173173 strelka_data (dict): Strelka file response data.
@@ -177,7 +177,7 @@ def check_pe_file_signing(strelka_data: dict) -> str:
177177 """
178178 try :
179179 pe_data = strelka_data ["scan" ].get ("pe" , {})
180- if pe_data and "flags" in pe_data and not "signed" in pe_data [ "flags" ] :
180+ if pe_data and not pe_data . get ( "security" ) :
181181 return "The PE file is not digitally signed."
182182 except Exception as e :
183183 logging .warning (f"Error in PE file signing check: { e } " )
You can’t perform that action at this time.
0 commit comments