def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("GrandParentImage", default="").endswith("\\rundll32.exe"),
                    any(
                        [
                            event.deep_get("ParentImage", default="").endswith(
                                "\\SearchFilterHost.exe"
                            ),
                            event.deep_get("ParentImage", default="").endswith(
                                "\\SearchProtocolHost.exe"
                            ),
                        ]
                    ),
                ]
            ),
            event.deep_get("CommandLine", default="")
            in ["ipconfig.exe /all", "netstat.exe -aon", "whoami.exe /all"],
        ]
    ):
        return True
    return False
