CapExec: Towards Transparently-Sandboxed Services (Extended Version)

Network services are among the riskiest programs executed by production systems. Such services execute large quantities of complex code and process data from arbitrary — and untrusted — network sources, often with high levels of system privilege. It is desirable to confine system services to a least-privileged environment so that the potential damage from a malicious attacker can be limited, but existing mechanisms for sandboxing services require invasive and system-specific code changes and are insufficient to confine broad classes of network services. Rather than sandboxing one service at a time, we propose that the best place to add sandboxing to network services is in the service manager that starts those services. As a first step towards this vision, we propose CapExec, a process supervisor that can execute a single service within a sandbox based on a service declaration file in which, required resources whose limited access to are supported by Caper services, are specified. Using the Capsicum compartmentalization framework and its Casper service framework, CapExec provides robust application sandboxing without requiring any modifications to the application itself. We believe that this is the first step towards ubiquitous sandboxing of network services without the costs of virtualization.

Paper

References (22)

03inetd daemon2019 · ibm.com/support/ \ knowledgecenter/en/ssw aix
04Capexec: Towards transparently-sandboxed services (extended version)2019 · 2019, arXiv:1909.12282.
05relaunchd. [Online]. Available: ”https://github.com/csjayp/relaunchd2019 · (Retrieved at: June
07Pawel Jakub2016
082) Freebsd manual pages: libcasper2016
10and K2010 · Kennaway, “Capsicum: Practical capabilities for unix,” in Proceedings of the 19th USENIX Conference on Security, ser. USENIX Security’10. Berkeley, CA, USA: USENIX Association
11Json's website2000

Scroll for more · 10 remaining

Similar papers

© 2026 NYSGPT2525 LLC