Skip to content

KC-1430: Deny host-path I/O in Service Mode - #2336

Merged
sk-keeper merged 1 commit into
releasefrom
fix/service-mode-host-io
Aug 31, 2026
Merged

KC-1430: Deny host-path I/O in Service Mode#2336
sk-keeper merged 1 commit into
releasefrom
fix/service-mode-host-io

Conversation

@amangalampalli-ks

Copy link
Copy Markdown
Contributor

Summary

Closed multiple command-execution bypasses in Service Mode that allowed host file read/writes through abbreviation tricks and temp directory confusion.

Changes

  • Abbreviations like --out now correctly expand and get blocked as --output when needed.
  • Each request gets its own private temp folder instead of trusting the whole /tmp directory.
  • Import command now understands which formats need files (JSON, CSV) versus which don't (LastPass, Cyberark).
  • Commands resolved through real parser instead of text scanning, closing bare-filename bypasses.
  • Service Mode now logs all blocked commands for audit trails.
  • New tests verify all exploits are closed and legitimate flows still work.

* Fix Service Mode Host I/O

* Handle alias for file import/export

* Fix python3.9 test case

* Fix token check for flags

* Fix review comments

* Remove extra comments and doc strings

* Fix directory clean up race condition
@amangalampalli-ks amangalampalli-ks self-assigned this Aug 31, 2026
@amangalampalli-ks
amangalampalli-ks marked this pull request as ready for review August 31, 2026 12:42
@sk-keeper
sk-keeper merged commit 26d0449 into release Aug 31, 2026
4 checks passed
@sk-keeper
sk-keeper deleted the fix/service-mode-host-io branch August 31, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants