iOS parameterized input remains in native XCTest diagnostic logs
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 36/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- ios, typescript
- Domínio
- mobile-dev, security
Direção de pesquisa
Start by tracing the Node API entry point client.interactions.fill and how input reaches the stock XCTest runner; inspect the .xcresult diagnostic log behavior described in the reproduction. Done means establishing whether a supported stock path prevents sensitive values from appearing there, or documenting the limitation if it cannot.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Observed behavior
On unmodified [email protected], a harmless value supplied through the Node API with fill({ text, recordAs }) was correctly absent from the fill response, subsequent predicate/error responses, and the inspected Agent Device session artifacts, but remained verbatim in the native XCTest .xcresult diagnostic log.
We are trying to use the official release for iOS login automation without carrying a downstream patch. Is there a supported way to prevent sensitive visible input from being retained by this native diagnostic channel? If this is outside the parameterization guarantee, documenting that boundary would also help.
Environment
- Official npm release 0.21.22; source tag commit
202585240f0c1289642885b5df645cbc25114272 - macOS host, Xcode 27.0 (27A266a), iOS Simulator
- Stock signed XCTest runner; no modified upstream code
- Script recording armed for
recordAs; no screen recording, trace, or app-log capture requested - Only inert test strings were used, never a real credential
Reproduction outline
-
Boot an owned iOS simulator and open Settings with the stock CLI in a fresh state directory/session:
agent-device open com.apple.Preferences --platform ios --udid "$SIM_UDID" \ --session stock-canary --save-script --foreground --timeout 120000 --json -
Use the official Node client for that same session. Take a fresh snapshot and select the unique Settings
SearchFieldwith labelSearch. Then execute:const options = { platform: 'ios', udid: process.env.SIM_UDID }; const client = createAgentDeviceClient({ session: 'stock-canary', cwd: process.cwd() }); // searchRef comes from the fresh Settings snapshot. await client.interactions.fill({ ...options, ref: searchRef, text: 'INERT_STOCK_PRIVATE_CANARY_20261006', recordAs: 'PRIVATE_CANARY', }); await client.interactions.is({ ...options, predicate: 'exists', selector: 'label="Settings"' }); try { await client.interactions.press({ ...options, ref: '@e999999' }); } catch {} -
Inspect the exact runner's
.xcresultStaging/1_Test/Diagnostics/.../Session-AgentDeviceRunnerUITests-*.logfor the inert marker. Our observed excerpt:SearchField, label: 'Search', Keyboard Focused ... faulted in { "XC_kAXXCAttributeValue" = "INERT_STOCK_PRIVATE_CANARY_20261006"; }: (no error) for value using XC_kAXXCAttributeValue
A second run using another inert marker and fill({ ..., verify: false }) also retained its marker in the native diagnostic log. The stock XCTest plan already sets system/user attachment lifetime to keepNever; that did not prevent this diagnostic text.
This establishes persistence during the sequence, not that the deliberately failed press alone caused it. We have not yet established the behavior on a physical iPhone or a masked password field. The visible Settings input was a control for a visible OTP field.
Expected / requested guidance
A documented stock path for sensitive visible input that avoids retaining its literal value in native diagnostics, or an explicit documented limitation so callers can stop before supplying credentials. We are not asking to disable ordinary observations globally.
Related: #1348 and #1398 provide useful recording/response redaction, and those protections worked in the checks above. #3260 separately concerns CLI input transport; it would not by itself address native diagnostics.
- Linguagem predominante
- TypeScript
- Estrelas
- 4.9k
- Forks
- 328
- Merge médio
- 12h 16min
- PRs com merge (30d)
- 538
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de callstack/agent-device
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
callstack/agent-device#3353 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
callstack/agent-device#1869 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 Meio dia Facilidade para iniciantes 42/100
callstack/agent-device#3360 ·
Mantenedores costumam responder em até 1 dia
-
ios: a shutdown under 1 s after close lets the open's runner prewarm boot the simulator againAbertaneeds-triage
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
callstack/agent-device#3359 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 62/100
callstack/agent-device#3358 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de callstack/agent-device
Issues semelhantes
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
lingdojo/kana-dojo#32018 · 1 comentário · 5 reações ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
paperclipai/paperclip#15751 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
BuilderIO/agent-native#7275 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia