def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("Image", default="").endswith("/dscl"),
                    "list" in event.deep_get("CommandLine", default=""),
                    "/users" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("Image", default="").endswith("/dscacheutil"),
                    "-q" in event.deep_get("CommandLine", default=""),
                    "user" in event.deep_get("CommandLine", default=""),
                ]
            ),
            "'x:0:'" in event.deep_get("CommandLine", default=""),
            all(
                [
                    event.deep_get("Image", default="").endswith("/cat"),
                    any(
                        [
                            "/etc/passwd" in event.deep_get("CommandLine", default=""),
                            "/etc/sudoers" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
            event.deep_get("Image", default="").endswith("/id"),
            all(
                [
                    event.deep_get("Image", default="").endswith("/lsof"),
                    "-u" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
