Join our Newsletter — 33% off our NHI Course
Home› Guides› Mobile T1639 Exfiltration Over Alternative Protocol: Detecting Data…
Guide Endpoint Security

Mobile T1639 Exfiltration Over Alternative Protocol: Detecting Data Leaving Android and iOS Devices

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 24 November 2026 12 min read
On this page

Exfiltration Over Alternative Protocol (T1639) is mobile malware sending stolen data out over a different protocol, or to a different destination, from the one it uses for command and control. ATT&CK lists FTP, SMTP, HTTP/S, DNS, SMB and web services such as cloud storage as examples, optionally encrypted or obfuscated. Splitting the two channels means that finding and blocking the C2 server does not stop the data leaving. MITRE ATT&CK v20 lists T1639 under Exfiltration for Android and iOS, with one sub-technique, Exfiltration Over Unencrypted Non-C2 Protocol (T1639.001). This is a short guide by design: ATT&CK itself says the technique is hard to detect directly. It is for mobile security engineers and SOC analysts deciding where to put their effort. For the matrix overview see the MITRE ATT&CK for Mobile Guide.

Key takeaways

  • The exfiltration path is separate from C2. ATT&CK describes a different protocol, a different destination, or both.
  • ATT&CK advises detecting earlier stages. Its v20 analytics for both platforms state that enterprises may be better served focusing on detection at other stages.
  • The recorded cases use ordinary protocols. Email (TianySpy, BusyGasper), FTP (Corona Updates) and plain HTTP (VajraSpy) appear in ATT&CK v20.
  • No mitigation is mapped. ATT&CK v20 maps none, so the controls are network egress policy and stopping the collection that precedes it.
  • Unencrypted means visible. T1639.001 traffic can be inspected at a gateway, which is the one place this technique gives defenders an advantage.

What T1639 covers

IDNameWhat ATT&CK describesSoftware recorded in ATT&CK v20
T1639Exfiltration Over Alternative ProtocolData sent over a protocol other than the C2 channel, possibly to another location; may be encrypted or obfuscatedTianySpy (S1056): can exfiltrate collected user data, including credentials and authorised cookies, by email
T1639.001Exfiltration Over Unencrypted Non-C2 ProtocolData sent over a natively unencrypted protocol such as HTTP, FTP or DNS; may be encoded (for example base64) or hidden in protocol headers and fieldsBusyGasper (S0655): downloads commands from an FTP server and exfiltrates by email. Corona Updates (S0425): exfiltrates over FTP. VajraSpy (S9006): uploads unencrypted data over HTTP using the Retrofit client

ATT&CK v20 lists both platforms. Of the recorded software, ATT&CK lists TianySpy for both Android and iOS; BusyGasper, Corona Updates and VajraSpy are Android only. The technique mirrors Enterprise T1048 and T1048.003; see the T1048 Exfiltration Over Alternative Protocol guide. When data leaves over the C2 channel itself, that is Exfiltration Over C2 Channel (T1646).

How the split channel works

Understanding the design helps decide what to log. Mobile malware typically keeps a small, low-volume channel to its operator for instructions, then moves collected data through a second path that is easier to run at scale or less likely to be watched. Operators choose the second path for convenience: a mail account, a file server or a web endpoint they control.

  • Different protocol: commands arrive over one protocol and data leaves over another, so a rule that watches only the C2 domain sees nothing.
  • Different destination: even over the same protocol, data may go to a separate server, so blocking the C2 address does not stop it.
  • Staging on the device: collected items such as messages, contacts and call records are usually gathered locally before upload, which creates a window where the collection stage can be caught.
  • Timing and batching: uploads may wait for a Wi-Fi connection or a charging state to avoid attention, so detection logic should not assume exfiltration happens at the moment of collection.

Where to detect it

ATT&CK v20 detection strategies DET0698 (T1639) and DET0701 (T1639.001) contain one Android and one iOS analytic each, and all four carry the same guidance: these techniques can be difficult to detect, and enterprises may be better served focusing on detection at other stages of adversarial behaviour. In practice that means three layers.

LayerWhat to watchData source
Before: collectionApps holding sensitive permissions (SMS, contacts, call log) outside the approved list; bulk reads followed by uploadsMDM permission grant state; ATT&CK's Protected User Data analytics
During: egressManaged apps connecting on FTP or SMTP ports, or making plain HTTP requests to destinations outside their baselineAndroid network activity logging (ConnectEvent with package name and port); per-app VPN or gateway flow logs on iOS and Android
ContentEncoded payloads in HTTP fields or DNS labels from unencrypted channelsSecure web gateway or proxy inspection where deployed

Android network activity logging records the package name, destination address and port of each TCP connection attempt, which is exactly the field needed to spot an app opening an SMTP or FTP session. It is enabled by a device owner (Android 8.0 or later) or a work profile owner (Android 12 or later), covers only work profile activity in the latter case, and does not capture UDP. That gap matters for DNS-based exfiltration, so DNS for managed devices should go through a resolver you log. See the DNS Logging and Detection Guide.

Metrics that show it is working

  • Egress visibility: percentage of managed devices whose work traffic passes a gateway or VPN that logs per app.
  • Legacy protocol connections: count of managed app connections on FTP or SMTP ports per week, with each one explained or blocked.
  • Cleartext HTTP from managed apps: trended per app, aiming at zero for apps you build.
  • Collection-stage alerts: unapproved sensitive permission grants found and removed, since ATT&CK points detection effort there.

Worked scenario: an unknown app sending mail

This scenario shows how the layers combine. It is illustrative and not a recorded incident.

  1. Signal: the weekly review of connections on mail ports shows a managed device where a utility app, not the mail client, opened SMTP sessions to an address outside the organisation.
  2. Attribute: the package name in the network log identifies the app. MDM shows it was installed outside the approved store flow and holds permission to read messages and contacts.
  3. Contain: the destination is blocked at the gateway, the app is removed through MDM and the device is marked non-compliant so it cannot reach corporate resources until reviewed.
  4. Scope: from the permissions held and the install date, the team lists what the app could have read, then checks which accounts were signed in on the device.
  5. Recover: sessions and refresh tokens are revoked for those accounts, affected people are told which data may be exposed, and the app hash and destination are added to blocklists.
  6. Improve: the team asks how the app was installed and closes that route, for example by blocking sideloading or tightening the approved app list.

Roles and ownership

RoleResponsibility
Mobile platform ownerMDM policy, approved app lists, permission baselines and device compliance rules
Network teamGateway and VPN egress rules, per-app flow logging and DNS resolver logging
SOC analystsTriage of legacy protocol connections, enrichment with app attribution and escalation
Application developersKeeping cleartext disabled in apps the organisation builds and documenting any exception
Identity teamSession and token revocation for accounts used on an affected device
Privacy and legalDecisions on notification once the data exposed is understood

Deployment considerations

Egress controls on mobile work only if the traffic actually passes through a point you control, so deployment choices decide how much of this guide you can use.

  • Corporate-owned devices: full device management allows always-on VPN, network activity logging and a locked-down app list. This is where per-app attribution is most complete.
  • Personal devices with a work profile: visibility is limited to the work profile, which is the right privacy boundary. Accept that personal apps are outside your logging and rely on collection-stage controls and conditional access to protect corporate data.
  • Unmanaged devices: you cannot see egress at all. Restrict these to browser-based access with limited data download, and do not treat them as trusted.
  • Privacy and works councils: per-app flow logs show which apps a person uses. Document what is logged, who can see it and how long it is kept, and avoid collecting content when destination and port are enough. See the Employee Monitoring and Privacy Guide.
  • Roaming and local networks: a tunnel that applies only on the office network leaves the device exposed elsewhere, so the policy should follow the device.

Triage questions for analysts

When a legacy protocol connection appears in the logs, work through these questions in order. They keep the review quick and avoid blocking legitimate business apps.

  • Which app opened it? If the log has no package name, find a source that does before spending more time.
  • Is the app approved and expected to use this protocol? A known app with a documented exception is closed with a note; an unapproved app moves to containment.
  • Is the destination known? Compare it with the app vendor's documented services and with the organisation's own mail and file servers.
  • What did the app have access to? Check granted permissions and whether it ran in the background. See the Mobile App Permissions Guide.
  • Is there a pattern? Several devices contacting one destination suggests a distributed app or campaign, not a single user.

Prevention and response

  1. Route work traffic through a managed tunnel. Always-on VPN with "Block connections without VPN" on Android, or per-app VPN on iOS, puts egress where you can filter it.
  2. Default-deny unusual egress. At the gateway, block outbound FTP and direct SMTP from mobile ranges unless a named app needs them; few mobile apps legitimately send mail directly.
  3. Stop cleartext in apps you build. Apps targeting Android API 28 or later block cleartext by default through Network Security Configuration; keep it that way and keep exceptions per domain. See the OWASP Mobile Top 10 M5 Insecure Communication Guide.
  4. Close the collection stage. Approved app lists for sensitive permissions, no sideloading on managed devices, Google Play Protect on.
  5. Respond: when egress from an unknown app is found, block the destination, remove the app through MDM, establish what it collected from its permissions, and follow the Data Exfiltration Playbook for scoping and notification.

Test egress blocks in report-only mode first: a field sales or engineering app may use FTP or SMTP legitimately, and an allow exception per app is safer than an open rule.

Where identity fits

TianySpy's recorded behaviour is exfiltrating credentials and authorised cookies. Cookies and tokens let an adversary resume a session without the password or second factor. If exfiltration from a managed device is confirmed, revoke sessions and refresh tokens for accounts used on it, not only passwords. See the Mobile Access Credentials guide.

Gateway policy design

A good egress policy for mobile traffic is simple to explain and easy to review. Build it in layers so that exceptions stay visible.

RulePurposeReview point
Allow web traffic over encrypted connections through the proxyNormal business use with inspection where policy allowsCheck categories of newly registered or uncategorised destinations
Block outbound FTPFew managed mobile apps need itEach exception names the app, owner and destination
Block direct SMTP from mobile rangesMail should go through approved mail servicesAlert on blocked attempts, since they identify the app to investigate
Alert on cleartext HTTP from managed appsT1639.001 traffic is readable hereTrend per app and fix those you build
Send DNS to a logged resolverCovers the gap left by TCP-only network logsReview unusually long or high-entropy labels

Blocked attempts are as valuable as allowed traffic. A blocked SMTP session from an unknown package is a high-quality detection that costs nothing to collect once the rule exists.

Common failure patterns

  • Blocking the C2 server and calling it contained. The defining feature of T1639 is that data leaves another way.
  • No per-app egress data. Without package or app attribution, an SMTP session is just traffic from a phone.
  • Ignoring DNS. Android network logging skips UDP, so DNS needs its own logging.
  • Waiting for exfiltration to detect. ATT&CK's own advice is to invest in earlier stages, where the signals are stronger.

Framework mapping

FrameworkReferenceWhy it applies
ATT&CK EnterpriseT1048; T1048.003Enterprise equivalent and its unencrypted sub-technique
NIST SP 800-53 Rev. 5SC-7 Boundary Protection; SI-4 System Monitoring; SC-8 Transmission Confidentiality and IntegrityFilter and monitor egress; protect data in transit for apps you build
NIST CSF 2.0DE.CM-01; PR.DS-02Monitor networks; protect data in transit

Mapping controls to the technique

Control areaReferenceHow it limits T1639
Boundary protectionNIST SP 800-53 SC-7Default-deny egress and managed access points for mobile traffic
System monitoringNIST SP 800-53 SI-4Per-app flow monitoring and alerting on legacy protocols
Transmission protectionNIST SP 800-53 SC-8; OWASP MASVS network requirementsEncrypted transport for apps you build, removing cleartext findings
Software restrictionNIST SP 800-53 CM-7 and CM-10Approved app lists reduce the chance a collecting app is installed at all
DetectionNIST CSF 2.0 DE.CMContinuous monitoring of networks and devices

Practitioner checklist

  • Send managed device work traffic through always-on or per-app VPN.
  • Block outbound FTP and direct SMTP from mobile traffic unless an approved app needs it.
  • Log DNS for managed devices at a resolver you control.
  • Enable Android network activity logging where you are device or work profile owner.
  • Keep cleartext disabled in apps you build and review exceptions per release.
  • Prioritise collection-stage detection, as ATT&CK advises.
  • On confirmed exfiltration, revoke tokens and cookies for accounts used on the device.

Standards and references

Related NHI Mgmt Group resources: MITRE ATT&CK for Mobile Guide · T1048 Exfiltration Over Alternative Protocol · Data Exfiltration Guide · Mobile Malware Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.