by throwfaraway398 · 3y ago · 0 comments
- Trust it blindly
- Audit the code (and do that again for each update)
- Write it yourself instead
The last two can be time and resource consuming so you sometime have to choose the first solution.
Cackle can be a useful tool to (occasionally) raise alarms for when dependencies you trust blindly start using different APIs (so the trust isn't completely blind anymore). But it doesn't really solve the problem.
This sort of capability-based approach to security would make untrusted code relatively safe to execute because the worst it could do without the explicit cooperation of the developer is an infinite loop.
I wonder if anyone tried to use it to limit dependency risk in that way.
The whole paradigm is to avoid needing to check permissions by making it impossible in principle to do anything you’re not allowed to do.