Documentation

Go to Portal Website

Set Debuggable to False

PlanPlatformsMASVS
TeamAndroid, iOSMASVS-RESILIENCE-4

Overview

Set Debuggable to False helps ensure production apps do not run in a debuggable state. Debuggable builds and attached debuggers can expose memory, secrets, control flow, and protected business logic to attackers or reverse engineers.

On Android, AppTego hardens supported protected builds so the release application is not marked debuggable. On iOS, release builds can apply runtime anti-debugging behavior while development builds remain usable for normal QA and debugging workflows.

When To Use It

Use this control when:

How It Works

On Android, AppTego applies build-time manifest hardening when this prevention control is enabled. At runtime, supported Android and iOS protections also check for debuggable app state and debugger attachment conditions appropriate to the platform. If the app is running in a state that violates the configured policy, AppTego fires your configured response.

Public documentation does not expose the exact system flags, platform calls, or process checks used by the control.

How to Enable the Control

Navigate to Preventative Controls from the AppTego portal, and expand the Runtime Environment Hardening section. Under this section you will find the Disable Debuggable Builds control. Click Enable to include it in the next protected build. Runtime anti-debugging behavior uses the packaged configuration, or live configuration where that service is enabled; Android manifest hardening requires a protected rebuild.

API Configuration Example

{
  "DebuggablePrevention": {
    "protection": true,
    "detection": false,
    "action": "close",
    "title": "Debugging Detected",
    "message": "This application cannot run in a debuggable state.",
    "buttons": ["OK"],
    "actions": ["close"],
    "redirects": [""]
  }
}
FieldPurpose
protectionEnables build and runtime debuggable prevention.
detectionIncluded for schema consistency; leave disabled unless directed by AppTego.
actionSelects the response style, such as close, alert, log, or warn.
title / messageUser-facing text shown when a response is displayed.
buttons / actions / redirectsDefines the available response buttons and their outcomes.

Compatibility Notes