I understand online PDFs are prone to malware.
If a WordPress website uses a lot of PDFs, is there anything I can do to the existing PDFs protect the website users and the website?
What other file is safer to upload, but not subject to manipulation?
I understand online PDFs are prone to malware.
If a WordPress website uses a lot of PDFs, is there anything I can do to the existing PDFs protect the website users and the website?
What other file is safer to upload, but not subject to manipulation?
I understand online PDFs are prone to malware.
Do you have a reference (or some background) for this statement?
As discussed in this question, a PDF certainly can be made to include malware, but I am not sure they are any more prone to malware than other file formats, e.g. flash, or Word/Excel/etc. Or .exe, .js, or other files you find online.
A big question here too is where your files come from: if they are from users, then you have the generic issue of dealing with arbitrary file uploads (see e.g. Should text files or image files be virus scanned during upload?).
If you are generating these PDFs yourself, then I would instead ensure that users can verify the integrity of what they download, for example by making a checksum available, and possibly by using GPG signatures.
I think the answers to your questions would require you to give a bit more background about your situation, and if possible, some idea of what risks you are specifically trying to guard against.
Non-executable file formats like PDF can be a vector for malware in two ways:
Both have been observed with PDF.
(I left out risks like phishing or fake codec installation since they do not relate directly to the question.)
To avoid the first risk, limit yourself to file formats that do not support embedded scripts, or scan uploaded files for embedded scripts and reject any file containing one. (You may also opt for stripping out the script but I'd recommend against it since it is an error prone operation and the result may be unusable.)
To limit the second risk, limit yourself to the simplest file format(s) possible. There's no absolute security, but the more complex a file format is, the higher the risk of bugs in the rendering application.