In the Akeeba Backup docs, in the section "Securing the backup output directory" the following security recommendation is provided
Using a well known location would allow an attacker exploiting a security issue in a third party component to gain access to the backup archives. The only way around that is using a different directory, ideally one above your site's root. [emphasis added]
It seems to me that if one component can gain access to a directory (even one above the root), then any component can gain access to the same directory.
My question, therefore, is: Is it possible to secure a directory so that only a specific component (i.e. Akeeba Backup) can gain access to it? If yes, how would that be done?
open_basedir
-configuration would do the trick, but it probably will not work because everything goes through one Joomla PHP script which invokes all components.