Implementation:ARCANGEL0 EVA upsert finding
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Security_Automation, Knowledge_Management, Pentest |
| Last Updated | 2026-10-29 14:00 GMT |
Overview
Concrete tool for creating or updating session Intel finding records with severity tracking, evidence accumulation, and status management, provided by the Mitsu workspace Intel module.
Description
The upsert_finding function adds or updates a security finding in the session Intel dict. Findings represent vulnerabilities, misconfigurations, or notable observations about an asset.
Key behaviors:
- Deduplication: Matches on (title, asset) case-insensitively. If an existing finding is found, it is updated rather than duplicated.
- Stable IDs: SHA256-based identifiers derived from ("finding", title, asset).
- Evidence accumulation: Each upsert appends an evidence entry without overwriting prior evidence.
- Severity levels: critical, high, medium, low, informational, unknown.
- Finding states: lead (unconfirmed), confirmed, false_positive, remediated.
- Capacity limits: Raises ValueError if the maximum number of findings is reached.
Usage
- During agent turns: Called by the tool result handler when a tool discovers a vulnerability or security issue.
- Intel accumulation: Called from the TUI when the operator manually records a finding.
- Status updates: Called to update a finding's status from "lead" to "confirmed" or "false_positive".
Code Reference
Source Location
- Repository: Mitsu
- File: workspace/intel.py
Signature
def upsert_finding(
intel: dict[str, Any],
*,
title: str,
asset: str,
severity: str,
status: str,
summary: str,
source: str,
evidence: str,
recommendation: str = "",
confidence: str = "medium",
) -> tuple[dict[str, Any], bool]:
Import
from mitsu.workspace.intel import upsert_finding
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| intel | dict[str, Any] | Yes | Session Intel dict (mutated in place) |
| title | str | Yes | Finding title (max 240 chars) |
| asset | str | Yes | Affected asset reference (max 1000 chars) |
| severity | str | Yes | One of: critical, high, medium, low, informational, unknown |
| status | str | Yes | One of: lead, confirmed, false_positive, remediated |
| summary | str | Yes | Finding description (max 4000 chars) |
| source | str | Yes | Source of the finding |
| evidence | str | Yes | Evidence details |
| recommendation | str | No | Remediation recommendation (max 4000 chars) |
| confidence | str | No | One of: low, medium, high, unknown (default: medium) |
Outputs
| Name | Type | Description |
|---|---|---|
| returns | tuple[dict, bool] | (finding_record, was_created) |
Usage Examples
Record a Vulnerability Finding
from mitsu.workspace.intel import upsert_finding
intel = {"assets": [], "findings": [], "exploits": [], "observations": []}
finding, created = upsert_finding(
intel,
title="Outdated nginx version",
asset="10.0.0.1",
severity="medium",
status="lead",
summary="nginx 1.18.0 detected, which has known CVEs",
source="nmap_scan",
evidence="Nmap service detection: nginx 1.18.0 on port 443",
recommendation="Upgrade to nginx 1.25.3 or later",
)
print(f"Finding ID: {finding['id']}, Created: {created}")
Update Finding Status
# Confirm the finding after manual verification
finding, created = upsert_finding(
intel,
title="Outdated nginx version",
asset="10.0.0.1",
severity="medium",
status="confirmed",
summary="Confirmed: nginx 1.18.0 is vulnerable to CVE-2023-44487",
source="manual_verification",
evidence="Manual check confirmed the version and vulnerability",
)
print(f"Status updated to: {finding['status']}")
Related Pages
Implements Principle
Requires Environment
Uses Heuristic
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment