Skip to content

Commit

Permalink
Merge pull request #86 from jukuisma/feature/async-yara-download
Browse files Browse the repository at this point in the history
Async YARA rule downloads & SSH master connection
  • Loading branch information
pyllyukko authored Aug 25, 2024
2 parents 9a02d1d + 029d5a6 commit ee4bfee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=60s
16 changes: 12 additions & 4 deletions tasks/clamav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@
owner: root
group: root
mode: '0644'
with_items:
async: 20 # Single yara rule download shouldn't take longer than this
poll: 0
loop:
- apt_aa19_024a.yar
- apt_alienspy_rat.yar
- apt_apt17_malware.yar
Expand Down Expand Up @@ -771,7 +773,9 @@
owner: root
group: root
mode: '0644'
with_items:
async: 20
poll: 0
loop:
- CobaltStrike__Resources_Command_Ps1_v2_5_to_v3_7_and_Resources_Compress_Ps1_v3_8_to_v4_x.yara
- CobaltStrike__Resources_Template_Py_v3_3_to_v4_x.yara
- CobaltStrike__Resources_Template_Sct_v3_3_to_v4_x.yara
Expand All @@ -789,7 +793,9 @@
owner: root
group: root
mode: '0644'
with_items:
async: 20
poll: 0
loop:
- Linux_Backdoor_Bash.yar
- Linux_Backdoor_Fontonlake.yar
- Linux_Backdoor_Generic.yar
Expand Down Expand Up @@ -1271,7 +1277,9 @@
owner: root
group: root
mode: '0644'
with_items:
async: 20
poll: 0
loop:
- https://raw.githubusercontent.com/Yara-Rules/rules/master/cve_rules/CVE-2010-0805.yar
- https://raw.githubusercontent.com/Yara-Rules/rules/master/cve_rules/CVE-2010-0887.yar
- https://raw.githubusercontent.com/Yara-Rules/rules/master/cve_rules/CVE-2010-1297.yar
Expand Down

0 comments on commit ee4bfee

Please sign in to comment.