def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("/systemctl"),
            " mask" in event.deep_get("CommandLine", default=""),
            any(
                [
                    "suspend.target" in event.deep_get("CommandLine", default=""),
                    "hibernate.target" in event.deep_get("CommandLine", default=""),
                    "hybrid-sleep.target" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
