GithubHelp home page GithubHelp logo

Comments (4)

talsec-app avatar talsec-app commented on July 2, 2024

Hi @fehmivelioglu,
Could you please specify the steps you've tried to test the debug detection?

The culprit is sometimes confusion between dev and release versions. Double-check that they are applied appropriately.
https://github.com/talsec/Free-RASP-Flutter#dev-vs-release-version

Best Regards,
Talsec Team

from free-rasp-flutter.

fehmivelioglu avatar fehmivelioglu commented on July 2, 2024

I think everything okey. I apply all steps according to doc.

Additionally, I tried the example project with creating new project and applying all steps. Nothing changed.

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

    // Talsec Release
    releaseImplementation 'com.aheaditec.talsec.security:TalsecSecurity-Community-Flutter:4.2.3-release'

    // Talsec Debug
    debugImplementation 'com.aheaditec.talsec.security:TalsecSecurity-Community-Flutter:4.2.3-dev'

    // Talsec Profile
    profileImplementation 'com.aheaditec.talsec.security:TalsecSecurity-Community-Flutter:4.2.3-dev'
}

main.dart

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  
  // freerasp
  final hash= hashConverter.fromSha256toBase64('*******');
  TalsecConfig config = TalsecConfig(
    // For Android
    androidConfig: AndroidConfig(
      expectedPackageName: '******',
      expectedSigningCertificateHash: hash,
      supportedAlternativeStores: [],
    ),

    // For iOS
    iosConfig: const IOSconfig(
      appBundleId: '****',
      appTeamId: '*****',
    ),

    // Common email for Alerts and Reports
    watcherMail: '******', 
  );

  TalsecCallback callback = TalsecCallback(
    // For Android
    androidCallback: AndroidCallback(
      onRootDetected: () => print('root'),
      onEmulatorDetected: () => print('emulator'),
      onHookDetected: () => print('hook'),
      onTamperDetected: () => print('tamper'),
      onDeviceBindingDetected: () => print('device binding'),
      onUntrustedInstallationDetected: () => print('untrusted install'),
    ),
    // For iOS
    iosCallback: IOSCallback(
        onSignatureDetected: () => print('signature'),
        onRuntimeManipulationDetected: () => print('runtime manipulation'),
        onJailbreakDetected: () => print('jailbreak'),
        onPasscodeDetected: () => print('passcode'),
        onSimulatorDetected: () => print('simulator'),
        onMissingSecureEnclaveDetected: () => print('secure enclave'),
        onDeviceChangeDetected: () => print('device change'),
        onDeviceIdDetected: () => print('device ID'),
        onUnofficialStoreDetected: () => print('unofficial store')),
    // Common for both platforms
    onDebuggerDetected: () => print('debugger'),
  );

  TalsecApp app = TalsecApp(
    config: config,
    callback: callback,
  );
  app.start();

*
*
*

from free-rasp-flutter.

talsec-app avatar talsec-app commented on July 2, 2024

Hi @fehmicelioglu.

How are you running/testing an app for this?

Be aware that:

  1. Emulator doesn't trigger debugger. Debugger is detected when its actually attached. You can install app on emulator and it'll still be just fine.

  2. Debugger detection is disabled in debug mode. So even if debugger is attached, callback is not fired.

  3. It matters how the app is running.
    flutter run runs debug version of your app, so callback won't be fired - it is disabled.
    flutter run --release runs release version of your app but debugger is not attached, so callback won't be fired.

Kind regards,
Talsec Team

from free-rasp-flutter.

fehmivelioglu avatar fehmivelioglu commented on July 2, 2024

In release mode, it works.
Thanks for your help.

from free-rasp-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.