Add new Quark rules for Godfather malware detection#915
Merged
Conversation
Add a malware report section for the GodFather Android banking trojan (MITRE ATT&CK Mobile S1231) covering rule ev-flow#274. The report walks through 6 techniques the family employs — software discovery, input capture, SMS control, call control, event-triggered execution, and impair defenses — with a behavior map and rule citations for each.
This was referenced May 8, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #915 +/- ##
=======================================
Coverage 81.40% 81.40%
=======================================
Files 80 80
Lines 6969 6969
=======================================
Hits 5673 5673
Misses 1296 1296
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sync the GodFather section with the latest version reviewed in PR ev-flow#915: * Restructure intro — move MITRE framing and sample provenance from intro into the "Identified Well-Known Threats" section, leaving the intro to just the rule announcement and accuracy claim. * Reorder each technique block: MITRE definition now comes before the behavior map image so readers see the technique definition first, then the Quark evidence. * Drop the "observed in N VT sandbox sample(s)" provenance line — it added no decision-relevant signal for the reader. * Drop the "Cluster reflects ... see description below" disclaimer and instead fold the cluster-to-technique rationale directly into the descriptive prose for T1624 and T1629. * Fix spelling and style: behaviour -> behavior, GodFather capitalisation in prose, "2 helpers" -> "two helpers", drop "sample(s)" plural marker, "literature profile" -> "documented profile". * Update intro wording to state that MITRE ATT&CK Mobile is the reference taxonomy and that the current Quark rule set detects all listed techniques statically from APK bytecode.
Added new images and updated the list of banking trojans with their behaviors and links.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Quark Rules For godfather
New Quark rule (#274) is now available. This rule targets godfather. Check here for the rule details.
With these rules, Quark is now able to identify the godfather malware family as high-risk. In our experiment, Quark achieved 100% accuracy and 100% precision. See tested APKs below.
Identified Well-Known Threats
This section uses MITRE ATT&CK Mobile as its reference taxonomy. The table below lists every technique documented for GodFather (per software entry S1231 GodFather) alongside how each manifests in real-world campaigns — all of which the current Quark rule set can detect statically from APK bytecode.
All behavior maps below were rendered from sample
0b72c22517fdefd4cf0466d8d4c634ca73b7667d378be688efe131af4ac3aed8.apk— chosen as the representative sample whose detected behaviors most fully cover the documented profile of GodFather. The other 11 family samples were used to compute the accuracy and precision figures above.Each section below corresponds to one technique from the table above. Within each section we first quote the MITRE definition, then show the Quark behavior map extracted from the representative sample's bytecode, then walk through the call sequence and list the underlying rules.
1. T1418 Software Discovery
T1418 Software Discovery — attack.mitre.org
number_taskcallsgetAppsto enumerate installed applications and store the list in shared preferences. Together, these calls enable the malware to discover and persist a complete inventory of software present on the device.Behaviors detected by Quark:
2. T1417 Input Capture
T1417 Input Capture — attack.mitre.org
onAccessibilityEventcalls two helpers to query UI nodes by ID and text, check view content, and perform actions on accessibility node info. Together, these calls enable automated inspection and interaction with UI elements in the active window.Behaviors detected by Quark:
3. T1582 SMS Control
T1582 SMS Control — attack.mitre.org
onReceivecallsSMRCto monitor incoming SMS messages and extract sender phone numbers and message content. Together, these calls enable the receiver to intercept and inspect SMS data as it arrives on the device.Behaviors detected by Quark:
4. T1616 Call Control
T1616 Call Control — attack.mitre.org
onCreateconstructs an implicit intent with a phone number and initiates a phone call viasetData. Combined, these APIs enable the activity to programmatically place outbound calls without user interaction.Behaviors detected by Quark:
5. T1624 Event Triggered Execution
T1624 Event Triggered Execution — attack.mitre.org
The behavior map above shows GodFather subscribing to the incoming-SMS broadcast — Android's
SMS_RECEIVEDis one of the canonical "specific events" called out in the MITRE definition, and the malware uses it as a trigger for execution.onReceivemonitors the general action performed and incoming SMS messages, enabling the receiver to detect and respond to SMS arrival events in real time.Behaviors detected by Quark:
6. T1629 Impair Defenses
T1629 Impair Defenses — attack.mitre.org
The behavior map above shows GodFather deleting SMS via content URIs — a concrete instance of impairing the user's ability to audit communication activity (matching the MITRE definition's phrase "detection capabilities defenders can use to audit activity").
DelSentdeletes media specified by content URIs, including SMS, erasing traces of communication activity.Behaviors detected by Quark:
List of Tested APKs
The table below lists the APKs we tested.