I’ve heard that just visually blocking them isnt enough or something.

There’s probably a whole world of metadata silently attached that gets passed over often

  • Artwork@lemmy.world
    cake
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    19 days ago

    Wonderful day!

    There are options to start investigating from, and the following public are well known in PDF securityscope:
    - https://github.com/tpet/mat2 (…is a metadata removal tool…);
    - https://www.coherentpdf.com/ (The most capable, most robust Command Line Tools for processing PDFs…);
    - https://eternal-todo.com/tools/peepdf-pdf-analysis-tool (…to explore PDF files in order to find out if the file can be harmful or not…);

    For example, from some snippets I had in relatively old notes:

    pdfinfo './file.pdf';
    mat2 --show './file.pdf';
    cpdf -info -i ./file.pdf;
    ./peepdf.py './file.pdf';
    
    # Set version "1.4"
    cpdf -set-version '04' -i ./file.pdf -o ./file.changed.pdf;
    
    cpdf -set-producer 'Some Producer' -i ./file.pdf -o ./file.changed.pdf;
    cpdf -set-create 'D:20231115053018' -i ./file.pdf -o ./file.changed.pdf;
    cpdf -set-modify 'D:20231115053018' -i ./file.pdf -o ./file.changed.pdf;
    cpdf -set-page-mode 'FullScreen' -i ./file.pdf -o ./file.changed.pdf;
    

    Please do also check already existing cases like:
    - https://unix.stackexchange.com/questions/608593 (Removing metadata from a PDF…);
    - https://stackoverflow.com/questions/76262351 (Either cloning entire metadata from one file to another or simply removing single metadata lines…);

    Please do stay safe!