Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore SIGNATURE_BASE_SUSP_PS1_JAB_Pattern_Jun22_1 rule #355

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 29 additions & 28 deletions pkg/compile/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,55 +20,56 @@ var FS = rules.FS
// badRules are noisy 3rd party rules to silently disable.
var badRules = map[string]bool{
// YARAForge
"GODMODERULES_IDDQD_God_Mode_Rule": true,
"MALPEDIA_Win_Unidentified_107_Auto": true,
"GCTI_Sliver_Implant_32Bit": true,
"GCTI_Sliver_Implant_32Bit": true,
"GODMODERULES_IDDQD_God_Mode_Rule": true,
"MALPEDIA_Win_Unidentified_107_Auto": true,
"SIGNATURE_BASE_SUSP_PS1_JAB_Pattern_Jun22_1": true,
// ThreatHunting Keywords (some duplicates)
"scp_greyware_tool_keyword": true,
"Adobe_XMP_Identifier": true,
"Antivirus_Signature_signature_keyword": true,
"blackcat_ransomware_offensive_tool_keyword": true,
"Dinjector_offensive_tool_keyword": true,
"viperc2_offensive_tool_keyword": true,
"empire_offensive_tool_keyword": true,
"github_greyware_tool_keyword": true,
"wfuzz_offensive_tool_keyword": true,
"nmap_greyware_tool_keyword": true,
"koadic_offensive_tool_keyword": true,
"mythic_offensive_tool_keyword": true,
"netcat_greyware_tool_keyword": true,
"whoami_greyware_tool_keyword": true,
"nmap_greyware_tool_keyword": true,
"portscan_offensive_tool_keyword": true,
"scp_greyware_tool_keyword": true,
"sftp_greyware_tool_keyword": true,
"empire_offensive_tool_keyword": true,
"ssh_greyware_tool_keyword": true,
"wireshark_greyware_tool_keyword": true,
"portscan_offensive_tool_keyword": true,
"usbpcap_offensive_tool_keyword": true,
"koadic_offensive_tool_keyword": true,
"viperc2_offensive_tool_keyword": true,
"vsftpd_greyware_tool_keyword": true,
"blackcat_ransomware_offensive_tool_keyword": true,
"mythic_offensive_tool_keyword": true,
"Adobe_XMP_Identifier": true,
"wfuzz_offensive_tool_keyword": true,
"whoami_greyware_tool_keyword": true,
"wireshark_greyware_tool_keyword": true,
// YARA VT
"Windows_API_Function": true,
"Base64_Encoded_URL": true,
"Windows_API_Function": true,
}

// rulesWithWarnings determines what to do with rules that have known warnings: true=keep, false=disable.
var rulesWithWarnings = map[string]bool{
"opaque_binary": true,
"hardcoded_ip": true,
"str_replace_obfuscation": true,
"rot13_str_replace": true,
"base64_str_replace": true,
"DynastyPersist_offensive_tool_keyword": false,
"gzinflate_str_replace": true,
"php_str_replace_obfuscation": true,
"hardcoded_ip_port": true,
"base64_str_replace": true,
"systemd_no_comments_or_documentation": true,
"sleep_and_background": true,
"hardcoded_ip": true,
"Microsoft_Excel_with_Macrosheet": true,
"nmap_offensive_tool_keyword": false,
"opaque_binary": true,
"PDF_with_Embedded_RTF_OLE_Newlines": true,
"Powershell_Case": true,
"php_short_concat": true,
"php_short_concat_multiple": true,
"php_short_concat": true,
"php_str_replace_obfuscation": true,
"Powershell_Case": true,
"RDPassSpray_offensive_tool_keyword": false,
"nmap_offensive_tool_keyword": false,
"DynastyPersist_offensive_tool_keyword": false,
"rot13_str_replace": true,
"sleep_and_background": true,
"str_replace_obfuscation": true,
"systemd_no_comments_or_documentation": true,
}

func Recursive(ctx context.Context, fss []fs.FS) (*yara.Rules, error) {
Expand Down