Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
5c146ea
fix(app-logic): recursive chmod skips symbolic links like recursive c…
smart-ssh-maintainer[bot] Dec 4, 2026
047a440
fix(core): parse sudo/doas options with a value the same way in filte…
smart-ssh-maintainer[bot] Dec 4, 2026
836f10b
fix(core): recognise quoted assignments after env and sudo in filter …
smart-ssh-maintainer[bot] Dec 4, 2026
d0cc8da
fix(app-logic): bound memory for remote file reads (#1728)
smart-ssh-coder[bot] Dec 4, 2026
6f722cb
fix(android): keep app data out of system backup and device transfer …
smart-ssh-coder[bot] Dec 4, 2026
8349f05
Merge release/0.8.0 into back-merge/release/0.8.0
smart-ssh-coordinator[bot] Dec 4, 2026
76bf698
fix(filter): apply Deny rules and the blacklist to more command shape…
smart-ssh-maintainer[bot] Dec 4, 2026
ffe4b8f
fix(persistence-sqlite): refuse data dir overrides other users can mo…
smart-ssh-coder[bot] Dec 5, 2026
9877549
Merge release/0.8.0 into back-merge/release/0.8.0
smart-ssh-coordinator[bot] Dec 5, 2026
bdbc13e
fix(filter): evaluate commands run by execution wrappers like the bar…
smart-ssh-maintainer[bot] Dec 5, 2026
68e7df1
Merge remote-tracking branch 'origin/develop' into back-merge/release…
brokoskokoli Dec 5, 2026
e6fa164
Merge remote-tracking branch 'origin/release/0.8.0' into back-merge/r…
brokoskokoli Dec 5, 2026
fbd0b8d
refactor: split filter parser.rs and app-shell lib.rs below the file-…
brokoskokoli Dec 5, 2026
0b4fe4c
Merge remote-tracking branch 'origin/develop' into back-merge/release…
brokoskokoli Dec 5, 2026
91f1832
chore(release): 0.8.0 (#1766)
smart-ssh-maintainer[bot] Dec 5, 2026
4a9a93d
Merge release/0.8.0 into back-merge/release/0.8.0
smart-ssh-maintainer[bot] Dec 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
336 changes: 336 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "2"
members = ["crates/*", "apps/*"]

[workspace.package]
version = "0.7.0"
version = "0.8.0"
edition = "2021"
rust-version = "1.99"
license = "GPL-3.0-only"
Expand Down Expand Up @@ -58,17 +58,17 @@ uuid = { version = "1.26.0" }
zeroize = { version = "1.9.0" }

# Internal path dependencies (version pins must match [workspace.package]).
ai-providers = { version = "0.7.0", path = "crates/ai-providers" }
app-logic = { version = "0.7.0", path = "crates/app-logic" }
app-shell = { version = "0.7.0", path = "crates/app-shell" }
credentials-keyring = { version = "0.7.0", path = "crates/credentials-keyring" }
mcp-server = { version = "0.7.0", path = "crates/mcp-server" }
persistence-sqlite = { version = "0.7.0", path = "crates/persistence-sqlite" }
speech = { version = "0.7.0", path = "crates/speech" }
ssh-manager-core = { version = "0.7.0", path = "crates/core" }
ssh-transport = { version = "0.7.0", path = "crates/ssh-transport" }
tauri-plugin-android-host = { version = "0.7.0", path = "crates/tauri-plugin-android-host" }
tls-config = { version = "0.7.0", path = "crates/tls-config" }
ai-providers = { version = "0.8.0", path = "crates/ai-providers" }
app-logic = { version = "0.8.0", path = "crates/app-logic" }
app-shell = { version = "0.8.0", path = "crates/app-shell" }
credentials-keyring = { version = "0.8.0", path = "crates/credentials-keyring" }
mcp-server = { version = "0.8.0", path = "crates/mcp-server" }
persistence-sqlite = { version = "0.8.0", path = "crates/persistence-sqlite" }
speech = { version = "0.8.0", path = "crates/speech" }
ssh-manager-core = { version = "0.8.0", path = "crates/core" }
ssh-transport = { version = "0.8.0", path = "crates/ssh-transport" }
tauri-plugin-android-host = { version = "0.8.0", path = "crates/tauri-plugin-android-host" }
tls-config = { version = "0.8.0", path = "crates/tls-config" }

# Spec 0101, A14: Argon2id rechnet absichtlich teuer (m = 64 MiB, t = 3).
# Unoptimiert dauert ein einzelner Durchlauf gut zwei Sekunden statt rund
Expand Down
18 changes: 17 additions & 1 deletion THREAT-MODEL.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,19 @@ The exact paths per platform are listed in
directory with `--data-dir`, `SMART_SSH_DATA_DIR` or a pointer file next to the
app (Spec 0115); then every file of that instance lives there, and an unusable
directory stops the start instead of falling back to the default one. The
pointer file only names a path and holds no secret. An instance with such an override keeps its keychain entries under its own service `Smart SSH (<id>)` (id = first 12 hex characters of the SHA-256 of the canonical data-directory path, Spec 0101 A25), so it cannot read, replace or delete the secrets of the default instance.
pointer file only names a path and holds no secret, but whoever can replace it
could point the instance at a directory they control. An override therefore only
takes effect when other local users cannot modify the files: the pointer file
must be owned by the current user or root and not group- or world-writable (not
a symbolic link or other non-regular file; on Windows it and the data directory must be owned by
the current user, Administrators, SYSTEM or TrustedInstaller, and the ACL must
grant no write rights to Everyone, Authenticated Users, BUILTIN\\Users, Guests
or Anonymous, including conditional and object ACEs), and an existing data
directory (any override source) must be owned by the current user and not
world-writable (Windows: see above; group-writable is accepted with a
logged warning). A directory the app creates is owner-only (`0700`) on Linux and macOS, inherits
its parent's ACL on Windows, and is then checked like an existing one. Otherwise
the start stops with the data directory error dialog. An instance with such an override keeps its keychain entries under its own service `Smart SSH (<id>)` (id = first 12 hex characters of the SHA-256 of the canonical data-directory path, Spec 0101 A25), so it cannot read, replace or delete the secrets of the default instance.

| Data | Location | Protection |
|---|---|---|
Expand Down Expand Up @@ -308,6 +320,9 @@ data directory (backup, stolen disk) without access to your unlocked OS
account or your master password. It does not protect against malware
running as your user while the app is unlocked.

On Android the app data is excluded from system cloud backup and
device-to-device transfer; the encrypted backup export is the way to move data.

### Activity events and who receives them

**What the core stores.** Nothing: since issue #1506 the core keeps no
Expand Down Expand Up @@ -480,6 +495,7 @@ into `Confirm`, never `Confirm` into `AutoExec`, and never lift a `Deny`
| **Suspected prompt injection** in content just read (if the injection check is enabled) | Always for the next action | [Spec 0039](docs/specs/0039-untrusted-content-fencing.md), §5 |
| **Any action after you rejected an earlier one in the same answer** | Always | [`action_exec.rs`](crates/app-logic/src/orchestration/action_exec.rs) |
| **Commands too long, too nested or too opaque to check**, including line continuations, shell comments and backslashes inside backticks (plain backslash escapes are resolved and checked against the rules) | Always | [ADR 0107](docs/adr/0107-filter-fail-closed-on-opaque-input.md), [ADR 0162](docs/adr/0162-filter-shell-lexing-escapes-comments.md) |
| **Commands another program runs whose command line cannot be read for sure**: read from stdin or a file (`… \| ssh host`, `… \| sudo -i`, `at`), keys sent to a session (`tmux send-keys`), `cmd`/PowerShell command lines, encoded PowerShell, code of another language that starts commands. Where it can be read (`watch`, `su -c`, `find -exec`, `ssh host …`, …), deny rules, the hard blacklist and the risk rating apply to it as to the bare command | Always | [Spec 0002](docs/specs/0002-filter-engine-spec.md), §4.6; [ADR 0165](docs/adr/0165-filter-commands-run-by-other-programs.md) |
| **Filter rules that cannot be loaded** (unreadable rule store or failing rule source): all allow rules are ignored | Always | [Spec 0002](docs/specs/0002-filter-engine-spec.md), §3.4 |
| **Hard-blacklisted commands** (e.g. `rm -rf /`) | Always | [`engine.rs`](crates/core/src/filter/engine.rs) |
| **Content read from the server** (post-ingest policy) | Per server: `Strict` always, `Balanced` for modifying actions, `Standard` never | [Spec 0039](docs/specs/0039-untrusted-content-fencing.md), [ADR 0027](docs/adr/0027-post-ingest-policy-scope-and-injection-check-timing.md) |
Expand Down
4 changes: 2 additions & 2 deletions apps/smart-ssh-community/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/smart-ssh-community/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "smart-ssh",
"private": true,
"version": "0.7.0",
"version": "0.8.0",
"license": "GPL-3.0-only",
"type": "module",
"exports": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<uses-feature android:name="android.software.leanback" android:required="false" />

<application
android:allowBackup="false"
android:fullBackupContent="false"
android:dataExtractionRules="@xml/data_extraction_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.smart_ssh_community"
Expand All @@ -23,15 +26,5 @@
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Keep all app data out of cloud backup and device-to-device transfer (API 31+).
Moving to a new device goes through the encrypted backup export. -->
<data-extraction-rules>
<cloud-backup>
<exclude domain="root" />
<exclude domain="file" />
<exclude domain="database" />
<exclude domain="sharedpref" />
<exclude domain="external" />
</cloud-backup>
<device-transfer>
<exclude domain="root" />
<exclude domain="file" />
<exclude domain="database" />
<exclude domain="sharedpref" />
<exclude domain="external" />
</device-transfer>
</data-extraction-rules>

This file was deleted.

2 changes: 1 addition & 1 deletion apps/smart-ssh-community/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Smart SSH",
"version": "0.7.0",
"version": "0.8.0",
"identifier": "com.smartssh.desktop",
"build": {
"beforeDevCommand": {
Expand Down
5 changes: 0 additions & 5 deletions changelog.d/filter-backslash-comment-hidden-commands.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1018-note-update-result-for-ai.md

This file was deleted.

3 changes: 0 additions & 3 deletions changelog.d/issue-1019-settled-confirmation-card.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1020-android-chat-resync.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1041-keep-live-only-items.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1047-public-api-exports.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1057-note-summary-incomplete-redaction.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1075-public-api-ui-preference.md

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1121-closed-session-scope.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1164-extension-task-scope.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1166-public-show-toast.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1173-outdated-ssh-algorithms.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1180-exit-code-on-signal.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1180-pty-refused-error.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1185-login-prompt-dialog.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1190-queue-login-prompts.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1191-elevated-file-browser-sudo-password.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1192-elevated-server-logging.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1193-elevated-idle-timeout.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1194-elevation-per-server-switch.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1195-elevation-notice.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1208-sftp-server-behind-sudo-options.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1217-ssh-agent-all-identities.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1220-bastion-refusal-names-bastion.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1225-sftp-fails-fast.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1227-show-login-banner.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1228-banner-invalid-utf8.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1229-agent-certificates.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1230-sftp-server-behind-wrapper.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1232-quoted-sftp-server-red.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1243-sqlite-3-54.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1246-ai-provider-decorators.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1253-hide-safety-dir-button.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1281-extension-connect-check.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/issue-1285-single-word-nested-sftp-server.md

This file was deleted.

Loading
Loading