Module utils

Module utils 

Source
Expand description

Utility functions for YARA rule generation Provides helper functions for common tasks

Functionsยง

bytes_to_hex
Convert bytes to hex string
calculate_entropy
Calculate Shannon entropy of data
escape_string
Escape special characters in strings
export_rule_to_json
Export a rule to JSON format
generate_unique_rule_name
Generate a unique rule name
import_rule_from_json
Import a rule from JSON format
load_rule_from_file
Load a rule from a file
save_rule_to_file
Save a rule to a file