def rule(event):
    if all(
        [
            event.deep_get("GrantedAccess", default="") in ["0x147a", "0x1f3fff"],
            "UNKNOWN" in event.deep_get("CallTrace", default=""),
            not all(
                [
                    event.deep_get("SourceImage", default="")
                    == "C:\\Windows\\System32\\Wbem\\Wmiprvse.exe",
                    event.deep_get("TargetImage", default="") == "C:\\Windows\\system32\\lsass.exe",
                ]
            ),
            not any(
                [
                    all(
                        [
                            any(
                                [
                                    event.deep_get("SourceImage", default="").startswith(
                                        "C:\\Program Files\\Dell\\"
                                    ),
                                    event.deep_get("SourceImage", default="").startswith(
                                        "C:\\Program Files (x86)\\Dell\\"
                                    ),
                                ]
                            ),
                            any(
                                [
                                    event.deep_get("TargetImage", default="").startswith(
                                        "C:\\Program Files\\Dell\\"
                                    ),
                                    event.deep_get("TargetImage", default="").startswith(
                                        "C:\\Program Files (x86)\\Dell\\"
                                    ),
                                ]
                            ),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("SourceImage", default="")
                            == "C:\\Program Files (x86)\\Dell\\UpdateService\\ServiceShell.exe",
                            event.deep_get("TargetImage", default="")
                            == "C:\\Windows\\Explorer.EXE",
                        ]
                    ),
                    all(
                        [
                            event.deep_get("SourceImage", default="").startswith(
                                "C:\\Program Files\\Microsoft Visual Studio\\"
                            ),
                            event.deep_get("TargetImage", default="").startswith(
                                "C:\\Program Files\\Microsoft Visual Studio\\"
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
