def rule(event):
    if all(
        [
            event.deep_get("TargetFilename", default="").startswith("C:\\Windows\\PSEXEC-"),
            event.deep_get("TargetFilename", default="").endswith(".key"),
        ]
    ):
        return True
    return False
