def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("/dseditgroup"),
            " -o edit " in event.deep_get("CommandLine", default=""),
            " -a " in event.deep_get("CommandLine", default=""),
            " -t user" in event.deep_get("CommandLine", default=""),
            "admin" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
