def rule(event):
    if all(
        [
            any(
                [
                    ":\\ProgramData\\" in event.deep_get("TargetFilename", default=""),
                    ":\\Temp\\" in event.deep_get("TargetFilename", default=""),
                    ":\\Windows\\System32\\Tasks\\" in event.deep_get("TargetFilename", default=""),
                    ":\\Windows\\Tasks\\" in event.deep_get("TargetFilename", default=""),
                    ":\\Windows\\Temp\\" in event.deep_get("TargetFilename", default=""),
                    "\\AppData\\Local\\Temp\\" in event.deep_get("TargetFilename", default=""),
                ]
            ),
            event.deep_get("TargetFilename", default="").endswith(".sed"),
        ]
    ):
        return True
    return False
