def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\format.com"),
            "/fs:" in event.deep_get("CommandLine", default=""),
            not any(
                [
                    "/fs:exFAT" in event.deep_get("CommandLine", default=""),
                    "/fs:FAT" in event.deep_get("CommandLine", default=""),
                    "/fs:NTFS" in event.deep_get("CommandLine", default=""),
                    "/fs:ReFS" in event.deep_get("CommandLine", default=""),
                    "/fs:UDF" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
