Skip to content

Commit

Permalink
Anti-Root & Flutter Sec. Plugins rednaga#428
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiTheModder committed Dec 17, 2024
1 parent 4c529c3 commit fd8a1e2
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apkid/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def colorize_tag(tag) -> str:
return prt_light_cyan(tag)
elif tag == 'abnormal':
return prt_light_gray(tag)
elif tag in ['anti_vm', 'anti_disassembly', 'anti_debug']:
elif tag in ['anti_vm', 'anti_disassembly', 'anti_debug', 'anti_root']:
return prt_purple(tag)
elif tag in ['packer', 'protector']:
return prt_red(tag)
Expand Down
52 changes: 51 additions & 1 deletion apkid/rules/dex/protectors.yara
Original file line number Diff line number Diff line change
Expand Up @@ -355,4 +355,54 @@ rule protectt_dex : protector
condition:
is_dex and all of them
}
}

rule flutter_security_checker : protector
{
meta:
description = "FlutterSecurityChecker"
url = "https://pub.dev/packages/flutter_security_checker"
sample = "045d548cfd282d1aa8993efd22846ff49b0c48d99590cc36e3cf6c633dd85bcc" // com.swisssign.swissid.mobile
author = "Abhi"

strings:
$class = { 00 43 4C 63 6F 6D 2F 70 72 61 76 65 72 61 2F 66 6C 75 74 74 65 72 5F
73 65 63 75 72 69 74 79 5F 63 68 65 63 6B 65 72 2F 46 6C 75 74 74 65
72 53 65 63 75 72 69 74 79 43 68 65 63 6B 65 72 50 6C 75 67 69 6E 3B 00 } // Lcom/pravera/flutter_security_checker/FlutterSecurityCheckerPlugin;
condition:
is_dex and all of them
}

rule flutterjailbreakdetection : anti_root
{
meta:
description = "flutter_jailbreak_detection (RootBeer)"
url = "https://pub.dev/packages/flutter_jailbreak_detection"
sample = "045d548cfd282d1aa8993efd22846ff49b0c48d99590cc36e3cf6c633dd85bcc" // com.swisssign.swissid.mobile
author = "Abhi"

strings:
$class = { 00 46 4C 61 70 70 6D 69 72 65 2F 62 65 2F 66 6C 75 74 74 65 72 6A 61 69
6C 62 72 65 61 6B 64 65 74 65 63 74 69 6F 6E 2F 46 6C 75 74 74 65 72 4A
61 69 6C 62 72 65 61 6B 44 65 74 65 63 74 69 6F 6E 50 6C 75 67 69 6E 3B 00 } // Lappmire/be/flutterjailbreakdetection/FlutterJailbreakDetectionPlugin;
condition:
is_dex and all of them
}

rule rootbeer: anti_root
{
meta:
description = "RootBeer"
url = "https://github.com/scottyab/rootbeer.git"
sample = "607ec962ba93cc9817129cb693ff0f335f500a297b5a297e71fbb998d0f6849c" // com.scottyab.rootbeer.sample
author = "Abhi"

strings:
$class = { 00 20 4C 63 6F 6D 2F 73 63 6F 74 74 79 61 62 2F 72
6F 6F 74 62 65 65 72 2F 52 6F 6F 74 42 65 65 72 3B 00 } // Lcom/scottyab/rootbeer/RootBeer;
condition:
is_dex and all of them
}

0 comments on commit fd8a1e2

Please sign in to comment.