Repository navigation
v0.3.1
⬇️ Downloads are on the latest release. · 다운로드 파일은 최신 릴리스에 있습니다.
Nubis 0.3.1 — Hardening: security, data safety and account lockout
✦ Claude
- New tool
get_terminal_info: the terminal's current folder, sign-in user and sudo switch, answered instantly from what Nubis already tracks — nopwdsent, no approval prompt. send_to_terminalnow waits for the prompt to come back (10 seconds by default) and returns the output, so Claude needs half the round trips.wait_for_outputno longer sits until the 60-second timeout after a short command that already finished; it returns as soon as the shell prompt is back.- With "Run read-only commands without approval" on,
send_to_terminalcan also skip the prompt for a one-line read-only command — only while the screen shows a shell prompt (password prompts and editors always ask). The audit log is still written. - When Claude cancels a request, its approval window closes as rejected, and only one approval window is shown at a time.
🔒 Security fixes
- Closed many ways to slip a writing command past read-only auto-approval:
$( )and backticks inside double quotes, control characters, PowerShell sub-expressions and method calls, option values mistaken for subcommands,awksystem()and redirection, write options such asjournalctl --cursor-file, and wildcards expanded by the shell. About 400 counter-example tests were added. - Hosts running Windows OpenSSH and local PowerShell tabs are never auto-approved. The approval window shows control characters visibly.
- Uploads are refused when the local path points back at this PC through UNC paths, admin shares, device paths or hard links, or is swapped after approval (network drives still work).
- Executable files from the server (
.bat,.exe,.vbs…) are not run on double-click, and downloaded files are marked as coming from the internet. - WinRM: if the HTTPS certificate fingerprint differs from the saved one, Nubis stops instead of falling back to HTTP + NTLM on 5985 (not yet verified against a real server).
- Staying signed in and offline entry re-check the sign-in allow list.
🛡️ Account lockout
- OTP / push timeouts and drops during authentication were treated as network errors and retried. Once a password or keyboard-interactive answer has been sent, Nubis no longer retries.
- Visible OTP codes can't be remembered; if a remembered answer fails, Nubis asks next time. A failed sudo user isn't retried, and the separate SFTP connection doesn't repeat authentication.
💾 Data safety
- Only one Nubis runs per data folder. Starting it again hands
--connect/--claudeto the open window, so two copies never overwrite each other's changes. If the running copy is stuck, you are told so. - Saves are flushed to disk and the previous copy is kept as
.bak, restored automatically if a data file is damaged (settings.jsonexcluded, so it can still be fixed by hand). - A damaged
known_hosts.jsonwas read as an empty list, trusting every key again. Fixed. If moving a profile folder fails, the old folder is used instead of starting empty. - Edit-and-save in the SFTP panel no longer overwrites the server file in place: your own files are uploaded under a temporary name and swapped, so an interrupted upload doesn't truncate them (files owned by others are still written directly to keep their owner).
- When a new password is saved for a host whose Vault account other hosts also use, Nubis no longer silently changes the Vault password for all of them — you choose to update the Vault account, save it on this host only, or not save it. The host editor now saves only the fields you changed, so it no longer overwrites changes made by cloud sync or Claude while it was open.
- Tencent Cloud servers in the
SHUTDOWNstate are no longer removed by sync.
🐞 Other fixes
- 36 bugs found in a full review, among them:
sudo su -following reacted to prompts of other servers reached withsshordocker exec; a jump host's sign-in failure was blamed on the target account; a rejected host key still triggered 5 automatic reconnects; cancelling an OTP prompt opened an account prompt; tabs retried on the public IP stayed on it; deleting a jump host made hosts connect directly; a sync could delete instances whose address was briefly missing; detaching an Elastic IP turned off the public IP setting; duplicated hosts shared remembered answers. send_to_terminalread all arguments before sending, so a bad argument can no longer fail after the command was already typed.close_sessionasks for approval.- ssh-agent replies no longer hang, jump tunnels no longer leak, and the Claude panel's processes are cleaned up when it closes.
Nubis 0.3.1 — 점검: 보안 · 데이터 안전 · 계정 잠금
✦ Claude
- 새 도구
get_terminal_info: 터미널의 현재 폴더 · 로그인 사용자 · sudo 전환을 앱이 추적 중인 값으로 바로 답합니다 —pwd를 보내지 않고 승인 창도 없습니다. send_to_terminal은 프롬프트가 돌아올 때까지(기본 10초) 기다려 출력을 함께 돌려줍니다. 도구 왕복이 절반으로 줄었습니다.wait_for_output이 이미 끝난 짧은 명령 뒤에 제한 시간(60초)까지 기다리던 문제 — 셸 프롬프트가 돌아오면 바로 끝납니다.- "읽기 전용 명령은 승인 없이 실행"을 켜면
send_to_terminal도 한 줄 조회 명령은 승인을 생략합니다 — 화면이 셸 프롬프트일 때만 (비밀번호 질문 · 편집기 안에서는 항상 승인). 감사 로그는 남습니다. - Claude 가 요청을 취소하면 승인 창도 거부로 닫히고, 승인 창은 한 번에 하나만 뜹니다.
🔒 보안 수정
- 읽기 전용 자동 승인을 우회하던 길을 막았습니다: 큰따옴표 안
$( )· 백틱, 제어 문자, PowerShell 하위식 · 메서드 호출, 하위 명령으로 오인된 옵션 값,awk의system()· 리디렉션,journalctl --cursor-file같은 쓰기 옵션, 셸이 펼치는 와일드카드. 반례 테스트 약 400건을 추가했습니다. - Windows OpenSSH 서버와 로컬 PowerShell 탭은 자동 승인하지 않습니다. 승인 창은 제어 문자를 보이게 표시합니다.
- 업로드할 로컬 경로가 UNC · 관리 공유 · 장치 경로 · 하드 링크로 이 PC 를 가리키거나 승인 뒤 바뀌면 거부합니다 (네트워크 드라이브는 허용).
- 서버에서 받은 실행 파일(
.bat·.exe·.vbs등)은 더블클릭으로 실행하지 않고, 받은 파일에 인터넷 출처 표시를 남깁니다. - WinRM: HTTPS 인증서 지문이 저장된 것과 다르면 5985 HTTP + NTLM 으로 넘어가지 않고 멈춥니다 (실서버 미검증).
- 로그인 유지 · 오프라인 진입 때도 로그인 허용 목록을 다시 확인합니다.
🛡️ 계정 잠금 방지
- OTP · Push 시간 초과나 인증 중 끊김을 네트워크 오류로 보고 다시 보내던 문제 — 비밀번호 · keyboard-interactive 답을 보낸 뒤에는 재시도하지 않습니다.
- 화면에 보이는 OTP 코드는 기억하지 않고, 기억한 답으로 실패하면 다음엔 묻습니다. 실패한 sudo 사용자는 다시 시도하지 않고, 별도 SFTP 연결이 인증을 반복하지 않습니다.
💾 데이터 안전
- 데이터 폴더당 Nubis 는 하나만 실행됩니다. 다시 실행하면
--connect·--claude를 열린 창에 넘기므로, 두 개가 서로의 변경을 덮어쓰지 않습니다. 실행 중인 쪽이 멈췄으면 그렇게 안내합니다. - 저장은 디스크까지 확실히 쓰고 이전 사본을
.bak으로 남겨, 데이터 파일이 손상되면 자동으로 복구합니다 (settings.json은 손으로 고칠 수 있게 제외). - 손상된
known_hosts.json을 빈 목록으로 읽어 모든 키를 다시 믿던 문제를 고쳤습니다. 프로필 폴더 이동이 실패하면 빈 폴더로 시작하지 않고 예전 폴더를 씁니다. - SFTP 패널의 편집 후 저장이 서버 파일을 직접 덮어쓰지 않습니다 — 내 소유 파일은 임시 이름으로 올린 뒤 바꿔치기해 중간에 끊겨도 잘리지 않습니다 (남의 소유 파일은 소유자를 유지하려고 직접 씁니다).
- 다른 호스트도 쓰는 Vault 계정의 호스트에 새 비밀번호를 저장할 때 Vault 비밀번호를 조용히 바꾸지 않고, Vault 변경 · 이 호스트에만 저장 · 저장 안 함 중에서 고르게 합니다. 호스트 편집 창은 바꾼 칸만 저장해, 열어 둔 사이 클라우드 동기화 · Claude 가 바꾼 값을 덮어쓰지 않습니다.
- Tencent Cloud 의
SHUTDOWN상태 서버를 동기화가 지우지 않습니다.
🐞 그 밖의 수정
- 전체 점검으로 찾은 버그 36건. 예:
sudo su -따라가기가ssh·docker exec로 들어간 다른 서버 프롬프트에도 반응, 점프 서버 인증 실패를 대상 서버 계정 문제로 안내, 호스트키를 거부해도 자동 재연결 5회, OTP 입력 취소 뒤 계정 입력 창, 공인 IP 로 재시도한 탭이 계속 공인 IP 사용, 점프 서버를 지우면 직접 연결, 주소가 잠깐 비어 있는 인스턴스를 동기화가 삭제, EIP 를 떼면 공인 IP 사용 설정이 꺼짐, 복제한 호스트가 기억한 답을 공유. send_to_terminal은 인자를 모두 먼저 확인해, 명령을 보낸 뒤에 인자 오류가 나지 않습니다.close_session은 승인을 받습니다.- ssh-agent 응답 대기 멈춤, 점프 터널 누수를 고쳤고, Claude 패널을 닫으면 그 프로세스들도 정리됩니다.
What's Changed
- Claude 터미널 대기 개선 · 병렬 점검 버그·보안·데이터 안전 수정 (0.3.1) by @windevase in #3
- 커뮤니티 표준 문서 추가 by @windevase in #4
- 테스트: LoadWarnings 병렬 경쟁으로 CI 가 간헐 실패하던 문제 by @windevase in #5
Full Changelog: v0.3.0...v0.3.1
Checksums · VirusTotal
| File | SHA256 | Scan |
|---|---|---|
Nubis-0.3.1-portable-win-x64.zip |
b9135544cc1b31c6402b6000475ff6921455e049aa1d2a5f09b7b90df544917c |
VirusTotal |
Nubis.exe |
961b9c05639ef7d03901e1e9605e065bebdbf7010f524424b28be4683aff2f28 |
VirusTotal |
Nubis.dll |
da0bb83e10dc2ca9840b71d13aad6f6a9565a84ad65826755d314aff6aec6332 |
in zip |