def rule(event):
    if all(
        [
            event.deep_get("Image", default="") == "/usr/sbin/firmwarepasswd",
            any(
                [
                    "setpasswd" in event.deep_get("CommandLine", default=""),
                    "full" in event.deep_get("CommandLine", default=""),
                    "delete" in event.deep_get("CommandLine", default=""),
                    "check" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
