import re


def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("Image", default="").endswith("/dscl"),
                    "create" in event.deep_get("CommandLine", default=""),
                    "UniqueID" in event.deep_get("CommandLine", default=""),
                    re.match(
                        r"([0-9]|[1-9][0-9]|[1-4][0-9]{2})",
                        event.deep_get("CommandLine", default=""),
                    ),
                ]
            ),
            all(
                [
                    event.deep_get("Image", default="").endswith("/dscl"),
                    "create" in event.deep_get("CommandLine", default=""),
                    "IsHidden" in event.deep_get("CommandLine", default=""),
                    any(
                        [
                            "true" in event.deep_get("CommandLine", default=""),
                            "yes" in event.deep_get("CommandLine", default=""),
                            "1" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
