import json


def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") in [5805, 5723],
            any(["kali" in json.dumps(event.to_dict()), "mimikatz" in json.dumps(event.to_dict())]),
        ]
    ):
        return True
    return False
