@jupiterone/jupiterone-mcp 2.4.3 → 2.5.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 +22 -0
- package/dist/client/graphql/mutations.d.ts +3 -0
- package/dist/client/graphql/mutations.d.ts.map +1 -1
- package/dist/client/graphql/mutations.js +20 -1
- package/dist/client/graphql/mutations.js.map +1 -1
- package/dist/client/graphql/queries.d.ts +27 -0
- package/dist/client/graphql/queries.d.ts.map +1 -1
- package/dist/client/graphql/queries.js +186 -1
- package/dist/client/graphql/queries.js.map +1 -1
- package/dist/client/jupiterone-client.d.ts +26 -1
- package/dist/client/jupiterone-client.d.ts.map +1 -1
- package/dist/client/jupiterone-client.js +44 -3
- package/dist/client/jupiterone-client.js.map +1 -1
- package/dist/client/sanitize-error.d.ts +2 -0
- package/dist/client/sanitize-error.d.ts.map +1 -1
- package/dist/client/sanitize-error.js +9 -1
- package/dist/client/sanitize-error.js.map +1 -1
- package/dist/client/services/compliance-service.d.ts +63 -0
- package/dist/client/services/compliance-service.d.ts.map +1 -0
- package/dist/client/services/compliance-service.js +248 -0
- package/dist/client/services/compliance-service.js.map +1 -0
- package/dist/client/services/rule-service.d.ts +4 -6
- package/dist/client/services/rule-service.d.ts.map +1 -1
- package/dist/client/services/rule-service.js +6 -21
- 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 +736 -4
- 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 +1 -0
- package/dist/server/mcp-server.js.map +1 -1
- package/dist/server/tools/account.d.ts.map +1 -1
- package/dist/server/tools/account.js +4 -4
- package/dist/server/tools/account.js.map +1 -1
- package/dist/server/tools/compliance.d.ts +107 -0
- package/dist/server/tools/compliance.d.ts.map +1 -0
- package/dist/server/tools/compliance.js +2886 -0
- package/dist/server/tools/compliance.js.map +1 -0
- package/dist/server/tools/errors.d.ts +17 -1
- package/dist/server/tools/errors.d.ts.map +1 -1
- package/dist/server/tools/errors.js +59 -4
- package/dist/server/tools/errors.js.map +1 -1
- package/dist/server/tools/index.d.ts.map +1 -1
- package/dist/server/tools/index.js +2 -0
- package/dist/server/tools/index.js.map +1 -1
- package/dist/server/tools/rules.d.ts +35 -1
- package/dist/server/tools/rules.d.ts.map +1 -1
- package/dist/server/tools/rules.js +245 -9
- package/dist/server/tools/rules.js.map +1 -1
- package/dist/server/tools/threat.js +1 -1
- package/dist/server/tools/threat.js.map +1 -1
- package/dist/server/tools/usage.d.ts.map +1 -1
- package/dist/server/tools/usage.js +251 -0
- package/dist/server/tools/usage.js.map +1 -1
- package/dist/types/jupiterone.d.ts +247 -0
- package/dist/types/jupiterone.d.ts.map +1 -1
- package/node_modules/dtrace-provider/build/Makefile +1 -1
- package/package.json +1 -1
|
@@ -50,6 +50,116 @@ permission.
|
|
|
50
50
|
\`\`\`json
|
|
51
51
|
{ "cveIds": ["CVE-2021-44228", "CVE-2023-4966"] }
|
|
52
52
|
\`\`\`
|
|
53
|
+
`,
|
|
54
|
+
"create-attestation.md": `# Create Attestation Tool
|
|
55
|
+
|
|
56
|
+
Attest a JupiterOne Compliance (CCM) control: record that it is met by evidence no control test can
|
|
57
|
+
query, such as a policy, a manual review or a document, until a stated expiry. Companion tools:
|
|
58
|
+
\`get-control\` to resolve the control id first and to read the result back, \`update-attestation\` to
|
|
59
|
+
change or renew an attestation, and \`revoke-attestation\` to withdraw one.
|
|
60
|
+
|
|
61
|
+
**Attestations apply to LIVE controls only.** An attestation passes a control only when no test
|
|
62
|
+
has a status; it never masks a failing test, and a passing test already passes the control.
|
|
63
|
+
|
|
64
|
+
## Parameters
|
|
65
|
+
|
|
66
|
+
- \`controlId\` (required): the exact control id from \`get-control\` or \`list-controls\`. Resolve an
|
|
67
|
+
identifier or a name with \`get-control\` first. Control ids never contain quotes or backslashes.
|
|
68
|
+
- \`subject\` (required): what is attested, such as the policy or evidence name. It is also the
|
|
69
|
+
duplicate key; see Outcomes.
|
|
70
|
+
- \`expiresOn\` (required): when the attestation lapses, in the future. One of \`"YYYY-MM-DD"\` (read as
|
|
71
|
+
the end of that day, \`23:59:59.999\` UTC, as the JupiterOne app stores it, so today's date is
|
|
72
|
+
accepted until the end of today), a date-time with a \`Z\` or a \`±hh:mm\` offset
|
|
73
|
+
(\`"YYYY-MM-DDThh:mm:ssZ"\`, \`"YYYY-MM-DDThh:mm:ss+02:00"\`), or epoch **milliseconds** as a number
|
|
74
|
+
or a string of digits (\`1814313600000\`). A date-time without \`Z\` or an offset is rejected,
|
|
75
|
+
because it would be read in the time zone of whichever machine runs the server. A number below
|
|
76
|
+
1e12, such as epoch seconds or a compact date like \`20270630\`, is rejected rather than read as a
|
|
77
|
+
1970 date.
|
|
78
|
+
- \`description\` (optional): markdown detail.
|
|
79
|
+
- \`owner\` (optional): the accountable person's email.
|
|
80
|
+
- \`documentLink\` (optional): an \`http\` or \`https\` URL to the evidence.
|
|
81
|
+
|
|
82
|
+
A parameter that fails these rules (an \`owner\` that is not an email, a \`documentLink\` that is not
|
|
83
|
+
http or https, a \`controlId\` with a quote) is rejected before the tool runs, with a message naming
|
|
84
|
+
the parameter and the rule.
|
|
85
|
+
|
|
86
|
+
## Outcomes
|
|
87
|
+
|
|
88
|
+
Successes carry \`attestation\` (\`id\`, \`subject\`, \`state\`, \`expiresOn\`, \`expiresOnIso\`, \`owner\`,
|
|
89
|
+
\`author\`, \`documentLink\`, \`controlId\`), \`control\` (\`id\`, \`name\`, \`state\`, and \`url\`, a link to its
|
|
90
|
+
page in the JupiterOne app) and a \`note\`. When you name a framework or control to the user, give
|
|
91
|
+
its \`url\`. The success outcomes:
|
|
92
|
+
|
|
93
|
+
- \`created\` — the attestation was created.
|
|
94
|
+
- \`already_exists\` — the control already has an ACTIVE attestation with the same \`subject\` (trimmed,
|
|
95
|
+
case-insensitive). That attestation is returned and nothing new was created, so a retry is safe.
|
|
96
|
+
To change its expiry or details, call \`update-attestation\` with its \`id\`. When several ACTIVE
|
|
97
|
+
attestations share the subject, \`matches\` lists them all (\`id\`, \`subject\`, \`expiresOnIso\`,
|
|
98
|
+
\`createdOn\`), newest first, and \`attestation\` is the one whose subject is exactly yours, or the
|
|
99
|
+
most recently created when none or several are. They are separate attestations: check \`matches\`
|
|
100
|
+
before renewing one. \`requestedExpiresOnIso\` is the expiry you asked for; when the existing
|
|
101
|
+
attestation's differs, \`requestedExpiresOnApplied: false\` and the \`note\` say it was not applied.
|
|
102
|
+
Report the existing \`attestation.expiresOnIso\`, and change it with \`update-attestation\`.
|
|
103
|
+
|
|
104
|
+
Both also carry \`statusImpact\`, what the attestation does to the control's status, and \`blockers\`:
|
|
105
|
+
|
|
106
|
+
- \`blocked\` — something keeps the control failing whatever is attested: a failing test
|
|
107
|
+
(\`{ "type": "failing_test", "id", "name" }\`) or an expired attestation nobody revoked
|
|
108
|
+
(\`{ "type": "expired_attestation", "id", "subject", "expiresOnIso" }\`). The \`note\` names each one.
|
|
109
|
+
**Do not tell the user the control is covered.** Fix the test, or renew the expired attestation
|
|
110
|
+
with \`update-attestation\` or revoke it.
|
|
111
|
+
- \`passes_by_attestation\` — no test has a status and nothing blocks it: the control passes on its
|
|
112
|
+
attestations once CCM re-scores it.
|
|
113
|
+
- \`already_passing\` — a passing test already passes the control; the attestation is recorded but
|
|
114
|
+
does not change its status.
|
|
115
|
+
|
|
116
|
+
Refusals are errors whose text starts with the outcome (\`not_live: …\`), which
|
|
117
|
+
\`structuredContent.outcome\` carries too, and nothing was created. The text never names the control;
|
|
118
|
+
\`structuredContent.controlId\` does:
|
|
119
|
+
|
|
120
|
+
- \`not_found\` — no control has this \`controlId\`. Resolve the id with \`get-control\` (by
|
|
121
|
+
\`identifier\` or \`controlName\`) and retry with the \`id\` it returns.
|
|
122
|
+
- \`not_live\` — the control is DRAFT, REVIEW or RETIRED; \`control\` (\`id\`, \`name\`, \`state\`) says
|
|
123
|
+
which. No tool on this connection can change a control's state: it has to be promoted to LIVE in
|
|
124
|
+
JupiterOne Compliance before it can be attested, so tell the user rather than retrying.
|
|
125
|
+
- \`invalid_input\` — \`expiresOn\` is not one of the forms above (a date-time without a time zone
|
|
126
|
+
included), is a number below 1e12, or is in the past. The control was not read.
|
|
127
|
+
|
|
128
|
+
If the duplicate check cannot read the control's attestations, the call fails rather than risk a
|
|
129
|
+
duplicate.
|
|
130
|
+
|
|
131
|
+
One error is different: \`interrupted\` means the request reached the server's time limit while the
|
|
132
|
+
attestation was being written, so it may have been created. Before deciding whether another create
|
|
133
|
+
is needed, read the control with \`get-control\`: its \`attestations\` lists the subject once CCM can
|
|
134
|
+
read it, which can take up to a minute, so wait a minute if it is not there yet. Do not call
|
|
135
|
+
\`create-attestation\` again at once: inside that minute the duplicate check cannot see the first
|
|
136
|
+
attestation either.
|
|
137
|
+
|
|
138
|
+
## Reading back
|
|
139
|
+
|
|
140
|
+
CCM's reads lag its writes by **a few seconds, occasionally up to a minute**. Right after \`created\`,
|
|
141
|
+
\`get-control\` can still show no new attestation and \`hasValidAttestation: false\`, and the counts in
|
|
142
|
+
\`get-compliance-summary\` lag the same way. **Re-read after a pause; do not re-create.** The
|
|
143
|
+
duplicate check sees only what CCM can already read, so a second call inside that window can create
|
|
144
|
+
a duplicate attestation.
|
|
145
|
+
|
|
146
|
+
## Access
|
|
147
|
+
|
|
148
|
+
Requires the account's Compliance (CCM) entitlement and edit permission on the control's resource
|
|
149
|
+
group. A missing entitlement or permission returns an access-denied error that names it, and
|
|
150
|
+
re-authenticating will not change it.
|
|
151
|
+
|
|
152
|
+
## Example
|
|
153
|
+
|
|
154
|
+
\`\`\`json
|
|
155
|
+
{
|
|
156
|
+
"controlId": "<id from get-control>",
|
|
157
|
+
"subject": "Log Management Policy v3",
|
|
158
|
+
"expiresOn": "2027-06-30",
|
|
159
|
+
"owner": "grc-owner@example.com",
|
|
160
|
+
"documentLink": "https://example.com/policies/log-management"
|
|
161
|
+
}
|
|
162
|
+
\`\`\`
|
|
53
163
|
`,
|
|
54
164
|
"create-dashboard-widget.md": `# JupiterOne Create Dashboard Widget Tool
|
|
55
165
|
|
|
@@ -512,6 +622,8 @@ After creating a dashboard, you should include the dashboard's url in your respo
|
|
|
512
622
|
|
|
513
623
|
**Purpose**: Creates inline question-based alert rules in JupiterOne to monitor entities and trigger alerts based on specified conditions.
|
|
514
624
|
|
|
625
|
+
**Reserved names**: a \`name\` starting \`CONTROL-TEST:\` is refused (\`lintCode: 'ccm-managed-rule'\`), because that prefix marks the control tests JupiterOne Compliance (CCM) creates, and \`update-inline-question-rule\` refuses any name with it, so the rule could never be updated. Choose a name without it.
|
|
626
|
+
|
|
515
627
|
The first step in creating a rule is to identify the query you want to use in order to get the data you want to take action with. Use the \`execute-j1ql-query\` tool to find the correct query.
|
|
516
628
|
|
|
517
629
|
## Key Requirements for Success
|
|
@@ -1018,6 +1130,8 @@ Deletes an alert rule. Works for any rule instance — one built from an inline
|
|
|
1018
1130
|
|
|
1019
1131
|
Deleting a rule does **not** dismiss alerts it has already raised — those stay active. If the intent is to stop a rule from firing while keeping its configuration and evaluation history, call \`update-inline-question-rule\` with \`pollingInterval: "DISABLED"\` instead of deleting it.
|
|
1020
1132
|
|
|
1133
|
+
**Exception: JupiterOne Compliance (CCM) rules.** CCM runs each control test as a rule (named \`CONTROL-TEST:<test name>\`) owned by its control, and those rules are hidden from \`list-rules\` and \`get-rule-details\`. Before deleting, this tool asks the graph whether a control test references the rule id, and refuses if one does (\`lintCode: 'ccm-managed-rule'\`); \`update-inline-question-rule\` refuses to disable such a rule too. The change belongs on the control in the Compliance app, and \`get-control\` reads the control and its tests. If the check cannot answer — the query failed, or the \`ruleId\` is not a UUID — the delete is refused with \`lintCode: 'ccm-ownership-unverified'\` rather than risk breaking a control test. Nothing was deleted; retry, or correct the id. Responses carry \`ccmOwnership\`: \`'clear'\` on a delete, \`'managed'\` or \`'unverified'\` on a refusal.
|
|
1134
|
+
|
|
1021
1135
|
## Parameters
|
|
1022
1136
|
|
|
1023
1137
|
- \`ruleId\` (required): The unique identifier of the rule to delete.
|
|
@@ -1540,6 +1654,347 @@ This tool waits about 10 seconds (which covers ~97% of queries). If the response
|
|
|
1540
1654
|
1. **Keep working.** Run other queries and tools in the meantime — the query completes on its own.
|
|
1541
1655
|
2. **Collect when convenient:** call \`get-query-results\` with the returned \`resultsUrl\`. By default it waits up to 40 seconds and returns the results the moment they are ready; pass \`waitSeconds: 1\` for an instant status check.
|
|
1542
1656
|
3. **Only rewrite the query if it actually fails.** If \`get-query-results\` reports the query FAILED, run a narrower version (indexed \`WITH\` filters, smaller \`LIMIT\`, fewer traversals).
|
|
1657
|
+
`,
|
|
1658
|
+
"get-compliance-summary.md": `# Compliance Summary Tool
|
|
1659
|
+
|
|
1660
|
+
Return the account's compliance posture from JupiterOne Compliance (CCM): a scorecard for every
|
|
1661
|
+
framework and, for one framework, its sections and failing requirements, plus the attestations that
|
|
1662
|
+
expire soon or have already lapsed. These are the numbers CCM itself reports, so answer posture
|
|
1663
|
+
questions from this result rather than re-deriving pass/fail. Companion tools: \`list-controls\` for
|
|
1664
|
+
the controls behind a number, \`get-control\` for why one control passes or fails, and
|
|
1665
|
+
\`update-attestation\` to renew an attestation, before it expires or after it has lapsed.
|
|
1666
|
+
|
|
1667
|
+
## Parameters
|
|
1668
|
+
|
|
1669
|
+
- \`frameworkId\` (optional): one framework's \`id\` from \`frameworks[]\`. Adds \`framework\` with its
|
|
1670
|
+
section counts and failing requirements, and \`frameworks\` then holds that framework's scorecard
|
|
1671
|
+
only: the other frameworks' counts are not read, which is much faster on an account with many
|
|
1672
|
+
frameworks. Omit it for the scorecard of every framework.
|
|
1673
|
+
- \`frameworkName\` (optional): a framework's name, instead of \`frameworkId\`; passing both returns an
|
|
1674
|
+
error whose text starts \`invalid_input:\`. It is matched as an exact id, then as an exact name
|
|
1675
|
+
ignoring case, then as the single framework whose name contains it. Framework names repeat, so
|
|
1676
|
+
several matches return \`ambiguous\`.
|
|
1677
|
+
- \`attestationsExpiringWithinDays\` (optional, 1–365, default 30): the window for
|
|
1678
|
+
\`expiringAttestations\`, echoed back as \`attestationsExpiringWithinDays\`. It does not bound
|
|
1679
|
+
\`expiredAttestations\`.
|
|
1680
|
+
|
|
1681
|
+
## Outcomes
|
|
1682
|
+
|
|
1683
|
+
- \`ok\` — the summary was read. **Zero frameworks (\`frameworks: []\`) is a real answer**: the account
|
|
1684
|
+
has no CCM frameworks. It is not a failed read.
|
|
1685
|
+
- \`ambiguous\` — \`frameworkName\` matched several frameworks, so nothing was drilled. \`candidates\`
|
|
1686
|
+
lists up to 25 of them (\`id\`, \`name\`, \`source\`, \`sourceId\`, \`owner\`, \`importStatus\`, \`url\`) and
|
|
1687
|
+
\`candidateCount\` says how many matched; \`frameworks\` lists every framework the same way, with
|
|
1688
|
+
no counts. Ask the user which one, or call again with the right candidate's \`id\` as
|
|
1689
|
+
\`frameworkId\`.
|
|
1690
|
+
- \`framework_not_found\` — no framework has the \`frameworkId\` or \`frameworkName\` you passed. The
|
|
1691
|
+
response echoes what you passed and lists the account's frameworks (\`id\`, \`name\`, \`source\`,
|
|
1692
|
+
\`sourceId\`, \`owner\`, \`importStatus\`, \`url\`) in \`frameworks\`, with no counts; take the id from
|
|
1693
|
+
there and call again. Same-named frameworks often differ only in \`source\`, \`sourceId\` or
|
|
1694
|
+
\`owner\`.
|
|
1695
|
+
|
|
1696
|
+
A call with \`frameworkId\` or \`frameworkName\` carries \`frameworkResolution\`: \`id\`, \`name\` or
|
|
1697
|
+
\`partial\` for the framework it drilled, else \`ambiguous\` or \`not_found\`. A \`partial\` match came from
|
|
1698
|
+
a substring of the name: confirm the framework's \`name\` with the user when it matters.
|
|
1699
|
+
|
|
1700
|
+
\`frameworksComplete: false\` means the framework list stopped at its page limit, so \`frameworks\` is
|
|
1701
|
+
partial. A \`frameworkId\` missing from a partial list is still drilled into rather than reported as
|
|
1702
|
+
not found.
|
|
1703
|
+
|
|
1704
|
+
## Reading the result
|
|
1705
|
+
|
|
1706
|
+
- \`frameworks[]\` — one scorecard each: \`controls\` (\`total\`, \`passing\`, \`failing\`, \`attested\`,
|
|
1707
|
+
\`withTests\`), \`requirements\` (\`total\`, \`passing\`, \`failing\`, \`failingCritical\`), \`importStatus\`
|
|
1708
|
+
and \`healthPct\`. \`attested\` counts every control with a valid attestation, passing or failing:
|
|
1709
|
+
an attestation never masks a failing test, so it is not a subset of \`passing\`. \`controls\` and
|
|
1710
|
+
\`requirements\` are \`null\` when CCM returned no counts for the framework.
|
|
1711
|
+
- \`statsIncomplete\` — the frameworks whose counts did not return in time or could not be read.
|
|
1712
|
+
Their scorecards carry \`controls: null\`, \`requirements: null\` and \`healthPct: null\`, which means
|
|
1713
|
+
"not read", never zero. Call again with that \`frameworkId\` for one of them.
|
|
1714
|
+
- \`healthPct\` = passing ÷ (passing + failing) requirements, as a whole percent. It is \`null\` when no
|
|
1715
|
+
requirement is passing or failing yet: "not evaluated", never 0% and never 100%. It covers
|
|
1716
|
+
evaluated requirements only, so a framework can read 100% with 10 of its 130 requirements
|
|
1717
|
+
evaluated: compare \`requirements.passing + requirements.failing\` with \`requirements.total\`
|
|
1718
|
+
before calling a framework healthy.
|
|
1719
|
+
- \`importStatus\` is \`COMPLETE\`, \`IN_PROGRESS\` or \`FAILED\` (or \`null\`). Anything but \`COMPLETE\` means
|
|
1720
|
+
the framework is still importing or failed to import, so its counts are incomplete.
|
|
1721
|
+
- \`framework\` (only with \`frameworkId\`) carries the same scorecard fields, plus:
|
|
1722
|
+
- \`drillSource\` — \`graph\` when \`failingRequirements\`, \`failingControls\` and
|
|
1723
|
+
\`controls.passingWithoutData\` were read from the JupiterOne graph, which CCM refreshes after
|
|
1724
|
+
each evaluation; \`api\` when the graph could not answer and they were read from CCM itself. The
|
|
1725
|
+
scorecard counts (\`controls\`, \`requirements\`, \`healthPct\`, \`sections\`) are CCM's own either
|
|
1726
|
+
way. When the graph's failing controls and the scorecard's \`controls.failing\` differ,
|
|
1727
|
+
\`warnings\` says so.
|
|
1728
|
+
- \`controls.passingWithoutData\` — LIVE controls that pass on tests that saw no data
|
|
1729
|
+
(\`NO_DATAPOINTS\`). CCM counts them as passing, and health counts them as passing, so a high
|
|
1730
|
+
\`healthPct\` can rest partly on tests that checked nothing. \`null\` when they could not be
|
|
1731
|
+
counted, and then \`passingWithoutDataSkipped\` says why: \`time_budget\` (the read did not finish
|
|
1732
|
+
in time) or \`read_failed\`. A control with no tests is not counted: it passes on an
|
|
1733
|
+
attestation, not on tests that saw nothing. \`passingWithoutDataTruncated: true\` when not every
|
|
1734
|
+
passing control was read: more than 500 of them (from the graph, which returns one row per
|
|
1735
|
+
test, more than four pages of 250 test rows, 1,000 in all). List them with \`list-controls\` and
|
|
1736
|
+
this \`frameworkId\`, \`effectiveness: "NO_DATAPOINTS"\`, \`status: ["PASS"]\` and
|
|
1737
|
+
\`states: ["LIVE"]\`.
|
|
1738
|
+
- \`sections[]\` — per section: \`section\`, \`requirements\`, \`passing\`, \`failing\`. \`null\`, not
|
|
1739
|
+
empty, when the framework's counts were not read (\`statsIncomplete\`).
|
|
1740
|
+
- \`failingRequirements[]\` — derived from the framework's failing LIVE controls: every
|
|
1741
|
+
requirement of this framework that one of them satisfies (\`id\`, \`identifier\`, \`title\`,
|
|
1742
|
+
\`section\`, \`priority\`), critical priority first, then by section and identifier, each with its
|
|
1743
|
+
\`failingControls[]\` (\`id\`, \`identifier\`, \`name\`). A DRAFT, REVIEW or RETIRED control can keep
|
|
1744
|
+
the FAIL of its last evaluation; like CCM's own counts, it is not included. **An empty
|
|
1745
|
+
\`failingRequirements\` is a real answer** when the two fields below are \`false\` and \`0\`: no
|
|
1746
|
+
requirement of this framework has a failing LIVE control.
|
|
1747
|
+
- \`failingControls[]\` — every failing LIVE control the drill read (\`id\`, \`identifier\`, \`name\`,
|
|
1748
|
+
\`url\`), whether or not its requirements were read: when \`requirementLookupsSkipped\` is above 0,
|
|
1749
|
+
\`failingControls\` still lists every failing control read.
|
|
1750
|
+
- \`failingControlsTruncated\` — \`true\` when not every failing LIVE control was read: more than
|
|
1751
|
+
500 of them (from the graph, more than four pages of 250 requirement–control pairs, 1,000 in
|
|
1752
|
+
all), or the graph read ran out of time. \`requirementLookupsSkipped\` — failing controls whose
|
|
1753
|
+
requirements were not read (past the first 50, past the time budget, or a failed read). From
|
|
1754
|
+
the graph, requirements come with their controls, so it is 0 unless that read ran out of time;
|
|
1755
|
+
then it is the scorecard's failing-control count. Whenever any were skipped,
|
|
1756
|
+
\`requirementLookupsSkippedBy\` counts them by reason: \`timeBudget\`, \`cap\` (past the first 50
|
|
1757
|
+
controls, or a control whose requirements ran past their own page limit; its rows read so far
|
|
1758
|
+
are kept) and \`readFailed\`. A call made again can recover time-budget skips, never cap skips.
|
|
1759
|
+
When either field is set, \`failingRequirements\` can be incomplete: answer from
|
|
1760
|
+
\`failingControls\`, and read a control with \`get-control\` for its requirements.
|
|
1761
|
+
- \`expiringAttestations\` — ACTIVE attestations expiring within the window, soonest first. Each has
|
|
1762
|
+
\`id\`, \`subject\`, \`controlId\`, \`controlName\`, \`expiresOn\` (epoch milliseconds), \`expiresOnIso\`,
|
|
1763
|
+
\`daysUntilExpiry\` (whole days, rounded down), \`owner\`, \`author\`, \`documentLink\` and \`description\`.
|
|
1764
|
+
\`expiringAttestationsScope\` says what this list and \`expiredAttestations\` cover: \`framework\` when
|
|
1765
|
+
only the drilled framework's controls are listed; \`account\` without \`frameworkId\`, or when the
|
|
1766
|
+
control read failed or more than 100 controls would need checking, so both lists are
|
|
1767
|
+
account-wide.
|
|
1768
|
+
\`controlName\` is \`null\` when the name could not be resolved; \`controlId\` is still exact. One read
|
|
1769
|
+
names the controls of both lists, at most 100 of them, the expired attestations' controls first.
|
|
1770
|
+
\`controlNamesUnavailable: true\` means that read failed or ran out of time, or more than 100
|
|
1771
|
+
controls were listed, so some names are \`null\` for that reason rather than because the control
|
|
1772
|
+
is gone; the rest of the summary is complete. \`controlNamesUnresolved\` counts listed
|
|
1773
|
+
attestations whose control that read did not find. On a drill they stay listed, though their
|
|
1774
|
+
framework could not be confirmed, because a control created moments ago can be missing from the
|
|
1775
|
+
read: confirm one with \`get-control\` before reporting it as part of the framework. **The
|
|
1776
|
+
string \`'unavailable'\` means the attestations could not be read** with the caller's
|
|
1777
|
+
permissions. It never means "none expiring", and the rest of the summary is still complete.
|
|
1778
|
+
- \`expiredAttestations\` — attestations past their expiry that nobody revoked, most recently expired
|
|
1779
|
+
first, at most 50: \`expiredAttestationsTruncated: true\` means there were more. Each has the
|
|
1780
|
+
fields of an \`expiringAttestations\` entry, with \`daysSinceExpiry\` (whole days, rounded down) in
|
|
1781
|
+
place of \`daysUntilExpiry\`. **An expired attestation fails its control until it is renewed** with
|
|
1782
|
+
\`update-attestation\` (a new \`expiresOn\`) or revoked with \`revoke-attestation\`, whatever the
|
|
1783
|
+
control's tests say and even beside a valid attestation, so these are the attestations failing
|
|
1784
|
+
controls right now. "What expires soon" and "what has already lapsed and is failing us" are one
|
|
1785
|
+
question: answer it from both lists. \`'unavailable'\` means the same here as for
|
|
1786
|
+
\`expiringAttestations\`.
|
|
1787
|
+
- \`warnings\` — sentences to pass on to the user with the answer, each saying what this response
|
|
1788
|
+
could not confirm, such as attestation lists that stayed account-wide on a drill. Absent when
|
|
1789
|
+
there is nothing to say.
|
|
1790
|
+
- \`url\` — a link to the page in the JupiterOne app, on each \`frameworks[]\` scorecard, the drilled
|
|
1791
|
+
\`framework\`, each \`failingControls[]\` entry, and each \`expiringAttestations[]\` and
|
|
1792
|
+
\`expiredAttestations[]\` entry (its control's page); \`''\` when no link can be built. When you
|
|
1793
|
+
name a framework or control to the user, give its \`url\`.
|
|
1794
|
+
- \`timingsMs\` — the wall time, in milliseconds, of each read behind this response. The counts are
|
|
1795
|
+
read ten frameworks at a time, all at once: \`stats\` is that whole phase, and \`statsChunkMaxMs\`
|
|
1796
|
+
the slowest read that finished, absent when none did. The call's time grows with the account's
|
|
1797
|
+
number of frameworks and with backend query latency. A request that
|
|
1798
|
+
ends in "The user aborted a request" hit the server's 55-second limit: narrow it with
|
|
1799
|
+
\`frameworkId\` or \`frameworkName\` rather than retrying the same call.
|
|
1800
|
+
|
|
1801
|
+
## Access
|
|
1802
|
+
|
|
1803
|
+
Requires the account's Compliance (CCM) entitlement and control read permission. Listing
|
|
1804
|
+
attestations account-wide also needs CCM read-admin; without it only \`expiringAttestations\` and
|
|
1805
|
+
\`expiredAttestations\` are \`'unavailable'\`. A missing entitlement or permission returns an
|
|
1806
|
+
access-denied error that names it, and re-authenticating will not change it.
|
|
1807
|
+
|
|
1808
|
+
## Example
|
|
1809
|
+
|
|
1810
|
+
Every framework:
|
|
1811
|
+
|
|
1812
|
+
\`\`\`json
|
|
1813
|
+
{}
|
|
1814
|
+
\`\`\`
|
|
1815
|
+
|
|
1816
|
+
One framework by name:
|
|
1817
|
+
|
|
1818
|
+
\`\`\`json
|
|
1819
|
+
{ "frameworkName": "SOC 2 Trust Services Criteria" }
|
|
1820
|
+
\`\`\`
|
|
1821
|
+
|
|
1822
|
+
One framework, with attestations expiring in the next 60 days:
|
|
1823
|
+
|
|
1824
|
+
\`\`\`json
|
|
1825
|
+
{ "frameworkId": "<id from frameworks[]>", "attestationsExpiringWithinDays": 60 }
|
|
1826
|
+
\`\`\`
|
|
1827
|
+
`,
|
|
1828
|
+
"get-control.md": `# Control Details Tool
|
|
1829
|
+
|
|
1830
|
+
Return one compliance control from JupiterOne Compliance (CCM) with everything that explains its
|
|
1831
|
+
status: its tests and their latest evaluation, its attestations, the requirements and frameworks it
|
|
1832
|
+
serves, and \`statusExplanation\`. Look the control up by id, identifier or name. Companion tools:
|
|
1833
|
+
\`list-controls\` to find controls, \`get-rule-evaluation-query-results\` for the assets a test
|
|
1834
|
+
flagged, and \`create-attestation\`, \`update-attestation\` and \`revoke-attestation\` for attestations.
|
|
1835
|
+
|
|
1836
|
+
## Parameters
|
|
1837
|
+
|
|
1838
|
+
Exactly one of the following; none or several returns an error whose text starts \`invalid_input:\`.
|
|
1839
|
+
|
|
1840
|
+
- \`controlId\`: the exact control id (\`ccm_c_<SOURCE>_<sourceId>\`), from \`list-controls\` or an
|
|
1841
|
+
earlier call.
|
|
1842
|
+
- \`identifier\`: the control's identifier as its framework writes it, such as \`CC6.1\` or \`3.14\`.
|
|
1843
|
+
Matched exactly, ignoring case, among the controls whose text contains it.
|
|
1844
|
+
- \`controlName\`: the control's name. An exact match ignoring case wins; otherwise a single partial
|
|
1845
|
+
match is used, and several are returned as \`ambiguous\`.
|
|
1846
|
+
|
|
1847
|
+
Plus \`includeDeleted\` (optional, default false): also return the control's deleted tests. It never
|
|
1848
|
+
returns a deleted control, and an \`identifier\` or \`controlName\` search considers non-deleted
|
|
1849
|
+
controls only, in any state.
|
|
1850
|
+
|
|
1851
|
+
## Outcomes
|
|
1852
|
+
|
|
1853
|
+
Every outcome carries \`lookupBy\` (\`controlId\`, \`identifier\` or \`controlName\`).
|
|
1854
|
+
|
|
1855
|
+
- \`found\` — \`control\` and everything below were read. An \`identifier\` or \`controlName\` search is
|
|
1856
|
+
\`found\` only when it read every candidate: one match, or several of which exactly one is LIVE.
|
|
1857
|
+
In the second case \`found\` carries \`otherCandidates\`, the others (up to 25, with the fields of
|
|
1858
|
+
\`candidates\`). CCM evaluates only LIVE controls, so the LIVE one is almost always the one meant;
|
|
1859
|
+
check \`otherCandidates\` when the user may mean a draft.
|
|
1860
|
+
- \`not_found\` — no control matched. A deleted control cannot be read and is also \`not_found\`.
|
|
1861
|
+
Search with \`list-controls\` (\`search\`) and call again with the \`id\`; the \`note\` says the same.
|
|
1862
|
+
- \`ambiguous\` — the \`identifier\` or \`controlName\` matched several controls and not exactly one of
|
|
1863
|
+
them is LIVE, which is common because identifiers repeat across frameworks, or the search was
|
|
1864
|
+
cut short, even with a single match: a second one may be past the cut. \`candidates\` lists up to
|
|
1865
|
+
25 of them (\`id\`, \`name\`, \`identifier\`, \`catalog\`, \`state\`, \`status\`, \`frameworkIds\`,
|
|
1866
|
+
\`frameworkNames\`) and \`candidateCount\` says how many matched. A \`frameworkNames\` entry is \`null\`
|
|
1867
|
+
when that framework could not be named. Choose by state or framework, then call again with
|
|
1868
|
+
\`controlId\`; when \`candidateCount\` is above 25, narrow with \`list-controls\` (\`search\` plus
|
|
1869
|
+
\`frameworkId\`) instead.
|
|
1870
|
+
|
|
1871
|
+
An \`identifier\` or \`controlName\` lookup that ends \`not_found\` or \`ambiguous\` also carries
|
|
1872
|
+
\`searchComplete\`. \`false\` means the search stopped after 200 controls, so \`not_found\` is not proof
|
|
1873
|
+
and \`candidates\` can be incomplete: narrow with \`list-controls\` (\`search\` plus \`frameworkId\`) and
|
|
1874
|
+
call again with \`controlId\`. These searches see only controls the caller can read.
|
|
1875
|
+
|
|
1876
|
+
## Time budget
|
|
1877
|
+
|
|
1878
|
+
The call answers within 45 seconds of its start. The control and its tests always come back; for
|
|
1879
|
+
a \`controlId\` lookup its attestations are read at the same time. After the control is read, the
|
|
1880
|
+
evaluation lookups get 20 seconds, and the requirements and frameworks reads whatever is left of
|
|
1881
|
+
the 45. What is not back in time is skipped rather than failing the call: \`requirements: []\` with
|
|
1882
|
+
\`requirementsSkipped\` (\`time_budget\`, or \`read_failed\` when the read failed) and
|
|
1883
|
+
\`requirementsComplete: false\`, \`frameworks: []\` with \`frameworksSkipped\`, and attestations as
|
|
1884
|
+
\`'unavailable'\`. "Why does this control fail?" needs only the control, its tests and its
|
|
1885
|
+
attestations: \`statusExplanation\` and \`blockers\` come from those.
|
|
1886
|
+
|
|
1887
|
+
## How CCM decides a control's status (CCM 1.4)
|
|
1888
|
+
|
|
1889
|
+
| Tests | Attestations | Control status |
|
|
1890
|
+
| -------------------- | --------------------------------------- | ----------------------------------------------- |
|
|
1891
|
+
| no test has a status | none, or only revoked | not evaluated |
|
|
1892
|
+
| no test has a status | at least one valid | PASS, _attested_ |
|
|
1893
|
+
| passing | none, or valid | PASS |
|
|
1894
|
+
| failing | anything | FAIL: an attestation never masks a failing test |
|
|
1895
|
+
| any | any attestation expired and not revoked | FAIL |
|
|
1896
|
+
|
|
1897
|
+
A test that has run has a status, whether or not its query saw any data: CCM never consults
|
|
1898
|
+
\`effective\`, so a test that saw nothing still passes and counts.
|
|
1899
|
+
|
|
1900
|
+
Only LIVE controls are evaluated. The status of a DRAFT, REVIEW or RETIRED control is not a verdict.
|
|
1901
|
+
|
|
1902
|
+
\`statusExplanation\` names the first case that applies, in this order:
|
|
1903
|
+
|
|
1904
|
+
- \`not_live\` — the control is not LIVE, so CCM does not evaluate it.
|
|
1905
|
+
- \`failing_test\` — at least one test fails. That test's \`latestEvaluation.rawDataKey\` leads to the
|
|
1906
|
+
assets behind the failure.
|
|
1907
|
+
- \`failing_expired_attestation\` — an attestation expired without being revoked. The control fails
|
|
1908
|
+
until it is renewed with \`update-attestation\`.
|
|
1909
|
+
- \`undetermined\` — the stored status is FAIL, but what could be read does not explain it:
|
|
1910
|
+
\`attestations\` is \`'unavailable'\`, or nothing read either fails or passes the control. Report the
|
|
1911
|
+
stored \`status\`, say the cause could not be read, and never call it passing.
|
|
1912
|
+
- \`passing_by_tests\` — at least one test passes and none fails — including tests whose query saw
|
|
1913
|
+
no data, which CCM counts as passing; \`passingWithoutData: true\` flags that case. Report such a
|
|
1914
|
+
pass as passing on no data, not as evidence the control is met.
|
|
1915
|
+
- \`passing_by_attestation\` — no test has a status, and a valid attestation makes it pass
|
|
1916
|
+
(_attested_).
|
|
1917
|
+
- \`no_tests\` — no tests and no valid attestation: not evaluated.
|
|
1918
|
+
- \`no_datapoints\` — tests exist but none has a status yet: not evaluated.
|
|
1919
|
+
|
|
1920
|
+
\`statusExplanation\` reads the current facts; \`control.status\` is what CCM stored. CCM re-scores an
|
|
1921
|
+
attested control within 24 hours of an expiry and on its next test run, so the two can disagree for
|
|
1922
|
+
a while, and when they do the stored one is stale. Then \`storedStatusStale: true\` and
|
|
1923
|
+
\`expectedStatus\` (\`PASS\` or \`FAIL\`) give the status the facts call for: report that one, and say
|
|
1924
|
+
CCM has not re-scored the control yet.
|
|
1925
|
+
|
|
1926
|
+
\`statusExplanation\` is the first cause; \`blockers\` is every cause. It lists each failing test
|
|
1927
|
+
(\`type: "failing_test"\`, \`id\`, \`name\`) and each expired attestation nobody revoked
|
|
1928
|
+
(\`type: "expired_attestation"\`, \`id\`, \`subject\`, \`expiresOnIso\`), is always present, and is empty
|
|
1929
|
+
when nothing fails the control. A control fixed for one cause keeps failing until every blocker is
|
|
1930
|
+
cleared, so report them all. When \`attestations\` is \`'unavailable'\`, \`blockers\` covers the tests
|
|
1931
|
+
only.
|
|
1932
|
+
|
|
1933
|
+
## Reading the tests
|
|
1934
|
+
|
|
1935
|
+
- Each test carries its one J1QL \`query\` and \`resultsAre\`. \`BAD\` means every row the query returns
|
|
1936
|
+
is a violation, and the test fails when it returns any. \`GOOD\` means the rows are compliant
|
|
1937
|
+
assets, and the test does not fail on them. A \`GOOD\` test never fails: zero rows is a pass on no
|
|
1938
|
+
data, not evidence of compliance.
|
|
1939
|
+
- \`effective\` says whether the query sees any data. It is not a verdict; read \`status\`. A test with
|
|
1940
|
+
\`effective: false\` still counts: CCM scores its \`status\` like any other.
|
|
1941
|
+
- \`latestEvaluationStatus\` is one of:
|
|
1942
|
+
- \`found\` — \`latestEvaluation\` is the test's most recent run (\`rawDataKey\`, \`resultCount\`,
|
|
1943
|
+
\`evaluatedOn\`, \`timestamp\`, \`tag\`). A run with \`rawDataKey: null\` stored no results; with
|
|
1944
|
+
\`tag: "EVALUATION_FAILURE"\` the evaluation itself failed.
|
|
1945
|
+
- \`none\` — there is no run to read: the test is deleted, has no backing rule, or had no run from
|
|
1946
|
+
30 days before its \`lastEvaluatedOn\` until now (\`evaluationsInWindow: 0\`).
|
|
1947
|
+
- \`skipped\` — not looked up. At most 10 rule-backed tests are looked up, failing tests first and
|
|
1948
|
+
then the rest in list order, and the lookups stop 20 seconds after the control is read, never
|
|
1949
|
+
later than 45 seconds into the call. \`skippedTests\` counts them and appears only when above 0.
|
|
1950
|
+
Read that test's runs with \`list-rule-evaluations\` on its \`referencedRuleId\`.
|
|
1951
|
+
- \`error\` — the lookup failed. Recover the same way as \`skipped\`.
|
|
1952
|
+
- \`evaluationsInWindow\` and \`moreInWindow\` appear when a lookup ran. \`moreInWindow: true\` means
|
|
1953
|
+
more runs existed than one page held; confirm the latest with \`list-rule-evaluations\` on
|
|
1954
|
+
\`referencedRuleId\`.
|
|
1955
|
+
|
|
1956
|
+
## Drilling into a test
|
|
1957
|
+
|
|
1958
|
+
- **What CCM scored** (audit evidence, consistent with the status): call
|
|
1959
|
+
\`get-rule-evaluation-query-results\` with the test's \`latestEvaluation.rawDataKey\`.
|
|
1960
|
+
- **What is true now, or a narrower scope** ("is it fixed yet", "only these nine buckets"): run
|
|
1961
|
+
the test's own \`query\` with \`execute-j1ql-query\`, narrowed by adding filters to its \`WITH\`.
|
|
1962
|
+
|
|
1963
|
+
Never write a new query to find a test's failing assets. The test's query already is that query.
|
|
1964
|
+
|
|
1965
|
+
## Attestations and the rest
|
|
1966
|
+
|
|
1967
|
+
- \`control.url\`, and each ambiguous candidate's \`url\`, links the control's page in the JupiterOne
|
|
1968
|
+
app, and each \`frameworks[]\` entry's \`url\` the framework's page; \`''\` when no link can be
|
|
1969
|
+
built. When you name a framework or control to the user, give its \`url\`.
|
|
1970
|
+
- \`attestations\` lists the control's attestations (\`id\`, \`subject\`, \`state\` of \`ACTIVE\`, \`EXPIRED\`
|
|
1971
|
+
or \`REVOKED\`, \`expiresOn\`, \`expiresOnIso\`, \`owner\`, \`author\`, \`documentLink\`). Revoked
|
|
1972
|
+
attestations may still be listed, often older revocations; they never affect the status.
|
|
1973
|
+
**The string \`'unavailable'\` means they could not be read** with the caller's permissions, or
|
|
1974
|
+
not within the time budget. It never means "no attestations".
|
|
1975
|
+
- \`requirements\` lists the requirements the control satisfies (\`identifier\`, \`title\`, \`section\`,
|
|
1976
|
+
\`priority\`, \`frameworkIds\`, \`frameworkNames\`); \`requirementsComplete: false\` means that list
|
|
1977
|
+
stopped at its page limit or was skipped (\`requirementsSkipped\`). \`frameworks\` lists the
|
|
1978
|
+
frameworks the control maps to (\`id\`, \`name\`, and \`url\`, a link to the framework's page), or is
|
|
1979
|
+
empty with \`frameworksSkipped\`; the control's own \`frameworkIds\` still name them.
|
|
1980
|
+
- \`control.remediation\` and \`control.exceptionProcess\` answer "how do we fix it" and "how do we
|
|
1981
|
+
get an exception" in the words of whoever wrote the control.
|
|
1982
|
+
|
|
1983
|
+
## Access
|
|
1984
|
+
|
|
1985
|
+
Requires the account's Compliance (CCM) entitlement and control read permission. A missing
|
|
1986
|
+
entitlement or permission returns an access-denied error that names it, and re-authenticating will
|
|
1987
|
+
not change it.
|
|
1988
|
+
|
|
1989
|
+
## Example
|
|
1990
|
+
|
|
1991
|
+
\`\`\`json
|
|
1992
|
+
{ "identifier": "CC6.1" }
|
|
1993
|
+
\`\`\`
|
|
1994
|
+
|
|
1995
|
+
\`\`\`json
|
|
1996
|
+
{ "controlId": "<id from list-controls>" }
|
|
1997
|
+
\`\`\`
|
|
1543
1998
|
`,
|
|
1544
1999
|
"get-dashboard-details.md": `# Get Dashboard Details Tool
|
|
1545
2000
|
|
|
@@ -1735,6 +2190,8 @@ Get download URL for raw data:
|
|
|
1735
2190
|
|
|
1736
2191
|
Get detailed information about a specific JupiterOne alert rule by its ID. This tool returns comprehensive rule configuration including queries, conditions, actions, and metadata.
|
|
1737
2192
|
|
|
2193
|
+
\`managedBy\` is \`'ccm'\` for a rule named \`CONTROL-TEST:<test name>\`, otherwise \`null\`. JupiterOne Compliance (CCM) runs each control test as a rule, but CCM's rules are hidden from this tool and from \`list-rules\`, so a control test's \`referencedRuleId\` from \`get-control\` comes back as not found here. Read that rule's runs with \`list-rule-evaluations\`, and the control and its tests with \`get-control\`. A CCM rule is changed through its control, never with \`update-inline-question-rule\` or \`delete-rule\`, which detect it through the control test that references it and refuse it.
|
|
2194
|
+
|
|
1738
2195
|
## Parameters
|
|
1739
2196
|
- \`ruleId\` (required): The unique identifier of the rule to retrieve
|
|
1740
2197
|
|
|
@@ -1765,16 +2222,26 @@ Get details of a specific rule evaluation:
|
|
|
1765
2222
|
|
|
1766
2223
|
Retrieve the actual query results from a rule evaluation. This tool fetches the entities that matched the rule's query conditions.
|
|
1767
2224
|
|
|
2225
|
+
For a compliance control test's evidence, the input is the \`latestEvaluation.rawDataKey\` that
|
|
2226
|
+
\`get-control\` returns for that test: the assets the test scored on its latest run.
|
|
2227
|
+
|
|
1768
2228
|
## Parameters
|
|
2229
|
+
|
|
1769
2230
|
- \`rawDataKey\` (required): The key identifying the query results to retrieve
|
|
2231
|
+
- \`limit\` (optional, 1–250): return at most this many rows. Each row is a full entity, so a few
|
|
2232
|
+
dozen can be large. When rows were cut, the result carries \`truncated: true\` and \`total\`, the
|
|
2233
|
+
number of rows before the cut.
|
|
1770
2234
|
|
|
1771
2235
|
## Example Usage
|
|
2236
|
+
|
|
1772
2237
|
Get query results from a rule evaluation:
|
|
2238
|
+
|
|
1773
2239
|
\`\`\`json
|
|
1774
2240
|
{
|
|
1775
2241
|
"rawDataKey": "results-key-123"
|
|
1776
2242
|
}
|
|
1777
|
-
|
|
2243
|
+
\`\`\`
|
|
2244
|
+
`,
|
|
1778
2245
|
"get-threat-trending.md": `# Get Trending Threats Tool
|
|
1779
2246
|
|
|
1780
2247
|
Return the ranked list of currently trending threats — CVEs that have recently
|
|
@@ -1910,6 +2377,115 @@ Request the first 5 active alerts:
|
|
|
1910
2377
|
"limit": 5
|
|
1911
2378
|
}
|
|
1912
2379
|
\`\`\``,
|
|
2380
|
+
"list-controls.md": `# List Controls Tool
|
|
2381
|
+
|
|
2382
|
+
List compliance controls from JupiterOne Compliance (CCM) with the filters CCM's own controls view
|
|
2383
|
+
offers: status, state, framework, organizational unit, owner, attestation and more. Rows are
|
|
2384
|
+
compact: status, state, test counts and framework names, with no description and no test queries.
|
|
2385
|
+
Companion tools: \`get-compliance-summary\` for framework-level numbers, and \`get-control\` for one
|
|
2386
|
+
control's tests, attestations and the reason for its status.
|
|
2387
|
+
|
|
2388
|
+
## Parameters
|
|
2389
|
+
|
|
2390
|
+
All optional. Filters combine with AND.
|
|
2391
|
+
|
|
2392
|
+
- \`search\`: case-insensitive text matched against each control's name, description, identifier
|
|
2393
|
+
and id.
|
|
2394
|
+
- \`status\`: an array of \`PASS\` and/or \`FAIL\`. A control that is not LIVE can keep the status of its
|
|
2395
|
+
last evaluation, so add \`states: ["LIVE"]\` to list what is failing now.
|
|
2396
|
+
- \`states\`: an array of \`DRAFT\`, \`REVIEW\`, \`LIVE\`, \`RETIRED\`. Only LIVE controls are evaluated.
|
|
2397
|
+
- \`effectiveness\`: \`NO_TESTS\` (the control has no tests) or \`NO_DATAPOINTS\` (it has tests, but none
|
|
2398
|
+
has data to evaluate).
|
|
2399
|
+
- \`hasValidAttestation\`: \`true\` for controls with at least one valid attestation, \`false\` for
|
|
2400
|
+
controls with none. It is independent of \`status\`.
|
|
2401
|
+
- \`owner\`: the control owner's email, exact match.
|
|
2402
|
+
- \`frameworkId\`: one framework's id, from \`get-compliance-summary\`.
|
|
2403
|
+
- \`catalogs\`: an array of catalog names, exact match.
|
|
2404
|
+
- \`mitreTechniques\`: an array of MITRE ATT&CK technique ids such as \`T1078\` or \`T1078.004\`, matched
|
|
2405
|
+
by technique family.
|
|
2406
|
+
- \`source\`: \`J1\`, \`UCF\`, \`UPLOAD\` or \`JSON\`, the origin of the control.
|
|
2407
|
+
- \`orgUnit\`: an organizational unit, by id or by display name. A value containing a colon is used
|
|
2408
|
+
as an id as given, **without checking that it exists** (\`ouResolution: "id_unverified"\`).
|
|
2409
|
+
Anything else is searched for in up to 10 enabled namespaces: an exact id, then an exact display
|
|
2410
|
+
name ignoring case, then a single search hit. The filter selects the controls whose tests touch
|
|
2411
|
+
an asset in the unit; each row's \`status\` stays the control's overall status, not a status
|
|
2412
|
+
within the unit.
|
|
2413
|
+
- \`sort\`: an object with \`field\` (\`NAME\`, \`SOURCE\`, \`STATUS\`, \`LAST_EVALUATED_ON\` or \`OWNER\`) and
|
|
2414
|
+
\`order\` (\`ASC\` or \`DESC\`), such as \`{ "field": "LAST_EVALUATED_ON", "order": "DESC" }\`.
|
|
2415
|
+
\`LAST_EVALUATED_ON\` with \`DESC\` lists the never-evaluated controls (\`lastEvaluatedOn: null\`)
|
|
2416
|
+
first; add \`status: ["PASS", "FAIL"]\` to leave them out.
|
|
2417
|
+
- \`limit\` (1–250, default 50) and \`cursor\`: page with \`pageInfo.endCursor\` while
|
|
2418
|
+
\`pageInfo.hasNextPage\` is true. Calling again without the cursor returns the first page again.
|
|
2419
|
+
A cursor works only with the exact filters of the call that returned it. One the API refuses
|
|
2420
|
+
returns an error whose text starts \`cursor_rejected:\` and keeps the API's reason: call again with
|
|
2421
|
+
those filters and that cursor, or without \`cursor\` for the first page. For a count rather than
|
|
2422
|
+
rows, such as how many LIVE controls fail, run \`execute-j1ql-query\` with
|
|
2423
|
+
\`FIND ccm_control WITH state = 'LIVE' AND status = 'FAIL' AS c RETURN count(c) AS value\`
|
|
2424
|
+
instead of paging through every row.
|
|
2425
|
+
- \`includeDeleted\` (default false): also list deleted controls.
|
|
2426
|
+
|
|
2427
|
+
## Outcomes
|
|
2428
|
+
|
|
2429
|
+
- \`ok\` — \`controls\` holds this page and \`returned\` counts it. **An empty list is a real answer**: no
|
|
2430
|
+
control you can read matches these filters. When \`orgUnit\` was given, the response adds \`orgUnit\`
|
|
2431
|
+
(\`id\`, \`displayName\`, \`namespace\`, \`resolvedBy\`) and \`ouResolution\`: \`id\` or \`name\` when the
|
|
2432
|
+
namespace search confirmed the unit, \`id_unverified\` when an id was used as given. **An empty
|
|
2433
|
+
result with \`ouResolution: "id_unverified"\` may be a mistyped id**, not "no matching controls":
|
|
2434
|
+
confirm the unit by calling again with its display name.
|
|
2435
|
+
- \`ambiguous\` — the \`orgUnit\` name matched more than one unit, so no controls were listed.
|
|
2436
|
+
\`candidates\` lists up to 25 of the units (\`id\`, \`displayName\`, \`namespace\`, \`active\`,
|
|
2437
|
+
\`assetCount\`) and \`candidateCount\` says how many matched. Ask the user which one, or call again
|
|
2438
|
+
with the right candidate's \`id\`. \`namespacesFailed\` above 0 means some namespaces could not be
|
|
2439
|
+
searched, so the candidates can be incomplete.
|
|
2440
|
+
- \`org_unit_not_found\` — no unit matched \`orgUnit\`, so no controls were listed. \`namespaces\` lists
|
|
2441
|
+
the namespaces searched (\`slug\`, \`name\`, and \`failed: true\` where the search failed), and
|
|
2442
|
+
\`namespacesNotSearched\` counts the disabled ones and any past the first 10. When a search failed
|
|
2443
|
+
or a namespace was not searched, this is not proof the unit does not exist. It is never "no
|
|
2444
|
+
failing controls". \`units\` offers up to 10 units of each searched namespace (\`id\`,
|
|
2445
|
+
\`displayName\`, \`namespace\`) to choose from or show the user; a namespace that could not list
|
|
2446
|
+
them in time offers none.
|
|
2447
|
+
|
|
2448
|
+
If every namespace search fails, the call returns an error instead.
|
|
2449
|
+
|
|
2450
|
+
Every response carries \`timingsMs\`, the wall time in milliseconds of each read behind it. The
|
|
2451
|
+
call's time grows with the account's number of frameworks and with backend query latency. A request
|
|
2452
|
+
that ends in "The user aborted a request" hit the server's 55-second limit: narrow it with
|
|
2453
|
+
\`frameworkId\`, \`states: ["LIVE"]\` or a smaller \`limit\` rather than retrying the same call.
|
|
2454
|
+
|
|
2455
|
+
## Reading a row
|
|
2456
|
+
|
|
2457
|
+
- \`status\` is \`PASS\`, \`FAIL\`, or \`null\` for a control that has not been evaluated. On a control that
|
|
2458
|
+
is not LIVE it is left over from its last evaluation, not a verdict.
|
|
2459
|
+
- \`effectiveStatus\` is \`EFFECTIVE\`, \`NO_TESTS\` or \`NO_DATAPOINTS\`. \`numberOfTests\` counts the
|
|
2460
|
+
control's tests and \`failingTests\` its non-deleted failing tests.
|
|
2461
|
+
- \`lastEvaluatedOn\` is the value CCM stores and \`lastEvaluatedOnIso\` the same instant as ISO 8601,
|
|
2462
|
+
\`null\` when the control has not been evaluated; \`get-control\` returns both the same way.
|
|
2463
|
+
- \`frameworkIds\` lists every framework the control maps to; a control can serve several.
|
|
2464
|
+
\`frameworkNames\` holds their names in the same order, \`null\` where a name could not be resolved.
|
|
2465
|
+
- \`url\` links the control's page in the JupiterOne app, \`''\` when no link can be built.
|
|
2466
|
+
When you name a framework or control to the user, give its \`url\`.
|
|
2467
|
+
|
|
2468
|
+
## Access
|
|
2469
|
+
|
|
2470
|
+
Requires the account's Compliance (CCM) entitlement and control read permission. CCM leaves out
|
|
2471
|
+
controls in resource groups the caller cannot read, without an error, and a caller with no control
|
|
2472
|
+
read permission at all gets an empty list. A missing entitlement returns an access-denied error that
|
|
2473
|
+
names it, and re-authenticating will not change it.
|
|
2474
|
+
|
|
2475
|
+
## Example
|
|
2476
|
+
|
|
2477
|
+
Failing LIVE controls in one framework:
|
|
2478
|
+
|
|
2479
|
+
\`\`\`json
|
|
2480
|
+
{ "frameworkId": "<id from get-compliance-summary>", "status": ["FAIL"], "states": ["LIVE"] }
|
|
2481
|
+
\`\`\`
|
|
2482
|
+
|
|
2483
|
+
Failing controls for an organizational unit, by name:
|
|
2484
|
+
|
|
2485
|
+
\`\`\`json
|
|
2486
|
+
{ "orgUnit": "AWS Production", "status": ["FAIL"] }
|
|
2487
|
+
\`\`\`
|
|
2488
|
+
`,
|
|
1913
2489
|
"list-entity-types.md": `# JupiterOne Entity Types Discoverer
|
|
1914
2490
|
|
|
1915
2491
|
**Purpose**: Lists the entity classes and types in your JupiterOne account's entity index, with a count for each. Use it to find the classes and types to name in a J1QL query before you write one.
|
|
@@ -2031,6 +2607,7 @@ All responses include pagination information:
|
|
|
2031
2607
|
|
|
2032
2608
|
- \`returned\`: Number of rules in this page
|
|
2033
2609
|
- \`rules\`: Array of rule objects
|
|
2610
|
+
- \`rules[].managedBy\`: \`'ccm'\` for a rule named \`CONTROL-TEST:<test name>\`, otherwise \`null\`. JupiterOne Compliance (CCM) runs each control test as a rule, but **this listing leaves CCM's rules out**, so a page that shows no \`'ccm'\` row does not mean the account has no control tests. A control test's rule id is the \`referencedRuleId\` that \`get-control\` returns; \`update-inline-question-rule\` and \`delete-rule\` detect such a rule through that control test and refuse it.
|
|
2034
2611
|
- \`pageInfo.hasNextPage\`: Whether there are more pages available
|
|
2035
2612
|
- \`pageInfo.endCursor\`: Cursor to use for the next page (if \`hasNextPage\` is true)
|
|
2036
2613
|
|
|
@@ -2229,6 +2806,68 @@ is relevant, say so plainly rather than padding the list.
|
|
|
2229
2806
|
|
|
2230
2807
|
(A future option may let the user require a direct match only; for now the default
|
|
2231
2808
|
bar is product presence.)
|
|
2809
|
+
`,
|
|
2810
|
+
"revoke-attestation.md": `# Revoke Attestation Tool
|
|
2811
|
+
|
|
2812
|
+
Withdraw an attestation on a JupiterOne Compliance (CCM) control. **Revocation is permanent**: a
|
|
2813
|
+
revoked attestation cannot be updated or reinstated. To extend or correct an attestation instead,
|
|
2814
|
+
use \`update-attestation\`. Confirm the attestation with the user before calling. Companion tools:
|
|
2815
|
+
\`get-control\` to find the attestation and see the control's status afterwards, and
|
|
2816
|
+
\`create-attestation\` to attest again later.
|
|
2817
|
+
|
|
2818
|
+
After revocation the control's status follows its tests and any other valid attestation. A control
|
|
2819
|
+
that passed on this attestation alone is no longer passing.
|
|
2820
|
+
|
|
2821
|
+
## Parameters
|
|
2822
|
+
|
|
2823
|
+
- \`attestationId\` (required): the attestation's \`id\`, from \`get-control\` (\`attestations\`) or
|
|
2824
|
+
\`get-compliance-summary\` (\`expiringAttestations\` and \`expiredAttestations\`).
|
|
2825
|
+
|
|
2826
|
+
## Outcomes
|
|
2827
|
+
|
|
2828
|
+
- \`revoked\` — the attestation is revoked. The response carries \`attestation\`, a \`note\`, and
|
|
2829
|
+
\`control\` (\`id\`, \`name\`, \`state\`, and \`url\`, a link to its page in the JupiterOne app). When you
|
|
2830
|
+
name a framework or control to the user, give its \`url\`. It also carries \`statusImpact\`, read
|
|
2831
|
+
after the revoke, and \`blockers\` as on \`update-attestation\`:
|
|
2832
|
+
|
|
2833
|
+
- \`no_longer_passing\` — no passing test and no other valid attestation remain, so once CCM
|
|
2834
|
+
re-scores the control it is not evaluated.
|
|
2835
|
+
- \`still_passing\` — a passing test or another valid attestation keeps it passing.
|
|
2836
|
+
- \`still_failing\` — a failing test or another expired attestation keeps it failing; \`blockers\`
|
|
2837
|
+
lists them.
|
|
2838
|
+
- \`now_passing\` — the revoked attestation had expired, so revoking it cleared a failure, and a
|
|
2839
|
+
passing test or another valid attestation passes the control once CCM re-scores it.
|
|
2840
|
+
- \`no_longer_failing\` — the revoked attestation had expired, and nothing else passes the control,
|
|
2841
|
+
so once CCM re-scores it, it is not evaluated.
|
|
2842
|
+
- \`unknown\` — the control could not be read back in time, or that read failed. The revoke went
|
|
2843
|
+
through and does not need repeating.
|
|
2844
|
+
|
|
2845
|
+
The \`note\` says what now decides the status.
|
|
2846
|
+
|
|
2847
|
+
- \`not_found\` — no attestation has this id, and nothing changed. The response echoes
|
|
2848
|
+
\`attestationId\`; this is a normal result, not an error. An attestation that is already revoked
|
|
2849
|
+
also returns \`not_found\`, so revoking the same id again is harmless. The \`note\` says where to
|
|
2850
|
+
read the current ids: \`get-control\`.
|
|
2851
|
+
- \`interrupted\` (an error, whose text starts \`interrupted:\`) — the request reached the server's
|
|
2852
|
+
time limit while the revoke was being written, so it may have been revoked. Call
|
|
2853
|
+
\`revoke-attestation\` again: \`not_found\` means it was revoked.
|
|
2854
|
+
|
|
2855
|
+
CCM's reads lag its writes by a few seconds, occasionally up to a minute, so \`get-control\` can still
|
|
2856
|
+
list the attestation as \`ACTIVE\` right after \`revoked\`. Once the revocation shows, it no longer
|
|
2857
|
+
counts toward the status; \`get-control\` usually drops it from \`attestations\`, though revoked
|
|
2858
|
+
attestations may still be listed as \`REVOKED\`. Re-read after a pause; do not revoke again.
|
|
2859
|
+
|
|
2860
|
+
## Access
|
|
2861
|
+
|
|
2862
|
+
Requires the account's Compliance (CCM) entitlement and edit permission on the control's resource
|
|
2863
|
+
group. A missing entitlement or permission returns an access-denied error that names it, and
|
|
2864
|
+
re-authenticating will not change it.
|
|
2865
|
+
|
|
2866
|
+
## Example
|
|
2867
|
+
|
|
2868
|
+
\`\`\`json
|
|
2869
|
+
{ "attestationId": "<id from get-control attestations>" }
|
|
2870
|
+
\`\`\`
|
|
2232
2871
|
`,
|
|
2233
2872
|
"server-instructions.md": `JupiterOne is a security asset graph. Assets are entities, connected by relationships, queried with
|
|
2234
2873
|
J1QL. Use these tools for anything about the user's real inventory, misconfigurations,
|
|
@@ -2316,9 +2955,12 @@ cursor silently re-returns the first page rather than advancing.
|
|
|
2316
2955
|
## Why did this rule fire?
|
|
2317
2956
|
|
|
2318
2957
|
\`list-rules\` → \`list-rule-evaluations\`, which returns each run's \`timestamp\` and
|
|
2319
|
-
\`rawDataDescriptors[].rawDataKey
|
|
2320
|
-
|
|
2321
|
-
|
|
2958
|
+
\`rawDataDescriptors[].rawDataKey\`. Feed the timestamp to \`get-rule-evaluation-details\` for that
|
|
2959
|
+
run's conditions and actions, or a \`rawDataKey\` to \`get-rule-evaluation-query-results\` for the
|
|
2960
|
+
entities it matched. Compliance (CCM) control tests also run as rules, but \`list-rules\` and
|
|
2961
|
+
\`get-rule-details\` do not show them: \`get-control\` returns each test's \`referencedRuleId\`, latest
|
|
2962
|
+
\`rawDataKey\` and \`evaluatedOn\` directly. Such a rule is changed through its control;
|
|
2963
|
+
\`update-inline-question-rule\` and \`delete-rule\` refuse a rule a control test references.
|
|
2322
2964
|
|
|
2323
2965
|
## Threat intelligence vs. your own environment
|
|
2324
2966
|
|
|
@@ -2335,6 +2977,27 @@ unconfirmed", never a definitive exposure.
|
|
|
2335
2977
|
These tools also need the account's VulnerabilityManagement entitlement and vulnerability read
|
|
2336
2978
|
permission. An access-denied from them says so; do not read it as a revoked account.
|
|
2337
2979
|
|
|
2980
|
+
## Compliance (CCM)
|
|
2981
|
+
|
|
2982
|
+
CCM is the source of truth for control status. Answer posture questions with its tools rather than
|
|
2983
|
+
re-deriving pass/fail in J1QL: \`get-compliance-summary\` → \`list-controls\` → \`get-control\` (why a
|
|
2984
|
+
control passes or fails) → the attestation tools. A failing test always fails its control;
|
|
2985
|
+
_attested_ means passing on a valid attestation with no test that has a status; any expired
|
|
2986
|
+
attestation that was not revoked fails the control; only LIVE controls are evaluated. A test's
|
|
2987
|
+
assets come from \`get-rule-evaluation-query-results\` on the \`latestEvaluation.rawDataKey\` that
|
|
2988
|
+
\`get-control\` returns.
|
|
2989
|
+
In the graph a control reaches its tests by \`ccm_control THAT DEFINES ccm_control_test\` (its \`HAS\`
|
|
2990
|
+
edge misses most tests), \`ccm_control.frameworkId\` is an array, and attestations are
|
|
2991
|
+
\`jupiterone_control_attestation THAT ATTESTS ccm_control\`. A test \`HAS\` the entities its latest run
|
|
2992
|
+
returned, so J1QL alone answers which controls an asset fails (substitute the asset's type):
|
|
2993
|
+
\`FIND aws_s3_bucket AS a THAT HAS ccm_control_test WITH status = 'FAIL' AS t THAT DEFINES ccm_control AS c RETURN a.displayName, c.identifier, c.name, t.name\`
|
|
2994
|
+
For a count rather than rows, such as how many LIVE controls fail, run \`execute-j1ql-query\` with
|
|
2995
|
+
\`FIND ccm_control WITH state = 'LIVE' AND status = 'FAIL' AS c RETURN count(c) AS value\`.
|
|
2996
|
+
An \`'unavailable'\` field is a permission the caller lacks, never an absence. CCM reads lag writes by
|
|
2997
|
+
up to a minute: re-read, and never repeat \`create-attestation\` because the read-back is empty.
|
|
2998
|
+
When you name a framework or control to the user, give its \`url\`. A name that is not an account or
|
|
2999
|
+
a framework may be a control: try \`list-controls\` with \`search\` before concluding it does not exist.
|
|
3000
|
+
|
|
2338
3001
|
## Permissions are advisory, never a reason to refuse
|
|
2339
3002
|
|
|
2340
3003
|
\`test-connection\` reports \`permissions.resourceAreas\` and \`permissions.hasBroadAccess\`. Both
|
|
@@ -2368,6 +3031,73 @@ None required.
|
|
|
2368
3031
|
|
|
2369
3032
|
## Failure
|
|
2370
3033
|
A failed test returns an error result whose text explains why and what to do next. When the failure is an authorization rejection and account discovery is available, the text lists the accounts your sign-in CAN access. If tools take an \`accountId\`, retry with one of those — the connection itself needs no change. If the connection is pinned, the list carries each account's connector URL — relay it so the user can fix the connector's account binding. Do not loop on re-authentication: if the text says the pinned account is inaccessible, re-authenticating will not fix it.
|
|
3034
|
+
`,
|
|
3035
|
+
"update-attestation.md": `# Update Attestation Tool
|
|
3036
|
+
|
|
3037
|
+
Change an existing attestation on a JupiterOne Compliance (CCM) control, most often to renew it with
|
|
3038
|
+
a later \`expiresOn\`. Renewing works before and after the attestation lapses: an expired attestation
|
|
3039
|
+
given a future \`expiresOn\` is active again. Companion tools: \`get-control\` (its \`attestations\`) and
|
|
3040
|
+
\`get-compliance-summary\` (its \`expiringAttestations\` and \`expiredAttestations\`) to find the
|
|
3041
|
+
attestation \`id\`, \`create-attestation\` for a new attestation, and \`revoke-attestation\` to withdraw
|
|
3042
|
+
one.
|
|
3043
|
+
|
|
3044
|
+
## Parameters
|
|
3045
|
+
|
|
3046
|
+
- \`attestationId\` (required): the attestation's \`id\`.
|
|
3047
|
+
- At least one of the following. An omitted field is left unchanged.
|
|
3048
|
+
- \`subject\`: the new subject. CCM accepts a subject that another active attestation on the same
|
|
3049
|
+
control already has, but \`create-attestation\` finds an existing attestation by its subject, so
|
|
3050
|
+
keep each control's subjects distinct.
|
|
3051
|
+
- \`expiresOn\`: the new expiry, in the future: \`"YYYY-MM-DD"\` (read as the end of that day, UTC), a
|
|
3052
|
+
date-time with a \`Z\` or a \`±hh:mm\` offset (\`"YYYY-MM-DDThh:mm:ssZ"\`), or epoch milliseconds. A
|
|
3053
|
+
date-time without a time zone is rejected, and so is a number below 1e12 (epoch seconds or a
|
|
3054
|
+
compact date like \`20270630\`).
|
|
3055
|
+
- \`description\`: markdown detail; \`null\` or an empty string clears it.
|
|
3056
|
+
- \`owner\`: the accountable person's email; \`null\` clears it.
|
|
3057
|
+
- \`documentLink\`: an \`http\` or \`https\` URL; \`null\` clears it.
|
|
3058
|
+
|
|
3059
|
+
## Outcomes
|
|
3060
|
+
|
|
3061
|
+
- \`updated\` — \`attestation\` is the attestation as saved, with a \`note\` about read-back lag, and
|
|
3062
|
+
\`control\` (\`id\`, \`name\`, \`state\`, and \`url\`, a link to its page in the JupiterOne app). When you
|
|
3063
|
+
name a framework or control to the user, give its \`url\`. It also carries \`statusImpact\` and
|
|
3064
|
+
\`blockers\`, read after the write, as on \`create-attestation\`: \`blocked\` (a failing test, another
|
|
3065
|
+
expired attestation, this one still expired, or a control that is not LIVE,
|
|
3066
|
+
\`{ "type": "not_live", "id", "state" }\`), \`passes_by_attestation\` or \`already_passing\`. The
|
|
3067
|
+
\`note\` names each blocker. \`statusImpact: "unknown"\` means the control could not be read back in
|
|
3068
|
+
time, or that read failed: the update itself went through and does not need repeating. \`control\`
|
|
3069
|
+
then carries only \`id\` and \`url\`, and there are no \`blockers\`.
|
|
3070
|
+
\`subjectCollision\` (\`id\`, \`subject\`) names another ACTIVE attestation on the same control with
|
|
3071
|
+
the same subject after the update, and the \`note\` says so; rename one of them.
|
|
3072
|
+
- \`not_found\` — no attestation has this id, and nothing changed. The response echoes
|
|
3073
|
+
\`attestationId\`. Unlike \`create-attestation\`'s \`not_found\`, this is a normal result, not an error.
|
|
3074
|
+
Read the current ids from \`get-control\`; the \`note\` says the same.
|
|
3075
|
+
- \`invalid_input\` (an error, whose text starts \`invalid_input:\`) — no field to change was
|
|
3076
|
+
passed, or \`expiresOn\` is not one of the forms above (a date-time without a time zone included),
|
|
3077
|
+
is a number below 1e12, or is in the past. Nothing was called.
|
|
3078
|
+
- \`interrupted\` (an error, whose text starts \`interrupted:\`) — the request reached the server's
|
|
3079
|
+
time limit while the update was being written, so it may have been applied. Read the attestation
|
|
3080
|
+
with \`get-control\` before repeating the update.
|
|
3081
|
+
|
|
3082
|
+
A revoked attestation is gone for good: updating it returns \`not_found\`. Create a new one with
|
|
3083
|
+
\`create-attestation\` instead.
|
|
3084
|
+
|
|
3085
|
+
CCM's reads lag its writes by a few seconds, occasionally up to a minute, so \`get-control\` can show
|
|
3086
|
+
the old values right after \`updated\`. Re-read after a pause; the update does not need repeating.
|
|
3087
|
+
|
|
3088
|
+
## Access
|
|
3089
|
+
|
|
3090
|
+
Requires the account's Compliance (CCM) entitlement and edit permission on the control's resource
|
|
3091
|
+
group. A missing entitlement or permission returns an access-denied error that names it, and
|
|
3092
|
+
re-authenticating will not change it.
|
|
3093
|
+
|
|
3094
|
+
## Example
|
|
3095
|
+
|
|
3096
|
+
Renew for another year:
|
|
3097
|
+
|
|
3098
|
+
\`\`\`json
|
|
3099
|
+
{ "attestationId": "<id from get-control attestations>", "expiresOn": "2028-06-30" }
|
|
3100
|
+
\`\`\`
|
|
2371
3101
|
`,
|
|
2372
3102
|
"update-dashboard-widget.md": `# Update Dashboard Widget Tool
|
|
2373
3103
|
|
|
@@ -3010,6 +3740,8 @@ Here's an example layout that should be used for inspiration:
|
|
|
3010
3740
|
|
|
3011
3741
|
**Important**: Before updating a rule, use the \`get-rule-details\` tool to retrieve the current configuration. This ensures you have all required fields and can see what needs to be changed.
|
|
3012
3742
|
|
|
3743
|
+
**JupiterOne Compliance (CCM) rules are refused**: CCM runs each control test as a rule named \`CONTROL-TEST:<test name>\`, which the Compliance app creates and reconciles from its control. These rules are hidden from \`list-rules\` and \`get-rule-details\`, so before updating, this tool asks the graph whether a control test references the rule id, and refuses if one does (\`lintCode: 'ccm-managed-rule'\`). It also refuses any \`name\` starting \`CONTROL-TEST:\`. The change belongs on the control in the Compliance app, and \`get-control\` reads the control and its tests. A successful response carries \`ownershipCheck\`: \`'graph'\` when the check ran and found no control test, \`'skipped'\` when it could not run (the query failed, or the id is not a UUID) and the update went ahead anyway.
|
|
3744
|
+
|
|
3013
3745
|
## Key Requirements for Updates
|
|
3014
3746
|
|
|
3015
3747
|
### 1. Required Fields for Updates
|