# security_defend_wall
**Repository Path**: wei-echo/security_defend_wall
## Basic Information
- **Project Name**: security_defend_wall
- **Description**: App security defend wall plugin.
1. Detect App hasn't be Tampered and Security Signature
2. Detect being Debugged and Frida
3. Detect Emulator Environment
4. Detect JailBreak and Root
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-07-25
- **Last Updated**: 2025-07-29
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# security_defend_wall
app security defend wall plugin.
#### 1. Detect App hasn't be Tampered and Security Signature
#### 2. Detect being Debugged and Frida
#### 3. Detect Emulator Environment
#### 4. Detect JailBreak and Root
## Getting Started
```
dependencies:
security_defend_wall: ^1.0.1
```
## Platform Based Configurations
### Android
No Configurations Needed.
### iOS
Add following lines to the Info.plist file in /ios/Runner/ folder.
```
LSApplicationQueriesSchemes
undecimus
sileo
zbra
filza
activator
```
## Usage
```dart
import 'package:security_defend_wall/security_defend_wall.dart';
final defendWall = SecurityDefendWall();
//Detect being Debugged and Frida
var isDebugged = await defendWall.isDebugged();
//Detect Emulator Environment
var isEmulator = await defendWall.isEmulator();
//Detect JailBreak and Root
var isRooted = await defendWall.isRooted();
//Detect App hasn't be Tampered and Security Signature
var isTampered = await defendWall.isTampered('2791047D3623A1492AE4963840FDE9C80DB801R', 'E48B05B1');
```
## Demo
```dart
///运行环境安全防御检查
Future securityDefense() async {
final defendWall = SecurityDefendWall();
final isEmulator = await defendWall.isEmulator();
if (isEmulator) {
final tips = '请不要在模拟器系统运行'; //Don't run on emulator system
await showSecurityDefenseDialog(tips);
return true;
}
final isDebugged = await defendWall.isDebugged();
if (isDebugged) {
final tips = '请不要在Hook、代理、调试等模式运行'; //Don't run in Hook, proxy, debug, etc.
await showSecurityDefenseDialog(tips);
return true;
}
final isRooted = await defendWall.isRooted();
if (isRooted) {
final tips = '请不要在Root、逆向、高危应用环境运行'; //Don't run on Root, reverse or high-risk applications
await showSecurityDefenseDialog(tips);
return true;
}
final isTampered = await defendWall.isTampered('signature', 'iosTeamId');
if (isTampered) {
final tips = '请安装官方正版应用运行'; //Please install the official application
await showSecurityDefenseDialog(tips);
return true;
}
return false;
}
```