Zum Inhalt springen
Prototyp pruefen

Device Agent

This specification defines the Device Guardian Agent: what signals it collects, what OS permissions it requires, how it buffers data locally, and what platform-specific constraints apply.

Audience: Client/agent engineers, security auditors.


In-ScopeOut-of-Scope
Signal collection from OS APIs and sensorsSignal classification (see Detection Engine)
Permission model per platformCloud enrichment processing
Local buffering and ring buffer semanticsEvent delivery to external systems
Platform constraints and limitationsNetwork firewall / IDS functionality

SignalSourceRaw/DerivedLeaves Device?PurposeFrequency
Call metadata (number, duration, timestamp)OS API (CallKit / TelephonyManager)RawHashes only (SHA-256)Fraud call detectionPer call event
STIR/SHAKEN attestationOS APIRawNoSpoofing detectionPer call event
App installation eventOS API (PackageManager / App Store)RawHashes only (SHA-256)Malicious app detectionPer install/update
App permission requestsOS APIRawNoSuspicious permission detectionPer permission request
DNS queriesNetwork stackRawHashes for TI lookupPhishing/C2 detectionContinuous
TLS certificate infoNetwork stackDerivedNoCertificate validationPer connection
Microphone access patternsDevice sensor APIDerivedNoRemote control detectionContinuous
Screen activity (lock/unlock, transitions)Device sensor APIDerivedNoBehavioral analysisContinuous
Motion sensor dataDevice sensor APIDerivedNoRemote control detectionContinuous
Accessibility eventsOS APIRawNoOverlay/notification detectionContinuous
USB device connectionsSystem API (Desktop only)RawNoUSB threat detectionPer connection event
Process executionSystem API (Desktop only)RawNoMalware/remote access detectionContinuous
  • In-RAM processing: Message content, audio, and files are analyzed in volatile RAM and immediately discarded after analysis
  • No persistent storage of content: The agent never writes plaintext content, audio, or files to disk
  • Ring buffer: Normalized signals are stored in a ring buffer (non-persistent) that auto-overwrites older entries

Current workspace note: the prototype agent currently uses a simple in-memory event store rather than the documented 10,000-entry ring buffer.


PermissionPurposeOptional?
READ_CALL_LOG / READ_PHONE_STATECall protection, fraud detectionNo (required for call protection)
PACKAGE_USAGE_STATSApp scanner, sideload detectionNo (required for app scanner)
ACCESSIBILITY_SERVICERemote control protection, overlay detectionNo (required for remote control protection)
POST_NOTIFICATIONSThreat notificationsNo
INTERNETCloud enrichment, model updatesNo

Limitations:

  • Background services affected by aggressive battery optimization (manufacturer-dependent: Samsung, Xiaomi, Huawei)
  • Android 14+: restricted access to non-own app installations

Documented product target: battery-optimization guidance and managed configurations for Android Enterprise. Not confirmed by the current workspace code.

PermissionPurposeOptional?
CallKit IntegrationCaller ID + call blockingNo (required for call protection)
NotificationsPush alertsNo
Network Extension (VPN profile)Network monitoring, phishing protectionNo (required for network protection)

Limitations:

  • iOS sandbox prevents direct access to other apps — app scanner limited to known signatures + URL checking
  • CallKit: Caller ID + blocking only, no real-time audio access, no call duration in real-time
  • No Accessibility Service equivalent — remote control protection limited to known app detection

Documented product target: iOS CallKit/AppConfig constraints and supervised-device deployment guidance. Not confirmed by the current workspace code.

PermissionPurposeOptional?
Administrator (installation)Agent runs as system serviceNo
Network accessDNS monitoring, phishing protectionNo
Filesystem accessApp/file scanningNo

Limitations:

  • No call protection (no native phone function)
  • UAC prompts cannot be programmatically blocked

Documented product target: Windows Defender coexistence and enterprise deployment guidance. Not confirmed by the current workspace code.

PermissionPurposeOptional?
System ExtensionNetwork monitoringNo
Full Disk AccessFile scanningOptional (enhanced protection)
NotificationsPush alertsNo

Limitations:

  • No call protection
  • System Extensions require user confirmation in System Settings
  • TCC (Transparency, Consent, and Control) requires explicit user grants

Documented product target: universal binaries and PPPC/TCC deployment guidance for managed macOS fleets. Not confirmed by the current workspace code.

PermissionPurposeOptional?
root (installation)Agent runs as systemd serviceNo
Network accessDNS monitoringNo

Limitations:

  • No call protection
  • No push notifications (API/webhook/email only)
  • No family management
  • Distribution fragmentation

Documented product target: Linux package/distribution support and configuration-management integrations. Not confirmed by the current workspace code.


PlatformMin VersionMemoryStorageNetwork
Android8.0 (API 26)128 MB available100 MB (agent + models)Optional (offline mode supported)
iOS15.0128 MB available100 MBOptional
Windows10 (1903+)256 MB available150 MBOptional
macOS12.0 (Monterey)256 MB available150 MBOptional
LinuxKernel 5.4+128 MB available100 MBOptional

ConstraintDescription
Minimal system rightsAgent accesses only user-explicitly-allowed content
No persistent content storagePlaintext content exists only in RAM during analysis
No internet requirementCloud queries only for signature updates and escalation. Full local protection without connectivity.
Signed model updatesModel packages are cryptographically signed. Signature verified before loading. Rollback protection (agent rejects older versions).
Permission denial handlingEach signal source degrades gracefully. Missing permission reduces scope, does not crash agent.

FailureImpactMitigation
Permission denied (single source)That signal source unavailableGraceful degradation. User notified of reduced scope. Other signals continue.
All permissions deniedAgent cannot monitorUser shown clear guidance to re-enable. Agent in “dormant” mode.
Offline (no internet)No Cloud Enrichment, no model updatesLocal detection continues. Events buffered for later sync. Last-known-good models used.
Battery optimization kills serviceAgent stops monitoringManufacturer-specific workarounds. User guided through battery exemption setup.
OS update breaks APISignal collection failsAgent self-tests on startup. Failed collectors logged. OTA agent update pushed.