# VPNL-2026-0014: assessment notes

Subject: `github.com/SingLinkLabs/singlink-vpn-app` at `d955d0ec7d46b11332a12de41937320490fde8bd`
(the expected HEAD), protocol `github.com/SingLinkLabs/singlink-protocol` at
`b9246900205cf822739965e87cf601f6af3bdffb` (the pinned revision). Both were cloned fresh from
GitHub on 2026-11-18 (local time, UTC+8). No other material was used.

## What was not done, and why

- **No native app was run.** No Android device or emulator, iOS device or simulator was started,
  as required for this engagement. No signed Xcode build, no Gradle build and no Windows build
  was made. Consequently:
  - the Android TUN descriptor path with a real `VpnService` descriptor, VPN consent,
    cancel-during-start, revoke and descriptor-number reuse is **not** verified on a device;
    source inspection, Go host tests and the C-ABI harness cannot replace device acceptance;
  - `android/app/src/androidTest/.../CredentialStoreTest.kt` (Keystore adapter) was not run;
  - `ios/RunnerTests` and `macos/RunnerTests` were not run; iOS extension termination, Keychain
    sharing between app and extension, and locked-device behaviour are unverified;
  - Windows DPAPI (`windows/runner/credential_store.cpp`) and the real-registry proxy test
    (`test/windows_registry_smoke_test.dart`, skipped on macOS) were not executed;
  - no leak test (DNS, IPv6, pre-existing connections, always-on) was performed.
- **`test/real_core_test.dart` was skipped**: it needs a live node link (`SINGLINK_TEST_LINK`).
  No vendor server was contacted. The synthetic loopback node (`core/testnode`) was used instead.
- **Build provenance attestations** for CI artifacts were not checked: no artifact was downloaded
  and `gh attestation verify` was not run.
- **The protocol repository was not audited as a whole.** Only the engine lifecycle
  (`engine/engine.go`, `engine/lifecycle.go`) and the local proxy server (`socks5/socks5.go`) were
  read, where the app depends on them.
- **Vendor statements not verifiable from source**: the Android 16 emulator runs described in
  `docs/security-remediation.md`, the iOS 27.2 simulator run of RunnerTests, and the README
  statements that the release followed a security audit and contains only code that "poses no
  security risk".

## Toolchain notes

- The engagement asked for a Go 1.24.x toolchain. The official `go1.24.13.darwin-arm64.tar.gz`
  was downloaded from dl.google.com and its SHA-256
  (`f282d882c3353485e2fc6c634606d85caf36e855167d59b996dbeae19fa7629a`) matched
  `https://go.dev/dl/?mode=json&include=all`. `core/go.mod` declares `go 1.27.3`, so with the
  default `GOTOOLCHAIN=auto` the bootstrap fetched the `golang.org/toolchain` module
  `v0.0.1-go1.27.3.darwin-arm64` from proxy.golang.org (checksum-database verified by the go
  command). All Go builds, tests and govulncheck used Go 1.27.3. With `GOTOOLCHAIN=local`, Go 1.24.13
  refuses the module: "go: go.mod requires go >= 1.27.3 (running go 1.24.13; GOTOOLCHAIN=local)".
- govulncheck needed two corrections before it ran: the first build of the tool used Go 1.26.11
  (selected by the tool's own go.mod) and the second run inherited a `GOROOT` pointing at the
  1.24.13 bootstrap. Both failed to load packages; their outputs are kept as
  `govulncheck-attempt1-built-with-go1.26.txt` and `govulncheck-attempt2-goroot-1.24.txt`. The
  valid run (`govulncheck.txt`) used a govulncheck v1.10.0 binary built with Go 1.27.3 and the
  Go 1.27.3 GOROOT.
- Commands that bind loopback sockets (Go tests with the synthetic node) were run outside the
  local command sandbox; the first mutation-check attempt inside the sandbox failed with
  `bind: operation not permitted` and was discarded and rerun.
- Flutter 3.35.6 (the version pinned in CI) was used from the local installation.

## Changes made only inside the local clone

- `make -C core macos` built `core/build/macos/libsinglink.dylib` (ignored by git).
- Mutation checks (`mutation-checks.txt`) and the control build in `abi-fd-check.txt` edited
  `core/ffi/tunstart.go`, `core/ffi/main.go` and `core/tunnel/dns.go` temporarily; each change was
  reverted with `git checkout` and `git status --porcelain` was empty afterwards. The control
  dylib was written outside the clone.
- Nothing was pushed, and no issue or pull request was opened.

## Edits to evidence after capture

- In `abi-fd-check.txt` two annotations were added after the run: the label
  "(expected to FAIL)" on the control heading, and a bracketed note on the shell's "Terminated"
  line explaining that the synthetic node was stopped manually because the harness kept its input
  pipe open.
- In all published evidence files, the local working-directory prefix was replaced with
  `<workdir>` and the local account name with `<user>`. Unredacted originals are kept locally and
  are not published.
- `osv-pub.json` was annotated with the query time and the list of SDK packages that were not
  sent to OSV.

## Severity notes

No finding reached medium, so no CVSS v4.0 vector or score is given. F-01 (unauthenticated local
proxy on desktop) is rated low because it needs code execution on the same machine and exposes
use of the tunnel, not the stored credential.
