@jupiterone/jupiterone-mcp 2.6.1 → 2.7.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.
- package/README.md +122 -72
- package/dist/client/graphql/mutations.d.ts +16 -0
- package/dist/client/graphql/mutations.d.ts.map +1 -1
- package/dist/client/graphql/mutations.js +126 -1
- package/dist/client/graphql/mutations.js.map +1 -1
- package/dist/client/graphql/queries.d.ts +27 -2
- package/dist/client/graphql/queries.d.ts.map +1 -1
- package/dist/client/graphql/queries.js +96 -4
- package/dist/client/graphql/queries.js.map +1 -1
- package/dist/client/jupiterone-client.d.ts +30 -0
- package/dist/client/jupiterone-client.d.ts.map +1 -1
- package/dist/client/jupiterone-client.js +60 -0
- package/dist/client/jupiterone-client.js.map +1 -1
- package/dist/client/services/compliance-service.d.ts +48 -1
- package/dist/client/services/compliance-service.d.ts.map +1 -1
- package/dist/client/services/compliance-service.js +292 -0
- package/dist/client/services/compliance-service.js.map +1 -1
- package/dist/client/services/j1ql-service.d.ts +10 -2
- package/dist/client/services/j1ql-service.d.ts.map +1 -1
- package/dist/client/services/j1ql-service.js +11 -3
- package/dist/client/services/j1ql-service.js.map +1 -1
- package/dist/client/services/rule-service.d.ts +3 -1
- package/dist/client/services/rule-service.d.ts.map +1 -1
- package/dist/client/services/rule-service.js +7 -5
- package/dist/client/services/rule-service.js.map +1 -1
- package/dist/generated/description-map.d.ts.map +1 -1
- package/dist/generated/description-map.js +741 -59
- package/dist/generated/description-map.js.map +1 -1
- package/dist/server/mcp-server.d.ts.map +1 -1
- package/dist/server/mcp-server.js +42 -3
- package/dist/server/mcp-server.js.map +1 -1
- package/dist/server/skills.d.ts +25 -0
- package/dist/server/skills.d.ts.map +1 -0
- package/dist/server/skills.js +115 -0
- package/dist/server/skills.js.map +1 -0
- package/dist/server/tools/compliance/attestations.d.ts.map +1 -1
- package/dist/server/tools/compliance/attestations.js +20 -37
- package/dist/server/tools/compliance/attestations.js.map +1 -1
- package/dist/server/tools/compliance/authoring.d.ts +3 -0
- package/dist/server/tools/compliance/authoring.d.ts.map +1 -0
- package/dist/server/tools/compliance/authoring.js +773 -0
- package/dist/server/tools/compliance/authoring.js.map +1 -0
- package/dist/server/tools/compliance/controls.d.ts.map +1 -1
- package/dist/server/tools/compliance/controls.js +193 -19
- package/dist/server/tools/compliance/controls.js.map +1 -1
- package/dist/server/tools/compliance/exemptions.d.ts +3 -0
- package/dist/server/tools/compliance/exemptions.d.ts.map +1 -0
- package/dist/server/tools/compliance/exemptions.js +287 -0
- package/dist/server/tools/compliance/exemptions.js.map +1 -0
- package/dist/server/tools/compliance/framework.d.ts +3 -0
- package/dist/server/tools/compliance/framework.d.ts.map +1 -0
- package/dist/server/tools/compliance/framework.js +445 -0
- package/dist/server/tools/compliance/framework.js.map +1 -0
- package/dist/server/tools/compliance/graph.d.ts +56 -0
- package/dist/server/tools/compliance/graph.d.ts.map +1 -0
- package/dist/server/tools/compliance/graph.js +115 -0
- package/dist/server/tools/compliance/graph.js.map +1 -0
- package/dist/server/tools/compliance/index.d.ts +2 -16
- package/dist/server/tools/compliance/index.d.ts.map +1 -1
- package/dist/server/tools/compliance/index.js +45 -15
- package/dist/server/tools/compliance/index.js.map +1 -1
- package/dist/server/tools/compliance/requirements.d.ts +3 -0
- package/dist/server/tools/compliance/requirements.d.ts.map +1 -0
- package/dist/server/tools/compliance/requirements.js +243 -0
- package/dist/server/tools/compliance/requirements.js.map +1 -0
- package/dist/server/tools/compliance/schemas.d.ts +409 -8
- package/dist/server/tools/compliance/schemas.d.ts.map +1 -1
- package/dist/server/tools/compliance/schemas.js +337 -7
- package/dist/server/tools/compliance/schemas.js.map +1 -1
- package/dist/server/tools/compliance/shared.d.ts +103 -1
- package/dist/server/tools/compliance/shared.d.ts.map +1 -1
- package/dist/server/tools/compliance/shared.js +235 -1
- package/dist/server/tools/compliance/shared.js.map +1 -1
- package/dist/server/tools/compliance/summary.d.ts +2 -8
- package/dist/server/tools/compliance/summary.d.ts.map +1 -1
- package/dist/server/tools/compliance/summary.js +149 -87
- package/dist/server/tools/compliance/summary.js.map +1 -1
- package/dist/server/tools/compliance/tests.d.ts +3 -0
- package/dist/server/tools/compliance/tests.d.ts.map +1 -0
- package/dist/server/tools/compliance/tests.js +463 -0
- package/dist/server/tools/compliance/tests.js.map +1 -0
- package/dist/server/tools/compliance/transitions.d.ts +6 -0
- package/dist/server/tools/compliance/transitions.d.ts.map +1 -0
- package/dist/server/tools/compliance/transitions.js +659 -0
- package/dist/server/tools/compliance/transitions.js.map +1 -0
- package/dist/server/tools/dashboards.d.ts.map +1 -1
- package/dist/server/tools/dashboards.js +16 -4
- package/dist/server/tools/dashboards.js.map +1 -1
- package/dist/server/tools/errors.d.ts +11 -1
- package/dist/server/tools/errors.d.ts.map +1 -1
- package/dist/server/tools/errors.js +16 -1
- package/dist/server/tools/errors.js.map +1 -1
- package/dist/server/tools/integrations.d.ts.map +1 -1
- package/dist/server/tools/integrations.js +48 -51
- package/dist/server/tools/integrations.js.map +1 -1
- package/dist/server/tools/reference.d.ts +1 -1
- package/dist/server/tools/reference.d.ts.map +1 -1
- package/dist/server/tools/reference.js +1 -0
- package/dist/server/tools/reference.js.map +1 -1
- package/dist/server/tools/result.d.ts +3 -2
- package/dist/server/tools/result.d.ts.map +1 -1
- package/dist/server/tools/result.js +3 -2
- package/dist/server/tools/result.js.map +1 -1
- package/dist/server/tools/rules.d.ts.map +1 -1
- package/dist/server/tools/rules.js +19 -21
- package/dist/server/tools/rules.js.map +1 -1
- package/dist/server/tools/types.d.ts +2 -0
- package/dist/server/tools/types.d.ts.map +1 -1
- package/dist/server/tools/types.js.map +1 -1
- package/dist/server/tools/usage.d.ts +21 -7
- package/dist/server/tools/usage.d.ts.map +1 -1
- package/dist/server/tools/usage.js +490 -8
- package/dist/server/tools/usage.js.map +1 -1
- package/dist/server/tools/value-probe.d.ts +1 -1
- package/dist/server/tools/value-probe.d.ts.map +1 -1
- package/dist/server/tools/value-probe.js +126 -1
- package/dist/server/tools/value-probe.js.map +1 -1
- package/dist/server/tools/widget-config-lint.d.ts +5 -3
- package/dist/server/tools/widget-config-lint.d.ts.map +1 -1
- package/dist/server/tools/widget-config-lint.js +74 -71
- package/dist/server/tools/widget-config-lint.js.map +1 -1
- package/dist/server/tools/widget-percentage.d.ts +63 -0
- package/dist/server/tools/widget-percentage.d.ts.map +1 -0
- package/dist/server/tools/widget-percentage.js +115 -0
- package/dist/server/tools/widget-percentage.js.map +1 -0
- package/dist/server/tools/widget-preflight.d.ts +8 -1
- package/dist/server/tools/widget-preflight.d.ts.map +1 -1
- package/dist/server/tools/widget-preflight.js +36 -5
- package/dist/server/tools/widget-preflight.js.map +1 -1
- package/dist/server/tools/widget-render-contract.d.ts.map +1 -1
- package/dist/server/tools/widget-render-contract.js +21 -9
- package/dist/server/tools/widget-render-contract.js.map +1 -1
- package/dist/types/jupiterone.d.ts +179 -0
- package/dist/types/jupiterone.d.ts.map +1 -1
- package/dist/utils/dashboard-variables.d.ts +8 -0
- package/dist/utils/dashboard-variables.d.ts.map +1 -0
- package/dist/utils/dashboard-variables.js +54 -0
- package/dist/utils/dashboard-variables.js.map +1 -0
- package/dist/utils/j1ql-filters.d.ts +15 -0
- package/dist/utils/j1ql-filters.d.ts.map +1 -1
- package/dist/utils/j1ql-filters.js +37 -16
- package/dist/utils/j1ql-filters.js.map +1 -1
- package/dist/utils/j1ql-validator.d.ts +1 -0
- package/dist/utils/j1ql-validator.d.ts.map +1 -1
- package/dist/utils/j1ql-validator.js +260 -19
- package/dist/utils/j1ql-validator.js.map +1 -1
- package/node_modules/dtrace-provider/build/Makefile +1 -1
- package/package.json +3 -3
|
@@ -3,6 +3,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.descriptionMap = void 0;
|
|
4
4
|
/* AUTO-GENERATED — DO NOT EDIT MANUALLY */
|
|
5
5
|
exports.descriptionMap = {
|
|
6
|
+
"check-compliance-coverage.md": `Check whether a standard, framework or control topic is already covered in JupiterOne Compliance (CCM) before assessing it by hand or creating anything: is the framework loaded, importable from JupiterOne's library, or absent, and which existing controls already address a topic and can be reused. Call it when a question names a standard, benchmark or named control (SOC 2, ISO 27001, CIS, PCI DSS, NIST, HIPAA, "our MFA control"). Siblings: \`get-compliance-summary\` for posture, \`list-controls\` for the full list. Vocabulary: coverage, covered, framework, standard, benchmark, library, reuse, gap.
|
|
7
|
+
|
|
8
|
+
## Parameters
|
|
9
|
+
|
|
10
|
+
At least one of \`framework\` (a standard's name or a fragment: "CIS AWS", "SOC 2", "PCI DSS 4") and \`topic\` (a control subject: "MFA for console users", "S3 encryption"). Both together answer both questions in one call.
|
|
11
|
+
|
|
12
|
+
## Outcomes
|
|
13
|
+
|
|
14
|
+
- \`verdict\`: \`covered\` (LIVE controls with tests exist for it), \`partial\` (controls exist but are DRAFT, REVIEW or without tests; \`draftCount\` says how many are drafts, which is why a framework can read "0 passing, 0 failing"), \`importable\` (not loaded, but JupiterOne's library has it: \`importable[]\` carries \`source\` and \`sourceId\` for \`import-framework\`), \`not_covered\`.
|
|
15
|
+
- \`frameworks[]\`: the loaded frameworks that matched, with \`id\`, \`name\`, \`source\`, \`url\`.
|
|
16
|
+
- \`controls[]\`: up to 25 existing controls matching the topic, with \`id\`, \`name\`, \`identifier\`, \`state\`, \`status\`, \`testCount\`, \`frameworkNames\`, \`url\`. These are reuse candidates for \`link-controls\`; a control can serve several requirements and frameworks.
|
|
17
|
+
- \`nextStep\`: the call that acts on the verdict, ready to run.
|
|
18
|
+
- Error \`read_failed:\` the loaded framework list could not be read in time, so there is no verdict. Call again.
|
|
19
|
+
|
|
20
|
+
An empty \`controls[]\` with \`not_covered\` means nothing matched the words given, not that no related control exists; try another phrasing before creating. The legacy Compliance app is never consulted.
|
|
21
|
+
|
|
22
|
+
## Access
|
|
23
|
+
|
|
24
|
+
Needs the Compliance (CCM) entitlement and control read permission; an access-denied error names the missing one. The library search needs no permission beyond the entitlement.
|
|
25
|
+
|
|
26
|
+
## Example
|
|
27
|
+
|
|
28
|
+
\`{ "framework": "CIS AWS Foundations", "topic": "root account MFA" }\`
|
|
29
|
+
|
|
30
|
+
Full reference: get-reference topic framework-authoring
|
|
31
|
+
`,
|
|
6
32
|
"check-threat-exposure.md": `Answer, from this account's own graph, whether it is exposed to up to 25 CVEs: how many devices a vulnerability scanner has confirmed carry each one, a handle to drill into the affected assets, and whether any matched device is internet-facing. This is the direct, strict match on the unified vulnerability's \`cveId\`, so it sees only what a scanner has already fingerprinted for that CVE; \`get-threat\` briefs the CVE itself and \`get-threat-trending\` lists what is escalating. Vocabulary: exposure, exposed, affected, CVE, scanner, findings, KEV, internet-facing.
|
|
7
33
|
|
|
8
34
|
## Reading the result
|
|
@@ -38,7 +64,7 @@ Needs the account's VulnerabilityManagement entitlement and vulnerability read p
|
|
|
38
64
|
- \`blocked\` — a failing test or an expired, unrevoked attestation keeps the control failing whatever is attested (\`blockers\` lists each). Do not call the control covered: fix the test, or renew or revoke the expired attestation.
|
|
39
65
|
- \`passes_by_attestation\` — no test has a status and nothing blocks; the control passes once CCM re-scores it.
|
|
40
66
|
- \`already_passing\` — a passing test already passes the control; the attestation changes nothing.
|
|
41
|
-
- Refusals are errors starting with the outcome, \`structuredContent.controlId\` names the control, and nothing was created: \`not_found\`; \`not_live\` (
|
|
67
|
+
- Refusals are errors starting with the outcome, \`structuredContent.controlId\` names the control, and nothing was created: \`not_found\`; \`not_live\` (promote the control with \`transition-controls\`, then attest); \`invalid_input\` (\`expiresOn\` fails the rules above); \`interrupted\` (the write was cut off at the 55-second limit and may have landed; the error says how to confirm before creating again).
|
|
42
68
|
|
|
43
69
|
## Read-back
|
|
44
70
|
|
|
@@ -53,6 +79,58 @@ Needs the Compliance (CCM) entitlement and edit permission on the control's reso
|
|
|
53
79
|
\`{ "controlId": "<id>", "subject": "Log Management Policy v3", "expiresOn": "2027-06-30" }\`
|
|
54
80
|
|
|
55
81
|
Full reference: get-reference topic compliance-model
|
|
82
|
+
`,
|
|
83
|
+
"create-control-test.md": `Add one test to a JupiterOne Compliance (CCM) control: a J1QL query plus whether its rows are \`GOOD\` (compliant assets; the test never fails, and zero rows is a pass on no data) or \`BAD\` (violations; any row fails the test). The query is parsed and run before it is saved and its rows are reported, so prove the query with \`execute-j1ql-query\` first and create the test once the rows are the evidence an auditor would accept. One query per test. On a DRAFT control the test runs only when \`evaluate-controls\` asks. Vocabulary: control test, add test, evidence query, automated check, GOOD, BAD, J1QL.
|
|
84
|
+
|
|
85
|
+
## Parameters
|
|
86
|
+
|
|
87
|
+
\`controlId\` (exact id), \`testName\` (what the auditor would call the check), \`query\` (one J1QL query; a control that needs two checks gets two tests), \`resultsAre\` (\`GOOD\` or \`BAD\`), \`description\` (optional).
|
|
88
|
+
|
|
89
|
+
## Preflight
|
|
90
|
+
|
|
91
|
+
The query is parsed locally: a syntax error, or an alias returned from a negated (\`THAT !\`) step, returns \`invalid_input:\` with a hint, nothing is saved, and \`structuredContent.suggestion\` carries the fix, a ready-to-run query when one is known. A query that parses is then run once (up to 10 seconds, within the call's budget): \`rows\` is what it returned now, \`noDatapoints\` is true when it returned nothing, \`queryRun\` is \`ran\`, \`skipped_deadline\` or \`error\` (with the hint). A run the engine rejects outright is refused the same way. Nothing else blocks the create: a query that failed for another reason is saved, checks nothing until it runs, and \`nextStep\` says how to fix it; a GOOD test with zero rows proves nothing, and a BAD test with rows will fail the control once it is LIVE. Report all three to the user.
|
|
92
|
+
|
|
93
|
+
## Outcomes
|
|
94
|
+
|
|
95
|
+
- \`created\`: \`test\` with \`id\`, \`name\`, \`referencedRuleId\`, \`effective\` and \`url\`, the control's \`state\`, and \`nextStep\`. \`effective: false\` means the query names an entity type this account does not hold (\`unknownEntityType: true\`): the test will pass on no data until the data exists.
|
|
96
|
+
- \`already_exists\`: a non-deleted test on this control with this name (ignoring case); \`test\` carries it and nothing was created. Safe on replay; use \`update-control-test\` to change it.
|
|
97
|
+
- Errors: \`control_not_found:\`; \`invalid_input:\` (see Preflight; also an empty testName); \`read_failed:\` (the control could not be read in time; nothing was created; call again); \`interrupted:\` (cut off at the 55-second limit and may have landed: read the control's tests with \`get-control\` before creating again).
|
|
98
|
+
|
|
99
|
+
## Access
|
|
100
|
+
|
|
101
|
+
Needs the Compliance (CCM) entitlement and edit permission on the control's resource group; an access-denied error names the missing one.
|
|
102
|
+
|
|
103
|
+
## Example
|
|
104
|
+
|
|
105
|
+
\`{ "controlId": "ccm_c_…", "testName": "Okta users without MFA", "query": "FIND okta_user WITH status = 'ACTIVE' AND mfaEnabled != true AS u RETURN u.displayName, u.email", "resultsAre": "BAD" }\`
|
|
106
|
+
|
|
107
|
+
Full reference: get-reference topic framework-authoring
|
|
108
|
+
`,
|
|
109
|
+
"create-controls.md": `Create JupiterOne Compliance (CCM) controls under one requirement in a batch, in the customer's own words and identifiers. Controls land DRAFT for the user to review; promotion is a separate \`transition-controls\` call. Before creating, look for a control the account already holds (\`check-compliance-coverage\` with a \`topic\`, or \`list-controls\` with \`search\`) and attach it with \`link-controls\`: one control can serve many requirements. Tests come afterwards with \`create-control-test\`. Vocabulary: create control, new control, add controls, custom control, control register, author.
|
|
110
|
+
|
|
111
|
+
## Parameters
|
|
112
|
+
|
|
113
|
+
\`requirementId\` (from \`create-requirements\` or \`get-compliance-summary\` with \`includeRequirements\`) and \`controls[]\` (1 to 25). Each item: \`name\` (required), \`description\` (what the organisation does, naming the tool or process; specific enough to write a test from), \`identifier\` (the customer's id, kept verbatim), \`catalog\`, \`owner\` (an email), \`remediation\` and \`exceptionProcess\` (markdown), \`mitreTechnique\` (\`T1078\` or \`T1059.001\`), \`state\` (\`DRAFT\`, the default, or \`LIVE\`, which counts against the live-controls limit at once). Optional strings are omitted when absent.
|
|
114
|
+
|
|
115
|
+
## Outcomes
|
|
116
|
+
|
|
117
|
+
Always \`ok\` with one \`items[]\` entry per input, in order: \`created\` (with \`id\`, \`name\`, \`identifier\`, \`state\`, \`url\`), \`already_exists\` (a non-deleted control with this name, ignoring case, exists anywhere in the account; \`control\` carries its \`id\`, \`state\` and \`frameworkNames\`, nothing was created, and the way to use it for this requirement is \`link-controls\`), or \`refused\` (\`reason\` carries the backend's text). \`createdCount\`, \`existingCount\`, \`refusedCount\` summarise. A \`live_limit\` refusal on a LIVE item carries the backend's numbers verbatim and stops the rest of the batch; items after it are \`not_attempted\`.
|
|
118
|
+
|
|
119
|
+
\`nextStep\` names \`create-control-test\` for the automated controls and says to confirm the list with the user; attestation-only controls need no test and are attested once LIVE.
|
|
120
|
+
|
|
121
|
+
**Unfinished batches.** \`remaining\` counts items \`not_attempted\` (the call's budget ran out) and \`interrupted\` (cut off mid-create; it may have landed). \`nextInputs\` holds only the not-attempted items: call again with it, never with the whole batch. The duplicate check reads the graph, which lags a create by up to a minute, so resending items created moments ago makes second copies. Look \`interrupted\` items up with \`list-controls\` \`search\` after a minute before creating them again, and do the same after a call that returned no response at all. A single create took 41 s on a slow backend, so keep batches small when calls run long.
|
|
122
|
+
|
|
123
|
+
Errors: \`requirement_not_found:\`; \`invalid_input:\` (empty batch, item without a name, malformed owner or MITRE id); \`read_failed:\` (the requirement or the account's existing controls could not be read, or more existing controls match the names than one call reads; use more distinctive names). Nothing was created.
|
|
124
|
+
|
|
125
|
+
## Access
|
|
126
|
+
|
|
127
|
+
Needs the Compliance (CCM) entitlement and control create permission in the resource group; an access-denied error names the missing one.
|
|
128
|
+
|
|
129
|
+
## Example
|
|
130
|
+
|
|
131
|
+
\`{ "requirementId": "<id>", "controls": [{ "name": "MFA enforced for all Okta users", "identifier": "6.1.2", "description": "MFA is enforced through Okta sign-on policies for every active user." }] }\`
|
|
132
|
+
|
|
133
|
+
Full reference: get-reference topic framework-authoring
|
|
56
134
|
`,
|
|
57
135
|
"create-dashboard-widget.md": `Add one widget to an existing dashboard: J1QL queries drawn as a chart. The render contract is
|
|
58
136
|
enforced: a query whose RETURN aliases are not the ones the chart type reads is rejected before
|
|
@@ -87,10 +165,13 @@ Always set \`noResultMessage\`; it is what lets a reader tell "nothing matched"
|
|
|
87
165
|
Settings nest under the chart type (\`settings.bar.decimalLimit\`); a key the service does not know
|
|
88
166
|
is dropped silently on save, the write still succeeds, and \`droppedSettingsKeys\` names what was
|
|
89
167
|
discarded. Each query may carry a \`drilldownQuery\`, validated like the widget query. A proportion
|
|
90
|
-
is a percentage number widget:
|
|
91
|
-
\`settings.number.showAsPercentage: true
|
|
92
|
-
matching no query is rejected before writing)
|
|
93
|
-
|
|
168
|
+
is a percentage number widget: a numerator query and a query counting the whole population, each
|
|
169
|
+
returning \`count(x) AS value\`, with \`settings.number.showAsPercentage: true\`, \`numeratorQueryName\`
|
|
170
|
+
(one comma-joined string; a name matching no query is rejected before writing) and
|
|
171
|
+
\`includeNumeratorInTotal: false\`. Left out, JupiterOne divides by every query, numerator included,
|
|
172
|
+
so the write is refused until it is set; \`true\` is for queries that split the population
|
|
173
|
+
(\`Patched\` + \`Unpatched\`). \`renderPreflight.percentage\` reports the figure drawn. Thresholds,
|
|
174
|
+
labels and trend keys: see \`widget-settings\`.
|
|
94
175
|
|
|
95
176
|
## Response
|
|
96
177
|
|
|
@@ -111,6 +192,52 @@ user, so it can only create \`Account\` dashboards; a \`User\` request is refuse
|
|
|
111
192
|
## Response
|
|
112
193
|
|
|
113
194
|
\`id\` is the \`dashboardId\` every later call takes; \`url\` opens the board, give it to the user.
|
|
195
|
+
`,
|
|
196
|
+
"create-exemptions.md": `Exempt specific assets from a JupiterOne Compliance (CCM) control test so they stop failing it: a risk the organisation accepts, an asset the test does not apply to, a false positive, or one covered by a compensating control, with a justification and an optional expiry. One call records one decision for many entities, taken from the test's latest evaluation rows. An attestation covers a whole control; an exemption covers assets within one test. Vocabulary: exempt, exception, risk accepted, not applicable, false positive, compensating control, exclude asset, waiver.
|
|
197
|
+
|
|
198
|
+
## Parameters
|
|
199
|
+
|
|
200
|
+
\`controlTestId\`; \`entities[]\` (1 to 50) of \`entityId\` (the graph \`_id\`) with optional \`entityKey\`, \`entityScope\`, \`entityType\`, \`entityDisplayName\` as the evaluation rows carry them (\`get-control\` gives the test's \`latestEvaluation.rawDataKey\`; \`get-rule-evaluation-query-results\` gives the rows: a \`list\` row is the entity, and a \`table\` row carries it under \`_meta.byAlias.<alias>.entity\` with \`_id\`, \`_key\`, \`_scope\`, \`_type\`); \`exemptionReason\` (\`RISK_ACCEPTED\`, \`NOT_APPLICABLE\`, \`FALSE_POSITIVE\`, \`COMPENSATING_CONTROL\`); \`justification\` (required; what an auditor should read); \`expiresOn\` (optional; a date, the end of that day UTC, or a date-time; omitted means the exemption never expires).
|
|
201
|
+
|
|
202
|
+
## Outcomes
|
|
203
|
+
|
|
204
|
+
- \`created\`: \`groupId\` (shared by every entity in this decision; \`revoke-exemptions\` takes it), \`count\`, the test's \`name\` and the control's \`id\`, \`name\`, \`url\`, and \`replaced[]\`: earlier active exemptions on the same assets that this filing overwrote (one per asset is kept, whoever filed it; \`replacedComplete: false\` when they could not all be read), and \`note\` that the control's status changes on the test's next evaluation (\`evaluate-controls\` to run it now). Re-exempting an entity replaces its earlier exemption and files it under the new call's \`groupId\`, so after a repeat the earlier \`groupId\` holds none of those entities.
|
|
205
|
+
- \`not_eligible\`: nothing written; \`message\` is the backend's own reason (the test has no stored evaluation, its query changed since that evaluation, or its shape cannot take exemptions). Evaluate the test again and re-read the rows before retrying.
|
|
206
|
+
- Errors: \`test_not_found:\`; \`invalid_input:\` (empty entities, an empty justification, an expiry in the past, an unknown reason); \`read_failed:\` (the test or its latest evaluation could not be read in time; nothing was filed; call again); \`interrupted:\` (cut off at the 55-second limit and may have landed; read the test's \`exemptions\` on \`get-control\` before repeating, since a repeat re-groups the entities).
|
|
207
|
+
|
|
208
|
+
## Access
|
|
209
|
+
|
|
210
|
+
Needs the Compliance (CCM) entitlement and edit permission on the control's resource group; an access-denied error names the missing one.
|
|
211
|
+
|
|
212
|
+
## Example
|
|
213
|
+
|
|
214
|
+
\`{ "controlTestId": "<id>", "entities": [{ "entityId": "<graph _id>", "entityKey": "arn:aws:s3:::logs-archive-bucket", "entityScope": "<_scope>", "entityType": "aws_s3_bucket", "entityDisplayName": "logs-archive-bucket" }], "exemptionReason": "NOT_APPLICABLE", "justification": "Public by design: it serves the status page.", "expiresOn": "2027-12-31" }\`
|
|
215
|
+
|
|
216
|
+
Full reference: get-reference topic framework-authoring
|
|
217
|
+
`,
|
|
218
|
+
"create-framework.md": `Create an empty JupiterOne Compliance (CCM) framework for a customer's own compliance program, the first step of incremental authoring: framework, then \`create-requirements\`, then \`create-controls\` or \`link-controls\`, then \`create-control-test\`. Everything authored lands DRAFT for the user to review; \`transition-controls\` promotes it later. For a standard JupiterOne already ships, \`import-framework\` loads the prebuilt version instead. Vocabulary: new framework, custom framework, internal policy, control register, compliance program, build, author.
|
|
219
|
+
|
|
220
|
+
## Parameters
|
|
221
|
+
|
|
222
|
+
\`title\` (the program's name as the customer calls it) and \`description\` are required; \`owner\` (an email) and \`resourceGroupId\` are optional and omitted when absent.
|
|
223
|
+
|
|
224
|
+
## Outcomes
|
|
225
|
+
|
|
226
|
+
- \`created\`: \`framework\` with \`id\`, \`name\`, \`url\`. \`nextStep\` names \`create-requirements\` and says to show the proposed sections and requirements to the user first.
|
|
227
|
+
- \`already_exists\`: a non-deleted framework with this title (ignoring case) exists; \`framework\` carries it and nothing was created. A normal result, safe on replay; continue with its id, or choose another name if the user wants a second program.
|
|
228
|
+
- Error \`invalid_input:\` an empty name or a malformed owner email; nothing was called.
|
|
229
|
+
- Error \`read_failed:\` the framework list could not be read in time or was cut short, so a framework with this title cannot be ruled out; nothing was created. Call again.
|
|
230
|
+
- Error \`interrupted:\` the call was cut off at the 55-second limit and may have landed. The framework list lags a create by up to a minute: wait a minute, then read \`get-compliance-summary\` (the \`frameworks\` list) before creating again.
|
|
231
|
+
|
|
232
|
+
## Access
|
|
233
|
+
|
|
234
|
+
Needs the Compliance (CCM) entitlement and framework create permission; an access-denied error names the missing one.
|
|
235
|
+
|
|
236
|
+
## Example
|
|
237
|
+
|
|
238
|
+
\`{ "title": "ACME Security Policy", "description": "Internal controls for ACME, mapped to SOC 2." }\`
|
|
239
|
+
|
|
240
|
+
Full reference: get-reference topic framework-authoring
|
|
114
241
|
`,
|
|
115
242
|
"create-inline-question-rule.md": `Create an alert rule from an inline J1QL question: the query runs on a schedule and, when its condition holds, the actions fire (alert, email, Slack, Jira ticket, tag, webhook, S3). Test the query with \`execute-j1ql-query\` first; the rule stores it as written. Siblings: \`update-inline-question-rule\` replaces an existing rule, \`get-rule-details\` reads one, \`list-rules\` finds them, \`evaluate-rule\` runs one now. Vocabulary: rule, alert, monitor, notify, schedule, polling interval, condition, actions, labels.
|
|
116
243
|
|
|
@@ -133,6 +260,68 @@ Types: \`SET_PROPERTY\`, \`CREATE_ALERT\`, \`SEND_EMAIL\`, \`TAG_ENTITIES\`, \`S
|
|
|
133
260
|
A \`name\` starting \`CONTROL-TEST:\` is refused with \`lintCode: 'ccm-managed-rule'\` (the prefix marks compliance control tests). A query that fails to parse returns the parser's suggestion and creates nothing. The response carries \`rule.url\`; give it to the user.
|
|
134
261
|
|
|
135
262
|
Full reference: get-reference topic rule-authoring
|
|
263
|
+
`,
|
|
264
|
+
"create-requirements.md": `Add requirements to a JupiterOne Compliance (CCM) framework in one batch: the obligations a standard or an internal program states, each with the standard's own identifier and wording, grouped by \`section\`. One call per section is the natural unit, and the user reviews the list before controls go under it. Framework ids come from \`create-framework\` or \`get-compliance-summary\`. Siblings: \`create-controls\` and \`link-controls\` fill a requirement. Vocabulary: requirements, criteria, obligations, sections, control objectives, CC6.1, A.9.1.1, add requirements.
|
|
265
|
+
|
|
266
|
+
## Parameters
|
|
267
|
+
|
|
268
|
+
\`frameworkId\` and \`requirements[]\` (1 to 50). Each item: \`title\` (required; the obligation in the standard's words), \`description\`, \`identifier\` (the standard's id, such as \`CC6.1\`), \`section\` (the grouping shown in the app), \`priority\` (\`CRITICAL\`, \`HIGH\`, \`MEDIUM\`, \`LOW\`). Optional strings are omitted when absent, never sent empty.
|
|
269
|
+
|
|
270
|
+
## Outcomes
|
|
271
|
+
|
|
272
|
+
Always \`ok\` with one \`items[]\` entry per input, in order: \`outcome\` \`created\` (with \`id\`, \`title\`, \`identifier\`, \`section\`), \`already_exists\` (a non-deleted requirement in this framework with the same \`identifier\`, or the same \`title\` when no identifier was given, ignoring case; its \`id\` is returned and nothing was created) or \`refused\` (the backend rejected this item; \`reason\` carries its text). \`createdCount\`, \`existingCount\`, \`refusedCount\` summarise; one refused item never stops the others. \`framework.url\` opens the framework. \`nextStep\` names \`create-controls\` and \`link-controls\` per requirement and says to confirm the structure with the user first.
|
|
273
|
+
|
|
274
|
+
Errors: \`framework_not_found:\` no framework has this id; \`invalid_input:\` an empty batch, an item without a title, or an unknown priority; nothing was called. \`read_failed:\` the framework's existing requirements could not be read, so nothing was created (a create without that read could duplicate); call again. A call cut off at the 55-second limit comes back with items \`interrupted\`, or with no response at all, and some items may have landed. The duplicate check reads the API, so calling again with the same input is safe: landed items come back \`already_exists\`.
|
|
275
|
+
|
|
276
|
+
## Access
|
|
277
|
+
|
|
278
|
+
Needs the Compliance (CCM) entitlement and framework edit permission; an access-denied error names the missing one.
|
|
279
|
+
|
|
280
|
+
## Example
|
|
281
|
+
|
|
282
|
+
\`{ "frameworkId": "<id>", "requirements": [{ "title": "Logical access security over protected assets", "identifier": "CC6.1", "section": "Logical and Physical Access" }] }\`
|
|
283
|
+
|
|
284
|
+
Full reference: get-reference topic framework-authoring
|
|
285
|
+
`,
|
|
286
|
+
"delete-control-test.md": `Remove a test from a JupiterOne Compliance (CCM) control, for a test created by mistake or made obsolete by another. The test is soft-deleted (its rule stops running) and the control's status then follows its remaining tests and attestations; to change what a test checks, use \`update-control-test\` instead. Test ids come from \`get-control\` (\`tests[].id\`). Vocabulary: delete test, remove test, drop test, undo test, wrong control.
|
|
287
|
+
|
|
288
|
+
## Outcomes
|
|
289
|
+
|
|
290
|
+
- \`deleted\`: \`test\` (\`id\`, \`name\`), \`deletedTestStatus\` (its last result), the control's \`id\`, \`name\`, \`state\`, \`url\`, and \`note\` saying what now decides the control's status (remaining tests, attestations, or nothing until a test or attestation exists).
|
|
291
|
+
- \`not_deletable\`: nothing changed; the control is LIVE and this is a failing test (\`reason\` \`failing_test_on_live\`: the control would pass on its next run) or its last test (\`last_test_on_live\`: its status would clear). Fix the query with \`update-control-test\`, exempt assets with \`create-exemptions\`, or move the control to REVIEW with \`transition-controls\` first.
|
|
292
|
+
- \`not_found\`: no non-deleted test has this id, which is also what a repeated delete sees; nothing changed. A normal result.
|
|
293
|
+
- Error \`read_failed:\` the test could not be read in time, so nothing was deleted; call again.
|
|
294
|
+
- Error \`interrupted:\` the call was cut off at the 55-second limit and may have landed; calling again is safe, and \`not_found\` confirms it.
|
|
295
|
+
|
|
296
|
+
## Access
|
|
297
|
+
|
|
298
|
+
Needs the Compliance (CCM) entitlement and edit permission on the control's resource group; an access-denied error names the missing one.
|
|
299
|
+
|
|
300
|
+
## Example
|
|
301
|
+
|
|
302
|
+
\`{ "controlTestId": "<id from get-control>" }\`
|
|
303
|
+
|
|
304
|
+
Full reference: get-reference topic framework-authoring
|
|
305
|
+
`,
|
|
306
|
+
"delete-control.md": `Delete a JupiterOne Compliance (CCM) control that was created by mistake while authoring. This is a hard delete: the control and its tests are removed and any attestations on it are purged, so it is accepted only for a DRAFT control that was never scored and never attested (revoked attestations count). A LIVE control leaves the program with \`transition-controls\` to RETIRED, which keeps its history. A control under the wrong requirement is moved with \`update-control\` (\`requirementIds\`), not deleted. Vocabulary: delete control, remove control, undo create, discard draft, mistake.
|
|
307
|
+
|
|
308
|
+
## Outcomes
|
|
309
|
+
|
|
310
|
+
- \`deleted\`: the control's \`id\` and \`name\`, \`testsRemoved\`, and the \`requirements[]\` it was linked to (\`id\`, \`title\`), so a replacement can be created under them.
|
|
311
|
+
- \`not_deletable\`: nothing changed; \`reason\` is \`state\` (not DRAFT), \`was_live\` (it has been scored as a LIVE control) or \`has_attestations\` (revoked ones included). \`nextStep\` fits the state: LIVE → RETIRED with \`transition-controls\`; REVIEW → back to DRAFT, then delete; a DRAFT with history stays a DRAFT (never scored) or is detached with \`update-control\`.
|
|
312
|
+
- \`not_found\`: no control has this id, which is also what a repeated delete sees; nothing changed.
|
|
313
|
+
- Error \`read_failed:\` the control or its attestations could not be read in time, so nothing was deleted; call again.
|
|
314
|
+
- Error \`interrupted:\` the call was cut off at the 55-second limit and may have landed; calling again is safe, and \`not_found\` confirms it.
|
|
315
|
+
|
|
316
|
+
## Access
|
|
317
|
+
|
|
318
|
+
Needs the Compliance (CCM) entitlement and delete permission on the control's resource group; an access-denied error names the missing one.
|
|
319
|
+
|
|
320
|
+
## Example
|
|
321
|
+
|
|
322
|
+
\`{ "controlId": "ccm_c_JSON_…" }\`
|
|
323
|
+
|
|
324
|
+
Full reference: get-reference topic framework-authoring
|
|
136
325
|
`,
|
|
137
326
|
"delete-dashboard-widget.md": `Delete one widget from a dashboard: the recovery path for a widget created by mistake or no
|
|
138
327
|
longer wanted. This is destructive and irreversible: confirm the \`widgetId\` with
|
|
@@ -158,6 +347,30 @@ JupiterOne Compliance (CCM) runs each control test as a rule named \`CONTROL-TES
|
|
|
158
347
|
## Response
|
|
159
348
|
|
|
160
349
|
\`ruleId\` as passed, \`id\` the backend confirmed deleted, and \`ccmOwnership\`: \`'clear'\` on a delete, \`'managed'\` or \`'unverified'\` on a refusal.
|
|
350
|
+
`,
|
|
351
|
+
"evaluate-controls.md": `Run the tests of JupiterOne Compliance (CCM) controls now, in a batch, instead of waiting for the daily run: the way a DRAFT or REVIEW control proves its tests before promotion, and the way to re-check a LIVE control after a fix. Results take minutes and are read with \`get-control\`. A non-LIVE control's tests gain a status; the control itself stays unscored until it is LIVE. Siblings: \`get-control\` reads the result, \`update-control-test\` fixes a query, \`transition-controls\` promotes. Vocabulary: evaluate, run tests now, re-check, prove draft, trigger evaluation, refresh status.
|
|
352
|
+
|
|
353
|
+
## Parameters
|
|
354
|
+
|
|
355
|
+
\`controlIds[]\`: 1 to 25 exact control ids.
|
|
356
|
+
|
|
357
|
+
## Outcomes
|
|
358
|
+
|
|
359
|
+
Always \`ok\` with one \`items[]\` entry per id: \`queued\` (with the control's \`name\`, \`state\`, \`testCount\`), \`no_tests\` (nothing to run; the control passes only by attestation once LIVE), or \`not_found\`. \`queuedCount\` summarises. \`nextStep\` says to wait a few minutes, then \`get-control\` on each: on a LIVE control \`status\` and \`statusExplanation\` follow the tests; on a DRAFT or REVIEW control \`statusExplanation\` stays \`not_live\` and \`testsRan\`, \`testsPassing\`, \`testsFailing\` carry the proof, with each test's \`status\` and \`lastEvaluatedOn\` under \`tests[]\`.
|
|
360
|
+
|
|
361
|
+
Each call queues a fresh run, so repeat it only when a query changed or data moved; the daily run covers LIVE controls on its own.
|
|
362
|
+
|
|
363
|
+
Errors: \`invalid_input:\` (empty list, or an id containing a quote); a call cut off at the 55-second limit comes back with items \`interrupted\`, or with no response; runs already queued complete on their own, so read back with \`get-control\` before queueing again. Items the budget did not reach are not queued; \`nextStep\` names them.
|
|
364
|
+
|
|
365
|
+
## Access
|
|
366
|
+
|
|
367
|
+
Needs the Compliance (CCM) entitlement and edit permission on each control's resource group; an access-denied error names the missing one.
|
|
368
|
+
|
|
369
|
+
## Example
|
|
370
|
+
|
|
371
|
+
\`{ "controlIds": ["ccm_c_JSON_…", "ccm_c_JSON_…"] }\`
|
|
372
|
+
|
|
373
|
+
Full reference: get-reference topic framework-authoring
|
|
161
374
|
`,
|
|
162
375
|
"evaluate-rule.md": `Run an alert rule now rather than at its next polling interval. The response carries only the evaluation's \`id\`, not its results: read the outcome with \`list-rule-evaluations\` and \`get-rule-evaluation-details\`. Vocabulary: run the rule now, trigger an evaluation, re-check.
|
|
163
376
|
`,
|
|
@@ -172,7 +385,8 @@ LIMIT and cursor.
|
|
|
172
385
|
## Syntax rules
|
|
173
386
|
|
|
174
387
|
- The alias follows the WITH filter: \`FIND Device WITH name ~= 'x' AS dev\`.
|
|
175
|
-
- String literals use single quotes.
|
|
388
|
+
- String literals use single quotes. Comparison is case-sensitive, \`~=\` included; \`= /x/i\` is the
|
|
389
|
+
only case-insensitive match, and its regex takes no \`|\` or anchors.
|
|
176
390
|
- WITH filters an entity's own properties (indexed); WHERE is for edge properties and
|
|
177
391
|
cross-entity comparisons, and needs aliases.
|
|
178
392
|
- Direction arrows follow the verb: \`FIND User THAT HAS >> Device\`.
|
|
@@ -180,8 +394,8 @@ LIMIT and cursor.
|
|
|
180
394
|
- \`LIMIT\` is at most 250; every query carries an aggregate or a \`LIMIT\`. Page with \`cursor\`,
|
|
181
395
|
never \`SKIP\`.
|
|
182
396
|
- SQL habits do not parse: \`IN (...)\` is \`= ('a' OR 'b')\` (\`!=\` excludes them all), \`LIKE '%x%'\`
|
|
183
|
-
is \`~= 'x'
|
|
184
|
-
are the grouping keys.
|
|
397
|
+
is \`~= 'x'\` (case-sensitive), and \`DISTINCT\`, \`GROUP BY\` and \`JOIN\` do not exist; non-aggregated
|
|
398
|
+
RETURN columns are the grouping keys.
|
|
185
399
|
|
|
186
400
|
\`*\` is the only wildcard target; \`ANY\`, \`ANYTHING\` and \`entity\` parse and match nothing.
|
|
187
401
|
\`count(rel)\` counts edges, \`count(tar)\` distinct targets; say which one you report.
|
|
@@ -220,7 +434,7 @@ Full reference: get-reference topic j1ql-language or j1ql-discovery
|
|
|
220
434
|
|
|
221
435
|
## Parameters
|
|
222
436
|
|
|
223
|
-
\`frameworkId\` drills one framework and reads only its scorecard, faster on an account with many frameworks; \`frameworkName\` does the same by name
|
|
437
|
+
\`frameworkId\` drills one framework and reads only its scorecard, faster on an account with many frameworks; \`frameworkName\` does the same by name; \`frameworkIds\` scores a chosen set (up to 25) with no drill. More than one of the three is an \`invalid_input:\` error. \`includeRequirements\` with a drill adds the framework's \`requirementList\` (id, identifier, title, section, priority), what \`create-controls\` and \`link-controls\` take requirement ids from; \`requirementListTruncated\` past 1,000, \`requirementListSkipped\` with the reason when not read. The expiry window bounds \`expiringAttestations\` only.
|
|
224
438
|
|
|
225
439
|
## Outcomes
|
|
226
440
|
|
|
@@ -228,6 +442,7 @@ Full reference: get-reference topic j1ql-language or j1ql-discovery
|
|
|
228
442
|
- \`ambiguous\` — \`frameworkName\` matched several (\`candidates\`, up to 25); ask the user, or call again with that \`id\` as \`frameworkId\`.
|
|
229
443
|
- \`framework_not_found\` — \`frameworks\` lists every framework without counts; take the id from there.
|
|
230
444
|
- \`frameworkResolution: "partial"\` is a substring match: confirm the \`name\` with the user. \`frameworksComplete: false\` means the list stopped at its page limit.
|
|
445
|
+
- \`frameworkIdsNotFound\` lists requested ids no framework has; the rest are scored.
|
|
231
446
|
|
|
232
447
|
## Reading the scorecard
|
|
233
448
|
|
|
@@ -235,6 +450,7 @@ Full reference: get-reference topic j1ql-language or j1ql-discovery
|
|
|
235
450
|
- \`null\` counts mean not read, never zero (\`statsIncomplete\` names them).
|
|
236
451
|
- \`healthPct\` is passing ÷ (passing + failing) requirements, \`null\` when none is evaluated. It ignores unevaluated requirements, so compare passing + failing with \`requirements.total\` before calling a framework healthy. \`importStatus\` other than \`COMPLETE\` means incomplete counts.
|
|
237
452
|
- \`controls.passingWithoutData\`: CCM counts tests that saw no data as passing, so a high score can rest on tests that saw nothing.
|
|
453
|
+
- \`importJobs[]\`: framework imports in flight or failed (\`status\`, \`message\`, \`name\`, \`sourceId\`), the ones \`import-framework\` queued; absent when none.
|
|
238
454
|
- An empty \`failingRequirements\` is real only when \`failingControlsTruncated\` is \`false\` and \`requirementLookupsSkipped\` is \`0\`; otherwise answer from \`failingControls\`.
|
|
239
455
|
|
|
240
456
|
## Attestations
|
|
@@ -270,7 +486,7 @@ Exactly one of \`controlId\`, \`identifier\` or \`controlName\`; none or several
|
|
|
270
486
|
- A failing test fails the control; an attestation never masks it.
|
|
271
487
|
- An attestation passes a control only when no test has a status.
|
|
272
488
|
- An expired, unrevoked attestation fails the control, whatever the tests say.
|
|
273
|
-
- Only LIVE controls are evaluated; a test that saw no data still passes.
|
|
489
|
+
- Only LIVE controls are evaluated; a test that saw no data still passes. A DRAFT or REVIEW control reports \`not_live\` with \`testsRan\`, \`testsPassing\` and \`testsFailing\` from the runs \`evaluate-controls\` queued; the tests have statuses, the control does not.
|
|
274
490
|
|
|
275
491
|
\`statusExplanation\` is one of \`not_live\`, \`failing_test\`, \`failing_expired_attestation\`, \`undetermined\`, \`passing_by_tests\`, \`passing_by_attestation\`, \`no_tests\`, \`no_datapoints\`; \`statusMeaning\` explains it. \`blockers\` lists every cause; clear them all. \`storedStatusStale: true\`: CCM has not re-scored yet, so report \`expectedStatus\`.
|
|
276
492
|
|
|
@@ -278,6 +494,8 @@ Exactly one of \`controlId\`, \`identifier\` or \`controlName\`; none or several
|
|
|
278
494
|
|
|
279
495
|
- \`resultsAre: "BAD"\`: any row is a violation and fails the test. \`"GOOD"\`: rows are compliant and the test never fails, so zero rows is a pass on no data. \`effective\` is not a verdict.
|
|
280
496
|
- What CCM scored: \`get-rule-evaluation-query-results\` with \`latestEvaluation.rawDataKey\`. What is true now: the test's own \`query\` through \`execute-j1ql-query\`, narrowed in its \`WITH\`, never a new query.
|
|
497
|
+
- \`failedEvaluationTests\`: tests whose latest run failed (\`latestEvaluation.tag\` \`EVALUATION_FAILURE\`). They stored no result, and CCM leaves a test with no status out of the control's score, so fix their query.
|
|
498
|
+
- \`exemptions[]\`: the assets exempted from the test (\`create-exemptions\`), each with the \`groupId\` that \`revoke-exemptions\` takes, its \`reason\`, \`status\` and \`expiresOnIso\`; \`exemptionsTruncated\` past 50.
|
|
281
499
|
|
|
282
500
|
## Attestations and requirements
|
|
283
501
|
|
|
@@ -312,9 +530,11 @@ When \`pageInfo.hasNextPage\` is true, call again with \`cursor\` set to \`pageI
|
|
|
312
530
|
|
|
313
531
|
When \`pageInfo.hasNextPage\` is true, call again with \`cursor\` set to \`pageInfo.endCursor\`.
|
|
314
532
|
`,
|
|
315
|
-
"get-integration-
|
|
316
|
-
|
|
317
|
-
|
|
533
|
+
"get-integration-jobs.md": `List integration job runs with their status, timing and results, for one instance, several, a definition or a status, or read one run by its id. Use it to see whether an integration has synced lately or is failing; \`get-integration-events\` reads a run's logs. Vocabulary: integration job, sync, run history, failed sync, job status.
|
|
534
|
+
|
|
535
|
+
## One job
|
|
536
|
+
|
|
537
|
+
\`integrationJobId\` with \`integrationInstanceId\` (both from a row of this tool) returns that run alone as a one-row list; the other filters are ignored. Without the instance id the call is an \`invalid_input:\` error and nothing is read.
|
|
318
538
|
|
|
319
539
|
## Paging
|
|
320
540
|
|
|
@@ -342,9 +562,7 @@ The handle expires about an hour after the query started. If it expired or was l
|
|
|
342
562
|
original query with \`execute-j1ql-query\`; an identical re-run within 5 minutes re-attaches to the
|
|
343
563
|
same execution. Do not re-issue a query that is still running just to collect it.
|
|
344
564
|
`,
|
|
345
|
-
"get-
|
|
346
|
-
`,
|
|
347
|
-
"get-reference.md": `Return one reference page; read it before writing a query, widget, rule or compliance answer that needs more than a tool description gives. Topics: \`j1ql-language\` (grammar, operators, examples), \`j1ql-discovery\` (finding types, properties, values and verbs), \`widget-types\` (chart types and their RETURN columns), \`widget-settings\` (settings keys by chart type), \`dashboard-layout\` (grid, breakpoints, autoLayout), \`rule-authoring\` (rule payloads, actions, templates), \`compliance-model\` (how CCM scores a control), \`compliance-fields\` (response field glossary). Read-only; needs no account.
|
|
565
|
+
"get-reference.md": `Return one reference page; read it before writing a query, widget, rule or compliance answer that needs more than a tool description gives. Topics: \`j1ql-language\` (grammar), \`j1ql-discovery\` (types, properties, values), \`widget-types\` (chart types, RETURN columns), \`widget-settings\` (settings by chart type), \`dashboard-layout\` (grid, autoLayout), \`rule-authoring\` (payloads, actions, templates), \`compliance-model\` (how CCM scores a control), \`compliance-fields\` (field glossary), \`framework-authoring\` (frameworks, controls, tests, lifecycle, exemptions). Read-only; needs no account.
|
|
348
566
|
`,
|
|
349
567
|
"get-rule-details.md": `Read one alert rule in full by its id: queries, condition, actions, schedule, labels, tags, version and remediation steps. Call it before \`update-inline-question-rule\`, which needs every field sent back. Siblings: \`list-rules\` finds the id, \`list-rule-evaluations\` lists the rule's runs. Vocabulary: rule configuration, the query behind an alert, version.
|
|
350
568
|
|
|
@@ -354,11 +572,15 @@ same execution. Do not re-issue a query that is still running just to collect it
|
|
|
354
572
|
`,
|
|
355
573
|
"get-rule-evaluation-details.md": `Read one evaluation run of a rule: each query's status and duration, the condition verdict, and each action's status and logs. \`timestamp\` comes from \`list-rule-evaluations\`. For the entities the run matched, call \`get-rule-evaluation-query-results\` with that run's \`rawDataKey\` instead. Vocabulary: why did the rule fire, did the action run, evaluation log.
|
|
356
574
|
`,
|
|
357
|
-
"get-rule-evaluation-query-results.md": `Return the entities a rule evaluation matched, from the \`rawDataKey\` in a run's \`rawDataDescriptors\` (\`list-rule-evaluations\`). For a compliance control test's evidence, the key is the \`latestEvaluation.rawDataKey\` that \`get-control\` returns for that test: the assets the test scored on its latest run.
|
|
575
|
+
"get-rule-evaluation-query-results.md": `Return the entities a rule evaluation matched, from the \`rawDataKey\` in a run's \`rawDataDescriptors\` (\`list-rule-evaluations\`), or a signed link to download the whole set. For a compliance control test's evidence, the key is the \`latestEvaluation.rawDataKey\` that \`get-control\` returns for that test: the assets the test scored on its latest run. Sibling: \`get-rule-evaluation-details\` for the run's conditions and actions. Vocabulary: matched entities, evidence, affected assets, download, export, raw results.
|
|
358
576
|
|
|
359
577
|
## Rows
|
|
360
578
|
|
|
361
|
-
Rows are full entities, so a few dozen can be large; \`limit\` (1–250) cuts them, and a cut result carries \`truncated: true\` and \`total\`, the row count before the cut.
|
|
579
|
+
Rows are full entities, so a few dozen can be large; \`limit\` (1–250) cuts them, and a cut result carries \`truncated: true\` and \`total\`, the row count before the cut. A \`table\` result (a query with RETURN columns) carries each row's entity under \`_meta.byAlias.<alias>.entity\` (\`_id\`, \`_key\`, \`_scope\`, \`_type\`), which is what \`create-exemptions\` takes.
|
|
580
|
+
|
|
581
|
+
## Download
|
|
582
|
+
|
|
583
|
+
\`format: "downloadUrl"\` returns \`{ rawDataKey, downloadUrl }\` instead of rows: a signed URL for the whole result set, to hand to the user for a large set. \`limit\` does not apply.
|
|
362
584
|
`,
|
|
363
585
|
"get-threat-trending.md": `Return the ranked list of trending threats: CVEs that have recently escalated (newly exploited in the wild, weaponized, added to a KEV catalog, or a public PoC appeared), each with its escalation reason, affected vendor and product, commercial-scanner coverage gap and KEV additions. It says what is hot now, not whether this account is affected: pair it with \`check-threat-exposure\` (scanner match) or, for product presence, a J1QL search on the row's \`affectedProduct\`; \`get-threat\` briefs one CVE. Vocabulary: trending, CVE, exploited, KEV, weaponized, PoC, exposure, threat intelligence.
|
|
364
586
|
|
|
@@ -400,6 +622,53 @@ Needs the account's VulnerabilityManagement entitlement and vulnerability read p
|
|
|
400
622
|
## Example
|
|
401
623
|
|
|
402
624
|
\`{ "cveId": "CVE-2021-44228" }\`
|
|
625
|
+
`,
|
|
626
|
+
"import-framework.md": `Import one of JupiterOne's prebuilt compliance frameworks (CIS benchmarks, SOC 2, ISO 27001, NIST, PCI DSS, DORA) into JupiterOne Compliance (CCM) by its library \`source\` and \`sourceId\`, as \`check-compliance-coverage\` reports them. The backend creates the framework, requirements, controls and tests as a job; imported controls arrive DRAFT, so nothing counts until \`transition-controls\` promotes them. A customer's own program is built with \`create-framework\` and the tools after it. Vocabulary: import, library, prebuilt, template, load framework, CIS, SOC 2, ISO, NIST, PCI.
|
|
627
|
+
|
|
628
|
+
## Parameters
|
|
629
|
+
|
|
630
|
+
\`source\` is \`J1\` (JupiterOne-authored) or \`UCF\`; \`sourceId\` is the library identifier from \`check-compliance-coverage\` (\`importable[].sourceId\`). \`resourceGroupId\` is optional. The framework's name comes from the library entry.
|
|
631
|
+
|
|
632
|
+
## Outcomes
|
|
633
|
+
|
|
634
|
+
- \`queued\`: the import job was accepted. \`job\` carries \`status\`, \`initiatedOn\`, \`name\` and \`sourceId\`; the framework may not be listed for a short while. Read progress with \`get-compliance-summary\` (\`importJobs[]\` while it runs, then the framework's \`importStatus\`). A job that ends \`FAILED\` carries the backend's \`message\`; the live-controls limit, if the library content sets controls LIVE, surfaces there and not at this call.
|
|
635
|
+
- \`already_exists\`: a framework with this \`sourceId\` is already loaded; \`framework\` carries its \`id\`, \`name\` and \`url\`, and nothing was started. A normal result, safe on replay.
|
|
636
|
+
- \`import_in_progress\`: an import for this \`sourceId\` is already running; \`job\` says since when.
|
|
637
|
+
- Error \`not_importable:\` no library entry has this \`sourceId\`; \`structuredContent.nearest\` lists the closest library names and ids. Nothing was started.
|
|
638
|
+
- Error \`read_failed:\` the framework list, the library or the import jobs could not be read in time, or the list was cut short; nothing was started. Call again.
|
|
639
|
+
- Error \`interrupted:\` the call was cut off at the 55-second limit and the job may have started; call \`get-compliance-summary\` and read \`importJobs[]\` before importing again.
|
|
640
|
+
|
|
641
|
+
## Access
|
|
642
|
+
|
|
643
|
+
Needs the Compliance (CCM) entitlement and framework create permission; an access-denied error names the missing one.
|
|
644
|
+
|
|
645
|
+
## Example
|
|
646
|
+
|
|
647
|
+
\`{ "source": "J1", "sourceId": "cis-aws-foundations-v5" }\`
|
|
648
|
+
|
|
649
|
+
Full reference: get-reference topic framework-authoring
|
|
650
|
+
`,
|
|
651
|
+
"link-controls.md": `Attach existing JupiterOne Compliance (CCM) controls to a requirement so they count toward it, instead of creating duplicates: a control can serve several requirements and frameworks, and a JupiterOne-managed control from a prebuilt framework or the customer's own often already satisfies a new requirement. Find candidates with \`check-compliance-coverage\` (a \`topic\`) or \`list-controls\` (\`search\`); \`create-controls\` is for controls that do not exist yet. Vocabulary: link, map, attach, reuse, existing control, assign control to requirement, shared control.
|
|
652
|
+
|
|
653
|
+
## Parameters
|
|
654
|
+
|
|
655
|
+
\`requirementId\` and \`controlIds[]\` (1 to 25 exact control ids, \`ccm_c_…\`). Detaching is \`update-control\` with \`requirementIds.remove\`.
|
|
656
|
+
|
|
657
|
+
## Outcomes
|
|
658
|
+
|
|
659
|
+
Always \`ok\` with one \`items[]\` entry per input id: \`linked\` (with the control's \`name\`, \`state\` and \`url\`), \`already_linked\` (it already served this requirement; nothing changed), \`not_found\` (no non-deleted control has this id; one the graph does not list yet is checked with the API first), \`refused\` (\`reason\`; that check failed) or \`not_attempted\` (the call's budget ran out first). \`linkedCount\`, \`alreadyLinkedCount\`, \`notFoundCount\` summarise; one unknown id never stops the others. A linked control that is DRAFT or REVIEW does not count until promoted, and one with no tests passes only by attestation: \`notes[]\` says which. Safe to repeat: a replay reports \`already_linked\` for everything it linked before.
|
|
660
|
+
|
|
661
|
+
Errors: \`requirement_not_found:\`; \`not_ready:\` (the requirement exists but CCM cannot link to it yet, as happens just after \`create-requirements\`; nothing was written; call again in a minute with the same input); \`invalid_input:\` (empty list, or an id containing a quote); a call cut off at the 55-second limit comes back with items \`interrupted\`, or with no response; calling again with the same input is safe, and linked ones come back \`already_linked\`.
|
|
662
|
+
|
|
663
|
+
## Access
|
|
664
|
+
|
|
665
|
+
Needs the Compliance (CCM) entitlement and edit permission on each control's resource group; an access-denied error names the missing one.
|
|
666
|
+
|
|
667
|
+
## Example
|
|
668
|
+
|
|
669
|
+
\`{ "requirementId": "<id>", "controlIds": ["ccm_c_J1_…", "ccm_c_JSON_…"] }\`
|
|
670
|
+
|
|
671
|
+
Full reference: get-reference topic framework-authoring
|
|
403
672
|
`,
|
|
404
673
|
"list-accounts.md": `List the JupiterOne accounts the authenticated user can access: each account's \`accountId\`, its
|
|
405
674
|
\`displayName\` and, when the host can construct one, \`mcpUrl\`, a connector URL pinned to that
|
|
@@ -425,11 +694,12 @@ and aggregate the results.
|
|
|
425
694
|
`,
|
|
426
695
|
"list-alerts.md": `List the account's active alerts, each with its level, status, timestamps, the matched record count and the rule that raised it (\`ruleId\`, name, labels). Alerts are what rules produced; for the configuration behind one, call \`get-rule-details\` with its \`ruleId\`, or \`list-rules\`. \`limit\` caps the rows returned and \`total\` is the full active count. Vocabulary: alerts, open alerts, firing, severity, alert level.
|
|
427
696
|
`,
|
|
428
|
-
"list-controls.md": `List JupiterOne Compliance (CCM) controls with the filters CCM's own controls view offers: status, state, framework,
|
|
697
|
+
"list-controls.md": `List JupiterOne Compliance (CCM) controls with the filters CCM's own controls view offers: status, state, framework, org unit, owner, attestation, catalog, MITRE technique and text search (test names too). Rows are compact (status, state, test counts, fail reason, framework names), no descriptions or queries. Use it to find a control by name, identifier or test name, and to list what fails in a framework or org unit. Siblings: \`get-compliance-summary\` for framework numbers, \`get-control\` for one control. Vocabulary: compliance, controls, failing, LIVE, org unit, owner, search, MITRE, audit.
|
|
429
698
|
|
|
430
699
|
## Filters
|
|
431
700
|
|
|
432
|
-
- \`status\` on a non-LIVE control is left over from its last evaluation; add \`states: ["LIVE"]\` to list what fails now.
|
|
701
|
+
- \`status\` on a non-LIVE control is left over from its last evaluation; add \`states: ["LIVE"]\` to list what fails now. Drafts count only once \`transition-controls\` promotes them.
|
|
702
|
+
- \`search\` reads control name, description, identifier and id; controls whose test names contain it come back separately in \`testNameMatches\` (control and test, failing tests first, from the graph, first page only, honouring \`states\`, \`status\`, \`frameworkId\` and \`source\`). \`testNameSearch\` says \`ran\`, or why not: \`first_page_only\`, \`unsupported_filters\` (another filter was set), \`time_budget\`, \`read_failed\`.
|
|
433
703
|
- \`orgUnit\` selects controls whose tests touch an asset in the unit; a row's \`status\` stays the control's overall status. An id (a value with a colon) is used unchecked; a name is searched in up to 10 enabled namespaces.
|
|
434
704
|
- \`sort\` by \`LAST_EVALUATED_ON\` with \`DESC\` lists never-evaluated controls (\`null\`) first; add \`status: ["PASS", "FAIL"]\` to leave them out.
|
|
435
705
|
- A cursor works only with the exact filters of the call that returned it; a refused one is an error starting \`cursor_rejected:\` with the API's reason.
|
|
@@ -443,7 +713,7 @@ and aggregate the results.
|
|
|
443
713
|
|
|
444
714
|
## Rows
|
|
445
715
|
|
|
446
|
-
\`status\` is \`PASS\`, \`FAIL\` or \`null\` (never evaluated); \`effectiveStatus\` is \`EFFECTIVE\`, \`NO_TESTS\` or \`NO_DATAPOINTS\`; \`failingTests\` counts non-deleted failing tests; \`frameworkNames\` follows \`frameworkIds\`, \`null\` where unresolved.
|
|
716
|
+
\`status\` is \`PASS\`, \`FAIL\` or \`null\` (never evaluated); \`effectiveStatus\` is \`EFFECTIVE\`, \`NO_TESTS\` or \`NO_DATAPOINTS\`; \`failingTests\` counts non-deleted failing tests; \`failReason\` on a FAIL row is \`failing_test\`, \`no_failing_test\` (LIVE with no failing test: an expired attestation, or a status not re-scored since the tests changed; \`get-control\` says which), \`not_live\` (a stale status) or \`tests_unread\`; \`frameworkNames\` follows \`frameworkIds\`, \`null\` where unresolved.
|
|
447
717
|
|
|
448
718
|
## Access
|
|
449
719
|
|
|
@@ -561,7 +831,7 @@ design the board on paper before creating anything.
|
|
|
561
831
|
| The reader must… | Use | Not |
|
|
562
832
|
|---|---|---|
|
|
563
833
|
| React to one current value | \`number\` tile | a one-bar \`bar\`, a one-slice \`pie\` |
|
|
564
|
-
| Judge a proportion or coverage ratio | \`number\` in percentage mode (\`showAsPercentage\` + \`numeratorQueryName
|
|
834
|
+
| Judge a proportion or coverage ratio | \`number\` in percentage mode (\`showAsPercentage\` + \`numeratorQueryName\` + \`includeNumeratorInTotal: false\` over a population query; each query returns \`count(x) AS value\`) | a two-slice pie |
|
|
565
835
|
| Compare or rank categories | \`bar\` (\`x\`,\`y\`) — one query per category when stored casings split, named for the category | a pie with many slices |
|
|
566
836
|
| Follow change over time | \`line\`, or \`trendDataIsEnabled\` on a tile | — |
|
|
567
837
|
| See part-to-whole, ≤6 slices | \`pie\` (\`name\` + \`value\`) | a pie of 10+ slices — use \`bar\` or \`table\` |
|
|
@@ -590,8 +860,8 @@ design the board on paper before creating anything.
|
|
|
590
860
|
- **\`noResultMessage\` on every widget** — it is the difference between "verified clean" and
|
|
591
861
|
"looks broken" when a query legitimately returns nothing.
|
|
592
862
|
- **Percentage across casing splits**: a proportion whose property is stored in several
|
|
593
|
-
casings is one numerator query ORing all its casings over one total query
|
|
594
|
-
grouped workaround.
|
|
863
|
+
casings is one numerator query ORing all its casings over one total query, with
|
|
864
|
+
\`includeNumeratorInTotal: false\` — cleaner than any grouped workaround.
|
|
595
865
|
- **Trend where direction matters** (\`trendDataIsEnabled\` on number/pie/bar/line): data
|
|
596
866
|
accrues forward-only from the day the flag is set, so a board headed for a recurring review
|
|
597
867
|
gets its trend widgets on day one, not the week of the meeting. Set \`upwardTrendIsGood\`
|
|
@@ -698,6 +968,10 @@ Field-by-field glossary of the \`get-compliance-summary\`, \`get-control\` and \
|
|
|
698
968
|
framework healthy.
|
|
699
969
|
- \`importStatus\`: \`COMPLETE\`, \`IN_PROGRESS\`, \`FAILED\` or \`null\`; anything but \`COMPLETE\` means the
|
|
700
970
|
counts are incomplete.
|
|
971
|
+
- \`frameworkIdsNotFound\` (with \`frameworkIds\`): requested ids no framework has.
|
|
972
|
+
- \`importJobs[]\`: framework imports in flight or failed: \`status\`, \`message\`, \`name\`, \`sourceId\`,
|
|
973
|
+
\`frameworkId\`, \`type\`, \`initiatedOnIso\`, \`completedOnIso\`; absent when none; \`warnings\` says
|
|
974
|
+
when unread.
|
|
701
975
|
- \`framework\` (with \`frameworkId\`): the scorecard fields, plus:
|
|
702
976
|
- \`drillSource\`: \`graph\` when \`failingRequirements\`, \`failingControls\` and
|
|
703
977
|
\`controls.passingWithoutData\` were read from the JupiterOne graph, which CCM refreshes after
|
|
@@ -712,6 +986,10 @@ Field-by-field glossary of the \`get-compliance-summary\`, \`get-control\` and \
|
|
|
712
986
|
\`states: ["LIVE"]\`.
|
|
713
987
|
- \`sections[]\`: per section, \`section\`, \`requirements\`, \`passing\`, \`failing\`; \`null\` when the
|
|
714
988
|
framework's counts were not read.
|
|
989
|
+
- \`requirementList[]\` (with \`includeRequirements\`): every requirement (\`id\`, \`identifier\`,
|
|
990
|
+
\`title\`, \`section\`, \`priority\`), critical first, then by section and identifier;
|
|
991
|
+
\`requirementListTruncated\` past 1,000; \`requirementListSkipped\` (\`time_budget\`, \`read_failed\`,
|
|
992
|
+
\`unsupported_id\`) when not read.
|
|
715
993
|
- \`failingRequirements[]\`: every requirement a failing LIVE control satisfies (\`id\`,
|
|
716
994
|
\`identifier\`, \`title\`, \`section\`, \`priority\`), critical priority first, then by section and
|
|
717
995
|
identifier, each with its \`failingControls[]\` (\`id\`, \`identifier\`, \`name\`). A non-LIVE control
|
|
@@ -761,13 +1039,15 @@ Field-by-field glossary of the \`get-compliance-summary\`, \`get-control\` and \
|
|
|
761
1039
|
What is not back in time is skipped: \`requirements: []\` with \`requirementsSkipped\` (\`time_budget\`
|
|
762
1040
|
or \`read_failed\`) and \`requirementsComplete: false\`; \`frameworks: []\` with \`frameworksSkipped\`;
|
|
763
1041
|
attestations as \`'unavailable'\`.
|
|
764
|
-
- \`tests[]\`: each with its \`query\`, \`resultsAre\`, \`effective\`, \`status\`, \`referencedRuleId
|
|
1042
|
+
- \`tests[]\`: each with its \`query\`, \`resultsAre\`, \`effective\`, \`status\`, \`referencedRuleId\`,
|
|
1043
|
+
\`exemptions[]\` (each exempted asset: \`groupId\`, \`entityId\`, \`entityDisplayName\`, \`reason\`,
|
|
1044
|
+
\`justification\`, \`status\`, \`expiresOnIso\`; \`exemptionsTruncated\` past 50) and:
|
|
765
1045
|
- \`latestEvaluationStatus\`: \`found\` (\`latestEvaluation\` holds \`rawDataKey\`, \`resultCount\`,
|
|
766
1046
|
\`evaluatedOn\`, \`timestamp\`, \`tag\`; \`rawDataKey: null\` stored no results and
|
|
767
|
-
\`tag: "EVALUATION_FAILURE"\`
|
|
768
|
-
has no backing rule, or had no run from 30 days before its \`lastEvaluatedOn\`
|
|
769
|
-
\`evaluationsInWindow: 0\`); \`skipped\` (at most 10 rule-backed tests are looked up,
|
|
770
|
-
then
|
|
1047
|
+
\`tag: "EVALUATION_FAILURE"\` is a failed run, counted in \`failedEvaluationTests\`); \`none\` (the
|
|
1048
|
+
test is deleted, has no backing rule, or had no run from 30 days before its \`lastEvaluatedOn\`
|
|
1049
|
+
until now, \`evaluationsInWindow: 0\`); \`skipped\` (at most 10 rule-backed tests are looked up,
|
|
1050
|
+
failing then unscored first, for 20 s after the control is read; \`skippedTests\` counts them,
|
|
771
1051
|
present only above 0); \`error\` (the lookup failed). For \`skipped\` and \`error\`, read the runs
|
|
772
1052
|
with \`list-rule-evaluations\` on \`referencedRuleId\`.
|
|
773
1053
|
- \`evaluationsInWindow\` and \`moreInWindow\` appear when a lookup ran; \`moreInWindow: true\` means
|
|
@@ -795,24 +1075,36 @@ Field-by-field glossary of the \`get-compliance-summary\`, \`get-control\` and \
|
|
|
795
1075
|
\`FAIL\`, or \`null\` when never evaluated; on a non-LIVE control it is left over from the last
|
|
796
1076
|
evaluation, not a verdict), \`effectiveStatus\` (\`EFFECTIVE\`, \`NO_TESTS\`, \`NO_DATAPOINTS\`),
|
|
797
1077
|
\`hasValidAttestation\`, \`owner\`, \`numberOfTests\`, \`failingTests\` (non-deleted failing tests),
|
|
798
|
-
\`
|
|
799
|
-
|
|
1078
|
+
\`failReason\` (on a FAIL row: \`failing_test\`; \`no_failing_test\` for a LIVE control with no failing
|
|
1079
|
+
test, an expired attestation or a status not re-scored, which \`get-control\` tells apart;
|
|
1080
|
+
\`not_live\`; \`tests_unread\`), \`lastEvaluatedOn\` and \`lastEvaluatedOnIso\` (\`null\` when never
|
|
1081
|
+
evaluated), \`frameworkIds\`, \`frameworkNames\` (same order, \`null\` where unresolved),
|
|
1082
|
+
\`mitreTechnique\`, \`deleted\`, \`url\`.
|
|
1083
|
+
- \`testNameMatches[]\` (with \`search\`): controls whose test names contain the text, from the graph
|
|
1084
|
+
(control and test ids, names, states and statuses, \`url\`), failing tests first, one page
|
|
1085
|
+
(\`testNameMatchesTruncated\` past 250). \`testNameSearch\`: \`ran\`, \`first_page_only\`,
|
|
1086
|
+
\`unsupported_filters\`, \`time_budget\`, \`read_failed\`.
|
|
800
1087
|
- \`orgUnit\` and \`ouResolution\` (with the \`orgUnit\` filter): \`orgUnit\` is the unit (\`id\`,
|
|
801
1088
|
\`displayName\`, \`namespace\`, \`resolvedBy\`); \`ouResolution\` is \`id\` or \`name\` when a namespace
|
|
802
1089
|
search confirmed it, \`id_unverified\` when a value containing a colon was used as an id as given.
|
|
803
1090
|
A name is searched in up to 10 enabled namespaces: exact id, then exact display name ignoring
|
|
804
1091
|
case, then a single search hit. The filter selects controls whose tests touch an asset in the
|
|
805
1092
|
unit; a row's \`status\` stays the control's overall status.
|
|
806
|
-
- \`namespacesFailed\` (on \`ambiguous\`): namespaces
|
|
807
|
-
be incomplete.
|
|
1093
|
+
- \`namespacesFailed\` (on \`ambiguous\`): namespaces not searched, so \`candidates\` can be incomplete.
|
|
808
1094
|
- \`namespaces\`, \`namespacesNotSearched\`, \`units\` (on \`org_unit_not_found\`): the namespaces searched
|
|
809
|
-
(\`slug\`, \`name\`, \`failed: true\` where the search failed), how many were
|
|
810
|
-
|
|
811
|
-
from; a namespace that could not list them in time offers none.
|
|
1095
|
+
(\`slug\`, \`name\`, \`failed: true\` where the search failed), how many were not searched, and up to
|
|
1096
|
+
10 units per searched namespace (\`id\`, \`displayName\`, \`namespace\`) to choose from.
|
|
812
1097
|
- \`pageInfo.endCursor\` and \`pageInfo.hasNextPage\`: page with them; a cursor works only with the
|
|
813
1098
|
exact filters of the call that returned it.
|
|
814
|
-
- \`timingsMs\`: wall time in milliseconds of each read
|
|
815
|
-
|
|
1099
|
+
- \`timingsMs\`: wall time in milliseconds of each read; an aborted request is the 55-second limit:
|
|
1100
|
+
narrow with \`frameworkId\`, \`states: ["LIVE"]\` or a smaller \`limit\`.
|
|
1101
|
+
|
|
1102
|
+
## Errors
|
|
1103
|
+
|
|
1104
|
+
A call that fails mid-read says which read failed: \`(failed in <phase>)\` after the context, the
|
|
1105
|
+
finished phases and their milliseconds at the end, and \`failedPhase\`, \`runningPhases\`, \`timingsMs\`
|
|
1106
|
+
in \`structuredContent\`. Narrow by that phase: \`stats\` fewer frameworks, \`controls\` a
|
|
1107
|
+
tighter filter, \`attestations\` a \`controlId\`.
|
|
816
1108
|
`,
|
|
817
1109
|
"reference/compliance-model.md": `# Compliance model
|
|
818
1110
|
|
|
@@ -876,8 +1168,9 @@ consults \`effective\`, so a test that saw nothing still passes and counts.
|
|
|
876
1168
|
## LIVE controls only
|
|
877
1169
|
|
|
878
1170
|
Only LIVE controls are evaluated. The status of a DRAFT, REVIEW or RETIRED control is left over
|
|
879
|
-
from its last evaluation, not a verdict, and such a control cannot be attested
|
|
880
|
-
changes a control's state
|
|
1171
|
+
from its last evaluation, not a verdict, and such a control cannot be attested. \`transition-controls\`
|
|
1172
|
+
changes a control's state, \`evaluate-controls\` runs a draft's tests on demand, and the authoring
|
|
1173
|
+
tools (framework, requirements, controls, tests, exemptions) are in the \`framework-authoring\` manual.
|
|
881
1174
|
|
|
882
1175
|
## Attestations
|
|
883
1176
|
|
|
@@ -959,6 +1252,129 @@ and \`moved\` and \`static\` (both \`false\`).
|
|
|
959
1252
|
"xl": []
|
|
960
1253
|
}
|
|
961
1254
|
\`\`\`
|
|
1255
|
+
`,
|
|
1256
|
+
"reference/framework-authoring.md": `# Framework authoring
|
|
1257
|
+
|
|
1258
|
+
How to build a JupiterOne Compliance (CCM) framework through the authoring tools, from a customer's
|
|
1259
|
+
own compliance material to LIVE controls with tests, and the rules every write tool enforces.
|
|
1260
|
+
|
|
1261
|
+
## The hierarchy
|
|
1262
|
+
|
|
1263
|
+
\`\`\`
|
|
1264
|
+
Framework create-framework, or import-framework for JupiterOne's library
|
|
1265
|
+
└── Requirement create-requirements (a batch per section)
|
|
1266
|
+
└── Control create-controls (a batch per requirement) or link-controls (reuse)
|
|
1267
|
+
├── Control test create-control-test (one J1QL query each)
|
|
1268
|
+
└── Attestation create-attestation (evidence no query can read; LIVE controls only)
|
|
1269
|
+
\`\`\`
|
|
1270
|
+
|
|
1271
|
+
A section is a label on a requirement (\`section\`), not an object. A control can serve several
|
|
1272
|
+
requirements and several frameworks; that is what \`link-controls\` is for. Only LIVE controls are
|
|
1273
|
+
evaluated and counted; everything authored here lands DRAFT, and \`transition-controls\` promotes it.
|
|
1274
|
+
|
|
1275
|
+
## Where each layer comes from
|
|
1276
|
+
|
|
1277
|
+
- **Framework and sections** come from the standard's own structure (SOC 2 criteria groups, ISO
|
|
1278
|
+
domains, PCI requirement families) or, for an internal program, from the customer's control
|
|
1279
|
+
register.
|
|
1280
|
+
- **Requirements** are the obligations the standard states. Keep the standard's identifiers
|
|
1281
|
+
(\`CC6.1\`, \`A.9.1.1\`, \`8.3.1\`) in \`identifier\` and its wording in \`title\`.
|
|
1282
|
+
- **Controls** are what the organisation does to meet a requirement. Keep the customer's own
|
|
1283
|
+
identifiers and names exactly as written; never invent or normalise ids. A requirement often
|
|
1284
|
+
needs several controls (one automated, one attested), and a control the account already holds
|
|
1285
|
+
may satisfy a new requirement: search first with \`check-compliance-coverage\` (a \`topic\`) or
|
|
1286
|
+
\`list-controls\` (\`search\`) and link it, rather than creating a near-duplicate.
|
|
1287
|
+
- **Tests** prove a control from data in the graph. Read all three layers before writing one: the
|
|
1288
|
+
requirement names the domain and how broad it is, the control names the tool or process in use,
|
|
1289
|
+
and the auditor's past evidence requests name the exact data. A control that names no tool or
|
|
1290
|
+
process ("monitoring is in place") cannot be tested yet; ask what enforces it before writing a
|
|
1291
|
+
query.
|
|
1292
|
+
|
|
1293
|
+
## Tests: GOOD, BAD and zero rows
|
|
1294
|
+
|
|
1295
|
+
Each test runs one J1QL query and declares what its rows mean. \`BAD\`: every row is a violation and
|
|
1296
|
+
the test fails when any row returns; the usual shape for "find what should not exist" (users
|
|
1297
|
+
without MFA, open critical findings). \`GOOD\`: rows are compliant assets and the test never fails;
|
|
1298
|
+
zero rows is a pass on no data, not evidence the control is met, so pair a GOOD test with a BAD
|
|
1299
|
+
one or an attestation. A test is \`effective\` when its query parses and names entity types the
|
|
1300
|
+
account holds; \`effective: false\` after creation means the query names a type this account does
|
|
1301
|
+
not have (a Justworks CrowdStrike test found no data because the integration ingested no alerts).
|
|
1302
|
+
|
|
1303
|
+
Write the query the way the J1QL tools expect: discover the type with \`list-entity-types\`, sample
|
|
1304
|
+
it (\`FIND <type> AS e RETURN e.* LIMIT 5\`), probe stored values before comparing them (casing varies
|
|
1305
|
+
by integration: \`critical\` and \`CRITICAL\` coexist), then run the finished query with
|
|
1306
|
+
\`execute-j1ql-query\` and confirm the rows are the ones the auditor would accept. \`create-control-test\`
|
|
1307
|
+
parses the query and runs it once more before saving, and reports \`rows\` and \`noDatapoints\`. One
|
|
1308
|
+
query per test: a control that needs two checks gets two tests.
|
|
1309
|
+
|
|
1310
|
+
## Lifecycle: DRAFT, REVIEW, LIVE, RETIRED
|
|
1311
|
+
|
|
1312
|
+
- **DRAFT**: authoring. Excluded from every scorecard and rollup; a framework of drafts reads
|
|
1313
|
+
"0 passing, 0 failing". A draft's tests run only when \`evaluate-controls\` asks; the tests then
|
|
1314
|
+
carry a status, and the control stays unscored until it is LIVE.
|
|
1315
|
+
- **REVIEW**: sign-off before going live. Still excluded.
|
|
1316
|
+
- **LIVE**: evaluated daily, counted in scorecards and against the account's live-controls limit,
|
|
1317
|
+
attestable. Newly LIVE controls read "0 passing, 0 failing" until their first run.
|
|
1318
|
+
- **RETIRED**: excluded; the stored status is cleared on leaving LIVE and re-scored on return.
|
|
1319
|
+
|
|
1320
|
+
Valid moves: DRAFT→REVIEW, REVIEW→DRAFT, REVIEW→LIVE, LIVE→REVIEW, LIVE→RETIRED, RETIRED→LIVE.
|
|
1321
|
+
\`transition-controls\` walks a multi-hop path when asked (DRAFT→LIVE is two moves) and can select a
|
|
1322
|
+
whole framework; moving to RETIRED needs explicit control ids. Whether to pause at REVIEW is the
|
|
1323
|
+
user's choice: say what each state means and ask.
|
|
1324
|
+
|
|
1325
|
+
The proving loop before promotion: \`evaluate-controls\` on the drafts → \`get-control\` (each test's
|
|
1326
|
+
status, \`blockers\`, \`passingWithoutData\`) → fix a query with \`update-control-test\`, add a missing test
|
|
1327
|
+
with \`create-control-test\`, enrich a template control with \`update-control\` → \`transition-controls\`.
|
|
1328
|
+
|
|
1329
|
+
## The live-controls limit
|
|
1330
|
+
|
|
1331
|
+
Accounts have a ceiling on LIVE controls. Creating a control as LIVE or promoting one past the
|
|
1332
|
+
ceiling is refused with the backend's own text ("Live controls limit reached. Current usage: N,
|
|
1333
|
+
adding: M, limit: L"); the outcome is \`live_limit\`, nothing else in the batch is changed after it,
|
|
1334
|
+
and the way forward is to retire controls or stay in DRAFT. A library import is checked by its job,
|
|
1335
|
+
not at the call: read \`importJobs[]\` on \`get-compliance-summary\` for \`FAILED\` and its message.
|
|
1336
|
+
|
|
1337
|
+
## What every write tool promises
|
|
1338
|
+
|
|
1339
|
+
- **Plural means batch.** \`create-requirements\`, \`create-controls\`, \`link-controls\`,
|
|
1340
|
+
\`transition-controls\` and \`evaluate-controls\` take arrays and return one outcome per item; one
|
|
1341
|
+
bad item never fails the rest. \`create-control-test\` is single because creating a test runs its
|
|
1342
|
+
query.
|
|
1343
|
+
- **Replays, and when to read back first.** A framework, requirement, control or test that
|
|
1344
|
+
already exists with the same name (controls: anywhere in the account, since one control can
|
|
1345
|
+
serve many requirements) comes back as \`already_exists\` instead of a duplicate; a link,
|
|
1346
|
+
transition or evaluation already done is \`already_linked\`, \`already_in_state\` or a no-op; a
|
|
1347
|
+
delete of something gone is \`not_found\`. Read back with \`get-control\` or
|
|
1348
|
+
\`get-compliance-summary\` before repeating when a call was cut off at the 55-second limit (an
|
|
1349
|
+
\`interrupted:\` error, items \`interrupted\`, or no response), since its writes may have landed.
|
|
1350
|
+
\`create-controls\` and \`create-framework\` find duplicates in reads that lag a create by up to a
|
|
1351
|
+
minute, so resend only what \`nextInputs\` holds, or wait a minute. A repeated \`create-exemptions\`
|
|
1352
|
+
re-files its entities under a new \`groupId\`. After \`transition-controls\`, read a control back
|
|
1353
|
+
before \`update-control\` or \`link-controls\` on it: CCM writes a control back whole from a read
|
|
1354
|
+
that can lag.
|
|
1355
|
+
- **Nothing is irreversible without a separate call.** Creates land DRAFT. \`delete-control-test\`
|
|
1356
|
+
soft-deletes a test. \`delete-control\` is a hard delete that also removes the control's
|
|
1357
|
+
attestations, so it accepts only a DRAFT that was never LIVE and has no attestation; anything
|
|
1358
|
+
else is retired with \`transition-controls\`. Frameworks and requirements are never deleted here.
|
|
1359
|
+
- **Every response says what is next.** \`nextStep\` names the following call and what to confirm
|
|
1360
|
+
with the user before it; \`url\` opens the object in the app.
|
|
1361
|
+
|
|
1362
|
+
## Exemptions
|
|
1363
|
+
|
|
1364
|
+
A per-asset exception on a control test: \`create-exemptions\` records that specific entities from
|
|
1365
|
+
the test's latest evaluation are \`RISK_ACCEPTED\`, \`NOT_APPLICABLE\`, \`FALSE_POSITIVE\` or covered by a
|
|
1366
|
+
\`COMPENSATING_CONTROL\`, with a justification and an optional expiry, so they stop failing the test
|
|
1367
|
+
on its next run. The entities come from \`get-rule-evaluation-query-results\` on the test's latest
|
|
1368
|
+
\`rawDataKey\`; the test must be eligible (its stored evaluation came from the query it runs now),
|
|
1369
|
+
and re-exempting an entity replaces its earlier exemption. \`revoke-exemptions\` withdraws by
|
|
1370
|
+
decision (\`groupId\`), by entity, or both. An attestation covers a whole control; an exemption
|
|
1371
|
+
covers assets within one test.
|
|
1372
|
+
|
|
1373
|
+
## Reading a draft
|
|
1374
|
+
|
|
1375
|
+
\`get-control\` on a non-LIVE control reports \`statusExplanation: not_live\` with \`testsRan\`,
|
|
1376
|
+
\`testsPassing\` and \`testsFailing\`: the tests have statuses, the control does not. Report the test
|
|
1377
|
+
results as the proof and the state as the reason there is no score.
|
|
962
1378
|
`,
|
|
963
1379
|
"reference/j1ql-discovery.md": `# J1QL discovery
|
|
964
1380
|
|
|
@@ -1179,6 +1595,14 @@ FIND HostAgent THAT (MONITORS|PROTECTS) Host LIMIT 10
|
|
|
1179
1595
|
FIND User THAT !HAS Device LIMIT 10 # users with no device
|
|
1180
1596
|
\`\`\`
|
|
1181
1597
|
|
|
1598
|
+
A negated step matches what is absent, so nothing declared on it or after it can be returned.
|
|
1599
|
+
Alias the entity before the \`!\`; WHERE may still filter the negated edge
|
|
1600
|
+
(\`THAT !ALLOWS AS rule * WHERE rule.ingress = true\`):
|
|
1601
|
+
|
|
1602
|
+
\`\`\`j1ql
|
|
1603
|
+
FIND User AS u THAT !HAS Device RETURN u.email LIMIT 10
|
|
1604
|
+
\`\`\`
|
|
1605
|
+
|
|
1182
1606
|
Direction arrows follow the verb:
|
|
1183
1607
|
|
|
1184
1608
|
\`\`\`j1ql
|
|
@@ -1721,11 +2145,32 @@ not proof it is still writable.
|
|
|
1721
2145
|
tracking. \`trendQueryResultsCount\` sets how many trend data points are kept, and
|
|
1722
2146
|
\`upwardTrendIsGood\` says whether a rising value is good news.
|
|
1723
2147
|
|
|
2148
|
+
## Dashboard variables
|
|
2149
|
+
|
|
2150
|
+
A widget query takes one of its dashboard's parameters as \`\${name}\`, unquoted where the value goes,
|
|
2151
|
+
because the value substituted in carries its own quoting:
|
|
2152
|
+
\`FIND Host WITH _integrationName = \${environment} AS h RETURN count(h) AS value\`. \`{{name}}\` and a
|
|
2153
|
+
quoted \`'\${name}'\` are read the same way. The parameters are defined on the dashboard
|
|
2154
|
+
(\`get-dashboard-details\` lists them in \`parameters\`). \`\${param.X}\` is an account parameter the query
|
|
2155
|
+
engine resolves, not a dashboard variable. The write tools check a variable query's columns but
|
|
2156
|
+
cannot run it, so \`renderPreflight\` reports \`skipped\` with reason \`parameterized\`, and trend
|
|
2157
|
+
collection does not support variables. To test one before building on it, run it through
|
|
2158
|
+
\`execute-j1ql-query\` with \`variables\` (\`{"environment": "aws-prod"}\`).
|
|
2159
|
+
|
|
1724
2160
|
## Number: percentage mode
|
|
1725
2161
|
|
|
1726
2162
|
A number widget can show a ratio between its own queries instead of a count. The numerator is the
|
|
1727
|
-
sum of the queries named in \`numeratorQueryName
|
|
1728
|
-
|
|
2163
|
+
sum of the queries named in \`numeratorQueryName\`. The total is set by \`includeNumeratorInTotal\`, and
|
|
2164
|
+
the write tools refuse a percentage widget that leaves it out, because the two settings draw
|
|
2165
|
+
different numbers from the same queries:
|
|
2166
|
+
|
|
2167
|
+
- \`false\`: the total is the queries the numerator does not name. Use it with a numerator beside a
|
|
2168
|
+
query counting the whole population.
|
|
2169
|
+
- \`true\`, or left out: the total is every query, numerator included. Use it for queries that split
|
|
2170
|
+
the population between them (\`Patched\` + \`Unpatched\`). Left out beside a population query, 40 of
|
|
2171
|
+
100 draws 28.6%, not 40%.
|
|
2172
|
+
|
|
2173
|
+
"% of hosts unpatched" is a query named \`Unpatched\`:
|
|
1729
2174
|
|
|
1730
2175
|
\`\`\`j1ql
|
|
1731
2176
|
FIND Host WITH patched = false AS h
|
|
@@ -1746,19 +2191,21 @@ with:
|
|
|
1746
2191
|
"settings": {
|
|
1747
2192
|
"number": {
|
|
1748
2193
|
"showAsPercentage": true,
|
|
1749
|
-
"numeratorQueryName": "Unpatched"
|
|
2194
|
+
"numeratorQueryName": "Unpatched",
|
|
2195
|
+
"includeNumeratorInTotal": false
|
|
1750
2196
|
}
|
|
1751
2197
|
}
|
|
1752
2198
|
}
|
|
1753
2199
|
\`\`\`
|
|
1754
2200
|
|
|
1755
2201
|
- \`numeratorQueryName\` is one string, not an array; several numerator queries are comma-joined into
|
|
1756
|
-
it (\`"Unpatched,Stale"\`)
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
2202
|
+
it (\`"Unpatched,Stale"\`), and a value that is exactly one query's name is never split. A name
|
|
2203
|
+
matching no query is dropped from the numerator, and when none matches the widget draws the plain
|
|
2204
|
+
sum of every query with a % sign; the tool rejects either before writing and names the queries.
|
|
2205
|
+
- A widget built in the UI with "Include numerator queries in total" ticked stores no key, so it
|
|
2206
|
+
divides by every query. When updating one, set \`true\` to keep what it draws.
|
|
2207
|
+
- After the write, \`renderPreflight.percentage\` reports the figure the widget draws (\`numerator\`,
|
|
2208
|
+
\`total\`, \`value\`). Check it against the figure you meant.
|
|
1762
2209
|
- \`invertPercentage\` plots 100 minus the ratio; \`showFraction\` shows the numerator/total breakdown
|
|
1763
2210
|
beside the figure. Both are number-only.
|
|
1764
2211
|
|
|
@@ -1780,8 +2227,9 @@ FIND Finding WITH open = true AS f
|
|
|
1780
2227
|
count(f) AS y
|
|
1781
2228
|
\`\`\`
|
|
1782
2229
|
|
|
1783
|
-
\`numeratorQueryName\` and \`includeNumeratorInTotal\` mean what they do on a number widget
|
|
1784
|
-
\`invertPercentage\` and \`showFraction\` do
|
|
2230
|
+
\`numeratorQueryName\` and \`includeNumeratorInTotal\` mean what they do on a number widget, and the
|
|
2231
|
+
write tools require \`includeNumeratorInTotal\` here too; \`invertPercentage\` and \`showFraction\` do
|
|
2232
|
+
not apply.
|
|
1785
2233
|
|
|
1786
2234
|
## Pie
|
|
1787
2235
|
|
|
@@ -2051,6 +2499,27 @@ Needs the Compliance (CCM) entitlement and edit permission on the control's reso
|
|
|
2051
2499
|
\`{ "attestationId": "<id from get-control>" }\`
|
|
2052
2500
|
|
|
2053
2501
|
Full reference: get-reference topic compliance-model
|
|
2502
|
+
`,
|
|
2503
|
+
"revoke-exemptions.md": `Withdraw exemptions on a JupiterOne Compliance (CCM) control test, by decision (\`groupId\` from \`create-exemptions\`), by entity, or both (the intersection), so the assets fail the test again on its next run. A revoke is a hard delete, and by \`entityIds\` alone it removes whoever's exemption those assets carry; prefer \`groupId\`. The test's whole set cannot be revoked in one call; name the decision or the entities. Exemptions and their groups are listed on \`get-control\` (\`tests[].exemptions\`). Vocabulary: revoke exemption, remove exception, un-exempt, expire waiver, reinstate.
|
|
2504
|
+
|
|
2505
|
+
## Parameters
|
|
2506
|
+
|
|
2507
|
+
\`controlTestId\` and at least one of \`groupId\` and \`entityIds[]\` (graph \`_id\`s, 1 to 50).
|
|
2508
|
+
|
|
2509
|
+
## Outcomes
|
|
2510
|
+
|
|
2511
|
+
- \`revoked\`: \`count\` of exemptions withdrawn, the test's \`name\`, the control's \`id\`, \`name\`, \`url\`, and \`note\` that the status changes on the next evaluation. A \`count\` of 0 means nothing matched the selector and nothing changed. It is not proof the assets are unexempted: a re-file moves them to a new \`groupId\`, so confirm on the test's \`exemptions\` in \`get-control\`.
|
|
2512
|
+
- Errors: \`test_not_found:\`; \`invalid_input:\` (neither selector); \`read_failed:\` (the test could not be read in time; nothing was revoked); \`interrupted:\` (cut off at the 55-second limit and may have landed; read the test's \`exemptions\` on \`get-control\` to see what is still active before calling again).
|
|
2513
|
+
|
|
2514
|
+
## Access
|
|
2515
|
+
|
|
2516
|
+
Needs the Compliance (CCM) entitlement and edit permission on the control's resource group; an access-denied error names the missing one.
|
|
2517
|
+
|
|
2518
|
+
## Example
|
|
2519
|
+
|
|
2520
|
+
\`{ "controlTestId": "<id>", "groupId": "<groupId from create-exemptions>" }\`
|
|
2521
|
+
|
|
2522
|
+
Full reference: get-reference topic framework-authoring
|
|
2054
2523
|
`,
|
|
2055
2524
|
"server-instructions.md": `JupiterOne is the user's security asset graph: cloud, identity, device, code and vulnerability data as
|
|
2056
2525
|
entities and relationships, queried with J1QL. Use these tools for any question about the user's real
|
|
@@ -2081,7 +2550,7 @@ every tool; list-accounts returns the ids.
|
|
|
2081
2550
|
|
|
2082
2551
|
## Paging differs by tool
|
|
2083
2552
|
J1QL tools return a top-level cursor with hasMore; list tools (rules, integrations, jobs, events,
|
|
2084
|
-
controls) return pageInfo.endCursor with hasNextPage
|
|
2553
|
+
controls) return pageInfo.endCursor with hasNextPage; a repeat without the cursor is page one.
|
|
2085
2554
|
|
|
2086
2555
|
## Dashboards
|
|
2087
2556
|
Chart renderers read specific RETURN aliases; the widget tools refuse a query whose aliases cannot
|
|
@@ -2099,19 +2568,153 @@ rawDataKey; update-inline-question-rule and delete-rule refuse rules a control t
|
|
|
2099
2568
|
## Threat intelligence vs this environment
|
|
2100
2569
|
get-threat is intelligence about a CVE; get-threat-trending is what escalated ecosystem-wide; only
|
|
2101
2570
|
check-threat-exposure reads this account's graph. A trending CVE says nothing about exposure until
|
|
2102
|
-
checked. These need the VulnerabilityManagement entitlement;
|
|
2103
|
-
account.
|
|
2571
|
+
checked. These need the VulnerabilityManagement entitlement; access-denied there is not a revoked account.
|
|
2104
2572
|
|
|
2105
2573
|
## Compliance (CCM)
|
|
2106
|
-
CCM is the source of truth for control status:
|
|
2107
|
-
|
|
2108
|
-
test fails its control; an expired, unrevoked attestation fails it; only LIVE
|
|
2109
|
-
|
|
2110
|
-
|
|
2574
|
+
CCM is the source of truth for control status: use get-compliance-summary, list-controls, get-control
|
|
2575
|
+
and the attestation tools, not J1QL; a standard or named control goes to check-compliance-coverage
|
|
2576
|
+
first. A failing test fails its control; an expired, unrevoked attestation fails it; only LIVE
|
|
2577
|
+
controls count. Authoring lands DRAFT; link an existing control before creating one;
|
|
2578
|
+
transition-controls promotes. Reads lag writes: re-read, never re-create.
|
|
2111
2579
|
|
|
2112
2580
|
## Permissions are advisory
|
|
2113
2581
|
test-connection's permissions understate real access (measured); use them to explain a failure, never
|
|
2114
2582
|
to refuse work. Attempt the call; the API is the authority.
|
|
2583
|
+
`,
|
|
2584
|
+
"skills/author-compliance-framework/SKILL.md": `---
|
|
2585
|
+
name: author-compliance-framework
|
|
2586
|
+
description: Build a JupiterOne Compliance (CCM) framework from a customer's own compliance material (a control register, auditor evidence requests, a standard's text) through the authoring tools, one reviewed layer at a time, landing everything DRAFT with validated tests.
|
|
2587
|
+
---
|
|
2588
|
+
|
|
2589
|
+
# Author a compliance framework
|
|
2590
|
+
|
|
2591
|
+
You are helping a compliance lead turn their compliance material into a working CCM framework.
|
|
2592
|
+
Work one layer at a time and show each layer before you create the next; the user reviews in the
|
|
2593
|
+
conversation, and nothing you create counts until they promote it. If they have not said which
|
|
2594
|
+
standard it is or what material they have, ask.
|
|
2595
|
+
|
|
2596
|
+
## 1. Understand before building
|
|
2597
|
+
|
|
2598
|
+
- Ask for, or read from what was shared: the standard they are tracking, their control register
|
|
2599
|
+
(ids, names, descriptions, owners, how each is evidenced today), past audit evidence requests,
|
|
2600
|
+
and the tools in their stack (identity, cloud, endpoint, vulnerability, code, network).
|
|
2601
|
+
- Keep their identifiers and names exactly as written. Do not invent, renumber or "improve" them.
|
|
2602
|
+
- Run \`check-compliance-coverage\` with the standard's name. \`importable\` means JupiterOne ships a
|
|
2603
|
+
prebuilt version: offer \`import-framework\` and then tune it, instead of building from scratch.
|
|
2604
|
+
\`covered\` or \`partial\` means it is already here: work with what exists.
|
|
2605
|
+
- Confirm what is queryable: \`get-integration-instances\` for the connected integrations and
|
|
2606
|
+
\`list-entity-types\` for the data the account holds. A control whose evidence lives in a tool that
|
|
2607
|
+
is not connected can only be attested, not tested.
|
|
2608
|
+
|
|
2609
|
+
## 2. Structure
|
|
2610
|
+
|
|
2611
|
+
- Propose the sections and requirements (from the standard, or from their register's domains and
|
|
2612
|
+
obligations) and show the list. On their go-ahead, \`create-framework\`, then
|
|
2613
|
+
\`create-requirements\` with one batch per section: \`title\` is the obligation in the standard's
|
|
2614
|
+
words, \`identifier\` is the standard's id, \`section\` groups them, \`priority\` where the standard or
|
|
2615
|
+
the customer ranks them.
|
|
2616
|
+
|
|
2617
|
+
## 3. Controls: reuse before create
|
|
2618
|
+
|
|
2619
|
+
- For each requirement, look for a control the account already has (\`check-compliance-coverage\`
|
|
2620
|
+
with a \`topic\`, or \`list-controls\` with \`search\`): JupiterOne-managed controls from a prebuilt
|
|
2621
|
+
framework, or the customer's own. Show the matches; on agreement, \`link-controls\` attaches them
|
|
2622
|
+
to the requirement.
|
|
2623
|
+
- Create the rest with \`create-controls\`, one batch per requirement, in their own words: \`name\`,
|
|
2624
|
+
\`identifier\`, \`description\` (what the organisation does, naming the tool or process), \`owner\`,
|
|
2625
|
+
\`remediation\`. Leave \`state\` at DRAFT. A \`already_exists\` item names a control elsewhere in the
|
|
2626
|
+
account: link it rather than creating a second one.
|
|
2627
|
+
- Classify each control: automated (a query can prove it), attestation-only (a policy, a review,
|
|
2628
|
+
a document), or both.
|
|
2629
|
+
|
|
2630
|
+
## 4. Tests, one at a time
|
|
2631
|
+
|
|
2632
|
+
For each automated control: read the requirement (the domain and how broad it is), the control
|
|
2633
|
+
(the tool or process), and the auditor's evidence request (the exact data). Then:
|
|
2634
|
+
|
|
2635
|
+
1. Discover the entity type (\`list-entity-types\`), sample it, probe stored values (casing varies).
|
|
2636
|
+
2. Write the query and run it with \`execute-j1ql-query\`; confirm the rows are what an auditor
|
|
2637
|
+
would accept. Narrow with \`WITH\`, never broaden to make rows appear.
|
|
2638
|
+
3. Decide \`resultsAre\`: \`BAD\` when rows are violations (the test fails on any row), \`GOOD\` when
|
|
2639
|
+
rows are compliant assets (the test never fails; zero rows proves nothing). Prefer a BAD test;
|
|
2640
|
+
pair a GOOD one with it when "does the data exist at all" matters.
|
|
2641
|
+
4. \`create-control-test\` with the control id, a name the auditor would recognise, the query and
|
|
2642
|
+
\`resultsAre\`. Read \`rows\`, \`noDatapoints\` and \`effective\` in the response; a test that saw no
|
|
2643
|
+
data or names an unknown type needs a different query or a connected integration, not a pass.
|
|
2644
|
+
|
|
2645
|
+
Show the user each test's rows before moving on. A control that needs two checks gets two tests.
|
|
2646
|
+
Attestation-only controls get no test; note them for \`create-attestation\` once they are LIVE.
|
|
2647
|
+
|
|
2648
|
+
## 5. Prove and hand over
|
|
2649
|
+
|
|
2650
|
+
- \`evaluate-controls\` on the drafts, then \`get-control\` on each: the tests now carry statuses;
|
|
2651
|
+
the control stays unscored until LIVE. Separate real failures (fix the environment) from
|
|
2652
|
+
environment mismatches (fix the query with \`update-control-test\`) and missing data (connect or
|
|
2653
|
+
enable the integration).
|
|
2654
|
+
- Summarise what was built: the framework \`url\`, requirements, controls created and linked,
|
|
2655
|
+
tests and their results, and the attestation-only controls. Promotion is a separate step with
|
|
2656
|
+
the user's say-so: the \`promote-compliance-framework\` workflow, or \`transition-controls\`.
|
|
2657
|
+
|
|
2658
|
+
Rules that hold throughout: every write lands DRAFT; \`already_exists\` means use what is there;
|
|
2659
|
+
after a call that was cut off (an \`interrupted:\` error, items \`interrupted\`, or no response) read
|
|
2660
|
+
back before repeating, and resend only what \`nextInputs\` holds; the manual \`framework-authoring\`
|
|
2661
|
+
on \`get-reference\` has the details.
|
|
2662
|
+
`,
|
|
2663
|
+
"skills/promote-compliance-framework/SKILL.md": `---
|
|
2664
|
+
name: promote-compliance-framework
|
|
2665
|
+
description: Take a JupiterOne Compliance (CCM) framework whose controls sit in DRAFT or REVIEW through evaluation, review and promotion to LIVE, explaining what each state means and letting the user decide how far to go.
|
|
2666
|
+
---
|
|
2667
|
+
|
|
2668
|
+
# Promote a compliance framework
|
|
2669
|
+
|
|
2670
|
+
You are helping a compliance lead decide which of a framework's controls should go live, and
|
|
2671
|
+
getting them there. If they have not said which framework, ask.
|
|
2672
|
+
|
|
2673
|
+
## 1. See what is there
|
|
2674
|
+
|
|
2675
|
+
- \`get-compliance-summary\` with the framework's name or id: a framework whose controls are all
|
|
2676
|
+
DRAFT reads "0 passing, 0 failing" because drafts are excluded from every count, not because
|
|
2677
|
+
nothing has been checked.
|
|
2678
|
+
- \`list-controls\` for the framework with \`states: ["DRAFT", "REVIEW"]\`: which controls are waiting,
|
|
2679
|
+
which have tests (\`numberOfTests\`) and which have none (\`effectiveStatus: NO_TESTS\`).
|
|
2680
|
+
|
|
2681
|
+
## 2. Prove the drafts
|
|
2682
|
+
|
|
2683
|
+
- \`evaluate-controls\` on the drafts with tests (batches of up to 25). Results take minutes.
|
|
2684
|
+
- \`get-control\` on each: a draft's tests now carry \`status\`, while the control itself stays
|
|
2685
|
+
unscored (\`statusExplanation: not_live\`, with \`testsRan\`, \`testsPassing\`, \`testsFailing\`). Read
|
|
2686
|
+
\`passingWithoutData\` and each test's \`effective\`: a pass on no data is not evidence.
|
|
2687
|
+
- Sort what you find into real failures (the environment needs fixing; the control can still go
|
|
2688
|
+
live and will report the failure), query mistakes (\`update-control-test\` with a corrected query,
|
|
2689
|
+
then evaluate again), and missing data (an integration to connect or enable).
|
|
2690
|
+
- Controls with no tests pass only by attestation once LIVE; say which ones those are.
|
|
2691
|
+
|
|
2692
|
+
## 3. Explain the states, then ask
|
|
2693
|
+
|
|
2694
|
+
Tell the user what each move means before moving anything:
|
|
2695
|
+
|
|
2696
|
+
- **REVIEW**: a sign-off stage; still excluded from scorecards.
|
|
2697
|
+
- **LIVE**: evaluated daily, counted in every scorecard, counts against the account's
|
|
2698
|
+
live-controls limit, can be attested. Newly LIVE controls read "0 passing, 0 failing" until their
|
|
2699
|
+
first run.
|
|
2700
|
+
- **RETIRED**: excluded; the stored status is cleared and re-scored if the control returns to LIVE.
|
|
2701
|
+
|
|
2702
|
+
Ask whether they want everything LIVE now, a REVIEW stop first, or only the controls whose tests
|
|
2703
|
+
they have seen. Retiring is by explicit control ids, never framework-wide.
|
|
2704
|
+
|
|
2705
|
+
## 4. Promote
|
|
2706
|
+
|
|
2707
|
+
- \`transition-controls\` with \`frameworkId\` and the target state they chose (the tool walks
|
|
2708
|
+
DRAFT→REVIEW→LIVE when asked for LIVE), or with the chosen \`controlIds\`. Read \`transitioned\`,
|
|
2709
|
+
\`skipped\`, \`refused\` and \`remaining\`; while the result has \`nextInputs\`, make each of those
|
|
2710
|
+
calls and repeat with their results.
|
|
2711
|
+
- A \`live_limit\` refusal carries the backend's own numbers: stop, report them, and offer to retire
|
|
2712
|
+
controls or keep the rest in DRAFT.
|
|
2713
|
+
- Afterwards \`get-compliance-summary\` again, with the note that newly LIVE controls show no result
|
|
2714
|
+
until their first evaluation.
|
|
2715
|
+
|
|
2716
|
+
Every state change is reversible except that leaving LIVE clears the stored status; nothing here
|
|
2717
|
+
deletes anything. Details: the manual \`framework-authoring\` on \`get-reference\`.
|
|
2115
2718
|
`,
|
|
2116
2719
|
"test-connection.md": `Test the connection to JupiterOne and the caller's access to the target account, and report who
|
|
2117
2720
|
the caller is: the credential type, the signed-in user's email and a summary of permissions. Call
|
|
@@ -2135,6 +2738,37 @@ sign-in can access. If tools take an \`accountId\`, retry with one of those; the
|
|
|
2135
2738
|
needs no change. If the connection is pinned, the list carries each account's connector URL;
|
|
2136
2739
|
relay it so the user can fix the connector's account binding. Do not loop on re-authentication:
|
|
2137
2740
|
if the text says the pinned account is inaccessible, re-authenticating will not fix it.
|
|
2741
|
+
`,
|
|
2742
|
+
"transition-controls.md": `Move JupiterOne Compliance (CCM) controls between lifecycle states in a batch, by id or for a whole framework: promote drafts to REVIEW or LIVE, send a control back, or retire one. Authored and imported controls land DRAFT and are excluded from every scorecard until they are LIVE, so this is the call that makes a framework count; which state to go to is the user's decision. Siblings: \`evaluate-controls\` proves drafts first, \`list-controls\` with \`states\` shows what is waiting. Vocabulary: promote, go live, make live, activate, bulk, publish controls, review, retire, draft to live, state.
|
|
2743
|
+
|
|
2744
|
+
## States
|
|
2745
|
+
|
|
2746
|
+
- \`DRAFT\`: authoring; excluded from counts; tests run only on request.
|
|
2747
|
+
- \`REVIEW\`: sign-off; still excluded.
|
|
2748
|
+
- \`LIVE\`: evaluated daily, counted everywhere, counts against the live-controls limit, attestable. Newly LIVE controls read "0 passing, 0 failing" until their first run.
|
|
2749
|
+
- \`RETIRED\`: excluded; the stored status is cleared on leaving LIVE and re-scored on return.
|
|
2750
|
+
|
|
2751
|
+
Valid moves: DRAFT→REVIEW, REVIEW→DRAFT, REVIEW→LIVE, LIVE→REVIEW, LIVE→RETIRED, RETIRED→LIVE. A request for a state two moves away (DRAFT to LIVE) walks both, landing the first move across the whole batch before the second so a cut-off call leaves every control in a consistent state. A path through LIVE toward another state (DRAFT or REVIEW to RETIRED, RETIRED to REVIEW or DRAFT) is not taken: promote to LIVE first if that is what the user wants.
|
|
2752
|
+
|
|
2753
|
+
## Parameters
|
|
2754
|
+
|
|
2755
|
+
Exactly one of \`controlIds[]\` (1 to 25 exact ids) or \`frameworkId\` (every control of the framework in one of \`fromStates\`, default \`["DRAFT", "REVIEW"]\`); \`targetState\`; optional \`note\` recorded on each transition. With \`controlIds\`, a control moves from whatever state it is in unless \`fromStates\` is given. \`RETIRED\` is accepted only with \`controlIds\`. Every move is decided on the state the API holds now, never on the graph's.
|
|
2756
|
+
|
|
2757
|
+
## Outcomes
|
|
2758
|
+
|
|
2759
|
+
Always \`ok\`: \`transitioned[]\`, one entry per move (\`id\`, \`name\`, \`from\`, \`to\`, \`url\`; DRAFT to LIVE is two), \`skipped[]\` (\`already_in_state\`, \`not_in_from_states\`, \`passes_through_live\`, \`not_found\`, or \`invalid_transition\`, each with the control's current state), \`refused[]\` (\`reason\` with the backend's text, including a control whose read was denied; a \`live_limit\` refusal carries its numbers verbatim and stops the rest), \`interrupted[]\` (moves cut off mid-flight that may still land; each comes back in \`nextInputs\` from either state unless the live-controls limit stopped the call, and \`nextStep\` says to wait for the state to settle first), and \`remaining\`: the controls not reached or not finished within the call's budget, listed in \`remainingControlIds\`. \`nextInputs\` holds the calls that finish the job: make each, then repeat with each result's \`nextInputs\` until there are none. A control this call moved comes back by id with only the state it was left in, so a follow-up that reads it stale moves nothing; a framework pass comes back as the framework, re-checked control by control. \`selectionComplete: false\` means the framework had more controls than one call selects. \`nextStep\` says so, and names \`get-compliance-summary\` once everything is LIVE.
|
|
2760
|
+
|
|
2761
|
+
Errors: \`invalid_input:\` (both or neither selector, an unknown state, RETIRED without ids); \`framework_not_found:\`; a call cut off at the 55-second limit can return no response at all: read the controls back with \`get-control\` or \`list-controls\` \`states\`, then call again; every move is decided on the state the API reads at that moment. After a move, read a control back with \`get-control\` before \`update-control\` or \`link-controls\` on it: CCM writes a control back whole from a read that can lag (\`note\` says so).
|
|
2762
|
+
|
|
2763
|
+
## Access
|
|
2764
|
+
|
|
2765
|
+
Needs the Compliance (CCM) entitlement and edit permission on each control's resource group; an access-denied error names the missing one.
|
|
2766
|
+
|
|
2767
|
+
## Example
|
|
2768
|
+
|
|
2769
|
+
\`{ "frameworkId": "<id>", "targetState": "LIVE" }\`
|
|
2770
|
+
|
|
2771
|
+
Full reference: get-reference topic framework-authoring
|
|
2138
2772
|
`,
|
|
2139
2773
|
"update-attestation.md": `Change an existing attestation on a JupiterOne Compliance (CCM) control, most often to renew it with a later \`expiresOn\`; an expired attestation given a future expiry is active again, so renewing works before and after it lapses. Find the attestation \`id\` in \`get-control\` (\`attestations\`) or \`get-compliance-summary\` (\`expiringAttestations\`, \`expiredAttestations\`). Siblings: \`create-attestation\` records a new one, \`revoke-attestation\` withdraws one for good. Vocabulary: compliance, renew, extend, expiry, attestation, evidence, exception, audit.
|
|
2140
2774
|
|
|
@@ -2159,6 +2793,54 @@ Needs the Compliance (CCM) entitlement and edit permission on the control's reso
|
|
|
2159
2793
|
\`{ "attestationId": "<id from get-control>", "expiresOn": "2028-06-30" }\`
|
|
2160
2794
|
|
|
2161
2795
|
Full reference: get-reference topic compliance-model
|
|
2796
|
+
`,
|
|
2797
|
+
"update-control-test.md": `Change an existing test on a JupiterOne Compliance (CCM) control: its query, whether rows are \`GOOD\` or \`BAD\`, its name or description. The usual reason is a query that measured the wrong thing (an unconnected tool, a value stored in another casing, too broad a scope); prove the new query with \`execute-j1ql-query\` first. A changed query is parsed and run before it is saved, like \`create-control-test\`. Test ids come from \`get-control\` (\`tests[].id\`). \`delete-control-test\` removes a test; \`create-control-test\` adds one. Vocabulary: fix test, edit query, change resultsAre, rename test, tune.
|
|
2798
|
+
|
|
2799
|
+
## Parameters
|
|
2800
|
+
|
|
2801
|
+
\`controlTestId\` plus at least one of \`testName\`, \`query\`, \`resultsAre\` (\`GOOD\` or \`BAD\`), \`description\`. One query per test.
|
|
2802
|
+
|
|
2803
|
+
## Preflight
|
|
2804
|
+
|
|
2805
|
+
When \`query\` changes it is parsed locally and run once within the call's budget, as in \`create-control-test\`. A syntax error, or a run the engine rejects outright, returns \`invalid_input:\` with \`structuredContent.suggestion\`; nothing is saved. Otherwise \`rows\`, \`noDatapoints\` and \`queryRun\` (\`ran\`, \`skipped_deadline\`, \`error\`) are advisory, and an \`error\` comes with a \`nextStep\`.
|
|
2806
|
+
|
|
2807
|
+
## Outcomes
|
|
2808
|
+
|
|
2809
|
+
- \`updated\`: \`test\` as saved (\`id\`, \`name\`, \`resultsAre\`, \`effective\`, \`referencedRuleId\`), the control's \`id\`, \`state\`, \`url\`. The stored evaluation and the control's status are from the previous query until the next run: \`evaluate-controls\` on a draft, or the daily run on a LIVE control. Exemptions apply to evaluations of the query they were filed against, so a changed query may need a new evaluation before \`create-exemptions\` is eligible. Safe to repeat.
|
|
2810
|
+
- \`not_found\`: no non-deleted test has this id; nothing changed.
|
|
2811
|
+
- Errors: \`invalid_input:\` (no field to change, or a query that cannot run); \`read_failed:\` (the test could not be read in time; nothing changed; call again); \`interrupted:\` (cut off at the 55-second limit and may have landed; read back with \`get-control\` before repeating).
|
|
2812
|
+
|
|
2813
|
+
## Access
|
|
2814
|
+
|
|
2815
|
+
Needs the Compliance (CCM) entitlement and edit permission on the control's resource group; an access-denied error names the missing one.
|
|
2816
|
+
|
|
2817
|
+
## Example
|
|
2818
|
+
|
|
2819
|
+
\`{ "controlTestId": "<id from get-control>", "query": "FIND wiz_finding WITH severity = 'critical' AND status = 'OPEN' AS f RETURN f.displayName" }\`
|
|
2820
|
+
|
|
2821
|
+
Full reference: get-reference topic framework-authoring
|
|
2822
|
+
`,
|
|
2823
|
+
"update-control.md": `Change a JupiterOne Compliance (CCM) control's fields: name, description, identifier, catalog, owner, remediation, exception process, MITRE technique, resource group, and the requirements it serves. Use it to enrich a template control with the customer's own wording and ids, to fix a mistake, or to detach a control from a requirement. It never changes the lifecycle state (\`transition-controls\`) or the tests (\`create-\`, \`update-\`, \`delete-control-test\`). Vocabulary: edit control, rename, update description, remediation, owner, map to requirement, unlink, requirementIds.
|
|
2824
|
+
|
|
2825
|
+
## Parameters
|
|
2826
|
+
|
|
2827
|
+
\`controlId\` plus at least one field to change. Strings: \`controlName\`, \`description\`, \`identifier\`, \`catalog\`, \`owner\` (an email), \`remediation\`, \`exceptionProcess\` (markdown), \`mitreTechnique\` (\`T1078\` or \`T1059.001\`), \`resourceGroupId\`; \`null\` clears \`identifier\`, \`catalog\`, \`owner\`, \`remediation\`, \`exceptionProcess\` or \`mitreTechnique\`; \`description\` and \`resourceGroupId\` cannot be cleared, only replaced. \`requirementIds\` is an object with one of \`set\` (replace the whole list; never empty), \`add\` or \`remove\`; an omitted field is left as it is.
|
|
2828
|
+
|
|
2829
|
+
## Outcomes
|
|
2830
|
+
|
|
2831
|
+
- \`updated\`: \`control\` as saved, with \`state\`, \`frameworkIds\`, \`url\`. Safe to repeat: the same input a second time changes nothing. A \`requirementIds\` change is the slow path (over a minute on a slow backend, answered \`interrupted:\`); finish it, read the control back, and only then transition it, since a late-landing update restores the state it read. The reverse holds too: after \`transition-controls\` moves a control, read it with \`get-control\` until it shows the new state before updating it.
|
|
2832
|
+
- \`not_found\`: no non-deleted control has this id; nothing changed.
|
|
2833
|
+
- Errors: \`invalid_input:\` (no field to change, a malformed owner or MITRE id, \`requirementIds\` with several of \`set\`, \`add\`, \`remove\`, or \`set: []\`); \`requirement_not_found:\` (an id to add does not exist); \`not_ready:\` (an id to add was created moments ago and CCM cannot link to it yet; nothing changed; call again in a minute); \`interrupted:\` (cut off at the 55-second limit and may have landed; read back with \`get-control\` before repeating).
|
|
2834
|
+
|
|
2835
|
+
## Access
|
|
2836
|
+
|
|
2837
|
+
Needs the Compliance (CCM) entitlement and edit permission on the control's resource group; an access-denied error names the missing one.
|
|
2838
|
+
|
|
2839
|
+
## Example
|
|
2840
|
+
|
|
2841
|
+
\`{ "controlId": "ccm_c_…", "identifier": "6.1.2", "remediation": "Enable the Okta MFA sign-on policy for the affected group.", "requirementIds": { "add": ["<requirementId>"] } }\`
|
|
2842
|
+
|
|
2843
|
+
Full reference: get-reference topic framework-authoring
|
|
2162
2844
|
`,
|
|
2163
2845
|
"update-dashboard-widget.md": `Replace an existing widget's whole definition: its query, title, chart type or settings. The
|
|
2164
2846
|
\`input\` is the widget's new full state, so read the current widget with \`get-dashboard-details\`,
|