anthropics / anthropics/sandbox-runtime

Feature Request: Add `~/.bash_login` and `~/.bash_logout` to mandatory protected files

Open
#177 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.2k
Forks
439
Avg merge
2d 9m
Merged PRs (30d)
13

Description

Follow up of #175: Concerning https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html also `~/.bash_login` and `~/.bash_logout` can be automatically be executed for login shells (similar to `~/.bash_profile` or `~/.profile`) and thus can be used for code executions outside the sandbox.

Therefor I think they need to be added to the list of protected files in https://github.com/anthropic-experimental/sandbox-runtime/blob/20f5176a94314038695bee13779eb9eebbbaeb49/src/sandbox/sandbox-utils.ts#L7-L21

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.