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.

1.0 KB
Raw Blame
# $name

AiSOC **widget** plugin generated by `aisoc plugin new`.

## Contract

`Widget.fetch_data(context)` returns a dict shaped like:

```json
{
  "type": "kpi",
  "title": "string",
  "data": { "value": 0, "label": "events" },
  "refresh_interval_seconds": 60
}
```

`type` is one of:

| type         | `data` shape                                  | renders as              |
| ------------ | --------------------------------------------- | ----------------------- |
| `kpi`        | `{"value": number, "label": str}`             | big-number card         |
| `timeseries` | `[{"t": iso8601, "v": number}, ...]`          | line chart              |
| `table`      | `{"columns": [str], "rows": [[Any]]}`         | dense table             |
| `list`       | `[{"primary": str, "secondary": str}, ...]`   | top-N list              |

Keep `fetch_data()` fast — widgets are polled on every dashboard tick.

## Develop

```bash
aisoc plugin validate plugin.yaml
pytest -v
```

## Publish

```bash
aisoc plugin publish .
```