Skip to content

Commit

Permalink
Fix the YARA assembly workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0xThiebaut committed Jul 30, 2023
1 parent 3f16ebc commit db8f157
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/yara-assemble.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

# Assemble all *.yar files (except those requiring external variables)
- name: Assemble all Yara files
run: "for f in $GITHUB_WORKSPACE/yara/*.yar; do if [[ (\"${f##*/}\" != \"generic_anomalies.yar\") && (\"${f##*/}\" != \"general_cloaking.yar\") && (\"${f##*/}\" != \"thor_inverse_matches.yar\") && (\"${f##*/}\" != \"yara_mixed_ext_vars.yar\") && (\"${f##*/}\" != \"gen_webshells_ext_vars.yar\") && (\"${f##*/}\" != \"configured_vulns_ext_vars.yar\") ]]; then cat $f >> signature-base.yar; fi;done"
run: "for f in $GITHUB_WORKSPACE/yara/*.yar; do if [[ (\"${f##*/}\" != \"generic_anomalies.yar\") && (\"${f##*/}\" != \"general_cloaking.yar\") && (\"${f##*/}\" != \"gen_webshells_ext_vars.yar\") && (\"${f##*/}\" != \"thor_inverse_matches.yar\") && (\"${f##*/}\" != \"yara_mixed_ext_vars.yar\") && (\"${f##*/}\" != \"configured_vulns_ext_vars.yar\") && (\"${f##*/}\" != \"gen_fake_amsi_dll.yar\") && (\"${f##*/}\" != \"expl_citrix_netscaler_adc_exploitation_cve_2023_3519.yar\") && (\"${f##*/}\" != \"yara-rules_vuln_drivers_strict_renamed.yar\") ]]; then cat $f >> signature-base.yar; fi;done"

# Upload the assembled Yara artifact
- name: Upload the resulting Yara artifact
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ Using the YARA rules in a tool other than [LOKI](https://github.com/Neo23x0/Loki
- ./yara/configured_vulns_ext_vars.yar
- ./yara/gen_fake_amsi_dll.yar
- ./yara/expl_citrix_netscaler_adc_exploitation_cve_2023_3519.yar

- ./yara/yara-rules_vuln_drivers_strict_renamed.yar
<!-- When adding entries, also update .github/workflows/yara-assemble.yml -->
Just remove these files in case you see the above error message.

## High Quality YARA Rules Feed
Expand Down

0 comments on commit db8f157

Please sign in to comment.