implemented, no test

This commit is contained in:
Pakin 2025-08-25 13:21:06 +07:00
parent 59b801dfe3
commit f2f9f6a2d1
5 changed files with 292 additions and 9 deletions

51
adbdguard.json Normal file
View file

@ -0,0 +1,51 @@
{
"debounce_ms": 3000,
"max_payload_peek": 256,
"broadcast_action": "com.adbguard.ALERT",
"rules": [
{
"name": "exec_any",
"when": "service",
"contains": [
"exec:"
]
},
{
"name": "danger_shell",
"when": "service",
"contains": [
"shell:"
],
"patterns": "(su|setenforce|mount|dd|pm\\s+grant|appops|iptables|chcon)\\b"
},
{
"name":"abb_pm",
"when": "service",
"contains": [
"abb_exec:pm "
]
},
{
"name": "sync_sensitive",
"when": "service",
"contains": [
"sync:"
],
"patterns": "/(system|vendor|data/system|data/adb)/"
},
{
"name": "remount",
"when": "service",
"contains": [
"remount"
]
},
{
"name": "tcpip",
"when":"service",
"contains": [
"tcpip:"
]
}
]
}