Repository navigation
Store the Studio sandbox credential path names in pieces - #12188
Conversation
The tool sandbox keeps a deny list of credential paths (SSH keys, cloud credential files, shadow) in the same file as network code, which is the shape the Generic.PY.STEALER heuristic scores. Those names are now stored split into pieces and joined at import by a small _joined helper, as scripts/scan_packages.py does since #12169. The compiled pattern, the glob target tuple, the basename set and the escape-check prefixes are equal to their previous values, so what the sandbox refuses does not change. The AV008 baseline group for this file is removed; the file no longer carries any of the matched names.
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
The tool sandbox keeps a deny list of credential paths (SSH keys, cloud credential files, shadow) in the same file as network code, which is the shape the Generic.PY.STEALER heuristic scores. Those names are now stored split into pieces and joined at import by a small _joined helper, as scripts/scan_packages.py does since unslothai#12169. The compiled pattern, the glob target tuple, the basename set and the escape-check prefixes are equal to their previous values, so what the sandbox refuses does not change. The AV008 baseline group for this file is removed; the file no longer carries any of the matched names.
Summary
The Studio tool sandbox keeps a deny list of credential files (
id_rsa,.aws/credentials,.netrc,/etc/shadowand so on) instudio/backend/core/inference/tools.py, the same module that holds the web and network tools. Credential-store paths written out beside network code is the shape that gotscripts/scan_packages.pyquarantined asGeneric.PY.STEALER(#12169), and unlike that script this file ships in the wheel to every Studio install. The scanner-shape gate from #12178 recorded it as a follow-up.The names are now stored in pieces and joined at import with the same
_joinedhelperscan_packages.pyuses. Nothing the sandbox matches changes:_SENSITIVE_PATH_RE: the rebuilt pattern string and flags are equal to the old ones._SENSITIVE_GLOB_TARGETS(same order),_SENSITIVE_GLOB_BASENAMESand_SENSITIVE_FILE_PREFIXES: equal to the old values.The baseline group for this file is removed, so the gate fails if the names are written out again.
Validation
core.inference.tools, run onmainand on this branch: the same result on both (8946 passed), with an identical list of failing test IDs. The failures are in RAG, recall, MCP and web-search tests that fail onmaintoo and do not touch this code.python scripts/lint_av_shapes.py: ok, 0 new errors; the file no longer matches the credential rule.