@knowttl/tenable-axi 0.1.2 → 0.1.4

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.
@@ -1,101 +1,106 @@
1
1
  ---
2
2
  name: tenable-axi
3
- description: "Investigate Tenable One assets, findings, software, exposure cards, attack paths, tags and exports; preview and execute explicitly scoped business writes through compact TOON output."
3
+ description: "Investigate Tenable One assets, findings, software, exposure and attack evidence with bounded read-only commands; diagnose failures and distinguish guarded writes."
4
4
  ---
5
5
 
6
6
  <!-- Generated by scripts/generate-docs.mjs from src/catalogue.ts. Do not hand-edit. -->
7
7
 
8
- # tenable-axi
8
+ # tenable-axi investigation guide
9
9
 
10
10
  Investigate Tenable One exposure and run explicitly guarded writes.
11
- Use `npx -y @knowttl/tenable-axi` without a global install.
12
- Bare `--version`, `-v` and `-V` print the package version.
13
-
11
+ Start with the relevant read below, without running help first.
12
+ Examples use synthetic values; replace them with evidence from the current investigation.
13
+ Use the installed binary or the shown non-interactive package invocation.
14
+ Append `--profile <name>` and optionally `--config <file>` to select an existing profile.
14
15
  Run npx -y @knowttl/tenable-axi config path; configure a profile with accessKey and secretKey SecretRefs.
15
- Credentials use environment/file SecretRefs, never inline secrets or chat.
16
+ Credentials use environment/file SecretRefs, never inline secrets or arguments.
16
17
  Only `https://cloud.tenable.com` is supported.
17
18
 
18
- Start with local discovery:
19
+ ## Investigation reads
20
+
21
+ Each line is an independent example, not a startup sequence.
22
+ The fields shown are useful compact projections; omit `--fields` for the command's compact defaults.
23
+
24
+ | Task | Exact example |
25
+ |---|---|
26
+ | Check credentials locally, without HTTP | `npx -y @knowttl/tenable-axi auth status` |
27
+ | Look up an asset by text | `npx -y @knowttl/tenable-axi asset list --query example-device --class DEVICE --limit 10 --fields id,name,class,exposureScore` |
28
+ | Read one exact asset, including observation evidence | `npx -y @knowttl/tenable-axi asset show --id asset-1 --fields id,name,fqdns,last_observed_at` |
29
+ | Pivot from an asset ID to findings | `npx -y @knowttl/tenable-axi finding list --filter 'asset_id = ["asset-1"]' --limit 20 --fields id,name,severity,state,sensor_type,cves` |
30
+ | Search high severity findings | `npx -y @knowttl/tenable-axi finding list --filter 'severity = ["HIGH"]' --filter 'sensor_type = ["NESSUS"]' --limit 20` |
31
+ | Read a finding and its asset/CVE evidence | `npx -y @knowttl/tenable-axi finding show --id finding-1 --fields id,name,severity,state,asset_id,cves,sensor_type` |
32
+ | Count severity and sensor values | `npx -y @knowttl/tenable-axi finding summary` |
33
+ | Find installed software | `npx -y @knowttl/tenable-axi software list --query example-app --limit 10 --fields name,version,publisher` |
34
+ | Discover asset filter properties | `npx -y @knowttl/tenable-axi asset properties --asset-classes DEVICE --limit 20 --fields key,operators,filterable,sortable` |
35
+ | Discover finding filter properties | `npx -y @knowttl/tenable-axi finding properties --limit 20 --fields key,operators,filterable,sortable` |
36
+ | Discover software filter properties | `npx -y @knowttl/tenable-axi software properties --limit 20 --fields key,operators,filterable,sortable` |
37
+ | Find high priority paths for an asset | `npx -y @knowttl/tenable-axi attack-path list --filter 'asset_id eq "asset-1"' --filter 'priority gte 8' --limit 10 --fields id,name,priority,summary` |
38
+ | Read techniques and affected asset IDs together | `npx -y @knowttl/tenable-axi attack-technique list --limit 10 --fields id,name,affectedAssets,assets_ids,mitre_id` |
39
+ | Read exposure cards | `npx -y @knowttl/tenable-axi card list --limit 5 --fields id,name,score` |
40
+ | Find Exposure Management tags | `npx -y @knowttl/tenable-axi tag list --query example --limit 10` |
41
+ | Diagnose failed connector syncs | `npx -y @knowttl/tenable-axi connector logs --status FAILED --start-date 2026-01-01 --end-date 2026-02-01 --limit 10` |
42
+ | Wait for an existing attack export | `npx -y @knowttl/tenable-axi export attack status --id 00000000-0000-4000-8000-000000000001 --wait` |
43
+
44
+ Inventory filters are repeatable AND conditions with a JSON array of strings, even for numeric values.
45
+ Inventory `--filter-file` accepts a flat JSON array and excludes `--filter`.
46
+ Attack filters instead use `eq`, `gte`, etc. with a JSON scalar or array; resolved records are excluded unless `--include-resolved` is set.
47
+ Connector dates must be paired: start inclusive, end exclusive.
48
+ Connector defaults include sync identity, trigger, first failed stage and first error; request `--full` only if text is truncated.
49
+
50
+ ## Save calls and bound output
19
51
 
20
- ```sh
21
- npx -y @knowttl/tenable-axi
22
- npx -y @knowttl/tenable-axi home --help
23
- npx -y @knowttl/tenable-axi auth status
24
- ```
52
+ Use list `--fields` to retrieve the needed evidence together instead of showing every result.
53
+ Inventory selected extra fields are requested automatically; `--extra-properties` also adds them to output.
54
+ Exact-ID `asset show` and `finding show` search directly without a preceding list.
55
+ `finding summary` is one CLI call making 19 sequential limit-1 reads without retries, using upstream totals.
56
+ It has no filters or per-asset grouping; counts are independent, sensor values may overlap, and `complete: false` means partial counts.
25
57
 
26
- Configured home reads up to five live exposure cards.
27
- The optional session hook reads local profile context only.
28
- Install integrations only on explicit request through `npx -y @knowttl/tenable-axi setup hooks`.
58
+ Ordinary lists default to 100 rows; use `--limit 1..10000` or `--all` (at most 10,000 rows, incompatible with `--limit`).
59
+ Inventory/attack collection reads share 20-second, 20-request and 20 MiB decoded-response budgets.
60
+ Check `count`, `total` (possibly null), `complete`, `reason` and any `error` before concluding absence.
61
+ Resume a returned `--cursor` with the same profile, filters, fields and sort; do not combine it with `--offset`.
62
+ `--full` removes the 1,000-character text preview, without adding fields, rows or budget.
63
+ Connector logs have no server paging; `UPSTREAM_UNPAGED` means unavailable history, not an exhaustive empty result.
29
64
 
30
- Writes require a file profile's allowWrites and exact operation allowlist, preview, --execute and the exact preview --confirm string.
31
- TENABLE_AXI_READ_ONLY=true overrides all write policies.
32
- Never replay an unknown mutation outcome; follow its audit ID and read-back guidance.
65
+ Attack export status `--wait` polls once per second within 20 seconds/20 requests; inspect the returned state before downloading.
66
+ There is no combined export start-and-wait, inventory-status wait, bulk show or asset-to-findings pivot command.
67
+ Use a filtered list for multiple details; use the returned asset ID in a separate finding query.
68
+ Software has no stable ID or show command.
69
+
70
+ ## Read allowlist and state changes
71
+
72
+ The table above is read-only, including POST searches and waiting on an existing export.
73
+ Other remote reads: `home`, `card show`, `tag properties`, platform `tag category/value list/show`, `tag assignment/exclusion/asset-filter list`, `initiative list/show`, `combination list/show/filters`, `export asset/finding jobs`, `export inventory status` and `doctor`.
74
+ `doctor` makes eight module probes without retries; use it for access diagnosis, not before each case.
75
+ Local reads: `auth status`, `profile list`, `config path`, `hook`, help and version.
76
+ Configured home reads up to five live cards; the optional hook reads local posture only.
77
+
78
+ Exclude all `create/update/delete/bulk-delete`, `tag assignment add/remove` and `export * start` commands from read allowlists.
79
+ Writes require a file profile's `allowWrites` and exact operation allowlist even for previews, followed by `--execute` and the exact preview `--confirm` string.
80
+ `TENABLE_AXI_READ_ONLY=true` forces read-only.
81
+ Export downloads read remotely but create a local file at an explicit new output path; `setup hooks` changes local integration files and needs explicit installation intent.
33
82
  Users, roles, access control, credential minting and arbitrary HTTP are unavailable.
34
- Downloads require an explicit new output path; results are bounded, validated and redacted.
35
83
 
36
- Lists default to bounded windows; preserve profile, filters, sort and fields when resuming a cursor.
37
- Use a command's --help for required selectors, defaults and examples.
38
- See the [command reference](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md) for all flags.
84
+ ## Help and failures
85
+
86
+ Use help to recover from a failed or unfamiliar command, not to start an investigation.
87
+ Top-level `--help` returns the command index, home flags and version aliases.
88
+ Leaf `--help` returns that command's flags, defaults, required selectors and examples (plus default fields where applicable).
89
+ Group-only help such as `asset --help` is unsupported and returns a usage error with valid commands.
90
+ The [command reference](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md) lists the full surface.
91
+
92
+ Stdout is structured TOON, including errors and actionable help.
93
+ Exit 0 means success (still inspect completeness), 1 means operation/configuration failure, and 2 means CLI usage validation failure.
39
94
 
40
- | Command | Purpose |
95
+ | Code | Adjustment |
41
96
  |---|---|
42
- | `npx -y @knowttl/tenable-axi asset list` | Search assets |
43
- | `npx -y @knowttl/tenable-axi asset properties` | Discover asset properties and supported operators |
44
- | `npx -y @knowttl/tenable-axi asset show` | Find one asset by exact ID search |
45
- | `npx -y @knowttl/tenable-axi attack-path list` | Search top attack paths using the published specification route |
46
- | `npx -y @knowttl/tenable-axi attack-technique list` | Search top attack techniques; affectedAssets counts assets_ids |
47
- | `npx -y @knowttl/tenable-axi auth status` | Check local credentials and file security without contacting Tenable |
48
- | `npx -y @knowttl/tenable-axi card list` | List exposure view cards |
49
- | `npx -y @knowttl/tenable-axi card show` | Show an exposure card and its scores, trends and SLA details |
50
- | `npx -y @knowttl/tenable-axi combination create` | Preview or create combination |
51
- | `npx -y @knowttl/tenable-axi combination delete` | Preview or delete combination |
52
- | `npx -y @knowttl/tenable-axi combination filters` | List allowed combination query properties and operators |
53
- | `npx -y @knowttl/tenable-axi combination list` | list combinations |
54
- | `npx -y @knowttl/tenable-axi combination show` | show combination |
55
- | `npx -y @knowttl/tenable-axi combination update` | Preview or update combination |
56
- | `npx -y @knowttl/tenable-axi config path` | Show selected config and state paths without reading files |
57
- | `npx -y @knowttl/tenable-axi connector logs` | Read connector sync logs; the API has no server paging parameters |
58
- | `npx -y @knowttl/tenable-axi doctor` | Check local security and one tag-properties read without retries |
59
- | `npx -y @knowttl/tenable-axi export asset jobs` | List recent inventory asset export jobs |
60
- | `npx -y @knowttl/tenable-axi export asset start` | Preview or create an inventory asset export job |
61
- | `npx -y @knowttl/tenable-axi export attack download` | Download an attack export to a new file, redacting JSON/CSV within 128 MiB |
62
- | `npx -y @knowttl/tenable-axi export attack status` | Read an attack export job; no polling by default |
63
- | `npx -y @knowttl/tenable-axi export attack-path start` | Preview or start one attack-path export; requires configured write scope and ATTACK_PATH.WRITE |
64
- | `npx -y @knowttl/tenable-axi export attack-technique start` | Preview or start one attack-technique export; requires configured write scope and ATTACK_PATH.WRITE |
65
- | `npx -y @knowttl/tenable-axi export finding jobs` | List recent inventory finding export jobs |
66
- | `npx -y @knowttl/tenable-axi export finding start` | Preview or create an inventory finding export job |
67
- | `npx -y @knowttl/tenable-axi export inventory download` | Download one inventory chunk to a new redacted file |
68
- | `npx -y @knowttl/tenable-axi export inventory status` | Read one inventory export status without polling |
69
- | `npx -y @knowttl/tenable-axi export mitre-heatmap start` | Preview or start one mitre-heatmap export; requires configured write scope and ATTACK_PATH.WRITE |
70
- | `npx -y @knowttl/tenable-axi finding list` | Search findings |
71
- | `npx -y @knowttl/tenable-axi finding properties` | Discover finding properties and supported operators |
72
- | `npx -y @knowttl/tenable-axi finding show` | Find one finding by exact ID search |
73
- | `npx -y @knowttl/tenable-axi home` | Show profile state and up to five live exposure cards |
74
- | `npx -y @knowttl/tenable-axi hook` | Show compact local profile context without resolving secrets or HTTP |
75
- | `npx -y @knowttl/tenable-axi initiative create` | Preview or create initiative |
76
- | `npx -y @knowttl/tenable-axi initiative delete` | Preview or delete initiative |
77
- | `npx -y @knowttl/tenable-axi initiative list` | list initiatives |
78
- | `npx -y @knowttl/tenable-axi initiative show` | show initiative |
79
- | `npx -y @knowttl/tenable-axi initiative update` | Preview or update initiative |
80
- | `npx -y @knowttl/tenable-axi profile list` | List configured profiles without resolving secrets or contacting Tenable |
81
- | `npx -y @knowttl/tenable-axi setup hooks` | Explicitly install or repair local agent session integrations |
82
- | `npx -y @knowttl/tenable-axi software list` | Search software; the pinned API exposes no stable software ID |
83
- | `npx -y @knowttl/tenable-axi software properties` | Discover software properties and supported operators |
84
- | `npx -y @knowttl/tenable-axi tag asset-filter list` | List documented dynamic tag filter definitions |
85
- | `npx -y @knowttl/tenable-axi tag assignment add` | add tags for the exact asset set |
86
- | `npx -y @knowttl/tenable-axi tag assignment list` | List tags assigned to one asset |
87
- | `npx -y @knowttl/tenable-axi tag assignment remove` | remove tags for the exact asset set |
88
- | `npx -y @knowttl/tenable-axi tag category create` | Create platform tag category |
89
- | `npx -y @knowttl/tenable-axi tag category delete` | Delete platform tag category |
90
- | `npx -y @knowttl/tenable-axi tag category list` | List platform tag category |
91
- | `npx -y @knowttl/tenable-axi tag category show` | Show platform tag category |
92
- | `npx -y @knowttl/tenable-axi tag category update` | Update platform tag category |
93
- | `npx -y @knowttl/tenable-axi tag exclusion list` | List assets excluded from a dynamic tag |
94
- | `npx -y @knowttl/tenable-axi tag list` | Search Exposure Management tags |
95
- | `npx -y @knowttl/tenable-axi tag properties` | List available tag properties and operators |
96
- | `npx -y @knowttl/tenable-axi tag value bulk-delete` | Preview or delete the exact tag value set |
97
- | `npx -y @knowttl/tenable-axi tag value create` | Create platform tag value |
98
- | `npx -y @knowttl/tenable-axi tag value delete` | Delete platform tag value |
99
- | `npx -y @knowttl/tenable-axi tag value list` | List platform tag value |
100
- | `npx -y @knowttl/tenable-axi tag value show` | Show platform tag value |
101
- | `npx -y @knowttl/tenable-axi tag value update` | Update platform tag value |
97
+ | `VALIDATION_ERROR` | Fix selectors, flag spelling or filter grammar using the returned hint; upstream validation can exit 1. |
98
+ | `CONFIG_INVALID`, `CONFIG_INSECURE` | Fix the profile/SecretRefs or private file permissions; use a complete credential pair and the supported origin. |
99
+ | `AUTH_REQUIRED` (401) | Repair credentials through the approved secret source; do not repeat unchanged requests. |
100
+ | `PERMISSION_DENIED` (403) | Check licensing and the operation's privilege; inventory access does not imply attack or connector access. |
101
+ | `NOT_FOUND` | Verify the exact ID and selected profile; a zero-row list is instead a successful search. |
102
+ | `RATE_LIMITED`, `REQUEST_FAILED`, `TRANSPORT_FAILED` | Reads already retry 429/502/503/504 up to twice within budgets; honor `retryAfter` milliseconds and investigate persistent failure. |
103
+ | `RESPONSE_INVALID` | Treat the result as invalid or partial, preserve evidence and report the mismatch. |
104
+ | `DEADLINE_EXCEEDED`, `REQUEST_BUDGET_EXCEEDED`, `BYTE_BUDGET_EXCEEDED`, `ROW_BUDGET_EXCEEDED` | Narrow filters/fields or resume a supplied cursor; never infer completeness. |
105
+ | `EXPORT_NOT_READY` | Inspect job state before downloading; status waiting does not guarantee completion. |
106
+ | `OPERATION_BLOCKED`, `OUTCOME_UNKNOWN` | Respect write guards; for unknown mutation outcomes follow the audit ID and read-back advice, never replay blindly. |