def rule(event):
    if any(
        [
            any(
                [
                    "\\hive_sam_" in event.deep_get("TargetFilename", default=""),
                    "\\SAM-2021-" in event.deep_get("TargetFilename", default=""),
                    "\\SAM-2022-" in event.deep_get("TargetFilename", default=""),
                    "\\SAM-2023-" in event.deep_get("TargetFilename", default=""),
                    "\\SAM-haxx" in event.deep_get("TargetFilename", default=""),
                    "\\Sam.save" in event.deep_get("TargetFilename", default=""),
                ]
            ),
            event.deep_get("TargetFilename", default="") == "C:\\windows\\temp\\sam",
        ]
    ):
        return True
    return False
