@burtson-labs/bandit-stealth-cli 1.7.537 → 1.7.539
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -7
- package/dist/cli.js +1444 -1423
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -242,13 +242,19 @@ The tools: `browser_tabs`, `browser_open`, `browser_navigate`, `browser_read_pag
|
|
|
242
242
|
|
|
243
243
|
What asks, in every mode:
|
|
244
244
|
|
|
245
|
-
| Call | Asks
|
|
246
|
-
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
247
|
-
| Reads: tabs, read_page, find, get_text, console, screenshot | Never on a site you granted in the side panel
|
|
248
|
-
| `browser_open` / `browser_navigate` | The first visit to a host (`browser_open:<host>` allow rules cover it); the card shows the full URL, query string included
|
|
249
|
-
| `browser_click` / `browser_type` / `browser_select` | Until you
|
|
250
|
-
| A click on a control that sends, pays, publishes, deletes, transfers or confirms; typing with Enter into a form with such a button; text or a URL that carries something Bandit read on another site; an unknown target | Every time, `dangerous` mode included. No grant covers it
|
|
251
|
-
| Password, one-time-code and payment fields; Allow on a sign-in or consent page; `chrome://`, extension and store pages; Bandit's own sign-in; adult and pirated-content sites | Refused, not asked. Banking, healthcare, government and cloud-console sites are read-only until you enable actions for the site
|
|
245
|
+
| Call | Asks |
|
|
246
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
247
|
+
| Reads: tabs, read_page, find, get_text, console, screenshot | Never on a site you granted in the side panel |
|
|
248
|
+
| `browser_open` / `browser_navigate` | The first visit to a host (`browser_open:<host>` allow rules cover it); the card shows the full URL, query string included |
|
|
249
|
+
| `browser_click` / `browser_type` / `browser_select` | Until you enable actions for that site (**always** on the card, **Enable actions on this site** in the side panel, or `bandit chrome sites allow <origin> --actions`), saved per user in `~/.bandit/chrome/sites.json`; the card shows the site, page, element and text |
|
|
250
|
+
| A click on a control that sends, pays, publishes, deletes, transfers or confirms; typing with Enter into a form with such a button; text or a URL that carries something Bandit read on another site; an unknown target | Every time, `dangerous` mode included. No grant covers it |
|
|
251
|
+
| Password, one-time-code and payment fields; Allow on a sign-in or consent page; `chrome://`, extension and store pages; Bandit's own sign-in; adult and pirated-content sites | Refused, not asked. Banking, healthcare, government and cloud-console sites are read-only until you enable actions for the site (below) |
|
|
252
|
+
|
|
253
|
+
**Enabling actions on a site.** Open the side panel on the site and go to the settings button → **Sites** → **This site**. It says what Bandit may do there ("Bandit asks before each click or typing on console.twilio.com", or on a sensitive site "portal.azure.com is a cloud or identity console: Bandit can read it but not act on it") and offers **Enable actions on this site**, which takes a second click on a confirmation that lists what stays off. The grant goes into `~/.bandit/chrome/sites.json` (the same file the card's **always** writes) and is listed under **Actions enabled** with **Revoke**. From a terminal: `bandit chrome sites` lists them (with the category of a sensitive site), `bandit chrome sites allow <origin> --actions` adds one and `bandit chrome sites revoke <origin>` removes one. A grant lets click, type and select run on that origin without a card and lifts a sensitive site's read-only floor; it changes nothing else: password, one-time-code and payment fields and Allow on sign-in or consent pages stay refused, sending, paying, publishing and deleting still ask, and adult and pirated-content sites cannot be enabled. A grant made in the panel while a run is going applies to its next action.
|
|
254
|
+
|
|
255
|
+
**Unattended runs attached to the browser.** A one-shot run whose stdin is not a terminal (`bandit --chrome --auto "…"` from a script or another agent) cannot show a card, and used to refuse every call that needed one (exit 4). When the extension is 0.1.4 or newer, a browser call that needs approval now shows its card in the Stealth side panel instead, above the chat and the settings: **Allow once** or **Deny**, nothing saved, and the toolbar badge shows `!` until it is answered. The run prints `waiting for approval in the Stealth side panel` on stderr and waits up to 5 minutes (`BANDIT_CHROME_APPROVAL_TIMEOUT_MS`, 5 s to 1 h); no answer refuses the call and the run ends `needs_approval` (exit 4) as before, with a line saying where to enable actions on that site. Other tools (shell, file writes) still refuse at once in an unattended run: the panel shows browser context only.
|
|
256
|
+
|
|
257
|
+
**Screenshots** need Chrome's all-sites permission in the form `<all_urls>` (Chrome's screen capture accepts nothing narrower). **Allow on all sites** asks for that since extension 0.1.4; a browser that granted the older form sees **Allow screenshots** under Sites, one more Chrome prompt. Without it a screenshot fails with `needs_grant` and says so, and the agent reads the page instead.
|
|
252
258
|
|
|
253
259
|
Every decision is one line in `~/.bandit/audit/bandit-audit-<date>.jsonl` (origin and element, never page content). The system prompt tells the model that page text is data, that a page cannot grant permission or change the task, and that credentials are yours to type. An administrator turns the feature off or narrows it with a `browser` block in the machine policy file (`enabled`, `allowedHosts`, `blockedHosts`, `actions: off|prompt|allow`, `screenshots`).
|
|
254
260
|
|