LoFP LoFP / legitimate applications may be deployed as full trust msix packages, especially line-of-business applications that require access to system resources. microsoft store applications, development tools, and enterprise applications may legitimately use full trust packages. verify if the package is from a trusted source and signed by a trusted publisher before taking action. review the package source uri and calling process to determine if the installation is expected in your environment.

Techniques

Sample rules

Windows AppX Deployment Full Trust Package Installation

Description

The following analytic detects the installation of MSIX/AppX packages with full trust privileges. This detection leverages Windows event logs from the AppXDeployment-Server, specifically focusing on EventCode 400 which indicates a package deployment operation. Full trust packages are significant as they run with elevated privileges outside the normal AppX container restrictions, allowing them to access system resources that regular AppX packages cannot. Adversaries have been observed leveraging full trust MSIX packages to deliver malware, as documented in recent threat intelligence reports. If confirmed malicious, these packages could allow attackers to execute arbitrary code with elevated privileges, establish persistence, or deliver malware while evading traditional detection mechanisms.

Detection logic

`wineventlog_appxdeploymentserver` EventCode=400 HasFullTrust="true" 
| stats count min(_time) as firstTime max(_time) as lastTime values(PackageFullName) as PackageFullName values(Path) as PackagePath values(PackageSourceUri) as PackageSourceUri values(PackageDisplayName) as PackageDisplayName values(CallingProcess) as CallingProcess values(IsCentennial) as IsCentennial by dvc EventCode HasFullTrust user_id 
| rename dvc as dest 
| `security_content_ctime(firstTime)` 
| `security_content_ctime(lastTime)` 
| `windows_appx_deployment_full_trust_package_installation_filter`