Skip to content

PagebaraSecurity

How Pagebara checks PDFs

Pagebara treats every PDF as something a stranger sent. This page lists what it looks at when a file opens, what it looks for before you send one, and what it never does.

What it never does

  • Run a script

    Pagebara has no JavaScript engine. Scripts in a PDF are listed in the report and never run. The usual form calculations and number formats run as Pagebara's own code.

  • Open a link by itself

    A web link opens in your browser after you confirm it, and the confirmation shows the real address. Local paths, custom protocols and addresses with sign-in details are blocked.

  • Open another file or program

    Links to other files, launch actions and media actions are not followed.

  • Open an attachment

    Attached files are read only to check them. Pagebara does not open or run them.

  • Upload your file

    Every check runs on your device. The optional malware scan uses ClamAV on your device too.

When a PDF opens

The Document security check runs by itself on every PDF as it opens, before you see the first page. A password-protected PDF is checked once you unlock it. The shield beside Save shows the result, and choosing it opens the report.

  • Green shield

    Checked, and nothing suspicious was found.

  • Orange shield

    Something was blocked or needs a look: a script, an automatic action, a blocked link, an attachment named like a program, a check that could not finish, or a skipped scan. A strip over the page says what happened.

  • Red shield

    ClamAV matched a malware signature in this PDF.

  • Plain shield

    Still checking.

The report has one line for each part of the check:

  • Scripts

    Each piece of JavaScript and when it would run: as the PDF opens, when a page opens, on a click, before printing or saving, as a form field is typed in.

  • Actions

    Requests to open a website as the PDF opens, to open other files, to send form data or to play media.

  • Links

    How many web addresses the PDF links to, and any link with an address Pagebara will not open.

  • Attachments

    How many files are attached, and any named like a program or a script, such as .exe, .js or .command.

  • Malware scan

    Whether ClamAV scanned the file and what it found. It is optional, and the line says when ClamAV is not running.

Before you send one

Inspect before sharing, beside Save, lists what travels with the file besides what you see on the page. Possible failed redactions and misleading links come first. Choose a finding to see it on its page; for covered text you can mark the area, apply the redaction and check the result.

  • Covered text

    Text under an opaque rectangle, an image or a filled comment that can still be selected and copied, including several rectangles drawn together. On a searchable scan, a covered word raises a warning.

  • Links and QR codes

    The text of each link is compared with where it goes, and QR codes are read on your device so you can see their destinations.

  • Comments and form values

    Notes, replies and filled-in fields, with the page each is on.

  • Document details

    Metadata, private application data, hidden layers, signatures and earlier revisions.

  • Attachments

    Each one identified by its contents. PDFs and ZIP files inside are checked too, within limits.

It can also save a clean copy with metadata, scripts and links, or attachments removed, and always without earlier revisions. Pagebara reads the new file back before it is saved. If anything you chose to remove is still there, or the file cannot be read completely, there is no copy. Signatures do not survive the clean copy, and the panel says so first. Copy report gives the findings as JSON, including any check that was skipped.

The malware scan

If ClamAV runs on your device, Pagebara can send it a PDF, or the files attached to one, and show what it found. Turn on Scan PDFs with local ClamAV before opening in Settings, System, and a file that matches a signature is blocked before Pagebara reads it. Files over 32 MiB are not scanned whole, and the report says so.

Pagebara connects to 127.0.0.1 on port 3310, or to the port in PAGEBARA_CLAMD_PORT, or to the Unix socket in PAGEBARA_CLAMD_SOCKET. Setting up ClamAV takes a few commands on macOS, Linux and Windows.

What a check cannot tell you

The checks read what a PDF asks for and what it contains. They cannot tell whether a website is safe, and ClamAV finds known malware, not all of it. A very large or damaged file can reach the check's limits; the report then says the check is incomplete instead of calling the file clean.

The code that reads PDFs is Pagebara's own, in safe Rust, and is fed malformed files by 20 fuzz targets, because every PDF from the internet is untrusted data.

Something look wrong?

If Pagebara missed something, or warned about a file you trust, tell us on Discord or at [email protected]. Please do not send a file you are not allowed to share; a description of what it does is enough to start.