Detecting Mobile Malware Behavior
Overview
Cybersecurity skill for detecting mobile malware behavior. Follows industry best practices and security standards.
When to Use
Trigger phrases:
- "detecting mobile malware behavior"
- "Analyzing suspicious mobile applications submitted by users or discovered during"
- "Monitoring enterprise mobile fleet for malicious app indicators"
- "Performing malware triage on APK/IPA samples"
Use this skill when:
- Analyzing suspicious mobile applications submitted by users or discovered during incident response
- Monitoring enterprise mobile fleet for malicious app indicators
- Performing malware triage on APK/IPA samples
- Investigating data exfiltration or unauthorized device access from mobile apps
Do not use this skill to create, enhance, or distribute malware. This skill is for defensive analysis only.
When NOT to Use
- When you lack proper authorization for testing
- For production systems without change management
- When the task requires legal or compliance expertise beyond technical scope
Prerequisites
- Isolated analysis environment (dedicated device or emulator, not connected to production networks)
- MobSF for automated static+dynamic analysis
- Frida/Objection for runtime behavior monitoring
- Wireshark/tcpdump for network traffic capture
- Android emulator (AVD) or Genymotion for safe execution
- VirusTotal API key for hash lookups
Workflow
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- Define Detection Scope — Identify the specific mobile malware behavior techniques or indicators to hunt. Map to MITRE ATT&CK tactics/techniques where applicable.
- Collect Baseline Data — Gather historical logs and establish normal behavior patterns for mobile malware behavior.
- Build Detection Queries — Write detection rules, Sigma rules, or SIEM queries targeting mobile malware behavior indicators.
- Execute Hunts — Run queries against the collected data, starting with broad filters and narrowing down.
- Triage Results — Investigate alerts, filter false positives, and validate findings against known-good behavior.
- Document Findings — Record confirmed detections, IOCs, and affected systems. Update detection rules based on findings.
Tools
- SIEM Platform — Central log aggregation and query execution
- Sigma Rules — Vendor-agnostic detection rule format
- MITRE ATT&CK Navigator — Technique mapping and coverage analysis
Process
- Reconnaissance — Gather target information, identify attack surface, enumerate services
- Analysis/Exploitation — Execute the technique, analyze results, document findings
- Reporting — Document IOCs, write findings, provide remediation recommendations
Verification
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: detecting-mobile-malware-behavior3description: Use when detects and analyzes malicious behavior in mobile applications through behavioral analysis, permission abuse detection, network traffic monitoring, and dynamic instrumentation. Use when analyzing suspicious mobile applications for data exfiltration, command-and-control communication, credential stealing, SMS interception, or other malware indicators. Activates for requests involving mobile malware analysis, app behavior monitoring, trojan detection, or suspicious app investigation.4license: Apache-2.05---67# Detecting Mobile Malware Behavior89## Overview1011Cybersecurity skill for detecting mobile malware behavior. Follows industry best practices and security standards.1213## When to Use1415**Trigger phrases:**16- "detecting mobile malware behavior"17- "Analyzing suspicious mobile applications submitted by users or discovered during"18- "Monitoring enterprise mobile fleet for malicious app indicators"19- "Performing malware triage on APK/IPA samples"202122Use this skill when:23- Analyzing suspicious mobile applications submitted by users or discovered during incident response24- Monitoring enterprise mobile fleet for malicious app indicators25- Performing malware triage on APK/IPA samples26- Investigating data exfiltration or unauthorized device access from mobile apps2728**Do not use** this skill to create, enhance, or distribute malware. This skill is for defensive analysis only.293031## When NOT to Use3233- When you lack proper authorization for testing34- For production systems without change management35- When the task requires legal or compliance expertise beyond technical scope363738## Prerequisites3940- Isolated analysis environment (dedicated device or emulator, not connected to production networks)41- MobSF for automated static+dynamic analysis42- Frida/Objection for runtime behavior monitoring43- Wireshark/tcpdump for network traffic capture44- Android emulator (AVD) or Genymotion for safe execution45- VirusTotal API key for hash lookups4647## Workflow4849```python50# Example: IOC detection51import re5253IOC_PATTERNS = {54 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",55 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",56 "hash_md5": r"\b[a-f0-9]{32}\b",57 "hash_sha256": r"\b[a-f0-9]{64}\b",58}5960def extract_iocs(text: str) -> dict:61 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}62```63641. **Define Detection Scope** — Identify the specific mobile malware behavior techniques or indicators to hunt. Map to MITRE ATT&CK tactics/techniques where applicable.652. **Collect Baseline Data** — Gather historical logs and establish normal behavior patterns for mobile malware behavior.663. **Build Detection Queries** — Write detection rules, Sigma rules, or SIEM queries targeting mobile malware behavior indicators.674. **Execute Hunts** — Run queries against the collected data, starting with broad filters and narrowing down.685. **Triage Results** — Investigate alerts, filter false positives, and validate findings against known-good behavior.696. **Document Findings** — Record confirmed detections, IOCs, and affected systems. Update detection rules based on findings.7071## Tools7273- **SIEM Platform** — Central log aggregation and query execution74- **Sigma Rules** — Vendor-agnostic detection rule format75- **MITRE ATT&CK Navigator** — Technique mapping and coverage analysis767778## Process79801. **Reconnaissance** — Gather target information, identify attack surface, enumerate services811. **Analysis/Exploitation** — Execute the technique, analyze results, document findings821. **Reporting** — Document IOCs, write findings, provide remediation recommendations8384## Verification8586- [ ] All mobile malware behavior procedures executed completely and documented87- [ ] Findings validated against multiple data sources88- [ ] False positives identified and filtered89- [ ] Results documented with evidence and timestamps90- [ ] Recommendations provided with risk-based prioritization9192## Anti-Rationalization Table9394| Rationalization | Reality |95|---|---|96| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |97| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |98| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |