@knowttl/tenable-axi 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +347 -2
- package/axi-credential.schema.json +28 -0
- package/bin/tenable-axi-hook.js +13 -0
- package/bin/tenable-axi.js +8 -0
- package/bin/version.js +3 -0
- package/dist/src/attack-catalogue.d.ts +176 -0
- package/dist/src/attack-catalogue.js +71 -0
- package/dist/src/attack-export-catalogue.d.ts +29 -0
- package/dist/src/attack-export-catalogue.js +58 -0
- package/dist/src/attack-export.d.ts +5 -0
- package/dist/src/attack-export.js +151 -0
- package/dist/src/attack.d.ts +3 -0
- package/dist/src/attack.js +287 -0
- package/dist/src/catalogue.d.ts +150 -0
- package/dist/src/catalogue.js +68 -0
- package/dist/src/cli.d.ts +11 -0
- package/dist/src/cli.js +61 -0
- package/dist/src/export-file.d.ts +8 -0
- package/dist/src/export-file.js +157 -0
- package/dist/src/exposure-contracts.d.ts +31 -0
- package/dist/src/exposure-contracts.js +31 -0
- package/dist/src/exposure.d.ts +4 -0
- package/dist/src/exposure.js +323 -0
- package/dist/src/hook-install.d.ts +1 -0
- package/dist/src/hook-install.js +132 -0
- package/dist/src/inventory/schema.d.ts +34 -0
- package/dist/src/inventory/schema.js +18 -0
- package/dist/src/inventory-catalogue.d.ts +55 -0
- package/dist/src/inventory-catalogue.js +62 -0
- package/dist/src/inventory-export-catalogue.d.ts +96 -0
- package/dist/src/inventory-export-catalogue.js +47 -0
- package/dist/src/inventory-export.d.ts +5 -0
- package/dist/src/inventory-export.js +164 -0
- package/dist/src/inventory.d.ts +3 -0
- package/dist/src/inventory.js +285 -0
- package/dist/src/local-commands.d.ts +2 -0
- package/dist/src/local-commands.js +44 -0
- package/dist/src/platform-tag-catalogue.d.ts +101 -0
- package/dist/src/platform-tag-catalogue.js +180 -0
- package/dist/src/platform-tag.d.ts +4 -0
- package/dist/src/platform-tag.js +322 -0
- package/dist/src/private-file.d.ts +18 -0
- package/dist/src/private-file.js +156 -0
- package/dist/src/profiles.d.ts +116 -0
- package/dist/src/profiles.js +147 -0
- package/dist/src/redact.d.ts +7 -0
- package/dist/src/redact.js +41 -0
- package/dist/src/response-catalogue.d.ts +41 -0
- package/dist/src/response-catalogue.js +134 -0
- package/dist/src/response.d.ts +4 -0
- package/dist/src/response.js +227 -0
- package/dist/src/setup.d.ts +1 -0
- package/dist/src/setup.js +39 -0
- package/dist/src/transport-core.d.ts +85 -0
- package/dist/src/transport-core.js +274 -0
- package/dist/src/transport.d.ts +4 -0
- package/dist/src/transport.js +6 -0
- package/dist/src/writes-core.d.ts +112 -0
- package/dist/src/writes-core.js +215 -0
- package/dist/src/writes.d.ts +57 -0
- package/dist/src/writes.js +5 -0
- package/docs/commands.md +1377 -0
- package/inventory/capabilities.json +3728 -0
- package/package.json +55 -4
- package/skills/tenable-axi/SKILL.md +101 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 knowttl
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,348 @@
|
|
|
1
|
-
#
|
|
1
|
+
# tenable-axi
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Investigate Tenable One exposure through compact TOON output and explicitly guarded business writes.
|
|
4
|
+
It uses TypeScript on Node.js 22.12 or later and is packaged as `@knowttl/tenable-axi`.
|
|
5
|
+
This is the pre-release source; publication follows separate live acceptance and release approval.
|
|
6
|
+
|
|
7
|
+
## Quickstart
|
|
8
|
+
|
|
9
|
+
Install the released package globally, or use `npx -y @knowttl/tenable-axi` in place of `tenable-axi` once published.
|
|
10
|
+
Until then, use the [local development commands](#development-and-testing).
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
npm install --global @knowttl/tenable-axi
|
|
14
|
+
tenable-axi config path
|
|
15
|
+
tenable-axi profile list
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Save this configuration at the reported config path and supply the two environment variables through your secret manager.
|
|
19
|
+
Secret values never belong in arguments, chat, or configuration JSON.
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"version": 1,
|
|
24
|
+
"defaultProfile": "example",
|
|
25
|
+
"profiles": {
|
|
26
|
+
"example": {
|
|
27
|
+
"origin": "https://cloud.tenable.com",
|
|
28
|
+
"accessKey": { "env": "TENABLE_AXI_ACCESS_KEY" },
|
|
29
|
+
"secretKey": { "env": "TENABLE_AXI_SECRET_KEY" },
|
|
30
|
+
"writes": { "allowWrites": false, "operations": [] }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Config files must be owned regular files without group/other write access; use `chmod 600 <config-path>` on Unix.
|
|
37
|
+
SecretRefs also accept `{"file":"/absolute/path"}` to a protected secret file with no group/other permission bits.
|
|
38
|
+
Windows uses protected DACLs; UNC and device paths are refused.
|
|
39
|
+
No login command, credential minting, arbitrary HTTP, alternate origin or TLS bypass is available.
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
tenable-axi auth status --profile example
|
|
43
|
+
tenable-axi doctor --profile example
|
|
44
|
+
tenable-axi asset list --profile example --limit 10
|
|
45
|
+
tenable-axi finding list --profile example --filter 'severity = ["HIGH"]'
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`auth status` is local; `doctor` makes one bounded tag-properties read and does not prove other module permissions.
|
|
49
|
+
Configured home reads up to five live exposure cards; unconfigured home stays offline.
|
|
50
|
+
Only `https://cloud.tenable.com` is supported.
|
|
51
|
+
Upstream licensing and the user's per-operation permissions still apply.
|
|
52
|
+
HTTP 403 returns `PERMISSION_DENIED` with “Not licensed or not permitted for this key” and advice naming the required privilege where documented.
|
|
53
|
+
Inventory needs `EXPOSURE_MANAGEMENT.INVENTORY.INVENTORY.READ`; inventory exports need its `EXPORT` privilege and attack exports need `EXPOSURE_MANAGEMENT.ATTACK_PATH.ATTACK_PATH.WRITE`.
|
|
54
|
+
Connector logs have elevated permissions; their denial does not imply ordinary inventory users need Administrator.
|
|
55
|
+
|
|
56
|
+
## Use with your agent
|
|
57
|
+
|
|
58
|
+
Install optional hooks for ambient local context after installing the binary in a stable location:
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
tenable-axi setup hooks
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
This explicit opt-in installs or repairs Claude Code and Codex SessionStart hooks and an OpenCode managed plugin.
|
|
65
|
+
Ordinary commands never install integrations.
|
|
66
|
+
POSIX SessionStart hooks use the first executable on PATH only if it matches this installation, otherwise retaining the absolute hook path.
|
|
67
|
+
Windows SessionStart hooks and the OpenCode plugin invoke Node with the absolute hook script path; rerun setup after relocating Node or the installation.
|
|
68
|
+
Repeated setup preserves unrelated integrations and makes no changes when already current.
|
|
69
|
+
Restart the agent session after setup.
|
|
70
|
+
The hook prints local profile/origin/write posture, resolves no secrets, and never contacts Tenable.
|
|
71
|
+
It follows the session's `TENABLE_AXI_PROFILE` and `TENABLE_AXI_CONFIG`, so select those explicitly when working with multiple tenants.
|
|
72
|
+
Use `tenable-axi setup hooks --scope project` for project-local hook entries and the OpenCode plugin.
|
|
73
|
+
User setup honors `CLAUDE_CONFIG_DIR` (default `~/.claude`), `CODEX_HOME` (default `~/.codex`), and `$XDG_CONFIG_HOME/opencode` (default `~/.config/opencode`).
|
|
74
|
+
Project hook destinations remain `.claude`, `.codex`, and `.opencode` under the working directory.
|
|
75
|
+
Both scopes enable Codex's shared user-level hooks feature in the active `CODEX_HOME/config.toml`.
|
|
76
|
+
No repository-local Tenable configuration is discovered automatically.
|
|
77
|
+
To remove user hooks, remove only entries containing `tenable-axi-hook` from `settings.json` in the active Claude configuration directory and `hooks.json` in the active Codex directory, and the managed `plugins/axi-tenable-axi-hook.js` under OpenCode's active configuration directory.
|
|
78
|
+
For project scope, remove the corresponding `.claude/settings.json`, `.codex/hooks.json` entries and `.opencode/plugins/axi-tenable-axi-hook.js` under that project.
|
|
79
|
+
Keep unrelated entries and Codex's shared hooks feature enabled for other tools.
|
|
80
|
+
|
|
81
|
+
The generated skill provides discovery on demand, with no session hook required:
|
|
82
|
+
|
|
83
|
+
```sh
|
|
84
|
+
npx skills add knowttl/tenable-axi --skill tenable-axi
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Hooks and skill work independently or together.
|
|
88
|
+
The skill uses non-interactive `npx -y @knowttl/tenable-axi` examples and ships inside the npm tarball.
|
|
89
|
+
|
|
90
|
+
## Configuration and safety
|
|
91
|
+
|
|
92
|
+
Linux/macOS configuration uses absolute `$XDG_CONFIG_HOME/tenable-axi/config.json`, otherwise `~/.config/tenable-axi/config.json`.
|
|
93
|
+
State uses absolute `$XDG_STATE_HOME/tenable-axi`, otherwise `~/.local/state/tenable-axi`.
|
|
94
|
+
Windows uses `%APPDATA%\tenable-axi` for config and `%LOCALAPPDATA%\tenable-axi` for state, ignoring XDG.
|
|
95
|
+
`--config` overrides `TENABLE_AXI_CONFIG`; `--profile` overrides `TENABLE_AXI_PROFILE`, then a complete environment profile, configured default, or sole profile is selected.
|
|
96
|
+
A complete environment profile requires both `TENABLE_AXI_ACCESS_KEY` and `TENABLE_AXI_SECRET_KEY`; partial values fail rather than mixing credentials.
|
|
97
|
+
Explicit file-selected profiles ignore environment profile fields.
|
|
98
|
+
Environment profiles cannot enable writes.
|
|
99
|
+
`TENABLE_AXI_READ_ONLY=1` or `true` forces read-only; `0`, `false`, or unset permits the configured policy, and other values fail closed.
|
|
100
|
+
`TENABLE_AXI_WRITE_LOG` selects a private journal instead of the default state-directory `writes.log`.
|
|
101
|
+
|
|
102
|
+
Writes require a file profile with `writes.allowWrites: true` and exact upstream operation IDs in `writes.operations`, including for previews.
|
|
103
|
+
For example, allow only `inventory-export-assets` to preview or create asset exports.
|
|
104
|
+
Run a write without `--execute` to inspect its redacted preview, then supply `--execute --confirm '<exact preview confirmation>'` after reviewing the target and effect.
|
|
105
|
+
`--dry-run` is explicit preview and excludes `--execute`.
|
|
106
|
+
The durable redacted journal records intent before sending once; ambiguous outcomes include audit IDs and must be reconciled before retrying.
|
|
107
|
+
Credential, user, role and access-control administration stays blocked, including nested security fields in otherwise allowed payloads.
|
|
108
|
+
|
|
109
|
+
## Command reference
|
|
110
|
+
|
|
111
|
+
The [generated reference](docs/commands.md) includes flags, defaults and examples from the executable catalogue.
|
|
112
|
+
Use each leaf's `--help` for concise help; unknown flags and invalid combinations fail before credentials or HTTP.
|
|
113
|
+
Bare `--version`, `-v` and `-V` print only the package version.
|
|
114
|
+
|
|
115
|
+
<!-- command-registry:start -->
|
|
116
|
+
| Command | Purpose |
|
|
117
|
+
|---|---|
|
|
118
|
+
| `tenable-axi asset list` | Search assets |
|
|
119
|
+
| `tenable-axi asset properties` | Discover asset properties and supported operators |
|
|
120
|
+
| `tenable-axi asset show` | Find one asset by exact ID search |
|
|
121
|
+
| `tenable-axi attack-path list` | Search top attack paths using the published specification route |
|
|
122
|
+
| `tenable-axi attack-technique list` | Search top attack techniques; affectedAssets counts assets_ids |
|
|
123
|
+
| `tenable-axi auth status` | Check local credentials and file security without contacting Tenable |
|
|
124
|
+
| `tenable-axi card list` | List exposure view cards |
|
|
125
|
+
| `tenable-axi card show` | Show an exposure card and its scores, trends and SLA details |
|
|
126
|
+
| `tenable-axi combination create` | Preview or create combination |
|
|
127
|
+
| `tenable-axi combination delete` | Preview or delete combination |
|
|
128
|
+
| `tenable-axi combination filters` | List allowed combination query properties and operators |
|
|
129
|
+
| `tenable-axi combination list` | list combinations |
|
|
130
|
+
| `tenable-axi combination show` | show combination |
|
|
131
|
+
| `tenable-axi combination update` | Preview or update combination |
|
|
132
|
+
| `tenable-axi config path` | Show selected config and state paths without reading files |
|
|
133
|
+
| `tenable-axi connector logs` | Read connector sync logs; the API has no server paging parameters |
|
|
134
|
+
| `tenable-axi doctor` | Check local security and one tag-properties read without retries |
|
|
135
|
+
| `tenable-axi export asset jobs` | List recent inventory asset export jobs |
|
|
136
|
+
| `tenable-axi export asset start` | Preview or create an inventory asset export job |
|
|
137
|
+
| `tenable-axi export attack download` | Download an attack export to a new file, redacting JSON/CSV within 128 MiB |
|
|
138
|
+
| `tenable-axi export attack status` | Read an attack export job; no polling by default |
|
|
139
|
+
| `tenable-axi export attack-path start` | Preview or start one attack-path export; requires configured write scope and ATTACK_PATH.WRITE |
|
|
140
|
+
| `tenable-axi export attack-technique start` | Preview or start one attack-technique export; requires configured write scope and ATTACK_PATH.WRITE |
|
|
141
|
+
| `tenable-axi export finding jobs` | List recent inventory finding export jobs |
|
|
142
|
+
| `tenable-axi export finding start` | Preview or create an inventory finding export job |
|
|
143
|
+
| `tenable-axi export inventory download` | Download one inventory chunk to a new redacted file |
|
|
144
|
+
| `tenable-axi export inventory status` | Read one inventory export status without polling |
|
|
145
|
+
| `tenable-axi export mitre-heatmap start` | Preview or start one mitre-heatmap export; requires configured write scope and ATTACK_PATH.WRITE |
|
|
146
|
+
| `tenable-axi finding list` | Search findings |
|
|
147
|
+
| `tenable-axi finding properties` | Discover finding properties and supported operators |
|
|
148
|
+
| `tenable-axi finding show` | Find one finding by exact ID search |
|
|
149
|
+
| `tenable-axi home` | Show profile state and up to five live exposure cards |
|
|
150
|
+
| `tenable-axi hook` | Show compact local profile context without resolving secrets or HTTP |
|
|
151
|
+
| `tenable-axi initiative create` | Preview or create initiative |
|
|
152
|
+
| `tenable-axi initiative delete` | Preview or delete initiative |
|
|
153
|
+
| `tenable-axi initiative list` | list initiatives |
|
|
154
|
+
| `tenable-axi initiative show` | show initiative |
|
|
155
|
+
| `tenable-axi initiative update` | Preview or update initiative |
|
|
156
|
+
| `tenable-axi profile list` | List configured profiles without resolving secrets or contacting Tenable |
|
|
157
|
+
| `tenable-axi setup hooks` | Explicitly install or repair local agent session integrations |
|
|
158
|
+
| `tenable-axi software list` | Search software; the pinned API exposes no stable software ID |
|
|
159
|
+
| `tenable-axi software properties` | Discover software properties and supported operators |
|
|
160
|
+
| `tenable-axi tag asset-filter list` | List documented dynamic tag filter definitions |
|
|
161
|
+
| `tenable-axi tag assignment add` | add tags for the exact asset set |
|
|
162
|
+
| `tenable-axi tag assignment list` | List tags assigned to one asset |
|
|
163
|
+
| `tenable-axi tag assignment remove` | remove tags for the exact asset set |
|
|
164
|
+
| `tenable-axi tag category create` | Create platform tag category |
|
|
165
|
+
| `tenable-axi tag category delete` | Delete platform tag category |
|
|
166
|
+
| `tenable-axi tag category list` | List platform tag category |
|
|
167
|
+
| `tenable-axi tag category show` | Show platform tag category |
|
|
168
|
+
| `tenable-axi tag category update` | Update platform tag category |
|
|
169
|
+
| `tenable-axi tag exclusion list` | List assets excluded from a dynamic tag |
|
|
170
|
+
| `tenable-axi tag list` | Search Exposure Management tags |
|
|
171
|
+
| `tenable-axi tag properties` | List available tag properties and operators |
|
|
172
|
+
| `tenable-axi tag value bulk-delete` | Preview or delete the exact tag value set |
|
|
173
|
+
| `tenable-axi tag value create` | Create platform tag value |
|
|
174
|
+
| `tenable-axi tag value delete` | Delete platform tag value |
|
|
175
|
+
| `tenable-axi tag value list` | List platform tag value |
|
|
176
|
+
| `tenable-axi tag value show` | Show platform tag value |
|
|
177
|
+
| `tenable-axi tag value update` | Update platform tag value |
|
|
178
|
+
<!-- command-registry:end -->
|
|
179
|
+
|
|
180
|
+
## Shipped behavior
|
|
181
|
+
|
|
182
|
+
Inventory reads and exports, attack searches and connector logs are implemented.
|
|
183
|
+
Attack path, attack technique and MITRE heatmap exports support guarded creation, status and redacted file downloads.
|
|
184
|
+
`tag list`, `tag properties`, `card list` and `card show` provide bounded Exposure Management reads.
|
|
185
|
+
Platform tag categories, values, assignments, exclusions and dynamic filter definitions are implemented, including guarded mutations.
|
|
186
|
+
Home shows up to five exposure cards when configured and setup guidance offline otherwise.
|
|
187
|
+
Exposure response initiatives and combinations support reads and guarded writes, including allowed combination filters.
|
|
188
|
+
`hook` reports local profile context without resolving secrets or contacting Tenable.
|
|
189
|
+
Help, version, `auth status`, `profile list` and `config path` remain local.
|
|
190
|
+
|
|
191
|
+
Credentials use the strict versioned config and SecretRefs described in [profiles and authentication](docs/design.md#profiles-and-authentication).
|
|
192
|
+
Run `tenable-axi config path` to find the platform config path, or set both `TENABLE_AXI_ACCESS_KEY` and `TENABLE_AXI_SECRET_KEY` for an environment profile.
|
|
193
|
+
Run `tenable-axi auth status` to check sources and file security locally; it never contacts Tenable or prints key values.
|
|
194
|
+
The package ships [axi-credential.schema.json](axi-credential.schema.json) for hosts.
|
|
195
|
+
|
|
196
|
+
The internal transport enforces the exact commercial origin, reviewed catalogue bindings, escaped paths, scoped continuations, and redirect refusal.
|
|
197
|
+
One transport instance represents one invocation, sharing the [transport budgets](docs/design.md#transport-contract) across pages and retries.
|
|
198
|
+
Read operations may retry 429/502/503/504 twice; writes require coordinator authorization and never replay automatically.
|
|
199
|
+
Transport errors carry a stable code, operation, optional HTTP status and `retryAfter` in milliseconds, plus bounded redacted guidance.
|
|
200
|
+
Production binds reviewed inventory search/properties and exports, Exposure Management tag and card reads, attack searches, attack exports, connector logs, platform tags and Exposure Response commands; offline tests use synthetic fixtures and a CA-verified loopback HTTPS fake through the internal construction seam.
|
|
201
|
+
No flag or environment variable enables that seam in the CLI.
|
|
202
|
+
|
|
203
|
+
Inventory and attack export creation, platform tag mutations and Exposure Response writes use the write coordinator and are read-only by default.
|
|
204
|
+
It enforces immutable configured scope, redacted previews, exact confirmation, optional host approval, stale-state refusal and a durable private journal before a single authorized send.
|
|
205
|
+
Unknown outcomes include an audit ID and read-back guidance and are never replayed.
|
|
206
|
+
Named write commands register strict mutation definitions alongside transport bindings in the catalogue and call `createWriteCoordinator().run(operationId, input, options)`.
|
|
207
|
+
State readers establish no-ops and include concurrency fields in the compared state; operation definitions own documented payload validation and read-back guidance.
|
|
208
|
+
|
|
209
|
+
Use `initiative list/show/create/update/delete`, `combination list/show/create/update/delete` and `combination filters` for Exposure Response.
|
|
210
|
+
Show, update and delete require `--id <uuid>`; create and update require a strict JSON `--body-file` (or `-` for stdin, at most 1 MiB).
|
|
211
|
+
Updates send the complete replacement body, with the same required fields as creates.
|
|
212
|
+
Initiative bodies contain `name`, `scope`, `combination_ids`, `tenable_ids`, `owner`, `sla_in_days` and optional `description`.
|
|
213
|
+
Scope and each combination-ID array accept at most ten UUIDs; owner is an explicit UUID and SLA is a signed 32-bit integer as documented by the pinned schema.
|
|
214
|
+
Previews read the selected combinations and enforce the seventeen-query initiative limit without discovering users or changing tags.
|
|
215
|
+
Combination bodies contain `name`, `query`, `is_public` and optional `description`; queries use a single `{property, operator, value}` filter or nested `and`/`or` arrays with at most six conditions.
|
|
216
|
+
`exists` and `nexists` allow an omitted value; `combination filters` reports supported properties, operators and value metadata.
|
|
217
|
+
When selected, optional `allowedValues` and `selectMultiValue` remain absent if upstream omits them; malformed present values fail validation, including on cursor resume.
|
|
218
|
+
The preview explicitly describes public or private visibility, owner and scope effects.
|
|
219
|
+
Each write requires a file profile with `writes.allowWrites: true` and the exact `initiatives-create/update/delete` or `combinations-create/update/delete` operation IDs in `writes.operations`, including for preview.
|
|
220
|
+
Run again with `--execute --confirm '<exact preview confirmation>'` to send once through the existing journal and read-only guards.
|
|
221
|
+
Updates re-read the selected resource before sending and refuse changed state; identical updates/creates and verified absent deletes are no-ops.
|
|
222
|
+
The API does not document conditional writes, so re-reading narrows the race without guaranteeing atomic comparison.
|
|
223
|
+
Lists and allowed filters are unpaged upstream; `--limit` defaults to 100 and `--all` caps output at 10,000 rows.
|
|
224
|
+
Their scoped cursors contain only a position and collection fingerprint, bounded at 1 KiB, without row data or invented server paging parameters.
|
|
225
|
+
Resume re-fetches the collection with the original selectors and refuses changed collections; restart without `--cursor` if the collection changed.
|
|
226
|
+
`combination list --type private|shared|tenable` scopes the upstream request; the displayed type uses that selector or the returned `is_public` value, and stays null when neither establishes it.
|
|
227
|
+
No upstream total is supplied, so `total` remains null.
|
|
228
|
+
Use `--fields` for documented wire fields or compact aliases (`slaInDays`, filter `property`); `--full` removes text truncation while retaining invocation bounds.
|
|
229
|
+
Full-text hints omit `--execute` and `--confirm`, so following a write's hint previews without sending another mutation.
|
|
230
|
+
|
|
231
|
+
Use `export asset start` or `export finding start` to preview the filters, properties, format and compression for a tenant-side job.
|
|
232
|
+
The selected file profile must configure `writes.allowWrites: true` and allow the exact `inventory-export-assets` or `inventory-export-findings` operation, including for previews.
|
|
233
|
+
Optional `--body-file` accepts strict documented query/filters JSON, or `-` for stdin, within 1 MiB.
|
|
234
|
+
Query options use `--properties`, `--use-readable-name true|false`, `--max-chunk-file-size`, `--sort`, `--file-format JSON|CSV` and `--compress true|false`.
|
|
235
|
+
Choose comma-separated `--properties` names from `asset properties` or `finding properties`; `id` maps to `asset_id` or `finding_id` respectively, while other names pass through unchanged.
|
|
236
|
+
Run again with `--execute --confirm '<exact preview confirmation>'` to create once and return immediately; exports have no server dry run or idempotency guarantee.
|
|
237
|
+
`TENABLE_AXI_READ_ONLY=true` overrides every configured write policy.
|
|
238
|
+
`export asset jobs` and `export finding jobs` expose `--status` and `--limit` (default 100, maximum 1000), returning only the last three days without server paging or a claim of complete history.
|
|
239
|
+
`export inventory status --id <id>` reads once without polling and reports available chunks.
|
|
240
|
+
`export inventory download --id <id> --chunk <number> --output <new-file>` downloads one explicit chunk and prints file metadata only.
|
|
241
|
+
Files are validated as JSON or CSV, scanned for secrets, redacted and published atomically without overwrite; gzip exports are decoded and re-encoded with the same format.
|
|
242
|
+
Inventory JSON chunks must contain arrays of objects.
|
|
243
|
+
See [download bounds](docs/design.md#collections-jobs-and-bounded-reads) for file size and decompression limits.
|
|
244
|
+
|
|
245
|
+
Use `asset list/show/properties`, `finding list/show/properties`, and `software list/properties` with `--help` for their flags and examples.
|
|
246
|
+
Lists default to 100 rows, expose upstream totals when supplied, and return a cursor when more rows remain.
|
|
247
|
+
`--all` remains bounded by 10,000 rows and the shared transport budgets; resume with the returned `--cursor` and original selectors, filters, sort, and fields.
|
|
248
|
+
Offset paging does not provide snapshot isolation.
|
|
249
|
+
`--fields` selects display or wire properties and automatically requests extra properties; `--full` removes the 1,000-character text preview while retaining invocation bounds.
|
|
250
|
+
Simple filters use `--filter 'severity = ["HIGH"]'`; `--filter-file` accepts a flat JSON array of `{property, operator, value: string[]}` and rejects nested boolean expressions.
|
|
251
|
+
Software defaults to name, version, and publisher because the pinned API exposes no stable software ID.
|
|
252
|
+
|
|
253
|
+
`doctor` validates local configuration and file security, then performs exactly one tag-properties read without retries.
|
|
254
|
+
It checks `EXPOSURE_MANAGEMENT.TAG.TAG.READ`, without claiming access to other modules.
|
|
255
|
+
Collections expose returned count, upstream total when known, completeness and a scoped resume cursor.
|
|
256
|
+
Card lists and home accept upstream pages of up to 25 cards even when fewer are requested, emit only the requested limit, and preserve overflow in a scoped, redacted cursor bounded at 64 KiB.
|
|
257
|
+
Pages above 25 cards or cursors above this bound fail validation rather than dropping cards.
|
|
258
|
+
Ordinary lists default to 100 output rows.
|
|
259
|
+
`--all` remains subject to invocation budgets and the 10,000-row ceiling.
|
|
260
|
+
Resume with `--cursor` and the same profile, fields, filters and sort.
|
|
261
|
+
Offset pagination does not promise snapshot isolation.
|
|
262
|
+
Tag `value` maps to the documented `name`; `category` requests `tag_category_name` through extra properties and remains null when unavailable.
|
|
263
|
+
Tag filter files contain the pinned API's strict array of `{property, operator, value}` filters, with string arrays for `value`; this endpoint does not define nested boolean filters.
|
|
264
|
+
Use `--help` on each leaf for selectors and defaults.
|
|
265
|
+
|
|
266
|
+
Use `tag category list/show/create/update/delete` and `tag value list/show/create/update/delete/bulk-delete` for platform tags.
|
|
267
|
+
Category creates and updates require `--name`, with optional `--description`; show, update and delete select an exact `--id` UUID.
|
|
268
|
+
Value creates and updates require `--body-file <file>` with only documented non-security fields; show, update and delete select an exact `--id` UUID.
|
|
269
|
+
Creates accept category UUID or name, optional category description, value, description and dynamic filters; a new category name may create a category.
|
|
270
|
+
Updates accept value, description, filters and the documented `version` field; read `tag value show --id <id> --fields id,value,version` before updating.
|
|
271
|
+
Dynamic rules use `filters.asset.and` or `filters.asset.or` arrays of `{property, operator, value}`, where value is a string or string array, with at most 40 rules and 1024 values per rule.
|
|
272
|
+
`tag asset-filter list` exposes available rule properties and operators and explains the resource-tag filters the upstream omits.
|
|
273
|
+
Security fields, including nested `access_control`, are rejected before credentials or HTTP.
|
|
274
|
+
Platform category/value list filters use repeatable `--filter 'field:operator:value'`, `--filter-type and|or` and comma-separated `--sort field:asc|desc`.
|
|
275
|
+
Value wildcard search pairs `--with <text>` and `--with-filter category_name,value,description` with the documented `w` and `wf` parameters.
|
|
276
|
+
`tag assignment list --asset-id <id>` reads one asset's assignments; `tag exclusion list --tag-id <id> --target-type assets` reads dynamic tag exclusions.
|
|
277
|
+
Unpaged assignment/filter collections retain unreturned selected fields in bounded redacted cursors without inventing server paging parameters.
|
|
278
|
+
|
|
279
|
+
Platform tag writes require `writes.allowWrites: true` and the exact operation ID from the [ledger](docs/design.md#complete-operation-ledger) in `writes.operations`, including for previews.
|
|
280
|
+
They use the same preview, `--execute --confirm '<exact preview confirmation>'`, forced read-only override and private journal as export creation.
|
|
281
|
+
`tag value bulk-delete --ids-file <file>` consumes a JSON array of exact value UUIDs.
|
|
282
|
+
`tag assignment add/remove --asset-ids-file <file> --tag-ids-file <file>` consumes two JSON UUID arrays, confirms both complete sets, and returns one asynchronous job without polling.
|
|
283
|
+
Input files accept `-` for stdin, with only one stdin consumer and a 1 MiB bound per file.
|
|
284
|
+
State reads, including per-target checks for bulk operations, share invocation budgets; narrow large target sets when those budgets are exhausted.
|
|
285
|
+
Identical verified updates/creates and already desired assignments return successful no-ops; an unverified missing-resource response remains an error.
|
|
286
|
+
Deleting a category also deletes its values and assignments; deleting values removes their assignments while retaining the category.
|
|
287
|
+
Value delete and bulk-delete accept unconstrained or undecodable HTTP 2xx replies as exit-0 success once the `SUCCESS` journal outcome is durably recorded.
|
|
288
|
+
An undecodable reply includes a warning, audit ID and status; read back the target before retrying.
|
|
289
|
+
|
|
290
|
+
Use `attack-path list`, `attack-technique list`, and `connector logs` with `--help` for their flags and examples.
|
|
291
|
+
Attack paths use the published `/api/v1/t1/apa/top-attack-paths/search` route; the pyTenable route disagreement remains a live-acceptance check in the design.
|
|
292
|
+
AI summarization defaults to false; explicitly enable it with `--run-ai-summarization true`.
|
|
293
|
+
`--include-resolved` includes resolved paths or archived/resolved techniques.
|
|
294
|
+
Attack filters accept `--filter 'priority gte 8'` or a `--filter-file` containing the documented single or nested filter object.
|
|
295
|
+
Path logical operators use `AND`/`OR`; technique logical operators use `and`/`or`, with at most two logical levels in either case.
|
|
296
|
+
Attack searches send at least 100 wire rows even for a smaller output limit, retaining excess selected fields in a bounded redacted cursor for resume.
|
|
297
|
+
Technique `id` maps to `serial_id`, and `affectedAssets` counts the returned `assets_ids` array.
|
|
298
|
+
Connector logs accept connector ID, sync status, and paired date boundaries (inclusive start, exclusive end), without invented server paging parameters.
|
|
299
|
+
Log `timestamp` is the sync start time; use `--fields connectorId,status,sync_logs --full` for event details.
|
|
300
|
+
Unpaged log collections retain unreturned rows for bounded local resume; if the upstream total exceeds the available collection, output reports that limitation and suggests narrowing the selectors.
|
|
301
|
+
Connector log denial explains Administrator or the documented connector-read privilege without recommending Administrator for inventory access.
|
|
302
|
+
|
|
303
|
+
Use `export attack-path start`, `export attack-technique start` or `export mitre-heatmap start` with a strict JSON `--body-file`, for example `{"file_format":"JSON"}`, using `"JSON"` or `"CSV"` and the operation's options from the [pinned specification](specs/exposure-management.json).
|
|
304
|
+
The body is limited to 1 MiB; `--body-file -` reads stdin.
|
|
305
|
+
Export filter logical operators use lowercase `and`/`or`, including attack path exports.
|
|
306
|
+
Select a configured profile with `--profile`; its `writes.allowWrites` must be true and `writes.operations` must include the exact operation ID (`apa-export-attack-path`, `apa-export-attack-technique` or `apa-export-mitre-heatmap`), even for previews.
|
|
307
|
+
Environment profiles cannot enable writes, and `TENABLE_AXI_READ_ONLY=true` blocks all creation.
|
|
308
|
+
Preview first, then pass `--execute --confirm '<exact-preview-confirmation>'` to create one job and return immediately.
|
|
309
|
+
Exports require `EXPOSURE_MANAGEMENT.ATTACK_PATH.ATTACK_PATH.WRITE` and the corresponding upstream entitlement.
|
|
310
|
+
Use `export attack status --id <id>` for a single status read, or add `--wait` to poll within the shared deadline and request budgets.
|
|
311
|
+
If a polling budget expires after a validated pending response, `--wait` returns the last validated job with `complete:false` and `reason:POLL_BUDGET_EXCEEDED`, including when retries exhaust the request budget or an in-flight poll reaches the deadline.
|
|
312
|
+
Without a validated status, budget exhaustion remains an error; other polling failures remain errors.
|
|
313
|
+
Use `export attack download --id <id> --output <new-file>` to download JSON or CSV, including gzip-encoded files, with format-aware secret redaction and atomic publication within the [download bounds](docs/design.md#collections-jobs-and-bounded-reads).
|
|
314
|
+
Attack JSON downloads accept arrays of objects and top-level objects, including MITRE heatmap Navigator layers.
|
|
315
|
+
Downloads refuse overwrite and print file metadata only.
|
|
316
|
+
Attack and inventory job namespaces are separate; these commands never address inventory export jobs.
|
|
317
|
+
|
|
318
|
+
See the [design](docs/design.md) for v1 scope, credentials, write policy, verification, and implementation slices.
|
|
319
|
+
See [contributing](CONTRIBUTING.md) for development conventions.
|
|
320
|
+
|
|
321
|
+
## Development and testing
|
|
322
|
+
|
|
323
|
+
```sh
|
|
324
|
+
corepack pnpm install --frozen-lockfile --ignore-scripts --config.confirm-modules-purge=false
|
|
325
|
+
corepack pnpm run build
|
|
326
|
+
node scripts/isolated.mjs node bin/tenable-axi.js --help
|
|
327
|
+
node scripts/isolated.mjs node bin/tenable-axi.js --version
|
|
328
|
+
corepack pnpm test
|
|
329
|
+
corepack pnpm run lint
|
|
330
|
+
corepack pnpm run spec:check
|
|
331
|
+
corepack pnpm run docs:check
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
See [verification](CONTRIBUTING.md#verification) for offline isolation and test selection.
|
|
335
|
+
The [capability map](docs/design.md#capability-map) defines planned v1 scope; the generated [inventory](inventory/capabilities.json) records every pinned operation's classification and does not enable execution.
|
|
336
|
+
After catalogue changes, rebuild and run `corepack pnpm run docs:generate` to regenerate the README table, command reference and skill.
|
|
337
|
+
Tests and manual CLI checks use temporary HOME/XDG directories and synthetic fixtures, with no live tenant or real credentials.
|
|
338
|
+
Pull requests are validated locally; hosted checks run only during [release publication](#releases).
|
|
339
|
+
|
|
340
|
+
## Releases
|
|
341
|
+
|
|
342
|
+
Release-please owns versions, tags, release notes and changelog updates.
|
|
343
|
+
The release workflow publishes only when release-please creates a release, after build, lint, offline fake tarball tests, spec and documentation checks.
|
|
344
|
+
It publishes the verified tarball with npm provenance through OIDC trusted publishing, with no stored npm token.
|
|
345
|
+
Before the first release, configure npm's trusted publisher for `knowttl/tenable-axi` and `.github/workflows/release-please.yml`, and complete the separate live acceptance in the design.
|
|
346
|
+
This change does not publish a package or run that workflow.
|
|
347
|
+
|
|
348
|
+
Licensed under the [MIT License](LICENSE).
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/knowttl/tenable-axi/axi-credential.schema.json",
|
|
4
|
+
"title": "Tenable AXI credential profile",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"origin": { "const": "https://cloud.tenable.com", "default": "https://cloud.tenable.com" },
|
|
9
|
+
"accessKey": { "$ref": "#/$defs/secretRef", "x-secret": true, "default": { "env": "TENABLE_AXI_ACCESS_KEY" } },
|
|
10
|
+
"secretKey": { "$ref": "#/$defs/secretRef", "x-secret": true, "default": { "env": "TENABLE_AXI_SECRET_KEY" } },
|
|
11
|
+
"writes": {
|
|
12
|
+
"type": "object", "additionalProperties": false, "required": ["allowWrites", "operations"],
|
|
13
|
+
"default": { "allowWrites": false, "operations": [] },
|
|
14
|
+
"properties": {
|
|
15
|
+
"allowWrites": { "type": "boolean" },
|
|
16
|
+
"operations": { "type": "array", "items": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$" } }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"$defs": {
|
|
21
|
+
"secretRef": {
|
|
22
|
+
"oneOf": [
|
|
23
|
+
{ "type": "object", "additionalProperties": false, "required": ["env"], "properties": { "env": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" } } },
|
|
24
|
+
{ "type": "object", "additionalProperties": false, "required": ["file"], "properties": { "file": { "type": "string", "pattern": "^(?:/|[A-Za-z]:[\\\\/])" } } }
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { encode } from "@toon-format/toon";
|
|
3
|
+
|
|
4
|
+
// Ambient context must remain local, even when a profile is configured.
|
|
5
|
+
try {
|
|
6
|
+
const { credentialStore } = await import("../dist/src/profiles.js");
|
|
7
|
+
const { exposureCommand } = await import("../dist/src/exposure.js");
|
|
8
|
+
const store = credentialStore();
|
|
9
|
+
const context = await exposureCommand(["hook"], store);
|
|
10
|
+
process.stdout.write(`${encode(store.redactor.value(context))}\n`);
|
|
11
|
+
} catch {
|
|
12
|
+
process.stdout.write("tenable: local profile status unavailable\n");
|
|
13
|
+
}
|
package/bin/version.js
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { OperationBinding } from "./transport-core.js";
|
|
3
|
+
export declare const attackPage: z.ZodObject<{
|
|
4
|
+
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
offset: z.ZodNumber;
|
|
8
|
+
limit: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const logPage: z.ZodObject<{
|
|
12
|
+
items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
total_count: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const attackFields: Record<string, z.ZodType>;
|
|
16
|
+
export declare const techniqueFields: Record<string, z.ZodType>;
|
|
17
|
+
export declare const logFields: Record<string, z.ZodType>;
|
|
18
|
+
export declare const attackBindings: Readonly<Record<string, OperationBinding>>;
|
|
19
|
+
export declare const attackProperties: readonly ["priority", "name", "summary", "steps", "asset_exposure", "blast_radius", "asset_id", "freetext", "finding_id", "technique", "weakness_id", "critical_asset", "data_source", "apa_aes", "acr", "path_status"];
|
|
20
|
+
export declare const techniqueProperties: readonly ["priority", "state", "status", "name", "procedureName", "mitre_id", "tactics", "target", "source", "cause", "last_updated_at", "created", "serial_id"];
|
|
21
|
+
export declare function attackFilterSchema(technique: boolean): z.ZodUnion<readonly [z.ZodObject<{
|
|
22
|
+
property: z.ZodEnum<{
|
|
23
|
+
status: "status";
|
|
24
|
+
name: "name";
|
|
25
|
+
priority: "priority";
|
|
26
|
+
summary: "summary";
|
|
27
|
+
path_status: "path_status";
|
|
28
|
+
target: "target";
|
|
29
|
+
serial_id: "serial_id";
|
|
30
|
+
mitre_id: "mitre_id";
|
|
31
|
+
state: "state";
|
|
32
|
+
created: "created";
|
|
33
|
+
last_updated_at: "last_updated_at";
|
|
34
|
+
tactics: "tactics";
|
|
35
|
+
steps: "steps";
|
|
36
|
+
asset_exposure: "asset_exposure";
|
|
37
|
+
blast_radius: "blast_radius";
|
|
38
|
+
asset_id: "asset_id";
|
|
39
|
+
freetext: "freetext";
|
|
40
|
+
finding_id: "finding_id";
|
|
41
|
+
technique: "technique";
|
|
42
|
+
weakness_id: "weakness_id";
|
|
43
|
+
critical_asset: "critical_asset";
|
|
44
|
+
data_source: "data_source";
|
|
45
|
+
apa_aes: "apa_aes";
|
|
46
|
+
acr: "acr";
|
|
47
|
+
procedureName: "procedureName";
|
|
48
|
+
source: "source";
|
|
49
|
+
cause: "cause";
|
|
50
|
+
}>;
|
|
51
|
+
operator: z.ZodEnum<{
|
|
52
|
+
in: "in";
|
|
53
|
+
eq: "eq";
|
|
54
|
+
ne: "ne";
|
|
55
|
+
gt: "gt";
|
|
56
|
+
gte: "gte";
|
|
57
|
+
lt: "lt";
|
|
58
|
+
lte: "lte";
|
|
59
|
+
contains: "contains";
|
|
60
|
+
not_contains: "not_contains";
|
|
61
|
+
not_in: "not_in";
|
|
62
|
+
}>;
|
|
63
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodBoolean]>;
|
|
64
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
65
|
+
operator: z.ZodEnum<{
|
|
66
|
+
and: "and";
|
|
67
|
+
or: "or";
|
|
68
|
+
}> | z.ZodDefault<z.ZodEnum<{
|
|
69
|
+
AND: "AND";
|
|
70
|
+
OR: "OR";
|
|
71
|
+
}>>;
|
|
72
|
+
value: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
73
|
+
property: z.ZodEnum<{
|
|
74
|
+
status: "status";
|
|
75
|
+
name: "name";
|
|
76
|
+
priority: "priority";
|
|
77
|
+
summary: "summary";
|
|
78
|
+
path_status: "path_status";
|
|
79
|
+
target: "target";
|
|
80
|
+
serial_id: "serial_id";
|
|
81
|
+
mitre_id: "mitre_id";
|
|
82
|
+
state: "state";
|
|
83
|
+
created: "created";
|
|
84
|
+
last_updated_at: "last_updated_at";
|
|
85
|
+
tactics: "tactics";
|
|
86
|
+
steps: "steps";
|
|
87
|
+
asset_exposure: "asset_exposure";
|
|
88
|
+
blast_radius: "blast_radius";
|
|
89
|
+
asset_id: "asset_id";
|
|
90
|
+
freetext: "freetext";
|
|
91
|
+
finding_id: "finding_id";
|
|
92
|
+
technique: "technique";
|
|
93
|
+
weakness_id: "weakness_id";
|
|
94
|
+
critical_asset: "critical_asset";
|
|
95
|
+
data_source: "data_source";
|
|
96
|
+
apa_aes: "apa_aes";
|
|
97
|
+
acr: "acr";
|
|
98
|
+
procedureName: "procedureName";
|
|
99
|
+
source: "source";
|
|
100
|
+
cause: "cause";
|
|
101
|
+
}>;
|
|
102
|
+
operator: z.ZodEnum<{
|
|
103
|
+
in: "in";
|
|
104
|
+
eq: "eq";
|
|
105
|
+
ne: "ne";
|
|
106
|
+
gt: "gt";
|
|
107
|
+
gte: "gte";
|
|
108
|
+
lt: "lt";
|
|
109
|
+
lte: "lte";
|
|
110
|
+
contains: "contains";
|
|
111
|
+
not_contains: "not_contains";
|
|
112
|
+
not_in: "not_in";
|
|
113
|
+
}>;
|
|
114
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodBoolean]>;
|
|
115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
116
|
+
operator: z.ZodEnum<{
|
|
117
|
+
and: "and";
|
|
118
|
+
or: "or";
|
|
119
|
+
}> | z.ZodDefault<z.ZodEnum<{
|
|
120
|
+
AND: "AND";
|
|
121
|
+
OR: "OR";
|
|
122
|
+
}>>;
|
|
123
|
+
value: z.ZodArray<z.ZodObject<{
|
|
124
|
+
property: z.ZodEnum<{
|
|
125
|
+
status: "status";
|
|
126
|
+
name: "name";
|
|
127
|
+
priority: "priority";
|
|
128
|
+
summary: "summary";
|
|
129
|
+
path_status: "path_status";
|
|
130
|
+
target: "target";
|
|
131
|
+
serial_id: "serial_id";
|
|
132
|
+
mitre_id: "mitre_id";
|
|
133
|
+
state: "state";
|
|
134
|
+
created: "created";
|
|
135
|
+
last_updated_at: "last_updated_at";
|
|
136
|
+
tactics: "tactics";
|
|
137
|
+
steps: "steps";
|
|
138
|
+
asset_exposure: "asset_exposure";
|
|
139
|
+
blast_radius: "blast_radius";
|
|
140
|
+
asset_id: "asset_id";
|
|
141
|
+
freetext: "freetext";
|
|
142
|
+
finding_id: "finding_id";
|
|
143
|
+
technique: "technique";
|
|
144
|
+
weakness_id: "weakness_id";
|
|
145
|
+
critical_asset: "critical_asset";
|
|
146
|
+
data_source: "data_source";
|
|
147
|
+
apa_aes: "apa_aes";
|
|
148
|
+
acr: "acr";
|
|
149
|
+
procedureName: "procedureName";
|
|
150
|
+
source: "source";
|
|
151
|
+
cause: "cause";
|
|
152
|
+
}>;
|
|
153
|
+
operator: z.ZodEnum<{
|
|
154
|
+
in: "in";
|
|
155
|
+
eq: "eq";
|
|
156
|
+
ne: "ne";
|
|
157
|
+
gt: "gt";
|
|
158
|
+
gte: "gte";
|
|
159
|
+
lt: "lt";
|
|
160
|
+
lte: "lte";
|
|
161
|
+
contains: "contains";
|
|
162
|
+
not_contains: "not_contains";
|
|
163
|
+
not_in: "not_in";
|
|
164
|
+
}>;
|
|
165
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodBoolean]>;
|
|
166
|
+
}, z.core.$strict>>;
|
|
167
|
+
}, z.core.$strict>]>>;
|
|
168
|
+
}, z.core.$strict>]>;
|
|
169
|
+
export declare const attackCatalogue: Record<string, {
|
|
170
|
+
description: string;
|
|
171
|
+
operationId: string;
|
|
172
|
+
flags: Record<string, string>;
|
|
173
|
+
defaultFields: string[];
|
|
174
|
+
examples: string[];
|
|
175
|
+
evidence: string;
|
|
176
|
+
}>;
|