@knowttl/tenable-axi 0.0.0-stage → 0.1.0

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.
Files changed (66) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +341 -2
  3. package/axi-credential.schema.json +28 -0
  4. package/bin/tenable-axi-hook.js +13 -0
  5. package/bin/tenable-axi.js +8 -0
  6. package/bin/version.js +3 -0
  7. package/dist/src/attack-catalogue.d.ts +176 -0
  8. package/dist/src/attack-catalogue.js +71 -0
  9. package/dist/src/attack-export-catalogue.d.ts +29 -0
  10. package/dist/src/attack-export-catalogue.js +58 -0
  11. package/dist/src/attack-export.d.ts +5 -0
  12. package/dist/src/attack-export.js +151 -0
  13. package/dist/src/attack.d.ts +3 -0
  14. package/dist/src/attack.js +287 -0
  15. package/dist/src/catalogue.d.ts +150 -0
  16. package/dist/src/catalogue.js +68 -0
  17. package/dist/src/cli.d.ts +11 -0
  18. package/dist/src/cli.js +61 -0
  19. package/dist/src/export-file.d.ts +8 -0
  20. package/dist/src/export-file.js +157 -0
  21. package/dist/src/exposure-contracts.d.ts +31 -0
  22. package/dist/src/exposure-contracts.js +31 -0
  23. package/dist/src/exposure.d.ts +4 -0
  24. package/dist/src/exposure.js +305 -0
  25. package/dist/src/hook-install.d.ts +1 -0
  26. package/dist/src/hook-install.js +132 -0
  27. package/dist/src/inventory/schema.d.ts +34 -0
  28. package/dist/src/inventory/schema.js +18 -0
  29. package/dist/src/inventory-catalogue.d.ts +55 -0
  30. package/dist/src/inventory-catalogue.js +61 -0
  31. package/dist/src/inventory-export-catalogue.d.ts +96 -0
  32. package/dist/src/inventory-export-catalogue.js +47 -0
  33. package/dist/src/inventory-export.d.ts +5 -0
  34. package/dist/src/inventory-export.js +162 -0
  35. package/dist/src/inventory.d.ts +3 -0
  36. package/dist/src/inventory.js +285 -0
  37. package/dist/src/local-commands.d.ts +2 -0
  38. package/dist/src/local-commands.js +44 -0
  39. package/dist/src/platform-tag-catalogue.d.ts +101 -0
  40. package/dist/src/platform-tag-catalogue.js +180 -0
  41. package/dist/src/platform-tag.d.ts +4 -0
  42. package/dist/src/platform-tag.js +312 -0
  43. package/dist/src/private-file.d.ts +18 -0
  44. package/dist/src/private-file.js +156 -0
  45. package/dist/src/profiles.d.ts +116 -0
  46. package/dist/src/profiles.js +147 -0
  47. package/dist/src/redact.d.ts +7 -0
  48. package/dist/src/redact.js +41 -0
  49. package/dist/src/response-catalogue.d.ts +41 -0
  50. package/dist/src/response-catalogue.js +134 -0
  51. package/dist/src/response.d.ts +4 -0
  52. package/dist/src/response.js +227 -0
  53. package/dist/src/setup.d.ts +1 -0
  54. package/dist/src/setup.js +39 -0
  55. package/dist/src/transport-core.d.ts +85 -0
  56. package/dist/src/transport-core.js +274 -0
  57. package/dist/src/transport.d.ts +4 -0
  58. package/dist/src/transport.js +6 -0
  59. package/dist/src/writes-core.d.ts +112 -0
  60. package/dist/src/writes-core.js +215 -0
  61. package/dist/src/writes.d.ts +57 -0
  62. package/dist/src/writes.js +5 -0
  63. package/docs/commands.md +1377 -0
  64. package/inventory/capabilities.json +3728 -0
  65. package/package.json +24 -4
  66. package/skills/tenable-axi/SKILL.md +101 -0
package/package.json CHANGED
@@ -1,6 +1,26 @@
1
1
  {
2
2
  "name": "@knowttl/tenable-axi",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Investigate Tenable One exposure and run explicitly guarded writes",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "bin": { "tenable-axi": "bin/tenable-axi.js", "tenable-axi-hook": "bin/tenable-axi-hook.js" },
8
+ "exports": { "./catalogue": "./dist/src/catalogue.js", "./inventory": "./inventory/capabilities.json", "./axi-credential.schema.json": "./axi-credential.schema.json" },
9
+ "files": ["bin", "dist/src", "inventory/capabilities.json", "axi-credential.schema.json", "docs/commands.md", "skills"],
10
+ "publishConfig": { "access": "public" },
11
+ "repository": { "type": "git", "url": "git+https://github.com/knowttl/tenable-axi.git" },
12
+ "engines": { "node": ">=22.12.0" },
13
+ "packageManager": "pnpm@10.34.6",
14
+ "scripts": {
15
+ "build": "tsc -p tsconfig.json",
16
+ "typecheck": "tsc --noEmit -p tsconfig.json",
17
+ "lint": "pnpm run typecheck",
18
+ "test": "node scripts/isolated.mjs node scripts/test-changes.mjs",
19
+ "docs:generate": "node scripts/generate-docs.mjs",
20
+ "docs:check": "node scripts/generate-docs.mjs --check",
21
+ "spec:generate": "node scripts/specs.mjs --generate",
22
+ "spec:check": "node scripts/specs.mjs --check"
23
+ },
24
+ "dependencies": { "@toon-format/toon": "2.3.1", "axi-sdk-js": "0.1.13", "zod": "4.3.6", "smol-toml": "1.9.1" },
25
+ "devDependencies": { "@types/node": "22.20.5", "typescript": "5.9.3", "vitest": "5.0.2", "openapi-typescript": "7.13.0" }
26
+ }
@@ -0,0 +1,101 @@
1
+ ---
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."
4
+ ---
5
+
6
+ <!-- Generated by scripts/generate-docs.mjs from src/catalogue.ts. Do not hand-edit. -->
7
+
8
+ # tenable-axi
9
+
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
+
14
+ 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
+ Only `https://cloud.tenable.com` is supported.
17
+
18
+ Start with local discovery:
19
+
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
+ ```
25
+
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`.
29
+
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.
33
+ 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
+
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.
39
+
40
+ | Command | Purpose |
41
+ |---|---|
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 |