def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\presentationhost.exe"),
                    event.deep_get("OriginalFileName", default="") == "PresentationHost.exe",
                ]
            ),
            ".xbap" in event.deep_get("CommandLine", default=""),
            not any(
                [
                    " C:\\Windows\\" in event.deep_get("CommandLine", default=""),
                    " C:\\Program Files" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
