def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("Image", default="").endswith("/dscacheutil"),
                    "-q" in event.deep_get("CommandLine", default=""),
                    "group" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("Image", default="").endswith("/cat"),
                    "/etc/group" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("Image", default="").endswith("/dscl"),
                    "-list" in event.deep_get("CommandLine", default=""),
                    "/groups" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
