-
Notifications
You must be signed in to change notification settings - Fork 19
48 lines (41 loc) · 1.13 KB
/
Webshell.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Weekly webshell update
permissions:
contents: write
on:
schedule:
- cron: '0 3 * * 0' # Runs at 03:00 every Sunday
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install python requirements
run: |
pip install PyYAML==6.0 -q
pip install requests -q
pip install plyara -q #2.1.1
- name: Update yara rules and buildvql
run: |
mkdir -p ./vql
cd ./scripts
python get_webshell_yara.py
python yarawebshell.py
- name: Git Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4.15.4
with:
commit_message: AutoUpdate VQL and yara
file_pattern: vql/*.yaml yara/*.yar
- name: Zip Folder
run: zip -r DetectRaptorVQL.zip vql/*.yaml
- uses: ncipollo/release-action@v1
with:
artifacts: DetectRaptorVQL.zip
tag: DetectRaptor
allowUpdates: true