def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("CommandLine", default="").endswith("\\rundll32.exe"),
                    event.deep_get("CommandLine", default="").endswith('\\rundll32.exe"'),
                    event.deep_get("CommandLine", default="").endswith("\\rundll32"),
                ]
            ),
            not any(
                [
                    "\\AppData\\Local\\" in event.deep_get("ParentImage", default=""),
                    "\\Microsoft\\Edge\\" in event.deep_get("ParentImage", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
