def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\dism.exe"),
                    event.deep_get("OriginalFileName", default="") == "DISM.EXE",
                ]
            ),
            "WindowsPowerShellWebAccess" in event.deep_get("CommandLine", default=""),
            "/online" in event.deep_get("CommandLine", default=""),
            "/enable-feature" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
