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.

447 B
Raw Blame
"""Cryptographic primitives for the AiSOC osquery TLS service.

Kept in a separate module (rather than security.py) to avoid the cyclic
import that would arise if security.py imported from node_registry.py and
node_registry.py imported from security.py.
"""

from __future__ import annotations

import secrets


def generate_node_key() -> str:
    """Generate a cryptographically random node key (128-bit hex)."""
    return secrets.token_hex(16)