Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion rules/anti-static/obfuscation/obfuscate.yara
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ rule obfuscator {
condition:
$obfuscate
}

1 change: 0 additions & 1 deletion rules/anti-static/xor/xor-paths.yara
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ rule xor_paths: high {
condition:
filesize < 10MB and any of them
}

1 change: 0 additions & 1 deletion rules/c2/addr/discord.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule discord: medium {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/c2/addr/telegram.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule telegram: medium {
condition:
any of them
}

12 changes: 12 additions & 0 deletions rules/c2/addr/url.yara
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ rule http_url_with_question: medium {
filesize < 256KB and any of ($f*) and $ref and none of ($not*)
}

rule binary_with_malicious_url: critical {
meta:
description = "binary contains hardcoded, malicious URL"
filetypes = "elf,macho"

strings:
$ = "https://mainnet.solana-rpc-pool.workers.dev"

condition:
filesize < 150MB and elf_or_macho and any of them
}

rule binary_with_url: low {
meta:
description = "binary contains hardcoded URL"
Expand Down
1 change: 0 additions & 1 deletion rules/c2/connect/curl_easy.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule curl_easy: medium {
condition:
filesize < 1MB and all of them
}

1 change: 0 additions & 1 deletion rules/c2/connect/ping_pong.yara
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ rule ping_pong: medium {
condition:
filesize < 1MB and all of them
}

1 change: 0 additions & 1 deletion rules/c2/connect/server.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule connect_server: medium {
condition:
filesize < 1MB and any of them
}

1 change: 0 additions & 1 deletion rules/c2/tool_transfer/bitsadmin.yara
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ rule bitsadmin_transfer: high {
condition:
filesize < 250KB and all of them
}

1 change: 0 additions & 1 deletion rules/credential/cloud/gcloud.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule gcloud_config_value: medium {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/credential/gaming/minecraft.yara
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ rule essential_microsoft_accounts: high {
condition:
all of them
}

1 change: 0 additions & 1 deletion rules/crypto/public_key.yara
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ rule verifies_public_key: medium {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/data/embedded/base64.yara
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ rule base64_content_reversed: high {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/data/embedded/embedded-pem-certificate.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule begin_cert {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/data/embedded/embedded-pem-test_key.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule testing_key {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/data/embedded/embedded-ssh-signature.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule ssh_signature: medium {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/data/encoding/audio-pcm.yara
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ rule pcm: harmless {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/data/encoding/marshal.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule encoding_py_marshal: medium {
condition:
filesize < 1MB and any of them
}

1 change: 0 additions & 1 deletion rules/data/random/insecure.yara
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ rule insecure_rand {
condition:
any of them in (1000..3000)
}

1 change: 0 additions & 1 deletion rules/discover/cloud/aws-metadata.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule aws_metadata {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/discover/cloud/google-docs.yara
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ rule google_docs_user: high {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/discover/cloud/google-metadata.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule google_metadata {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/discover/cloud/google-storage.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule go_import {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/evasion/bypass_security/linux/iptables.yara
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,3 @@ rule iptables_delete: medium {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/evasion/file/location/dev-mqueue.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule dev_mqueue: medium {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/evasion/file/location/lib.yara
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ rule multiple_lib_so_high: medium linux {
condition:
filesize < 10MB and uint32(0) == 1179403647 and #lib > 1
}

1 change: 0 additions & 1 deletion rules/evasion/file/location/var-tmp.yara
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ rule var_tmp_path_hidden: high {
condition:
$ref and none of ($not*)
}

1 change: 0 additions & 1 deletion rules/evasion/file/location/x11-unix.yara
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ rule hidden_x11_unexpected: high {
condition:
filesize < 10MB and $x11 and none of ($not*)
}

1 change: 0 additions & 1 deletion rules/evasion/file/prefix/proc.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule hidden_proc: high linux {
condition:
filesize < 10MB and all of them
}

1 change: 0 additions & 1 deletion rules/evasion/mimicry/fake-library.yara
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ rule libc_fake_number_val: high {
condition:
$ref and none of ($not*)
}

1 change: 0 additions & 1 deletion rules/exec/dylib/iterate.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule dl_iterate_phdr {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/exec/dylib/open.yara
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ rule ruby_dylib: low ruby {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/exfil/curl_post.yara
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ rule curl_post: medium {
condition:
filesize < 8KB and $curl and $post and any of ($http*)
}

19 changes: 19 additions & 0 deletions rules/exfil/stealer/creds.yara
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,22 @@ rule STRRat_critical: critical {
condition:
filesize < 128KB and all of ($p*) and any of ($browser*) and any of ($mail*)
}

rule RustEthereumSolanaStealer: critical {
meta:
description = "steals ethereum and solana wallet keys via compromised Crates"
filetypes = "rs"

strings:
$base58 = "base58" nocase
$base58_alphabet = "const BASE58_ALPHABET: &[u8] = b\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\";"
$endpoint_sub1 = "mainnet"
$endpoint_sub2 = "solana-rpc-pool"
$endpoint_domain = "workers.dev"
$regex_byte_array = "Regex::new(r#\"\\[(?:\\s*0x[0-9a-fA-F]{1,2}\\s*,?\\s*)+\\]|\\[(?:\\s*\\d{1,3}\\s*,?\\s*)+\\]\"#)?"
$regex_address = "Regex::new(r#\"\"[1-9A-HJ-NP-Za-km-z]{32,44}\"\"#)?"
$regex_hex = "Regex::new(r#\"\"0x[0-9a-fA-F]{64}\"\"#)?"

condition:
filesize < 128KB and any of ($base58*) and all of ($endpoint*) and any of ($regex*)
}
1 change: 0 additions & 1 deletion rules/exfil/stealer/file.yara
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,3 @@ rule curl_easy_exfil: high {
condition:
filesize < 1MB and all of them
}

1 change: 0 additions & 1 deletion rules/exfil/stealer/telegram.yara
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ rule telegram_content: critical {
condition:
filesize < 32KB and all of them
}

1 change: 0 additions & 1 deletion rules/false_positives/fzf.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule fzf: override {
condition:
filesize < 6MB and any of them
}

1 change: 0 additions & 1 deletion rules/false_positives/kandji.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule kandji: override {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/false_positives/osqueryd.yara
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ rule osqueryd: override {
condition:
filesize < 100MB and any of them
}

1 change: 0 additions & 1 deletion rules/fs/event-monitoring.yara
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ rule syscall_fanotify_init: linux {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/fs/file/file-truncate.yara
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ rule truncate: harmless {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/fs/path/home-config.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule home_config_path {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/fs/path/home_library.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule home_lib_path {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/fs/proc/pid-statistics.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule proc_pid_stat_val {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/hw/cpu.yara
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ rule CpuInfoAndModel: macos medium {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/impact/remote_access/base64_exec.yara
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ rule hex_convert_base64_ascii: high {
condition:
filesize < 32KB and any of ($lang*) and any of ($b*) and any of ($exec*)
}

1 change: 0 additions & 1 deletion rules/impact/remote_access/dl_iterate.yara
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ rule dl_iterate_cpu_pthreads: high linux {
condition:
filesize < 1200KB and uint32(0) == 1179403647 and all of them
}

1 change: 0 additions & 1 deletion rules/impact/remote_access/ssh.yara
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ rule sshd_backdoor_private_key: critical {
condition:
filesize < 5MB and all of them
}

1 change: 0 additions & 1 deletion rules/impact/ui/x11-auth.yara
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ rule x11_refs: medium {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/impact/ui/xsession.yara
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rule xsession: medium {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/lateral/ssh/worm.yara
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ rule ssh_worm_router: high {
condition:
filesize < 1MB and all of ($s*) and any of ($h*) and 2 of ($p*)
}

1 change: 0 additions & 1 deletion rules/malware/family/gelsemium.yara
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ rule wolfsbane_rc4_key: critical linux {
condition:
filesize < 10MB and all of them
}

1 change: 0 additions & 1 deletion rules/malware/family/platypus.yara
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ rule go_platypus: critical {
condition:
filesize < 17MB and 3 of them
}

1 change: 0 additions & 1 deletion rules/malware/family/tinyshell.yara
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ rule c_tinyshell: critical {
condition:
filesize < 1MB and all of them
}

1 change: 0 additions & 1 deletion rules/malware/family/yakuza.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule yakuza: critical linux {
condition:
uint32(0) == 1179403647 and filesize > 100KB and filesize < 250KB and all of them
}

1 change: 0 additions & 1 deletion rules/malware/ref.yara
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ rule inject_malware: high {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/net/ssl/socket.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule py_ssl_socket: medium {
condition:
all of them
}

11 changes: 11 additions & 0 deletions rules/net/url/embedded.yara
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
rule malicious_https_url: critical {
meta:
description = "contains embedded, malicious HTTPS URLs"

strings:
$ = "https://mainnet.solana-rpc-pool.workers.dev"

condition:
any of them
}

rule https_url {
meta:
description = "contains embedded HTTPS URLs"
Expand Down
1 change: 0 additions & 1 deletion rules/os/fd/sendfile.yara
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ rule sendfile {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/os/fd/write.yara
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ rule py_fd_write {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/os/kernel/kcore.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule kcore: unusual {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/os/kernel/key-management.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule syscall_keyctl {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/os/kernel/sysctl.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule sysctl: harmless {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/os/time/tzinfo.yara
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ rule tzinfo {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/privesc/setuid.yara
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,3 @@ rule ruby_setuid_0: high {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/process/group/create.yara
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ rule syscalls: harmless {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/process/group/set.yara
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ rule setpgid: harmless {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/process/terminate/arbitrary.yara
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ rule kill_9_d: high {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/process/terminate/taskkill.yara
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ rule taskkill_force: high windows {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/process/terminate/terminate.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rule TerminateProcess: medium {
condition:
any of them
}

1 change: 0 additions & 1 deletion rules/process/unshare.yara
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ rule syscall_unshare {
condition:
any of them
}