Skip to content

Commit 1481d6a

Browse files
committed
Clarify template trust and organize the command reference
1 parent 406f803 commit 1481d6a

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

‎doc/cli/investigation-engine.md‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -235,18 +235,20 @@ result = inv.save_template("my-plan", open("plan.yaml").read(), comment="10 samp
235235
236236
`InvestigationError` carries `status_code`, `error_code`, `issues` and `warnings`.
237237
238-
## See Also
239-
240-
- [Hive & Data Stores](hive-data.md) - the `investigation_plan` records are ordinary hive records
241-
- [Detection & Response](detection-response.md) - D&R rules that start runs
242-
243-
### Explicit trust
238+
## Explicit trust
244239
245240
Templates may declare `trust: {lookups: [partner-domains], values: [partner.example.test]}`.
246241
The run reads these same-org Lookup records using its own identity (`lookup.get`).
247242
Repeat `--trust-lookup NAME` or `--trust-value VALUE` on `investigate runs start` to add
248-
trust for that run only. Automatic runs use only the template block.
243+
trust for that run only. Runs started automatically by D&R rules or Autopilot use only the template's trust.
244+
The manual `--auto` option selects a template and still allows these run-only additions.
249245
A match accounts for the initial target as customer-declared trusted and skips active
250246
analysis; it never means verified or benign. Domains include DNS-boundary subdomains
251247
and URL hosts. Broad/shared entries and embedded URL destinations do not skip analysis.
252248
Missing, disabled or unreadable Lookups grant nothing and appear as run problems.
249+
250+
251+
## See Also
252+
253+
- [Hive & Data Stores](hive-data.md) - the `investigation_plan` records are ordinary hive records
254+
- [Detection & Response](detection-response.md) - D&R rules that start runs

‎tests/unit/test_sdk_investigation.py‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -921,9 +921,3 @@ def test_wave_never_sends_unsupported_request_trust(inv, mock_org):
921921
with pytest.raises(ValidationError, match="only by run start"):
922922
inv.run_wave({"steps": [{"id": "s", "op": "entity.get"}], "trust": {"lookups": ["partners"]}})
923923
mock_org.client.request.assert_not_called()
924-
925-
926-
def test_plan_does_not_add_request_trust(inv, mock_org):
927-
mock_org.client.request.return_value = {"test_id": "t1"}
928-
inv.test_plan(template="mail", samples=[{"detection_id": "d1"}])
929-
assert "trust" not in json.loads(_request_args(mock_org)[2]["raw_body"])

0 commit comments

Comments
 (0)