import json


def rule(event):
    if all(
        [
            "new user" in json.dumps(event.to_dict()),
            any(
                [
                    "GID=0," in json.dumps(event.to_dict()),
                    "UID=0," in json.dumps(event.to_dict()),
                    "GID=10," in json.dumps(event.to_dict()),
                    "GID=27," in json.dumps(event.to_dict()),
                ]
            ),
        ]
    ):
        return True
    return False
