Skip to main content

Security of PC Application (Unity Windows)

Overview​

In PC apps, hurdles against cracking or cheating are relatively low, which is different from apps for iOS and Android devices. This page explains the security of a PC app. Security measure is an option. However, it should be implemented.

Security Unity Version for PC app​

DeNA provides “AndApp Secure Lib for Unity” as a simple security library for security measures for PCs. It is released subsequently from 0.1 to 1.0, and the release time of 1.0 is not decided.

AndApp SecureLib for Unity can be downloaded from the AndApp Developer Dashboard . For how to use AndApp SecureLib for Unity, refer to here. 

  • AndApp Secure Lib ver.0.1

    • Compatible with only HTTP Public Key Pinning function
  • AndApp Secure Lib ver.1.0

    • HTTP Public Key Pinning function
    • Encrypting AssetBundle
    • Preventive measures against memory alteration
    • Encrypting PlayerPrefs
    • Preventive measure against DLL injection
    • Preventive measure against Speed hack

See below for details of contents to be protected.

  • **Medium security level (**AndApp Secure Lib ver.0.1)
    1. AndApp Secure Lib for Unity (Only for network protection) + Enabling HTTPS in communication
    2. Anti-Cheat Toolkit
    3. CodeGuard
  • **High security level (**AndApp Secure Lib ver.0.1)
    1. AndApp Secure Lib for Unity (Only for network protection) + Enabling HTTPS in communication
    2. Anti-Cheat Toolkit
    3. CrackProof Unity Windows version
  • **Security level (**AndApp Secure Lib ver.1.0)
    1. AndApp Secure Lib for Unity + Enabling HTTPS in communication
    2. Anti-Cheat Toolkit
    3. CodeGuard
  • **High security level (**AndApp Secure Lib ver.1.0)
    1. AndApp Secure Lib for Unity + Enabling HTTPS in communication
    2. CrackProof Unity Windows version
warning

The driver file must be installed for using CrackProof in AndApp. The AndApp client does not have an installer for the driver file. Obtain the executable file to be installed according to the following document.

About Installing Driver File for CrackProof in AndApp

Items to be protected​

Items to be protected using the above security measures are described in the following table. (Items are checked by us.)

 

AndApp Secure Lib for Unity

Anti-Cheat Toolkit

CodeGuard

CrackProof Unity Windows Version

Overview

Simple protection software. As it is basic and cannot protect items against full-fledged analysis. It is enough to protect against a casual cheat, such as with cheat tools.

Simple protection software on C# level. It is basic and cannot protect items against full-fledged analysis. It is enough to protect against a casual cheat, such as with cheat tools.
The drawback is the need to modify the program.

Using this software makes codes obfuscated on C# levels.
The program does not require modification.
As a result of this, C# logic is made difficult to be analyzed.

It is plugin sold in the Asset Store.

It strongly protects Windows game apps developed by Unity. The unique IL (.NET Framework intermediate code) protection technology performs a security process such as encryption against Unity.dll to strongly protect a game app against cracking.

It is easy to use and its technology level is sufficient, making it ideal software.

 

It is sold now. Therefore, it can be used to develop an app released in October 2016.

 

It is recommended for use with AndApp Secure Lib for Unity to protect against all vulnerabilities, such as the following.

  • It protects against memory alteration of the CheatEngine type. However, it may not protect against alteration means other than such type.
  • Detection of alteration on the network is not protected.

Instructions in “About Installing Driver File for CrackProof in AndApp  should be followed to use CrackProof.

Cost (Reference)

Free (If releasing to AndApp)

$30

$40

You can use an AndApp special plan.

<Contact>

DNP Hypertech Inc.

http://www.hypertech.co.jp/

Reference URL

 

https://www.assetstore.unity3d.com/jp/#!/content/10395

https://www.assetstore.unity3d.com/jp/#!/content/8881

http://www.hypertech.co.jp/products/crackproofforunitywindows/

Use of Native Security Code

◯
It calls a function that is implemented in a native code, using C#

×
No

×
No

◯
A native security code is implemented to the main exe

Unnecessary symbol deleted from Native Security Code

-

×
No

-

◯
Almost all symbols are deleted

Encryption of Native Security Code

-

-

-

◯
The whole code is encrypted.

Obfuscation of Native Security Code

-

-

-

△
Most codes are obfuscated. (Some codes are not.)
As symbols are deleted, it may take a lot of time to analyze.

Static Code Alteration of Native Security Code

-

-

-

◯
Static alteration is not possible, as the main code is encrypted.

Encrypting Unity game library such as AssemblyCSharp.dll

×
No. It is opened by ILSpy.

-

×
No. It is opened by ILSpy.

◯
The encryption cannot be analyzed by LSpy. The memory cannot be dumped in an app processed with CrackProof.

Obfuscating Unity game library such as AssemblyCSharp.dll

×
No. It is opened by ILSpy.

×
No. It is opened by ILSpy.

◯
It changes strings so that function names cannot be displayed
It changes strings so that variable names cannot be displayed
Check that “?” is displayed in ILSpy

◯
The method for preventing attackers from attaching and dumping is applied so that the dll cannot be obtained.
The memory cannot be accessed in an app processed with CrackProof.

Static Code Alteration of Unity game library such as AssemblyCSharp.dll

×
Yes

×
No

×
Yes

◯
Encrypted

Encryption of Network

◯
It provides a native plugin to enable HTTPS communication through Public Key Pinning.

* HTTPS shall be set to the communication on the app side.

×
Yes

×
No

×
Not protected

Encrypting AssetBundle

△ *It is provided in ver.1.0.
It provides a tool library for supporting the encryption of AssetBundle (collection of resources, such as images)

It can be read from the memory.

×
No

×
No

×
Not protected

Memory Alteration (Data Area)
Memory Alteration by Debugger Attachment

◯ *It is provided in  ver.1.0.
Changing "Int” to “SecureInt (Temporary)” makes memory alteration difficult. XOR method

◯
Changing “Int” to “ObscaredInt” in the program makes it available.
XOR method.

×
No

◯
It detects an emulator or debugger and uses an original memory alteration protection function.

Memory Alteration (Data Area)
Direct Alteration of Physical Memory by CheatEngine

◯ *It is provided in  ver.1.0.
Changing "Int” to “SecureInt (Temporary)” makes memory alteration difficult. XOR method

◯

×

◯
It supports memory alteration with the CheatEngine.

Memory Alteration (Code Area)
* Code Alteration by Debugger Attachment

×

×

×

◯
This approach detects an emulator or debugger to prevent dynamic code alteration.

Encrypting PlayerPrefs

◯ *It is provided in  ver.1.0.
SecurePref class compatible with PlayerPref will be provided.

△
Changing “PlayerPref” to “ObscuredPrefs” makes it available. It can prevent attacks simply using cheat tools. However, decryption can be done if the encryption logic in C# is decoded. Encryption of the original code type (XOR) uses a secret key.

×
No

×
It is not protected.
It is compensated with tools, such as AndApp Secure Lib for Unity.

DLL injection

△ *It is provided in ver.1.0.
 It can prevent C# code injection attacks that simply use cheat tools.

However, implementation with C# can be cracked.

△
It can prevent C# code injection attacks that simply use cheat tools.

However, protection with C# code can be cracked because it is implemented with C# code.

×

◯
DLL injection cannot be performed because it is not attached with a debugger

Start on Emulator

×

×

×

◯
It confirms that the app does not run on Windows over VMware.

Speed hack

△ *It is provided in  ver.1.0.
 It can prevent C# code injection attacks that simply use cheat tools.

It performs detection by comparing the time difference between the check start and check completion and the difference in check accounts.

△
It can prevent C# code injection attacks that simply use cheat tools.

However, the protection with C# code can be cracked because it is implemented with C# code. Detection by comparing the time difference between the check start and check completion and the difference in check accounts

×

△
It is difficult to address the attack such as manipulating the time on the OS level. It protects against speed hacks modifying codes or data.

Wallhack

×

△
It can prevent C# code injection attacks that simply use cheat tools. However, protection with C# code can be cracked because it is implemented with C# code. The code against the wallhack must be provided to the wall objects. Periodic check for the wallhack is performed.

×

◯
This approach detects an emulator or debugger to prevent wallhacking.

Less labor from Programmer

×
There is labor to change variable names

×
Changing “Int “ to “ObscaredInt” or so is required

◯
It is sufficient to be processed in CodeGuard

◯
All programmers need to do is upload exe and dll to CrackProof.

Use of Driver

-
No

-
No

-
No

◯
Yes

Update History​

  • October 6, 2016
    • Download link of AndApp SecureLib is added.
    • Link to how to use AndApp SecureLib for C++ is added.
    • How to install the driver file required for using CrackProof is addressed.
  • July 28, 2016
    • Newly created