Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Example: yara-rules

Inputs

  • examples/inputs/yara-rules-samples/suspicious_script.sh

Profile

# YARA Rules Example Profile
# Demonstrates YARA-X rule integration for malware detection

decode = ["base64"]

max-file-size = 52428800  # 50 MiB

tag = "yara-rules"

# Point to YARA rules directory
yara-x-rules = ["examples/inputs/yara-rules"]

# Additional string patterns to complement YARA
[[patterns]]
  name = "Suspicious String - cmd.exe"
  pattern = "cmd.exe"
  type = "string"
  case-insensitive = true

[[patterns]]
  name = "Suspicious String - powershell.exe"
  pattern = "powershell.exe"
  type = "string"
  case-insensitive = true

Report outputs

Triage report (converted from triage_report.json)

total_files1
critical_count0
high_count0
medium_count1
low_count0
minimal_count0
must_investigate_count0
all_scoresNone
generated_at2025-12-03T09:19:44.085498440+00:00

top_scores

characteristics_scorefile_typefile_type_scoremust_investigatepathpattern_count_scorepattern_matchespattern_severity_scorereasonsrisk_levelscoresha256
0Script20False/suspicious_script.sh203317["33 suspicious patterns detected"]Medium5722f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367a

CSV outputs

errors.csv

Empty CSV

files.csv

pathfile_namesha256file_createdfile_modifiedfile_accessedmime_types_from_file_extensionis_symbolic_linkis_extracted_fileis_decoded_fileis_deobfuscated_filetag
/suspicious_script.shsuspicious_script.sh22f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367a2025-12-03T08:56:20.497889219Z2025-12-03T08:56:20.497889219Z2025-12-03T08:56:20.497889219Z["text/x-shellscript"]0000

pattern_matches.csv

idsha256pattern_namematch_typematchlocationlength
122f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$cmd1yara-textcmd.exe787
222f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$cmd1yara-textcmd.exe5537
322f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$cmd2yara-textpowershell9610
422f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$cmd2yara-textpowershell52710
522f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$cmd3yara-text/bin/bash29
622f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$cmd3yara-text/bin/bash1549
722f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$cmd3yara-text/bin/bash5789
822f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$cmd4yara-text/bin/sh1727
922f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$net1yara-textwget 2145
1022f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$net2yara-textcurl 2465
1122f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$net3yara-textInvoke-WebRequest28117
1222f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$exec1yara-textRuntime.getRuntime().exec36625
1322f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$exec2yara-textos.system(40010
1422f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Suspicious_Strings:$exec3yara-textsubprocess.call42015
1522f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Base64_Encoded_Commands:$b64_powershellyara-textcG93ZXJzaGVsbA51114
1622f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Base64_Encoded_Commands:$b64_powershellyara-textcG93ZXJzaGVsbA59514
1722f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Base64_Encoded_Commands:$b64_cmdyara-textY21kLmV4ZQ54110
1822f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Base64_Encoded_Commands:$b64_cmdyara-textY21kLmV4ZQ61910
1922f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Base64_Encoded_Commands:$b64_bashyara-textL2Jpbi9iYXNo56412
2022f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Base64_Encoded_Commands:$b64_bashyara-textL2Jpbi9iYXNo63912
2122f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Webshell_Indicators:$php1yara-texteval($_6747
2222f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Webshell_Indicators:$php3yara-textsystem($_6949
2322f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Webshell_Indicators:$php4yara-textshell_exec($_71513
2422f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Webshell_Indicators:$jsp1yara-textRuntime.getRuntime()36620
2522f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Webshell_Indicators:$jsp1yara-textRuntime.getRuntime()74520
2622f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Webshell_Indicators:$jsp2yara-textgetParameter76712
2722f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Crypto_Indicators:$btcyara-regex1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN287134
2822f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Crypto_Indicators:$ransom1yara-textYour files have been encrypted91830
2922f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Crypto_Indicators:$ransom2yara-textbitcoin8297
3022f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Crypto_Indicators:$ransom2yara-textbitcoin9557
3122f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367adefault:Crypto_Indicators:$ransom3yara-text.onion10026
3222f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367aSuspicious String - cmd.exestringcmd.exe4:17
3322f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367aSuspicious String - cmd.exestringcmd.exe22:157

signature_matches.csv

Empty CSV

unique_files.csv

sha256sha1md5file_sizemime_type_for_contentshannon_entropy
22f34b029656bf34edd14b2066a18e9a8e6b55702bc9584e68ba3f51eba3367afcf773783b2da616fde022c9b80c182e21f4e5e95fd08f61a5bece9ef172aa3f6e97c8fd1018text/x-shellscript5.37685282015745