================================================================================ DUCK DETECTOR — SECURITY SCAN REPORT ================================================================================ Target Device : Sony XQ-DQ54 (Android 17, API 37) App Version : 2026.12.02-549f5dee59b2 (Build 1153) Build Commit : 549f5dee59b2 Build Time : 2026-12-02 12:27:41 (UTC) Report Time : 2026-12-03 11:33:28 (GMT+01:00) -------------------------------------------------------------------------------- EXECUTIVE SUMMARY -------------------------------------------------------------------------------- Overall Status : [✖ DANGER] Danger Summary : Start with Bootloader and Kernel Check. Scan Statistics: [✖] Danger : 6 [▲] Warning : 4 [✔] Ready : 20 [·] Pending : 0 -------------------------------------------------------------------------------- TOP FINDINGS -------------------------------------------------------------------------------- [✖ DANGER] Bootloader Headline : 1 critical boot integrity signal(s) Details : Unlocked state, attestation contradictions, broken certificate trust, or verified-boot failures indicate reduced device trust. [✖ DANGER] Kernel Check Headline : 1 suspicious kernel signal(s) Details : The kernel identity read through uname disagrees with the identity exported through /proc or with the value captured when this app's runtime started, which points at active kernel version spoofing. [✖ DANGER] SELinux Headline : Enforcing with recognized privileged contexts Details : SELinux is enforcing and the visible policy surface looks internally consistent. Permission-denied probes also reinforced the enforcing verdict. Controlled app_zygote writes repeatedly recognized privileged contexts: ADB root. This is supporting policy evidence with limited version coverage. A trusted DirtySepolicy-style access query reported shell -> su transition as allowed. DirtySepolicy 2.2 compatibility: DirtySepolicy WARNING. Check its Raw protocol details for the original failure or warning reasons; this is not automatically root attribution. Audit rewrite checks remained non-proving from the current app context. The context validity oracle rejected both KSU-specific contexts in live policy. -------------------------------------------------------------------------------- [✖ DANGER] Bootloader Verdict : 1 critical boot integrity signal(s) Quick Facts : State: Verified | Proof: Attest | Tier: TEE | Trust: Google [State] • Boot state: Verified Attestation reported a verified boot chain rooted in a locked device state. • Evidence source: Attestation RootOfTrust data was available and took priority over software-readable properties. • Lock state: Locked (Derived from RootOfTrust.deviceLocked in attestation.) • Trust root: Google Chain length: 5. Root classification: Google. Root fingerprint: [REDACTED-HASH] [Attestation] • Attestation tier: TEE Certificate chain length: 5. Challenge matched generated nonce. • Certificate chain: Valid Chain signatures valid: true. Google attestation root matched. • Attested boot state: Verified (RootOfTrust.verifiedBootState from attestation extension.) • Attested deviceLocked: true (RootOfTrust.deviceLocked from attestation extension.) • Attested boot hash: [REDACTED-HASH]… [REDACTED-HASH] • Attested boot key: [REDACTED-HASH]… [REDACTED-HASH] [Properties] • ro.boot.flash.locked: 1 Source: Reflection Cross-checked across 3 sources. Observed value: 1 • ro.boot.verifiedbootstate: green Source: Reflection Cross-checked across 3 sources. Observed value: green • warranty_bit: Intact Source: Reflection warranty_bit is mainly meaningful on Samsung devices. Cross-checked across 3 sources. Observed value: 0 • ro.boot.vbmeta.device_state: locked Source: Reflection Cross-checked across 3 sources. Observed value: locked • ro.boot.veritymode: enforcing Source: Reflection dm-verity modes usually map to enforcing, logging, or disabled. Cross-checked across 3 sources. Observed value: enforcing • ro.boot.vbmeta.hash_alg: sha256 Source: Reflection Cross-checked across 3 sources. Observed value: sha256 • ro.boot.vbmeta.size: 4096 Source: Reflection Cross-checked across 3 sources. Observed value: 4096 • ro.boot.vbmeta.digest: [REDACTED-HASH]… Source: Reflection Compared against attested verifiedBootHash when RootOfTrust is available. Cross-checked across 3 sources. Observed value: [REDACTED-HASH] • ro.boot.avb_version: 1.4 Source: Reflection Cross-checked across 3 sources. Observed value: 1.4 • ro.boot.vbmeta.invalidate_on_error: yes Source: Reflection Cross-checked across 3 sources. Observed value: yes [Consistency] • Attested hash vs vbmeta digest: Mismatch Attested verifiedBootHash did not match ro.boot.vbmeta.digest. • Widevine credential: Session inconclus… Advertised level: L1; Java system ID: 538647864; video/mp4 HW_SECURE_ALL capability: SUPPORTED; maximum session: NOT_PROVISIONED; credential availability: AVAILABLE; local key request: NOT_ATTEMPTED; boot context: independent boot state appears locked; sanitized errors: SESSION_OPEN(NOT_PROVISIONED,vendor=0,oem=0,context=0). • Widevine Java/native parity: Aligned securityLevel(Java=L1, NDK=L1); systemId(Java=538647864, NDK=538647864). [Methods] • Key attestation: TEE (RootOfTrust availability: true.) • Certificate trust: Google Chain signatures valid: true. Google attestation root matched. • Boot consistency: Anomaly Attested verifiedBootHash did not match ro.boot.vbmeta.digest. • Property catalog: 10 / 21 observed Tracked boot, AVB, dm-verity, Samsung fuse, and secure-build properties. • Reflection API: 10 hit(s) android.os.SystemProperties reflection reads for tracked boot properties. • getprop snapshot: 10 hit(s) (Single getprop dump reused for cross-source comparisons.) • Native libc: 13 hit(s) Native libc property cross-checks using the callback-based system property API. • Raw boot params: Unavailable androidboot.* values from /proc/cmdline and /proc/bootconfig. • Source consistency: Aligned Cross-source comparison across reflection, getprop, JVM, and native libc reads. • Cross-check rules: Aligned Raw-boot, lock-state, partition-verity, and build-profile coherence checks. • Widevine credential: Partial Widevine credential: Session inconclusive. Advertised level: L1; Java system ID: 538647864; video/mp4 HW_SECURE_ALL capability: SUPPORTED; maximum session: NOT_PROVISIONED; credential availability: AVAILABLE; local key request: NOT_ATTEMPTED; boot context: independent boot state appears locked; sanitized errors: SESSION_OPEN(NOT_PROVISIONED,vendor=0,oem=0,context=0). Widevine Java/native parity: Aligned. securityLevel(Java=L1, NDK=L1); systemId(Java=538647864, NDK=538647864). [Scan] • Properties checked: 21 • Properties observed: 10 • Native hits: 13 • Raw boot hits: 0 • Source mismatches: 0 • Cross-checks: 1 • Attestation chain: 5 • Hardware-backed: Yes [Impact & Guidance] • Attestation-vs-runtime contradictions are higher confidence than a single suspicious property because hardware-backed and software-readable boot evidence disagree. • Bootloader evidence should still be read alongside TEE, kernel, SU, package, and property detectors because modern spoofing stacks often spread signals across layers. -------------------------------------------------------------------------------- [✖ DANGER] Kernel Check Verdict : 1 suspicious kernel signal(s) Quick Facts : Identity: 1 | Boot: Clean | Behavior: OK | Native: Loaded [Identity] • uname -a: Captured Linux localhost 5.15.211-android13-2-g81264439-ab72085518 #1 SMP PREEMPT Sun Nov 15 01:50:49 UTC 2026 aarch64 Toybox • /proc/version: Unavailable (No readable data surfaced for /proc/version.) • /proc/cmdline: Unavailable (No readable data surfaced for /proc/cmdline.) • Kernel release across sources: Divergent System.getProperty("os.version") = 5.15.211-android13-5.15-gdb39b3851f98+ uname() syscall = 5.15.211-android13-2-g81264439-ab72085518 uname -r = 5.15.211-android13-2-g81264439-ab72085518 • Kernel build version across sources: Single source uname() syscall = #1 SMP PREEMPT Sun Nov 15 01:50:49 UTC 2026 [Anomalies] • Kernel identity sources: Kernel release diverged Kernel release System.getProperty("os.version") = 5.15.211-android13-5.15-gdb39b3851f98+ uname() syscall = 5.15.211-android13-2-g81264439-ab72085518 uname -r = 5.15.211-android13-2-g81264439-ab72085518 The value this app's runtime captured while Zygote started differs from the live uname result, so the kernel identity changed after boot. [Behavior] • CVE-2024-43093: Patched (ZWC and 7 tested ignorable codepoints were blocked.) • kptr_restrict: Protected (Kernel addresses remained hidden during the native probe.) [Methods] • emojiScan: Clean • chineseScan: Clean • scriptScan: Clean • telegramScan: Clean • mentionScan: Clean • customKernel: Clean • kernelVersionCheck: Clean • identityConsistency: Kernel release diverged Kernel release System.getProperty("os.version") = 5.15.211-android13-5.15-gdb39b3851f98+ uname() syscall = 5.15.211-android13-2-g81264439-ab72085518 uname -r = 5.15.211-android13-2-g81264439-ab72085518 The value this app's runtime captured while Zygote started differs from the live uname result, so the kernel identity changed after boot. • arm64CpuIdentity: 8 CPU(s) agree CPU 0: cached=0x411fd461 (sysfs), mrs=0x411fd461, consistent CPU 1: cached=0x411fd461 (sysfs), mrs=0x411fd461, consistent CPU 2: cached=0x411fd461 (sysfs), mrs=0x411fd461, consistent CPU 3: cached=0x411fd4d0 (sysfs), mrs=0x411fd4d0, consistent CPU 4: cached=0x411fd4d0 (sysfs), mrs=0x411fd4d0, consistent CPU 5: cached=0x412fd470 (sysfs), mrs=0x412fd470, consistent CPU 6: cached=0x412fd470 (sysfs), mrs=0x412fd470, consistent CPU 7: cached=0x411fd4e0 (sysfs), mrs=0x411fd4e0, consistent • cmdlineCheck: Normal • cvePatchCheck: Patched (ZWC and 7 tested ignorable codepoints were blocked.) • kptrRestrict: OK • nativeLibrary: Loaded [Scan] • Keyword families checked: 21 • Cmdline rules checked: 14 • Hard findings: 1 • Info findings: 0 • CVE patch state: Patched • Identity sources: 1 • Native library: Loaded [Impact & Guidance] • The kernel identity differs between the sources that export it, so the version this device reports to apps is being rewritten rather than simply being unusual. • Modified or community-built kernels can change trust posture, boot state, and device integrity behavior. • These heuristics do not prove malicious compromise, but they do indicate the kernel differs from conservative stock expectations. • Play Integrity, banking apps, or DRM-sensitive apps may react differently on such kernels. -------------------------------------------------------------------------------- [✖ DANGER] SELinux Verdict : Enforcing with recognized privileged contexts Quick Facts : Mode: Enforcing (paradox) | Policy: Strong | Audit: Inconclusive | Context: untrusted_app [State] • Mode: Enforcing (paradox) • Policy enforced: Yes • MAC active: Yes • Filesystem: Mounted • Detection path: Paradox logic • Process context: untrusted_app (u:r:untrusted_app:s0:c214,c256,c512,c768) [Policy] • Strength: Strong • Policy version: Unreadable • Security classes: Unreadable (Class directory unreadable from the current app context.) • Process context: untrusted_app (u:r:untrusted_app:s0:c214,c256,c512,c768) • Dangerous types: None • Permissive domains: None [Audit] • Surface: Inconclusive • Runtime markers: Not observed Recent auditd event logs were readable, but absence of markers is not proof of a clean audit surface. • AVC side-channel: Not observed No matching controlled AVC denial surfaced in the readable auditd event window, but absence is not proof. • su-related AVC: Not observed No su-related actor string surfaced in the readable canonical AVC window. • Residue paths: None (No auditpatch residue exists under common module paths.) [Device] • Android: 17 • API level: 37 • Required since: Android 5.0 (API 21) [Methods] • filesystem: Active (SELinux filesystem mounted with policy nodes) • sysfs: Blocked (Enforcing) (enforce file present but unreadable) • getenforce: Blocked (Enforcing) (Command blocked by SELinux policy) • proc/self/attr: Labeled Context: u:r:untrusted_app:s0:c214,c256,c512,c768. A labelled context shows SELinux is enabled, not whether it enforces. • SELinux Hide attr/current timing (experimental): No reproducible asymmetry /proc/thread-self/attr/current | native ordinary-app thread | A=self valid context; B=same length with leading newline; both write()=-EACCES. Pairs=256; A median=2031 ns; B median=2031 ns; paired A-B p10/median/p90=-103/0/53 ns; half medians=0/0 ns; A slower=99/256; context bytes=40. KernelSU df03912f processes A through its backup parser before SETCURRENT; its parent denies ordinary-app SETCURRENT before parsing either payload. Timing alone is device-dependent, not proof of KernelSU; no asymmetry cannot rule out hidden policy. • Context validity oracle: 00 Carrier=u:r:app_zygote:s0:c512,c768 | Carrier state=ok | Carrier match=yes | Carrier control=accepted | Negative control=rejected | File control=accepted | File negative control=rejected | Oracle trusted=yes | Repeatability=stable | Evidence source=dedicated app_zygote carrier | Query=raw selinuxfs write | KSU-specific contexts were not found by live policy. | Carrier context: u:r:app_zygote:s0:c512,c768 | Expected carrier type: app_zygote | Query method: raw selinuxfs write | Positive control context: u:r:app_zygote:s0:c512,c768 | Negative control context: u:r:duckdetector_context_oracle_sentinel:s0 | File control context: u:object_r:system_data_file:s0 | File negative control context: u:object_r:duckdetector_context_oracle_sentinel_file:s0 | Invalid context: u:r:duckdetector_context_oracle_sentinel:s0 errno=22 | Invalid context: u:object_r:duckdetector_context_oracle_sentinel_file:s0 errno=22 | Carrier control valid=yes | Negative control rejected=yes | File control valid=yes | File negative control rejected=yes | Domain repeat 1=invalid (Invalid context: u:r:ksu:s0 errno=22) | Domain repeat 2=invalid (Invalid context: u:r:ksu:s0 errno=22) | File repeat 1=invalid (Invalid context: u:object_r:ksu_file:s0 errno=22) | File repeat 2=invalid (Invalid context: u:object_r:ksu_file:s0 errno=22) | Invalid context: u:r:ksu:s0 errno=22 | Invalid context: u:object_r:ksu_file:s0 errno=22 | Neither KSU-specific context was accepted by live policy. | Bit pair 00 means both KSU-specific contexts were rejected by live policy. • xxksu SELinuxFS same-FD transaction state: No FD bypass observed App Zygote PID=29888 UID=10214 context=u:r:app_zygote:s0:c512,c768. Native verdict=NO_BYPASS_OBSERVED; verified verdict=NO_BYPASS_OBSERVED. Preflight: valid→valid, invalid→invalid, invalid→valid all consumed their FD. xxksu_to_valid: first=-1/errno=22 second=-1/errno=16 open_errno=0 xxksu_to_invalid: first=-1/errno=22 second=-1/errno=16 open_errno=0 xxksu_file_to_valid: first=-1/errno=22 second=-1/errno=16 open_errno=0 xxksu_file_to_invalid: first=-1/errno=22 second=-1/errno=16 open_errno=0 No same-FD early-return signature was observed; both candidate contexts consumed their transaction FD. This does not exclude xxksu or root. • xxksu SELinuxFS ignored access tail: No ignored-tail rejection observed App Zygote pid=29888 uid=10214 context=u:r:app_zygote:s0:c512,c768 enforcing=1 seccomp=2. Four rounds with the same source, target and class. Base, equal-length :inv:/:inv_file: placebos and :ksuX all returned the same six-field access response; invalid-source EINVAL verified. tail_ksu=63:errno=0/63:errno=0/63:errno=0/63:errno=0 tail_ksu_file=68:errno=0/68:errno=0/68:errno=0/68:errno=0. Both hidden suffixes were accepted. Absence does not exclude a hook. • xxksu SELinuxFS ignored context NUL tail: No NUL-tail rejection observed App Zygote context=u:r:app_zygote:s0:c512,c768, enforcing=1 seccomp=2. Four rounds using the same valid context before the first NUL. Base, equal-length :inv:/:inv_file: placebos and :ksuX all returned the same canonical context. context_nul_ksu=34:errno=0/34:errno=0/34:errno=0/34:errno=0 context_nul_ksu_file=39:errno=0/39:errno=0/39:errno=0/39:errno=0. Both hidden tails succeeded; absence does not exclude SELinux Hide. • ksu_types timing with invalid types: A>B: ksu 6451/13500 ARM64 A/B write timing (KSU minus invalid). ksu per pair: median 0 ns, mean -121 ns. Trimmed per-pair mean: ksu -42 ns. Danger if either direction exceeds 3 × (opposite direction + ties), summed across 9 batches. ksu totals: A>B 6451, AB 759, AB 833, AB 804, AB 766, AB 725, AB 698, AB 648, AB 598, AB 620, AB: ksu 7061/13500 ARM64 A/B write timing (KSU minus invalid). ksu per pair: median 52 ns, mean -7 ns. Trimmed per-pair mean: ksu -15 ns. Danger if either direction exceeds 3 × (opposite direction + ties), summed across 9 batches. ksu totals: A>B 7061, AB 791, AB 767, AB 794, AB 811, AB 806, AB 826, AB 791, AB 740, AB 735, A