Add Proposed Attacker
add_proposed_attackerAdd a proposed attacker to a threat model by specifying credential classes and a zone. This action registers the attacker within tenant-isolation boundaries, creating a new version of the security model.
Instructions
Add the attacker the attacker closure proposes for a credential set. Mutating; creates a model version.
Name the proposal by its credential_classes as
get_behavioural_attackers lists it (a dismissed one may be added),
and a part of the zones nobody stands at by one of its zones where
another proposal holds the same classes.
The attacker holds them, with the privileges they give and no position
but the tenant-isolation boundaries a per-tenant holder is placed at.
It is rated as add_attacker rates: one call before the write,
charged to the caller, its privileges the ones it holds gives. Where no
rating answers, or when a person accepts a parked addition, it is added
unrated (rating_source: "unrated"), and
reevaluate_threat_model_factors with unrated_only rates it.
Refused with 409 not_proposed when no attacker is proposed for
exactly that set now (read the attackers again), 409
ambiguous_proposal when several are and no zone names one (its
zones lists each), 409 closure_not_offered, 422
unknown_class.
A program's addition is a judgment. Unless the workspace's delegation
policy admits it, it is refused with 403 and an escalation_id and
parked for a person. Do not retry: report the escalation_id and poll
list_proposals.
Returns {model_id, model_version, applies, credential_classes, counts, added, rating_source}: how many proposals, dismissals and questions the
closure now holds, added, the new attacker's id, and whether a
rating answered (unrated when none did).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | No | A zone of the part to add, where two proposals hold the same classes; empty otherwise. | |
| model_id | Yes | ID of the threat model. | |
| server_version | Yes | ||
| credential_classes | No | Comma-separated class ids of the proposal; empty for the one holding none. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||