@@ -27,52 +27,60 @@ jobs:
27
27
28
28
steps :
29
29
- uses : actions/checkout@v2
30
+
30
31
- name : Set up Python
31
32
uses : actions/setup-python@v2
32
33
with :
33
34
python-version : ${{ matrix.python-version }}
34
35
35
- # Runs a single command using the runners shell
36
36
- name : Install dependencies
37
37
run : |
38
38
python -m pip install --upgrade pip
39
- python -m pip install pipenv
40
- pipenv install --skip-lock --dev
39
+ python -m pip install ciphey frida objection
40
+ python -m pip install black pytest sphinx sphinx-rtd-theme
41
+
42
+ # Install click >= 8.0.0 for CLI supports
43
+ python -m pip install click==8.0.3
41
44
42
45
- run : sudo apt-get -y install graphviz
43
46
if : matrix.os == 'ubuntu-latest'
44
47
- run : brew install graphviz
45
48
if : matrix.os == 'macOS-latest'
46
49
- run : choco install graphviz
47
50
if : matrix.os == 'windows-latest'
51
+
52
+ - name : Install Quark-Engine
53
+ run : |
54
+ python setup.py build
55
+ python setup.py install
56
+
48
57
# Download the latest rule set
49
58
- name : Download rule from https://github.com/quark-engine/quark-rules
50
- run : |
51
- pipenv run freshquark
59
+ run : freshquark
52
60
53
61
# Runs a set of commands using the quark-engine
54
62
- name : Run a multi-line script
55
63
run : |
56
- pipenv run quark --help
64
+ quark --help
57
65
git clone https://github.com/quark-engine/apk-malware-samples
58
- pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s
59
- pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d
60
- pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -g
61
- pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d -g
62
- pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -c
66
+ quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s
67
+ quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d
68
+ quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -g
69
+ quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d -g
70
+ quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -c
63
71
64
72
- name : Check Accuracy
65
73
shell : bash
66
74
run : |
67
- echo "Ahmyth_RESULT=$(pipenv run quark -a apk-malware-samples/Ahmyth.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
68
- echo "a4db_RESULT=$(pipenv run quark -a apk-malware-samples/13667fe3b0ad496a0cd157f34b7e0c991d72a4db.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
69
- echo "e273e_RESULT=$(pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
75
+ echo "Ahmyth_RESULT=$(quark -a apk-malware-samples/Ahmyth.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
76
+ echo "a4db_RESULT=$(quark -a apk-malware-samples/13667fe3b0ad496a0cd157f34b7e0c991d72a4db.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
77
+ echo "e273e_RESULT=$(quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
70
78
71
79
- name : Check Ahmyt Result
72
80
shell : bash
73
81
# This sample should have 16 behaviors with 100% confidence
74
82
run : |
75
- if [ "${{ env.Ahmyth_RESULT }}" == "28 " ]; then
83
+ if [ "${{ env.Ahmyth_RESULT }}" == "35 " ]; then
76
84
exit 0
77
85
else
78
86
exit 1
82
90
shell : bash
83
91
# This sample should have 11 behaviors with 100% confidence
84
92
run : |
85
- if [ "${{ env.a4db_RESULT }}" == "17 " ]; then
93
+ if [ "${{ env.a4db_RESULT }}" == "19 " ]; then
86
94
exit 0
87
95
else
88
96
exit 1
92
100
shell : bash
93
101
# This sample should have 15 behaviors with 100% confidence
94
102
run : |
95
- if [ "${{ env.e273e_RESULT }}" == "27 " ]; then
103
+ if [ "${{ env.e273e_RESULT }}" == "36 " ]; then
96
104
exit 0
97
105
else
98
106
exit 1
0 commit comments