def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\w3wp.exe"),
            "\\portal\\portal.config" in event.deep_get("ParentCommandLine", default=""),
            event.deep_get("Image", default="").endswith("\\cmd.exe"),
        ]
    ):
        return True
    return False
