Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Plugins/Android/freeRASP.androidlib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {
dependencies {
compileOnly files('libs/unity-classes.jar')
// freeRASP SDK
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:15.1.0'
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:17.0.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The plugin import is using the incorrect flavor. Could you please change it to com.aheaditec.talsec.security:TalsecSecurity-Community-Unity:17.0.0?

// test dep
implementation("com.google.code.gson:gson:2.13.1")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,25 @@ public void onADBEnabledDetected() {
@Override
public void onSystemVPNDetected() {
UnityPlayer.UnitySendMessage(this.gameObjectName, "scanResult", "onSystemVPN");
}
}

@Override
public void onMultiInstanceDetected() {
UnityPlayer.UnitySendMessage(this.gameObjectName, "scanResult", "onMultiInstance");
}

@Override
public void onUnsecureWifiDetected() {
UnityPlayer.UnitySendMessage(this.gameObjectName, "scanResult", "onUnsecureWiFi");
}

@Override
public void onTimeSpoofingDetected() {
UnityPlayer.UnitySendMessage(this.gameObjectName, "scanResult", "onTimeSpoofing");
}

@Override
public void onLocationSpoofingDetected() {
UnityPlayer.UnitySendMessage(this.gameObjectName, "scanResult", "onLocationSpoofing");
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
12 changes: 12 additions & 0 deletions Plugins/freeRASP/Talsec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,18 @@ private void scanResult(string talsecScanResultCallback)
case "onADBEnabled":
this.threatDetectedCallback.onADBEnabled();
break;
case "onMultiInstance":
this.threatDetectedCallback.onMultiInstance();
break;
case "onUnsecureWiFi":
this.threatDetectedCallback.onUnsecureWiFi();
break;
case "onTimeSpoofing":
this.threatDetectedCallback.onTimeSpoofing();
break;
case "onLocationSpoofing":
this.threatDetectedCallback.onLocationSpoofing();
break;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
}
}
Expand Down
2 changes: 2 additions & 0 deletions Plugins/iOS/NativeBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ extension SecurityThreatCenter: SecurityThreatHandler {
message = "onScreenshot"
case .screenRecording:
message = "screenRecording"
case .timeSpoofing:
message = "onTimeSpoofing"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}

message.withCString { messagePtr in
Expand Down
16 changes: 16 additions & 0 deletions Samples/freeRASPTestApp/Scripts/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,20 @@ public void onSystemVPN() {
Debug.Log("Unity - System VPN detected");
}

public void onMultiInstance() {
Debug.Log("Unity - Multi instance detected");
}

public void onUnsecureWiFi() {
Debug.Log("Unity - Unsecure WiFi detected");
}

public void onTimeSpoofing() {
Debug.Log("Unity - Time spoofing detected");
}

public void onLocationSpoofing() {
Debug.Log("Unity - Location spoofing detected");
}

}