Repository navigation
Multi Instance Symbols zh
Ra1nify edited this page Oct 31, 2026
·
1 revision
以下为二进制分析中涉及的主要符号,按功能分组。完整清单未列出。
codeassistclient.NewCompositeTokenStorage
codeassistclient.(*KeyringTokenStorage).SaveToken / LoadToken
codeassistclient.(*fileTokenStorage).SaveToken / LoadToken
codeassistclient.DefaultKeyringMarkerPath
codeassistclient.keyringRecentlyUnavailable
三个存储实现的方法签名一致,可互换。切换由 isUseFileStatic 决定。
Keyring SaveToken timed out after %v, falling back to file storage
Keyring LoadToken timed out after %v, falling back to file storage
回退只在读写 token 时发生,冷启动不触发。
authstore.UserScope / scopeForUserID / scopeFilePath
authstore.saveScope / savedScope / ClearSavedScope
authstore.userScopedStore.PinnedScope / ScopedKey
scope 只影响 authstore 内部的键分区,不参与凭据条目名拼接。
sandboxproxy.ListAccounts / CredentialKey / storedAccounts
sandboxproxy.NewPluginAuthStore
sandboxproxy.(*signInBroker).beginPaste / completePaste
beginPaste 支持粘贴授权码,但登录后仍写入同一条目。
codeassistclient.NewHostAuthProvider
codeassistclient.(*HostAuthProvider).GetTokenSource
codeassistclient.(*HostAuthProvider).ResolveAuthMode
codeassistclient.(*HostAuthProvider).IsBusinessEnterprise
名称指向企业网关场景。共 24 个方法。
host_bridge_go_proto.(*UnimplementedHostBridgeServiceServer).GetOAuthToken
host_bridge_go_proto_connect.(*hostBridgeServiceClient).GetOAuthToken
服务端为 Unimplemented,客户端有实现。
--standalone --override_ide_name --subclient_type --override_ide_version
--override_user_agent_name --https_server_port --csrf_token
--app_data_dir --api_server_url --cloud_code_endpoint --enable_sidecars
无任何认证相关开关,且启动后立即关闭 stdin。
| 实验 | 操作 | 结果 |
|---|---|---|
| scope 隔离 | 三种 scope 值启动沙盒 | 无新增凭据条目 |
| 宿主桥探针 | 回环地址起 Connect 监听器 | 收到 0 条请求 |
| 无凭据启动 | 备份删除凭据后启动 | 正常启动,未生成标记文件,凭据已恢复 |
| 方案 | 排除理由 |
|---|---|
| 独立 Windows 用户 | 每实例一个系统账户,产品代价过高 |
Hook CredWrite
|
Go 静态链接无 IAT,每次核心更新需重做 |
| 修改 asar | Electron 主进程代码中无凭据相关符号 |
AGY_ACCOUNT |
仅作用于插件 CLI |
Gravityless · GPL-3.0 · English | 简体中文