Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

fix(ci): ruff-format detection_eval.py for pinned ruff 0.4.x (#439)

Beenu Arora797410256a72
diff --git a/services/api/app/services/detection_eval.py b/services/api/app/services/detection_eval.py
index 27c737c30..ae1215407 100644
--- a/services/api/app/services/detection_eval.py
+++ b/services/api/app/services/detection_eval.py
@@ -119,18 +119,14 @@ def evaluate_candidate_rule(
fired, err = _fires(rule_language, rule_body, event)
if fired:
positives_fired += 1
- outcomes.append(
- FixtureOutcome(index=i, kind="positive", fired=fired, expected_fire=True, ok=fired, error=err)
- )
+ outcomes.append(FixtureOutcome(index=i, kind="positive", fired=fired, expected_fire=True, ok=fired, error=err))
negatives_fired = 0
for i, event in enumerate(negative_fixtures):
fired, err = _fires(rule_language, rule_body, event)
if fired:
negatives_fired += 1
- outcomes.append(
- FixtureOutcome(index=i, kind="negative", fired=fired, expected_fire=False, ok=not fired, error=err)
- )
+ outcomes.append(FixtureOutcome(index=i, kind="negative", fired=fired, expected_fire=False, ok=not fired, error=err))
fired_on_all_positives = positives_fired == len(positive_fixtures)
silent_on_all_negatives = negatives_fired == 0