Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,31 +97,31 @@ jobs:
echo "a4db_RESULT=$(quark -a apk-samples/malware-samples/13667fe3b0ad496a0cd157f34b7e0c991d72a4db.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
echo "e273e_RESULT=$(quark -a apk-samples/malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV

- name: Check Ahmyt Result
- name: Check Ahmyth Result
shell: bash
# This sample should have 16 behaviors with 100% confidence
# This sample should have 39 behaviors with 100% confidence
run: |
if [ "${{ env.Ahmyth_RESULT }}" == "40" ]; then
if [ "${{ env.Ahmyth_RESULT }}" == "39" ]; then
exit 0
else
exit 1
fi

- name: Check 13667fe3b0ad496a0cd157f34b7e0c991d72a4db.apk Result
shell: bash
# This sample should have 11 behaviors with 100% confidence
# This sample should have 19 behaviors with 100% confidence
run: |
if [ "${{ env.a4db_RESULT }}" == "20" ]; then
if [ "${{ env.a4db_RESULT }}" == "19" ]; then
exit 0
else
exit 1
fi

- name: Check 14d9f1a92dd984d6040cc41ed06e273e.apk Result
shell: bash
# This sample should have 15 behaviors with 100% confidence
# This sample should have 41 behaviors with 100% confidence
run: |
if [ "${{ env.e273e_RESULT }}" == "43" ]; then
if [ "${{ env.e273e_RESULT }}" == "41" ]; then
exit 0
else
exit 1
Expand Down
6 changes: 2 additions & 4 deletions quark/core/apkinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
class AndroguardImp(BaseApkinfo):
"""Information about apk based on androguard analysis"""

__slots__ = ("apk", "dalvikvmformat", "analysis", "_manifest")

def __init__(self, apk_filepath: Union[str, PathLike]):
super().__init__(apk_filepath, "androguard")

Expand Down Expand Up @@ -59,7 +57,7 @@ def custom_methods(self) -> Set[MethodObject]:
if not meth_analysis.is_external()
}

@property
@functools.cached_property
def all_methods(self) -> Set[MethodObject]:
return {
self._convert_to_method_object(meth_analysis)
Expand Down Expand Up @@ -261,7 +259,7 @@ def get_wrapper_smali(

return result

@property
@functools.cached_property
def superclass_relationships(self) -> Dict[str, Set[str]]:
hierarchy_dict = defaultdict(set)

Expand Down
Loading
Loading