import json


def rule(event):
    if all(
        [
            event.deep_get("type", default="") == "EXECVE",
            "grep" in json.dumps(event.to_dict()),
            "password" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
