|
34 | 34 | { |
35 | 35 | "Description": "mentions an IP and port", |
36 | 36 | "MatchStrings": [ |
37 | | - "IP", |
38 | | - "lIp", |
39 | 37 | "lookupPort", |
| 38 | + "parsePort", |
| 39 | + "lIp", |
40 | 40 | "oIp", |
41 | | - "parsePort" |
| 41 | + "IP" |
42 | 42 | ], |
43 | 43 | "RiskScore": 2, |
44 | 44 | "RiskLevel": "MEDIUM", |
|
60 | 60 | { |
61 | 61 | "Description": "references a specific architecture", |
62 | 62 | "MatchStrings": [ |
| 63 | + "http://", |
63 | 64 | "AMD64", |
64 | 65 | "amd64", |
65 | 66 | "arm64", |
66 | | - "http://", |
67 | 67 | "x86" |
68 | 68 | ], |
69 | 69 | "RiskScore": 1, |
|
167 | 167 | { |
168 | 168 | "Description": "references a 'public key'", |
169 | 169 | "MatchStrings": [ |
170 | | - "PublicKey", |
171 | 170 | "public key", |
| 171 | + "PublicKey", |
172 | 172 | "publicKey" |
173 | 173 | ], |
174 | 174 | "RiskScore": 1, |
|
179 | 179 | }, |
180 | 180 | { |
181 | 181 | "Description": "RC4 key scheduling algorithm", |
182 | | - "MatchStrings": [ |
183 | | - "$cmp_e_x_256", |
184 | | - "$cmp_r_x_256" |
185 | | - ], |
186 | 182 | "RiskScore": 1, |
187 | 183 | "RiskLevel": "LOW", |
188 | 184 | "RuleURL": "https://github.com/chainguard-dev/malcontent/blob/main/rules/crypto/rc4.yara#rc4_ksa", |
|
193 | 189 | { |
194 | 190 | "Description": "tls", |
195 | 191 | "MatchStrings": [ |
196 | | - "TLS13", |
197 | 192 | "TLSVersion", |
198 | | - "crypto/tls" |
| 193 | + "crypto/tls", |
| 194 | + "TLS13" |
199 | 195 | ], |
200 | 196 | "RiskScore": 1, |
201 | 197 | "RiskLevel": "LOW", |
|
298 | 294 | { |
299 | 295 | "Description": "Looks up the HOME directory for the current user", |
300 | 296 | "MatchStrings": [ |
301 | | - "HOME", |
302 | | - "getenv" |
| 297 | + "getenv", |
| 298 | + "HOME" |
303 | 299 | ], |
304 | 300 | "RiskScore": 1, |
305 | 301 | "RiskLevel": "LOW", |
|
311 | 307 | { |
312 | 308 | "Description": "Looks up the USER name of the current user", |
313 | 309 | "MatchStrings": [ |
314 | | - "USER", |
315 | | - "getenv" |
| 310 | + "getenv", |
| 311 | + "USER" |
316 | 312 | ], |
317 | 313 | "RiskScore": 1, |
318 | 314 | "RiskLevel": "LOW", |
|
336 | 332 | { |
337 | 333 | "Description": "Appends rules to a iptables chain", |
338 | 334 | "MatchStrings": [ |
339 | | - "-A", |
| 335 | + "iptables", |
340 | 336 | "INPUT", |
341 | | - "iptables" |
| 337 | + "-A" |
342 | 338 | ], |
343 | 339 | "RiskScore": 2, |
344 | 340 | "RiskLevel": "MEDIUM", |
|
393 | 389 | { |
394 | 390 | "Description": "reads files", |
395 | 391 | "MatchStrings": [ |
396 | | - "ReadFile", |
397 | | - "os.(*File).Read" |
| 392 | + "os.(*File).Read", |
| 393 | + "ReadFile" |
398 | 394 | ], |
399 | 395 | "RiskScore": 1, |
400 | 396 | "RiskLevel": "LOW", |
|
418 | 414 | "Description": "path reference within /etc", |
419 | 415 | "MatchStrings": [ |
420 | 416 | "/etc/apache/mime.types/etc/ssl/ca-bun", |
421 | | - "/etc/hosts/setgroups", |
422 | | - "/etc/httpd/conf/mime.types", |
423 | | - "/etc/mdns.allow/etc/mime.types", |
424 | | - "/etc/nsswitch.conf/etc/pki/tls/certs", |
425 | | - "/etc/passwd/index.html", |
426 | 417 | "/etc/pki/ca-trust/extracted/pem/tls-c", |
427 | | - "/etc/pki/tls/cacert.pem", |
428 | | - "/etc/pki/tls/certs/ca-bundle.crt", |
429 | | - "/etc/protocols/etc/ssl/certs", |
430 | | - "/etc/resolv.conf", |
431 | 418 | "/etc/security/cacerts/usr/local/share", |
432 | | - "/etc/services", |
433 | 419 | "/etc/ssl/ca-bundle.pem/lib/time/zonei", |
| 420 | + "/etc/nsswitch.conf/etc/pki/tls/certs", |
| 421 | + "/etc/ssl/certs/ca-certificates.crt", |
| 422 | + "/etc/pki/tls/certs/ca-bundle.crt", |
| 423 | + "/etc/mdns.allow/etc/mime.types", |
| 424 | + "/etc/protocols/etc/ssl/certs", |
| 425 | + "/etc/httpd/conf/mime.types", |
| 426 | + "/etc/pki/tls/cacert.pem", |
| 427 | + "/etc/passwd/index.html", |
| 428 | + "/etc/hosts/setgroups", |
434 | 429 | "/etc/ssl/cert.pem", |
435 | | - "/etc/ssl/certs/ca-certificates.crt" |
| 430 | + "/etc/resolv.conf", |
| 431 | + "/etc/services" |
436 | 432 | ], |
437 | 433 | "RiskScore": 1, |
438 | 434 | "RiskLevel": "LOW", |
|
513 | 509 | "Description": "vncjew, a VNC scanner", |
514 | 510 | "MatchStrings": [ |
515 | 511 | "iptables", |
516 | | - "masscan", |
517 | | - "readVNCs" |
| 512 | + "readVNCs", |
| 513 | + "masscan" |
518 | 514 | ], |
519 | 515 | "RiskScore": 4, |
520 | 516 | "RiskLevel": "CRITICAL", |
|
526 | 522 | "Description": "Uses DNS (Domain Name Service)", |
527 | 523 | "MatchStrings": [ |
528 | 524 | "CNAMEResource", |
529 | | - "SetEDNS0", |
530 | | - "dnsmessage" |
| 525 | + "dnsmessage", |
| 526 | + "SetEDNS0" |
531 | 527 | ], |
532 | 528 | "RiskScore": 1, |
533 | 529 | "RiskLevel": "LOW", |
|
561 | 557 | { |
562 | 558 | "Description": "accepts JSON files via HTTP", |
563 | 559 | "MatchStrings": [ |
564 | | - "Accept", |
565 | | - "application/json" |
| 560 | + "application/json", |
| 561 | + "Accept" |
566 | 562 | ], |
567 | 563 | "RiskScore": 1, |
568 | 564 | "RiskLevel": "LOW", |
|
636 | 632 | { |
637 | 633 | "Description": "makes HTTP requests", |
638 | 634 | "MatchStrings": [ |
| 635 | + "User-Agent", |
639 | 636 | "HTTP/1.", |
640 | | - "Referer", |
641 | | - "User-Agent" |
| 637 | + "Referer" |
642 | 638 | ], |
643 | 639 | "RiskScore": 1, |
644 | 640 | "RiskLevel": "LOW", |
|
814 | 810 | { |
815 | 811 | "Description": "Sends UDP packets", |
816 | 812 | "MatchStrings": [ |
817 | | - "DialUDP", |
818 | | - "WriteMsgUDP" |
| 813 | + "WriteMsgUDP", |
| 814 | + "DialUDP" |
819 | 815 | ], |
820 | 816 | "RiskScore": 1, |
821 | 817 | "RiskLevel": "LOW", |
|
859 | 855 | { |
860 | 856 | "Description": "transfer data between file descriptors", |
861 | 857 | "MatchStrings": [ |
862 | | - "sendfile", |
863 | | - "syscall.Sendfile" |
| 858 | + "syscall.Sendfile", |
| 859 | + "sendfile" |
864 | 860 | ], |
865 | 861 | "RiskScore": 1, |
866 | 862 | "RiskLevel": "LOW", |
|
922 | 918 | }, |
923 | 919 | { |
924 | 920 | "Description": "multiple ELF binaries within an ELF binary", |
925 | | - "MatchStrings": [ |
926 | | - "$elf_head" |
927 | | - ], |
928 | 921 | "RiskScore": 2, |
929 | 922 | "RiskLevel": "MEDIUM", |
930 | 923 | "RuleURL": "https://github.com/chainguard-dev/malcontent/blob/main/rules/anti-static/elf/multiple.yara#multiple_elf", |
|
935 | 928 | "Description": "Linux ELF binary packed with UPX", |
936 | 929 | "MatchStrings": [ |
937 | 930 | "This file is packed", |
938 | | - "UPX!", |
939 | | - "executable packer" |
| 931 | + "executable packer", |
| 932 | + "UPX!" |
940 | 933 | ], |
941 | 934 | "RiskScore": 3, |
942 | 935 | "RiskLevel": "HIGH", |
|
969 | 962 | { |
970 | 963 | "Description": "references a specific architecture", |
971 | 964 | "MatchStrings": [ |
972 | | - "amd64", |
973 | | - "http://" |
| 965 | + "http://", |
| 966 | + "amd64" |
974 | 967 | ], |
975 | 968 | "RiskScore": 1, |
976 | 969 | "RiskLevel": "LOW", |
|
0 commit comments