FISC Labs ·

A permission repair that gave a file owner more access

A Linux file owner could read a file. One repair gave the owner permission to write as well. A second repair removed the excess permissions and kept the file read-only.

A security operator sees that a file can be read too widely. The operator asks the system to remove the extra access. But what if the same operation also gives its owner a right they did not have before?

What the operating system allowed

In a FISC Labs component check, the starting file could be read by its owner, its group and others. The owner could not write to it. We gave the repair an upper limit that allowed only the owner to have access. The limit permitted reading and writing.

The first repair set the file’s permissions to that template. Group and other access disappeared, but the owner gained the ability to open the file for writing. A second repair removed the group and other permissions individually. The owner could still read the file, and Linux refused to open it for writing.

The owner could write only after the template reset. All three file states allowed the owner to read.
Effective owner access on the empty Linux test files. Each repair started with the same permissions. Open full size

Comparing the two repairs

We examined all 262,144 pairs of starting permissions and permitted limits for the nine ordinary Linux file permission bits. Setting the permissions to the template whenever any right exceeded the limit granted at least one previously absent right in 223,290 pairs. This count describes the combinations in the comparison. How often those combinations occur on working systems remains an open question.

A conventional check that cleared each disallowed right and a calculation that kept only rights present in both sets agreed throughout. We also checked six starting conditions with each method on empty files. The kernel returned the expected permissions in every case, and an unrelated file remained writable.

What this changes for Instinct

An instruction to remove excess access gives an operator no authority to add a missing right. That distinction gives us a precise requirement for a protective action. It must inspect the current state, remove the excess and check the resulting rights on the actual object.

The private Linux version of Instinct now applies that rule to two files the product owns. When the test made one file more widely readable, the operator could see the changed permissions and restrict that file. The operating system confirmed that the owner retained read-only access. In a separate action the operator paused agent calculations. A customer notice still went through, and the original agent could complete its calculation after the operator resumed it.

The check covered ordinary file permissions on Linux. It used empty files in a private workspace and one operating-system identity. It measured the right to open the files. It could tell us nothing about earlier use of their contents, permissions on a Windows endpoint or the effectiveness of a response across an organisation.

FISC account access

Sign in

Account access is in development. Contact us to find out more about our platforms.

For enquiries about FISC Digital, please contact us.

support@fiscdigi.com