Repository navigation
Show and tell 2: ZeroClaw for CyberOps with XMPP, browser voice, and scoped credentials #12689
CastelloBrancoTecnologia
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is the follow-up to Show and tell #12414. Jarvis is our daily-use ZeroClaw deployment on a headless Linux VM. We run the integrated feature set, fix defects we encounter in day-to-day use, and use disposable records and lab systems to verify fixes. Reviewers asked for narrower upstream PRs. Jarvis combines those PRs with the extended drafts while the community reviews RFC #12422.
The walkthrough uses fictional aliases and example destinations. Captions identify sanitized production captures, captured prompt/result excerpts, and isolated test fixtures. Each linked evidence item identifies the revision it covers.
1. Reach the same agent from XMPP or the browser
XMPP. Configure the account, server, port, and TLS mode offered by your Prosody or other XMPP server. In a private deployment, start with the operator's bare JID in the allowlist. Enable optional legacy OMEMO only after verifying fingerprints in the clients you intend to use. We use Gajim on desktop and Conversations on Android. A simple test is “Reply only with OMEMO-OK” and checking the encryption indicator on the reply. For longer work, ask for a read-only summary, such as “Summarize queued alerts and ask before changing anything.” Progress messages indicate elapsed processing time. Treat the final reply as the result. If a deadline expires, verify the state before retrying actions. XMPP #11847 · Progress #11874 · Recovery #11911 · Loop closeout #11868 · Background messaging #11859
Browser voice. Paired-device browser voice already merged in #12269. #12459 makes the same workflow available to authorized OIDC dashboard sessions without device pairing. In Config → Other → Browser Voice and Audio, enable dictation and reading, select a language and recognition mode, and pick a narrator. The configuration screen requires
features.config, and chat access requires the relevant chat permission. The global silence delay can send after speech is recognized. Set it to zero to turn off automatic sending. The narrator reads message content, including meaningful footnote content, while suppressing Markdown formatting markers.Try dictating “Jarvis, answer in English: how much is two plus two?” Then wait for the single automatic submission and listen for the reply. On-device recognition and installed voices depend on the browser and OS. The sample uses a pt-BR voice reading an English answer. Dictation and narration sample · Chrome and Keycloak production verification
2. Set up the credential catalog
Open Config → Storage → Secrets. Select the tab for the kind of credential, give it an alias, choose the source, and enter the value in the write-only editor. Use aliases in prompts. Keep values out of chats, screenshots, and logs.
CODE_HOST_LOGIN, a disposable repository accountCODE_HOST_TOTP, a disposable authenticator seedLAB_SSH_KEYFINDINGS_READTokenscheme as required by the service. HTTP Basic uses the username/password tab.INVENTORY_MTLSProduction creation forms: username/password · TOTP · SSH key · API token · plugin TLS fixture.
Choose the storage source.
secret/cyberops-demo/FINDINGS_READ/tokenand grant the service only the permissions needed for that prefix.OpenBao workflow and UI evidence · Cloud vaults #12482 · Extended catalog #12517
3. Grant a specific use from the current Usage permissions screen
Open Secrets → Usage permissions → Add authorization. Choose the alias, consumer, and destination. Add only the destinations the workflow requires. For SSH, the same form shows the authentication mode and the separate TOTP alias when needed. To change the grant, use Edit in the list. To revoke a use, remove its grant and repeat a read-only attempt to confirm denial. The protected HTTPS test verified success with the grant and denial after revocation. Grant changes are revision-checked so a stale browser tab cannot restore revoked permissions.
Layers. Browser allowlisted domains define where the browser may navigate. Credential grants define which consumer can use an alias at an exact permitted destination. The account's rights on the target determine what the authenticated operation can do. Vault access governs which values the daemon can retrieve or provision. Dashboard user permission profiles are independent of these credential grants. Use a narrow target account, and keep approval policies in place for state-changing operations. Protected HTTPS after revocation
4. Try the workflows
Read an API using the right auth scheme
Create
FINDINGS_READforhttps://findings.example.test, choose the scheme the lab API expects, and grant HTTP Request at that origin. For a DefectDojo-style API, chooseTokenand enter only the token value. The tool constructs the header.Rotate the disposable token, repeat the GET, revoke the grant, and confirm that another attempt is denied. HTTP #12408 · Token #12490 · Plugin TLS #12402
Sign in with the headless browser
Use explicit browser allowlisting and separate Browser grants for username/password and TOTP at the sign-in origin. A destination for the app's landing page and an authorization for its identity provider serve different purposes. Grant each factor only at the origin where that factor is submitted. Keep these checks read-only and end the isolated browser session afterward.
https://github.com: “Open GitHub login using CODE_HOST_LOGIN. If the authenticator challenge appears, use CODE_HOST_TOTP. Confirm the signed-in account menu is visible, then close the session.” Jarvis reached the authenticated dashboard on Linux. The OTP field needed the genericcredential_fieldoverride in the observed test. Live GitHub evidenceSanitized GitHub prompt and result · Sanitized Webmail prompt and result · Browser consumer #12596
Run a read-only command via managed SSH
Choose an SSH key or username/password alias in Add authorization, set the destination and optional port, and select the authentication mode that matches the server. Use a verified host key. Choose a separate TOTP alias only where requested by the selected mode.
The broker uses the selected protocol sequence. The examples apply even when server prompts are translated. A profile that requires a second factor fails closed if that sequence or its grants cannot be satisfied. Task-owned connection reuse lets multiple commands share a connection that is closed when the task ends.
Jarvis has production evidence for the managed SSH path and the current unified grant editor. The disposable QEMU OpenSSH guest provided real protocol/authentication proof for key, password, and password followed by TOTP and verified that revocation blocked a subsequent command. Linux and Windows loopback tests exercised all six mode sequences. macOS execution remains to be tested. Jarvis SSH prompt/result · New SSH production and QEMU evidence · Task-owned SSH #11869 · Rust broker #12438
Prompt and result gallery
The production captures retain the original Portuguese. The English walkthrough prompts below use fictional aliases and describe the same operations.
English walkthrough prompt: “Open the GitHub sign-in page. Use CODE_HOST_LOGIN and, if asked for an authenticator code, use CODE_HOST_TOTP. Confirm the account menu is visible, then close the session.” Observed result: The authenticated dashboard opened.
English walkthrough prompt: “Open the test webmail. Sign in through Keycloak using MAIL_LAB_LOGIN and MAIL_LAB_TOTP. Confirm the signed-in view without reading messages, then close the session.” Observed result: Roundcube opened the authenticated mail view.
English walkthrough prompt: “Use managed SSH to run a read-only check on the authorized host and return JARVIS_SSH_OK.” Observed result: The remote command returned JARVIS_SSH_OK.
5. Pick the features that fit your deployment
Each optional capability can be left disabled. You can also keep a credential without an active usage grant and revoke individual uses as the operator's needs change. Turn on only the channel, tools, destinations, and vault access you need.
Try the stack and tell us what breaks
Jarvis runs the full combination daily. The broader catalog and external provisioning PRs remain drafts pending RFC #12422, and the new SSH consumer has its own draft #12659. The smaller upstream PRs have their own review and merge status. Paired-device voice is already upstream.
If you're interested in compiling the complete stack in a disposable environment, please comment with your OS and the workflow you want to exercise. We'd welcome testers and can coordinate a pinned source revision and feature flags for a reproducible build. For individual features, the linked PRs provide reviewable source and test evidence. Please include the commit, browser or XMPP client, vault backend, and sanitized outcome in feedback.
Maintainers, where would you change the authorization model or the operator workflow? We'd especially value feedback on factor-specific grants, exact-destination checks, external vault identities, and which parts of the full workflow should land first. If you run a cloud vault, use macOS for SSH, or have a browser/OS combination we haven't tested, your results are welcome.
Production report and evidence index
All reactions